joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56eef7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x5e8e38]
mov ebx, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
push 0x200
mov byte [esp + 0x24], 2
call fcn.00558a23
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push 0xf003f
push 0
push str.softwareHSToolsIPMsgEng
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40feee
mov esi, dword [esp + 0x28]
push 0x5ed678
mov ecx, esi
call fcn.0055969a
mov dword [esp + 0x10], ebx
jmp 0x40ff3c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ff13
push 0x5ed678
jmp 0x40ff14
push esi
lea ecx, [esp + 0xc]
call fcn.005597b5
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.005593a1
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.0055962c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0055962c
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x41f270
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57059b
push eax
mov dword fs:[0], esp
sub esp, 0x404
push esi
mov esi, ecx
mov eax, dword [esi + 0xf564]
mov ecx, dword [eax + 8]
lea edx, [eax + 0x198]
test ecx, ecx
jne 0x41f2a7
lea edx, [eax + 0x94]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41f2b2
mov eax, ecx
jmp 0x41f2b5
mov eax, dword [eax + 0x20]
push eax
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00438a60
add esp, 0xc
cmp eax, 0x104
jl 0x41f2f6
push 0
lea ecx, [esp + 0xc]
push 0x5d8664
push ecx
mov ecx, esi
call fcn.0055b864
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
mov eax, dword [esi + 0xf564]
add eax, 0x10
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41f30a
mov eax, ecx
jmp 0x41f30d
mov eax, dword [eax + 0x10]
lea edx, [esp + 8]
push eax
push edx
call fcn.004389e0
add esp, 8
test eax, eax
jne 0x41f349
push eax
lea eax, [esp + 0xc]
push 0x5d8654
push eax
mov ecx, esi
call fcn.0055b864
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.0055969a
push str..fiq
lea ecx, [esp + 8]
mov dword [esp + 0x414], 0
call fcn.00559a08
mov edx, dword [esp + 4]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0xf564]
mov dword [ecx + 0x5c], eax
mov eax, dword [esi + 0xf564]
cmp dword [eax + 0x5c], 0xffffffff
jne 0x41f3e8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41f3bc
lea edx, [esp + 8]
push 0
push edx
push 0x5d8670
mov ecx, esi
call fcn.0055b864
lea ecx, [esp + 4]
mov dword [esp + 0x410], 0xffffffff
call fcn.0055962c
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
mov eax, dword [eax + 0x24]
test ah, 1
je 0x41f3fd
lea eax, [esp + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x410], 0xffffffff
call fcn.0055962c
mov ecx, dword [esp + 0x408]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x410
ret
Function at 0x41f430
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xf564]
mov edi, dword [ecx + 0x48]
mov ebx, dword [ecx + 0x50]
mov edx, dword [ecx + 0x48]
mov ebp, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x4c]
sub edi, ebx
mov ebx, dword [ecx + 0x28]
sub ebx, edx
sbb ebp, eax
mov eax, dword [esi + 0x3284]
mov eax, dword [eax + 0x532c]
sub eax, edi
cdq
cmp ebp, edx
jl 0x41f476
jg 0x41f470
cmp ebx, eax
jbe 0x41f476
mov ebx, eax
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x58]
mov eax, dword [ecx]
push 0
add edx, edi
mov ecx, dword [eax + 8]
push ebx
push edx
push ecx
call sub.WSOCK32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x41f5b4
mov edx, dword [esi + 0xf564]
cmp dword [edx + 0x5c], 0xffffffff
jne 0x41f4af
mov ecx, esi
call fcn.0041f270
test eax, eax
je 0x41f5b4
mov ecx, dword [esi + 0xf564]
mov eax, ebx
cdq
add edi, ebx
mov ebp, edx
mov edx, dword [ecx + 0x48]
mov ebx, eax
mov eax, dword [ecx + 0x4c]
add edx, ebx
adc eax, ebp
cmp eax, dword [ecx + 0x2c]
jg 0x41f4e2
jl 0x41f4d4
cmp edx, dword [ecx + 0x28]
jae 0x41f4e2
mov eax, dword [esi + 0x3284]
cmp dword [eax + 0x532c], edi
jne 0x41f524
mov eax, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x5c]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x41f5a4
cmp edi, dword [esp + 0x10]
jne 0x41f5a4
mov ecx, dword [esi + 0xf564]
mov eax, edi
cdq
mov edi, dword [ecx + 0x50]
add edi, eax
mov dword [ecx + 0x50], edi
mov eax, dword [ecx + 0x54]
adc eax, edx
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0xf564]
mov edx, dword [eax + 0x48]
add edx, ebx
mov dword [eax + 0x48], edx
mov ecx, dword [eax + 0x4c]
adc ecx, ebp
mov dword [eax + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0xf564]
mov ecx, dword [edx]
mov edx, eax
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x41f56b
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x470
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [esi + 0xf564]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x2c]
cmp ecx, eax
jl 0x41f597
jg 0x41f587
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x28]
cmp edx, eax
jb 0x41f597
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
add eax, 8
mov dword [esi + 0x90], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0
push 0
push 0x5d8680
mov ecx, esi
call fcn.0055b864
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x435ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5717f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.0055a0c1
push eax
lea ecx, [esp + 0x30]
call fcn.00560763
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.0055a0c1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00560619
mov eax, dword [esi + 0xf0]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x435dd6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xec]
call fcn.0055fe83
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xfc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00560a0b
test edi, edi
je 0x435d82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf0]
push edi
push eax
call fcn.0055ffc4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf0]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xec]
sub ecx, edi
test edx, edx
je 0x435df7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.005607d5
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4367a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x571887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], ebx
lea ebp, [esi + 0x1c]
mov dword [esp + 0x170], ebx
mov ecx, ebp
call fcn.00556651
lea ecx, [esi + 0x24]
mov byte [esp + 0x170], 1
call fcn.00556651
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x68], 0x589d8c
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 0x589d80
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], 0x587d3c
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x174], 5
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x14]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x154
push eax
push ebx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004373f0
push 0xf
push 5
push 9
push 0x10
push 0x10
mov ecx, ebp
call fcn.00556716
mov eax, 0x10
mov dword [esi + 0xa8], ebx
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x168]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4387a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4387d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret
xor eax, eax
mov ecx, 0x50
push eax
push 0x2000000
push 3
push eax
mov edi, ebx
push 1
push 0x40000000
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43882c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x43882c
mov ecx, 7
lea esi, [esp + 0x10]
mov edi, ebx
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
mov dword [ebx], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x34
ret
Function at 0x43bcd0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x571e64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5e8e38]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [0x5e8e38]
lea ebx, [esi + 0x10]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x5e8e38]
lea ebp, [esi + 0x14]
mov dword [ebp], edx
mov eax, dword [0x5e8e38]
mov dword [esi + 0x18], eax
mov ecx, dword [0x5e8e38]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x5e8e38]
mov dword [esi + 0x20], edx
mov eax, dword [0x5e8e38]
mov dword [esi + 0x24], eax
mov ecx, dword [0x5e8e38]
mov dword [esi + 0x28], ecx
push fcn.0055962c
push 0x43cab0
push 0x64
lea edx, [esi + 0x30]
push 4
push edx
mov byte [esp + 0x30], 7
call fcn.0054227f
push fcn.0055962c
push 0x43cab0
push 0x64
lea eax, [esi + 0x1c0]
push 4
push eax
mov byte [esp + 0x30], 8
call fcn.0054227f
mov ecx, dword [0x5e8e38]
mov dword [esi + 0x350], ecx
xor eax, eax
push 0x5ed678
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 0xa
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.005597b5
push 0x5ed678
lea ecx, [esi + 0x1c]
call fcn.005597b5
push 0x5ed678
mov ecx, edi
call fcn.005597b5
push 0x5ed678
mov ecx, ebx
call fcn.005597b5
push 0x5ed678
mov ecx, ebp
call fcn.005597b5
push 0x5ed678
lea ecx, [esi + 0x350]
call fcn.005597b5
push str.Mozilla
lea ecx, [esi + 0x20]
call fcn.005597b5
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x43be10
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x571f04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [esp + 0x1c], 0xa
mov ecx, edi
call fcn.005595b7
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.005595b7
lea ebp, [esi + 0x14]
mov ecx, ebp
call fcn.005595b7
lea ecx, [esi + 0x350]
mov byte [esp + 0x1c], 9
call fcn.0055962c
push fcn.0055962c
push 0x64
lea eax, [esi + 0x1c0]
push 4
push eax
mov byte [esp + 0x2c], 8
call fcn.00540d75
push fcn.0055962c
push 0x64
lea ecx, [esi + 0x30]
push 4
push ecx
mov byte [esp + 0x2c], 7
call fcn.00540d75
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 6
call fcn.0055962c
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 5
call fcn.0055962c
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 4
call fcn.0055962c
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 3
call fcn.0055962c
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 2
call fcn.0055962c
mov ecx, ebp
mov byte [esp + 0x1c], 1
call fcn.0055962c
mov ecx, ebx
mov byte [esp + 0x1c], 0
call fcn.0055962c
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0055962c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43dc20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x572287
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x5e8e38]
mov dword [esp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 6]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov byte [esp + 0x38], 4
call fcn.0056847d
mov esi, dword [esp + 0x2c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.005593a1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.0055962c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0055962c
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0055962c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0055962c
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x43dce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push 0
push 0x5d9774
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [esp + 0x214]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0055969a
mov eax, esi
pop esi
add esp, 0x20c
ret
Function at 0x43dd40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5722e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x34]
push 0x5ed678
push eax
mov dword [esp + 0x30], 2
call fcn.00541319
add esp, 8
test eax, eax
jne 0x43dd9e
mov esi, dword [esp + 0x30]
push 0x5ed678
mov ecx, esi
call fcn.0055969a
mov ebx, 1
mov dword [esp + 0x10], ebx
jmp 0x43df07
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
call fcn.005593a1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 3
call fcn.00554e33
lea ecx, [esp + 8]
call fcn.00554de7
push 0x5d97ac
lea ecx, [esp + 0xc]
call fcn.00554a4e
cmp eax, 0xffffffff
je 0x43dde4
push str.shutdown
lea ecx, [esp + 0x38]
call fcn.005597b5
lea ecx, [esp + 0x38]
call fcn.00554e33
mov edx, dword [esp + 0x38]
push 0x5ed678
push edx
call fcn.00541319
add esp, 8
mov ebx, 1
test eax, eax
push ebx
push 0
je 0x43de17
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
jmp 0x43de1e
mov edx, dword [esp + 0x3c]
push 0
push edx
push 0x5d7a34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x43dee5
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.0055969a
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 4
call fcn.00554de7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 8]
lea edx, [esp + 0x1c]
push ecx
push 0x5d978c
push edx
call fcn.00559935
push 0x5d9778
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x30], 5
push eax
call fcn.005598c1
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
mov byte [esp + 0x34], 6
call fcn.0055985b
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x28], 5
call fcn.0055962c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 4
call fcn.0055962c
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0055962c
jmp 0x43def9
mov esi, dword [esp + 0x30]
push 0x5ed678
mov ecx, esi
call fcn.0055969a
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.0055962c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.0055962c
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.0055962c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x43f6a0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x572580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call fcn.0053943a
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.005394fd
xor esi, esi
test eax, eax
je 0x43f704
lea ecx, [esp + 4]
call fcn.0053971d
mov edx, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [edx + 0x38]
test eax, eax
je 0x43f704
mov esi, 1
lea ecx, [esp + 4]
call fcn.005394b3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43f725
test esi, esi
jne 0x43f725
mov eax, dword [esp + 0x30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.00539477
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0055962c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f77a
test al, 0x10
je 0x43f77a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x440060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push 0x5d7a34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x440149
lea eax, [esp + 0x10]
push eax
push str..htm
push SysReAllocStringLen
call fcn.00440160
add esp, 0xc
test eax, eax
jne 0x440149
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push SysReAllocStringLen
call fcn.00440160
add esp, 0xc
test eax, eax
jne 0x440149
lea ecx, [esp + 0x10]
push 0x5d993c
push ecx
call fcn.00542589
mov esi, eax
add esp, 8
test esi, esi
jne 0x440123
lea edx, [esp + 0x10]
push 0x5d9938
push edx
call fcn.00542589
mov esi, eax
add esp, 8
test esi, esi
jne 0x440123
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x440126
mov byte [esi], 0
push 0x5d9564
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x440160
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4401c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret