joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a6fa0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3265
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100c7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.100a7750
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a702a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100a7170
cmp dword [ebx + 8], 0xfffffff
jne 0x100a703e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100a8596
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bc6a0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100bc6a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100a7123
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100a9870
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100a7105
cmp eax, 0x200
jae 0x100a7103
shl eax, 3
cmp eax, ecx
jae 0x100a7105
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10079810
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a7750
mov edx, dword [eax]
jmp 0x100a7126
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100a7151
mov dword [ecx + eax*8], esi
jmp 0x100a7163
cmp ebx, edx
jne 0x100a715a
mov dword [ecx + eax*8], esi
jmp 0x100a7167
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100a7167
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100a77c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3265
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100c7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.100a7750
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a784a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100a7992
cmp dword [ebx + 8], 0xfffffff
jne 0x100a785e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100a8596
mov edx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bc6a0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100bc6a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100a7945
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100a9870
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100a7927
cmp eax, 0x200
jae 0x100a7925
shl eax, 3
cmp eax, ecx
jae 0x100a7927
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10079810
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a7750
mov edx, dword [eax]
jmp 0x100a7948
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100a7973
mov dword [ecx + eax*8], esi
jmp 0x100a7985
cmp ebx, edx
jne 0x100a797c
mov dword [ecx + eax*8], esi
jmp 0x100a7989
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100a7989
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2021e61
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2f133332
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40137e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a0a4], 0
push esi
jne 0x4013b5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40138f
mov dword [ecx*4 + 0x40a0a0], eax
inc ecx
cmp ecx, 0x100
jl 0x40138a
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x4013e1
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40a0a0]
inc ecx
dec esi
jne 0x4013c7
not eax
pop esi
ret 0xc

Function at 0x401540
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 8
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4015b2
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40158b
cmp dword [ebp + 0x10], ebx
jne 0x4015b9
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401540
test eax, eax
jne 0x40159d
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401572
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4015b2
Function at 0x403f6a
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x438000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x438000
je 0x403f89
push ebx
call fcn.00405dd3
jmp 0x403f8f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x431104]
test esi, esi
je 0x403fe4
mov ecx, dword [0x4310c8]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x431100]
xor ebp, ebp
add ecx, edx
mov bp, word [ecx]
xor bp, ax
dec esi
and ebp, edi
test bp, bp
je 0x403fc9
test esi, esi
jne 0x403fb1
jmp 0x403fe4
mov edx, dword [ecx + 2]
mov dword [0x43089c], edx
mov edx, dword [ecx + 6]
mov dword [0x431168], edx
lea edx, [ecx + 0xa]
mov dword [0x4308a8], edx
cmp dword [0x4308a8], 0
jne 0x403fff
cmp di, 0xffff
jne 0x403ffb
mov edi, 0x3ff
jmp 0x403f91
xor edi, edi
jmp 0x403f91
movzx eax, word [ecx]
push eax
push ebx
call fcn.00405dba
push 0xfffffffffffffffe
push 0x4308c0
call fcn.00406416
push eax
push dword [0x42ad14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x4310ec]
test eax, eax
mov esi, dword [0x4310e8]
je 0x40404c
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x404043
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00406416
add esi, 0x418
dec edi
jne 0x404033
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b60
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42cd30], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405b84
test al, 0x10
jne 0x405b87
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42cd30
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405bb2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x405cd9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405d4c
test edi, edi
jne 0x405d13
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d46

Function at 0x405d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405db4
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x400
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405da3
cmp dword [ebp + 0x14], 1
je 0x405da5
cmp dword [ebp + 0x14], 2
je 0x405da5
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405f0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405f31
mov eax, dword [0x40a05c]
cmp eax, 0xffffffff
je 0x405f28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a05c], 0xffffffff
jmp 0x405fa6
cmp dword [0x42ec48], ebx
je 0x405fa6
cmp byte [0x430460], bl
je 0x405f70
cmp dword [0x40a05c], 0xffffffff
jne 0x405f79
push 4
push 0x40000000
push 0x430460
call fcn.00405cd9
cmp eax, 0xffffffff
mov dword [0x40a05c], eax
je 0x405fa6
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a05c], 0xffffffff
je 0x405fa6
push esi
push 0x408c24
mov esi, 0x42ec60
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [0x40a05c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40608c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
mov esi, 0x42cd78
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00405c6c
test eax, eax
jne 0x4060ab
xor eax, eax
jmp 0x406102
test byte [0x431124], 0x80
je 0x4060bf
mov cl, byte [eax]
test cl, cl
je 0x4060a7
cmp cl, 0x5c
je 0x4060a7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, eax
sub edi, esi
jmp 0x4060e2
push esi
call fcn.00405fc7
test eax, eax
je 0x4060dc
test byte [eax], 0x10
je 0x406106
push esi
call fcn.00406066
push esi
call ebx
cmp eax, edi
jg 0x4060cd
push esi
call fcn.00406005
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop ebx
pop esi
ret 4
xor eax, eax
jmp 0x406100
Function at 0x406645
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040608c
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 4], eax
je 0x40667a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x431148], eax
jmp 0x406835
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406695
test eax, eax
je 0x406834
test cl, 2
je 0x4067cb
push edi
push ebx
mov esi, 0x42d6b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4066b9
push str..
push esi
call edi
jmp 0x4066bf
push ebx
call fcn.00406066
push 0x408558
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4067c0
cmp byte [ebp - 0x118], 0x2e
jne 0x40670e
cmp byte [ebp - 0x117], 0x2e
je 0x4067a3
cmp byte [ebp - 0x117], 0
je 0x4067a3
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x144], 0x10
je 0x40673a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4067a3
push dword [ebp + 0xc]
push ebx
call fcn.00406645
jmp 0x4067a3
push ebx
push str.Delete:_DeleteFile___s__
call fcn.00405fab
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push ebx
jne 0x40679c
test byte [ebp + 0xc], 4
je 0x406788
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00405fab
pop ecx
pop ecx
push ebx
push 0xfffffffffffffff1
call fcn.00404efe
push 0
push ebx
call fcn.004061b6
jmp 0x4067a3
push str.Delete:_DeleteFile_failed___s__
call fcn.00405fab
inc dword [0x431148]
pop ecx
pop ecx
jmp 0x4067a3
push 0xfffffffffffffff2
call fcn.00404efe
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4066eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4067ca
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp - 4], esi
je 0x406834
cmp dword [ebp + 8], esi
je 0x406834
push ebx
call fcn.00406005
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.00405fab
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push ebx
jne 0x40682d
test byte [ebp + 0xc], 4
je 0x406819
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00405fab
pop ecx
pop ecx
push ebx
push 0xfffffffffffffff1
call fcn.00404efe
push esi
push ebx
call fcn.004061b6
jmp 0x406834
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00405fab
inc dword [0x431148]
pop ecx
pop ecx
jmp 0x406834
push 0xffffffffffffffe5
call fcn.00404efe
pop esi
pop ebx
leave
ret 8
Function at 0x405e90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405ece
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405ec6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405ed0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405eb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405fb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405fe1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405fe1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405fe1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x403a90
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, 0x40c82c
xor eax, eax
push ebx
mov ebx, dword [ecx]
mov ecx, 1
push esi
push edi
xor esi, esi
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x403ad9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x20
jae 0x403ac0
push 0
jmp 0x403ac2
push 1
call edi
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x40c82c
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403ab7
cmp dword [0x40c830], 0
je 0x403bdd
test ebx, ebx
jne 0x403af9
lea ecx, [ebx + 1]
call fcn.00406819
mov esi, eax
jmp 0x403be2
mov ecx, dword [0x40c898]
xor edx, edx
test ecx, ecx
je 0x403b1c
mov esi, dword [0x40c890]
mov eax, esi
nop dword [eax]
cmp ebx, dword [eax]
je 0x403b26
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x403b10
mov esi, 4
jmp 0x403be2
cmp edx, 0xffffffff
je 0x403b1c
imul edi, edx, 0x2c
test byte [edi + esi + 0x14], 2
jne 0x403bd6
push 1
lea ecx, [ebp - 0x10]
call fcn.00406668
mov esi, eax
add esp, 4
test esi, esi
jne 0x403be2
add edi, dword [0x40c890]
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea esi, [eax - 5]
cmove esi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x403b8d
lea ecx, [ebp - 0x10]
lea esi, [eax + 0xa]
call fcn.004066f3
jmp 0x403be2
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x403ba8
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.004066f3
jmp 0x403be2
mov esi, 5
jmp 0x403be2
mov esi, 2
xor eax, eax
mov ecx, 0x40c82c
xchg dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403c30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00403a90