joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df40
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x43e288
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push ebx
push edi
mov dword [esp + 0x14], ebp
call fcn.0041d9ad
push 0x40
lea eax, [esp + 0x14]
push ebp
push eax
mov dword [esp + 0x18], vtable.CMD5Checksum.0
call fcn.00424c40
add esp, 0xc
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], 0x67452301
mov dword [esp + 0x5c], 0xefcdab89
mov dword [esp + 0x60], 0x98badcfe
mov dword [esp + 0x64], 0x10325476
push edi
mov eax, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], ebp
call fcn.0040e970
push esi
lea ecx, [esp + 0x10]
call fcn.0040e6f0
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042179d
add esp, 0x70
ret

Function at 0x40eba0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00414304
mov eax, dword [esi + 0x98]
push 0x640000
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x40eb20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret

Function at 0x40ed70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43ee68
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040ea10
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d00], ecx
test esi, esi
jne 0x40edc0
xor eax, eax
jmp 0x40edce
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40edc5
sub eax, edx
push eax
push esi
mov ecx, 0x453cf4
call fcn.00409c70
test edi, edi
jne 0x40ede2
xor eax, eax
jmp 0x40edf0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ede7
sub eax, edx
push eax
push edi
mov ecx, 0x453cf8
call fcn.00409c70
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x40ecb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414603
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041491a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00413eb2
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret
Function at 0x4124f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e200
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.004098c0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0040a710
add esp, 4
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41256f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x4478d8
lea ecx, [esp + 0x18]
call fcn.0040ab80
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412584
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x4125f2
jmp 0x4125a0
test esi, esi
jl 0x412629
cmp esi, eax
jg 0x412629
cmp byte [esi + ecx], 0x5c
jne 0x4125ea
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00409170
mov edi, dword [esp + 0x18]
push 0
push edi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4125e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x4125a0
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412616
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00409d60
int3
Function at 0x412640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e57b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412693
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x234], 0
call fcn.00424c40
add esp, 0xc
push 0x208
lea edx, [esp + 0x18]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040a910
add esp, 0xc
test eax, eax
jne 0x41271c
lea eax, [esp + 0x10]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00409670
mov esi, dword [esp + 0x18]
add esp, 8
push edi
push esi
push 0x453d09
call fcn.0040d390
lea eax, [esi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042179d
add esp, 0x220
ret
Function at 0x412b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
xor eax, eax
lea ebx, [ebx]
mov dword [esi + eax*4 + 8], eax
inc eax
cmp eax, 0x100
jl 0x412b30
push ebp
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 8], 0x40
jmp 0x412b50
movzx ebp, byte [edx + ebx]
mov eax, dword [ecx - 8]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x412b6b
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 8], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx - 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x412b9c
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x412bcc
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx + 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x412bfc
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx + 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
add ecx, 0x10
sub dword [esp + 8], 1
jne 0x412b50
pop edi
pop ebp
pop ecx
ret
Function at 0x413280
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.00427010
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x8004], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0
call fcn.004133f1
test eax, eax
jne 0x4132b6
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x447a7c
push esi
add ebp, 0x10
call fcn.004385c0
mov edi, eax
add esp, 8
test edi, edi
je 0x413358
push 0x447a60
push ebx
call fcn.00422167
mov esi, eax
add esp, 8
test esi, esi
je 0x41334f
push esi
mov dword [esp + 0x10], 1
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x413346
push 0x8000
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00438b30
add esp, 0xc
test eax, eax
jle 0x413346
push esi
push eax
lea edx, [esp + 0x18]
push 1
push edx
call fcn.004223d3
add esp, 0x10
test eax, eax
je 0x41333e
push esi
call fcn.004227eb
add esp, 4
test eax, eax
je 0x413303
jmp 0x413346
mov dword [esp + 0xc], 0
push esi
call fcn.004221f5
add esp, 4
push edi
call fcn.00438fa0
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
test edx, edx
jg 0x413376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8008]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0042179d
add esp, 0x8008
ret
Function at 0x41539a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x44fb64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x415438
push 0x440dfc
push 4
push eax
call fcn.0042504d
push eax
call fcn.00409510
add esp, 0x10
push ebx
push edi
call fcn.00424aee
mov edi, dword [eax]
call fcn.00424aee
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00421898
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00424aee
cmp dword [eax], ebx
je 0x41544f
call fcn.00424aee
push dword [eax]
call fcn.0041388e
pop ecx
jmp 0x415456
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4153e0
jmp 0x4154dd
call fcn.00424aee
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x4154d9
cmp dword [ebp - 0x11c], esi
jae 0x4154d9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00424c40
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4154c8
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4154c8
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4154c8
push ebx
push ebx
push esi
jmp 0x4154d1
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4154db
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042179d
leave
ret

Function at 0x41ce62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41cea9
call fcn.00417938
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41cea9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41cec5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c9dc
mov esi, eax
test edi, edi
je 0x41cec3
test ebx, ebx
je 0x41cec3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42179d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44fb64]
jne 0x4217a7
repz ret
jmp fcn.004275e3
Function at 0x4336b6
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.004290bb
and dword [ebp - 4], 0
cmp dword [0x453bb0], 0
mov ebx, eax
jne 0x433767
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x433818
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x443da4
push edi
call esi
test eax, eax
je 0x433818
push eax
call fcn.00429049
mov dword [esp], 0x443d94
push edi
mov dword [0x453bb0], eax
call esi
push eax
call fcn.00429049
mov dword [esp], 0x443d80
push edi
mov dword [0x453bb4], eax
call esi
push eax
call fcn.00429049
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x453bb8], eax
call esi
push eax
call fcn.00429049
pop ecx
mov dword [0x453bc0], eax
test eax, eax
je 0x433767
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429049
pop ecx
mov dword [0x453bbc], eax
mov eax, dword [0x453bbc]
cmp eax, ebx
je 0x4337bf
cmp dword [0x453bc0], ebx
je 0x4337bf
push eax
call fcn.004290c4
push dword [0x453bc0]
mov esi, eax
call fcn.004290c4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4337bf
test edi, edi
je 0x4337bf
call esi
test eax, eax
je 0x4337b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4337b6
test byte [ebp - 0xc], 1
jne 0x4337bf
or dword [ebp + 0x10], 0x200000
jmp 0x4337f8
mov eax, dword [0x453bb4]
cmp eax, ebx
je 0x4337f8
push eax
call fcn.004290c4
pop ecx
test eax, eax
je 0x4337f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4337f8
mov eax, dword [0x453bb8]
cmp eax, ebx
je 0x4337f8
push eax
call fcn.004290c4
pop ecx
test eax, eax
je 0x4337f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453bb0]
call fcn.004290c4
pop ecx
test eax, eax
je 0x433818
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43381a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438850
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x4388c4
test edi, edi
je 0x43886c
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.00424aee
mov edx, 0x4000
mov ecx, edi
mov dword [eax], 0
mov eax, dword [esi + 0x40]
sar edx, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push edx
push 1
push eax
call fcn.00422af3
add esp, 0x10
test eax, eax
jne 0x4388a9
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4388a9
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 4]
add edx, eax
mov dword [esi + 4], edx
mov eax, edx
mov edx, dword [esi + 0x44]
cmp eax, 2
mov dword [esi], edx
jae 0x4388c4
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
mov edx, dword [0x444410]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, edx
jne 0x4389e0
mov ecx, dword [0x444414]
xor edx, edx
mov dl, byte [eax + 1]
cmp edx, ecx
jne 0x4389e0
mov ecx, dword [esi + 4]
add eax, 2
add ecx, 0xfffffffe
push esi
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.004389f0
push esi
mov edi, eax
call fcn.004389f0
add esp, 8
cmp edi, 8
mov ebx, eax
jne 0x4389d5
test bl, 0xe0
jne 0x4389d5
mov edi, 6
push esi
call fcn.004389f0
add esp, 4
dec edi
jne 0x438923
test bl, 4
je 0x438966
push esi
call fcn.004389f0
push esi
mov edi, eax
call fcn.004389f0
shl eax, 8
add edi, eax
add esp, 8
mov eax, edi
dec edi
test eax, eax
je 0x438966
push esi
call fcn.004389f0
add esp, 4
cmp eax, 0xffffffff
je 0x438966
mov ecx, edi
dec edi
test ecx, ecx
jne 0x438951
test bl, 8
je 0x43898a
push esi
call fcn.004389f0
add esp, 4
test eax, eax
je 0x43898a
cmp eax, 0xffffffff
je 0x43898a
push esi
call fcn.004389f0
add esp, 4
test eax, eax
jne 0x438978
test bl, 0x10
je 0x4389ae
push esi
call fcn.004389f0
add esp, 4
test eax, eax
je 0x4389ae
cmp eax, 0xffffffff
je 0x4389ae
push esi
call fcn.004389f0
add esp, 4
test eax, eax
jne 0x43899c
test bl, 2
je 0x4389c4
mov edi, 2
push esi
call fcn.004389f0
add esp, 4
dec edi
jne 0x4389b8
mov edx, dword [esi + 0x3c]
pop edi
neg edx
sbb edx, edx
and edx, 0xfffffffd
mov dword [esi + 0x38], edx
pop esi
pop ebx
ret
mov dword [esi + 0x38], 0xfffffffd
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x58], 1
pop edi
pop esi
pop ebx
ret

Function at 0x4389f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x438a01
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x438a4e
call fcn.00424aee
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00422af3
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x438a49
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x438a60
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x438dc0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x438e77
cmp byte [esi + 0x5c], 0x77
jne 0x438e77
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x438e5b
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x438e15
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.004223d3
add esp, 0x10
cmp eax, 0x4000
jne 0x438e54
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
add eax, edx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add ecx, eax
push 0
push esi
mov dword [esi + 0x68], ecx
call fcn.00437240
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x64]
sub edx, ecx
add esp, 8
mov dword [esi + 0x64], edx
mov edx, dword [esi + 0x10]
sub dword [esi + 0x68], edx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x438e5b
test ecx, ecx
jne 0x438dea
jmp 0x438e5b
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.0043c550
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x438e80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x438f46
cmp byte [esi + 0x5c], 0x77
jne 0x438f46
mov ebp, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x438ed3
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.004223d3
add esp, 0x10
cmp eax, edi
jne 0x438f2a
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x438f35
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x68]
add ecx, eax
push ebp
push esi
mov dword [esi + 0x68], ecx
call fcn.00437240
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x68]
add esp, 8
sub ebx, ecx
test edi, edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], ebx
jne 0x438f06
cmp eax, 0xfffffffb
jne 0x438f06
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x438f14
cmp dword [esi + 0x38], 1
je 0x438f14
xor ebx, ebx
jmp 0x438f19
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x438ea3
cmp eax, 1
jne 0x438f35
jmp 0x438ea3
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x409860
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.004ce800
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x409898
mov byte [esi + 8], 1
call ebx
jmp 0x40989e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4098ba
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x409870
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40af60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004d7550
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 0
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40b0af
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x40b042
cmp word [ebp - 0x804], ax
jne 0x40b000
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00406340
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b010
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406340
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40b0aa
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x40b093
cmp eax, 0x400
ja 0x40b093
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00404180
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
Function at 0x40b850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b95b
cmp dword [edi + 4], 0
jl 0x40b95b
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
sar eax, 1
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [eax*2 - 2]
mov dword [ebp - 4], edx
mov dword [ecx], eax
xor eax, eax
mov esi, dword [edi + 0x20]
lea ecx, [edi + 8]
cmp esi, dword [edi + 0x24]
cmove esi, eax
call fcn.00412070
lea ecx, [edi + 0x2c]
push ecx
push esi
lea edx, [edi + 0x30]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x40b93d
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
inc ecx
sub eax, dword [edi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x40b8ea
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [edi + 0x20]
call fcn.0040bf10
mov eax, dword [edi + 0x24]
mov ecx, 0x4000
sub eax, dword [edi + 0x20]
sar eax, 1
lea eax, [eax*2 - 2]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
mov esi, dword [edi + 0x20]
cmove eax, ecx
xor ecx, ecx
cmp esi, dword [edi + 0x24]
mov edx, eax
mov dword [ebp - 4], eax
cmove esi, ecx
lea ecx, [edi + 8]
call fcn.00412070
lea ecx, [edi + 0x2c]
push ecx
push esi
lea ecx, [edi + 0x30]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
pop esi
test eax, eax
jne 0x40b95b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x40b966
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
mov word [eax], cx
xor al, al
mov dword [edi + 0x2c], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret