joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002500
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x10002508
xor eax, eax
ret
mov ecx, 0x5a4d
mov dword [edx + 0xc], eax
cmp word [eax], cx
jne 0x10002505
mov ecx, dword [eax + 0x3c]
push edi
lea edi, [ecx + 0xf8]
cmp esi, edi
jb 0x10002586
add eax, ecx
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x10002586
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0x10002586
test cl, 2
je 0x10002586
mov ecx, pe_nt_image_headers32
cmp word [eax + 0x14], cx
jne 0x10002586
mov edi, dword [edx + 0x10]
push ebx
lea ecx, [eax + 0xf8]
xor ebx, ebx
mov dword [edx + 0x14], ecx
xor eax, eax
cmp bx, word [edi + 6]
pop ebx
jae 0x1000257f
add ecx, 0x10
mov edi, dword [ecx + 4]
add edi, dword [ecx]
cmp edi, esi
ja 0x10002586
mov edi, dword [edx + 0x10]
movzx edi, word [edi + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jl 0x10002567
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x10002610
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.10009760
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ax, word [edx + 6]
jae 0x1000267d
push edi
xor edi, edi
mov ecx, dword [esi + 0x14]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000266d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1000266d
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.10009760
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, ecx
jl 0x10002645
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8

Function at 0x10007bd8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d0d0]
jne 0x10007be2
repz ret
jmp fcn.10009ba4
Function at 0x100103fd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000a7f5
and dword [ebp - 4], 0
cmp dword [0x1001eb58], 0
mov ebx, eax
jne 0x100104ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001055f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001055f
push eax
call fcn.1000a783
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001eb58], eax
call esi
push eax
call fcn.1000a783
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001eb5c], eax
call esi
push eax
call fcn.1000a783
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001eb60], eax
call esi
push eax
call fcn.1000a783
pop ecx
mov dword [0x1001eb68], eax
test eax, eax
je 0x100104ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a783
pop ecx
mov dword [0x1001eb64], eax
mov eax, dword [0x1001eb64]
cmp eax, ebx
je 0x10010506
cmp dword [0x1001eb68], ebx
je 0x10010506
push eax
call fcn.1000a7fe
push dword [0x1001eb68]
mov esi, eax
call fcn.1000a7fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10010506
test edi, edi
je 0x10010506
call esi
test eax, eax
je 0x100104fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100104fd
test byte [ebp - 0xc], 1
jne 0x10010506
or dword [ebp + 0x10], 0x200000
jmp 0x1001053f
mov eax, dword [0x1001eb5c]
cmp eax, ebx
je 0x1001053f
push eax
call fcn.1000a7fe
pop ecx
test eax, eax
je 0x1001053f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001053f
mov eax, dword [0x1001eb60]
cmp eax, ebx
je 0x1001053f
push eax
call fcn.1000a7fe
pop ecx
test eax, eax
je 0x1001053f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001eb58]
call fcn.1000a7fe
pop ecx
test eax, eax
je 0x1001055f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10010561
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a1be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41a1cd
pop dword [ebp - 0x28]
mov eax, 0x41a1cd
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8b5f8284
add dword [ebp - 0x38], 0xc2f2c2c7
mov dword [ebp - 0x34], 0xdd81b2f7
sub dword [ebp - 0x34], 0xab4e66b2
mov dword [ebp - 0x30], 0x6509e4ef
add dword [ebp - 0x30], 0xe7425f3f
mov dword [ebp - 0x2c], 0x8357d9af
add dword [ebp - 0x2c], 0x7ca82651
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x91dc3dc2
add dword [ebp - 0x38], 0xe2962b94
mov dword [ebp - 0x34], 0xb36efdf0
sub dword [ebp - 0x34], 0x72029c7b
mov dword [ebp - 0x30], 0xdb6fa2a4
add dword [ebp - 0x30], 0x87ffc9c8
mov dword [ebp - 0x2c], 0x760b7fd2
add dword [ebp - 0x2c], 0x89f4802e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b3bc
push 0
call eax
mov ecx, 0x3feb3704
sub ecx, 0x3feaff0e
mov edi, eax
mov esi, 0x474600
add esi, dword [ebp - 0x28]
mov ebx, 0xe1b88f92
xor dword [ebp - 0x14], 0xeeafdb88
mov edx, dword [esi]
sub dword [ebp - 0xc], 0xb804acac
xor edx, ebx
mov dword [ebp - 0x20], 0x9117a967
mov dword [edi], edx
mov dword [ebp - 4], 0x6e565862
add edi, 0x2511b084
sub edi, 0x2511b080
add esi, 0x9aa3e120
sub esi, 0x9aa3e11c
loop 0x41a2d4
add eax, 0x3779726
sub eax, 0x376c47b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4b30b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
or ebp, 0xffffffff
jmp 0x4b30d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b30d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b30c8
mov eax, 1
add ebx, ebx
jne 0x4b30eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b30fc
jne 0x4b311b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b311b
dec eax
add ebx, ebx
jne 0x4b3108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b30e0
add ebx, ebx
jne 0x4b3117
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b316d
xor ecx, ecx
sub eax, 3
jb 0x4b3133
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b31a2
sar eax, 1
mov ebp, eax
jmp 0x4b313e
add ebx, ebx
jne 0x4b313e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b310c
inc ecx
add ebx, ebx
jne 0x4b314c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b310c
add ebx, ebx
jne 0x4b3159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b314e
jne 0x4b316a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b314e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b318c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b317e
jmp 0x4b30ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b318c
add edi, ecx
jmp 0x4b30ce
pop esi
mov edi, esi
mov ecx, 0x370c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b31aa
cmp byte [edi], 0x4a
jne 0x4b31aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b31af
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3227
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb94fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9650]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b31dc
mov ecx, edi
jns 0x4b320b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9654]
or eax, eax
je 0x4b3221
mov dword [ebx], eax
add ebx, 4
jmp 0x4b31f9
call dword [esi + 0xb9664]
mov ebp, dword [esi + 0xb9658]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b325b
sub esp, 0xffffff80
jmp 0x418150
Function at 0x40284b
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x467446
call fcn.00463cb0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40287e
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
call fcn.00463d4f
ret
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x46ecfc
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405155
inc eax
mov ecx, eax
jmp 0x4028e1
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c28
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi + 1]
push ebx
lea esi, [ebp + 8]
call fcn.00405155
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028aa
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.004017c3
jmp 0x40286b

Function at 0x402eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.C:Program_Files
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f15
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40b634
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x46960c
call fcn.00463cb0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b667
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
inc eax
call fcn.00463d4f
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ecfc
push eax
call fcn.0040227e
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x18], esp
call fcn.0041bade
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esp
call fcn.00404264
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.0040291a
add esp, 0x10
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40b6dc
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x40b65f
lea esi, [ebp - 0x14]
call fcn.004041f5
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
mov esi, eax
jmp 0x40b6c2
Function at 0x4382de
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
push edi
xor ebp, ebp
push ebp
mov eax, esi
call fcn.0043835c
push ebp
mov edi, 0x80
push edi
push 2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x438349
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x438345
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x438349
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x438359
push ebx
call fcn.0044a68e
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop ecx
mov dword [esi + 0x18], eax
pop edi
pop ebp
ret

Function at 0x43859c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x4385ef
and dword [ebp - 4], 0
mov esi, 0x1000000
cmp edi, 0x1000000
ja 0x4385bd
mov esi, edi
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4385fa
cmp esi, dword [ebp - 4]
jb 0x4385fe
cmp dword [ebp - 4], 0
jne 0x4385e7
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
sub edi, eax
add dword [ebp - 8], eax
test edi, edi
jne 0x4385aa
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x4385f6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
test eax, eax
je 0x4385fa
and dword [ebp - 8], 0
push 0x47cd2c
lea eax, [ebp - 8]
push eax
call fcn.00457f1a
int3

Function at 0x43861b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [esi], 0
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
jmp 0x438660
and dword [ebp - 8], 0
mov edi, 0x1000000
cmp ebx, edi
ja 0x43863b
mov edi, ebx
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43866b
mov eax, dword [ebp - 8]
add dword [esi], eax
cmp eax, edi
jb 0x438664
sub ebx, eax
add dword [ebp - 4], eax
test ebx, ebx
jne 0x43862c
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x438667
Function at 0x43866f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43867a
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x43872c
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
sub edi, 8
dec esi
jne 0x438691
pop ebx
test edi, edi
je 0x438745
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x46f4c0]
inc ecx
dec edi
jne 0x438730
pop esi
not eax
pop edi
ret
Function at 0x414bb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
cld
invalid
jmp dword [esi - 0x73]
test dword [esp + edi*8], edi
invalid
call dword [eax - 0x18]
jb 0x414c54
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00414287
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
invalid
invalid
invalid
Function at 0x4170f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
or edi, 0xffffffff
lea eax, [edx + 1]
mov ecx, 0x200
sub edi, edx
nop
movzx ebx, byte [eax - 1]
lea edx, [edi + eax]
shl edx, 8
xor edx, ebx
movzx ebx, byte [eax]
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax - 1], dl
lea edx, [ecx - 0x100]
xor edx, ebx
movzx ebx, byte [eax + 2]
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax], dl
movzx edx, byte [eax + 1]
xor edx, ecx
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax + 1], dl
lea edx, [ecx + 0x100]
xor edx, ebx
xor edx, esi
movzx edx, byte [edx + 0x4367f0]
mov byte [eax + 2], dl
add eax, 4
lea edx, [edi + eax]
add ecx, 0x400
cmp edx, 0x10
jb 0x417100
pop edi
pop ebx
ret

Function at 0x417360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
and ecx, 0xf
push esi
shr ebx, 4
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x1c], esi
cmp ebx, eax
jbe 0x4173f3
lea esi, [edx + 1]
mov dword [ebp - 0x18], ebx
jmp 0x4173b0
lea eax, [edi + 1]
mov ecx, 4
jmp 0x4173c0
movzx edx, byte [esi - 1]
xor byte [eax - 1], dl
movzx edx, byte [esi]
xor byte [eax], dl
movzx edx, byte [esi + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + 2]
xor byte [eax + 2], dl
add esi, 4
add eax, 4
dec ecx
jne 0x4173c0
call fcn.004171c0
dec dword [ebp - 0x18]
jne 0x4173b0
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
shl ebx, 4
push esi
add ebx, edx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0041bc90
mov byte [ebp + esi - 0x14], 0x80
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x13]
lea edx, [ebp - 0x12]
lea ebx, [ebp - 0x11]
add esp, 0xc
sub ecx, edi
sub esi, edi
sub edx, edi
sub ebx, edi
mov eax, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 4
jmp 0x417430
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [esi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 2], bl
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + eax]
xor byte [eax + 3], bl
add eax, 4
dec dword [ebp - 0x18]
jne 0x417430
call fcn.004171c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c24
test esi, esi
jne 0x403396
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d14
jmp 0x4033b4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403264
mov edi, eax
test esi, esi
je 0x4033b4
cmp dword [ebx], 0
je 0x4033b4
dec esi
jmp 0x40339d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ea020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b78
xor eax, eax
push ebp
push 0x403b71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bb4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ea020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ea020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ee04c], 0
je 0x404a31
cmp word [0x4ee220], 0xd7b2
jne 0x4049f9
cmp dword [0x4ee228], 0
jbe 0x4049f9
mov eax, 0x4ee21c
call dword [0x4ee238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404a58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ea030], 0
jne 0x404a4d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ba8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ea034], 0
je 0x404bce
mov edx, esi
mov eax, ebx
call dword [0x4ea034]
jmp 0x404bdd
mov eax, 8
call fcn.00402f74
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ee04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b70
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc