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

Disassembly:
mov eax, 0x1008
call fcn.004f33a0
push esi
push 0
push 0
mov esi, dword [esp + 0x1018]
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4975da
xor eax, eax
pop esi
add esp, 0x1008
ret 4
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x497621
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4975ce
mov al, byte [esp + 0xc]
test al, al
je 0x4975ce
mov eax, 1
pop esi
add esp, 0x1008
ret 4
xor ecx, ecx
pop esi
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x1008
ret 4

Function at 0x498720
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
cmp esi, 0xffffffff
push edi
jne 0x498742
pop edi
mov eax, 0x2726
pop esi
add esp, 0x10c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push 0
push 0
push ecx
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x498787
pop edi
pop esi
add esp, 0x10c
jmp dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 1
jne 0x4987e8
lea edx, [esp + 0x10]
push edx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4987e8
mov edi, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push 2
mov eax, dword [edi]
push eax
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x4987c9
pop edi
pop esi
add esp, 0x10c
jmp dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jne 0x4987db
pop edi
mov eax, 0x2745
pop esi
add esp, 0x10c
ret
mov dword [edi], eax
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x120]
pop edi
xor eax, eax
pop esi
mov dword [edx], 0
add esp, 0x10c
ret

Function at 0x498800
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x190
test eax, eax
je 0x49882a
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 1
add esp, 0x190
ret
Function at 0x499500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3f4
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49952f
xor eax, eax
add esp, 0x3f4
ret
lea ecx, [esp + 4]
push esi
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.NoClose
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x49956c
xor eax, eax
add esp, 0x3f4
ret
mov cl, byte [esp + 0xc]
xor eax, eax
cmp cl, 1
sete al
add esp, 0x3f4
ret

Function at 0x499580
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x49965d
mov eax, dword [esp + 0x2c]
mov esi, 2
cmp eax, esi
jne 0x49965d
call fcn.00499500
test eax, eax
jne 0x499652
lea ecx, [esp + 8]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x499652
lea edx, [esp + 0x10]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 8]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push ecx
mov dword [esp + 0x24], 1
call esi
push 0
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0
push eax
mov dword [esp + 0x30], 0
call esi
pop edi
mov eax, 1
pop esi
add esp, 0xa8
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa8
ret
push 0
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
add esp, 0xa8
ret
Function at 0x499710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x528c3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov eax, dword [0x569c90]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18], 3
cmp eax, 0x15
jne 0x499768
mov ecx, dword [esp + 0x24]
lea edx, [esp]
push ecx
push 0x55e7a8
push edx
call fcn.005054dc
add esp, 0xc
jmp 0x499780
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 8]
push str._s__d
push ecx
call fcn.005054dc
add esp, 0x10
lea edx, [esp + 4]
push esi
push edx
call fcn.004091b0
mov eax, dword [eax]
push 0x55ea0c
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x2c], 4
call fcn.00424830
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 6
call fcn.00507d3a
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x2c]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00424830
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 7
call fcn.00507e73
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 6
call fcn.00507d3a
push 0x5f
push 0x5c
lea ecx, [esp + 0x38]
call fcn.00504d6b
push 0x5f
push 0x2f
lea ecx, [esp + 0x38]
call fcn.00504d6b
push 0x5f
push 0x3a
lea ecx, [esp + 0x38]
call fcn.00504d6b
push str..list.txt
lea ecx, [esp + 0x34]
call fcn.00508116
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00424830
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 8
call fcn.00507e73
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 6
call fcn.00507d3a
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00507aaf
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 3
call fcn.00507d3a
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.00507d3a
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call fcn.00507d3a
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x49a420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x528df7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [esp + 0xc], 0
mov eax, dword [0x569c90]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00507da8
mov edx, dword [0x569c90]
mov dword [esp + 0xc], edx
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
call fcn.00505134
push 0x2f
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00505134
push 0x2e
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00505134
mov esi, eax
test esi, esi
jl 0x49a4ec
test edi, edi
jl 0x49a4a4
cmp esi, edi
jl 0x49a4ec
test ebp, ebp
jl 0x49a4ac
cmp esi, ebp
jl 0x49a4ec
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.00504f5c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00507e73
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.00507d3a
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x30]
sub eax, esi
push eax
push esi
call fcn.00504bda
push 0x28
lea ecx, [esp + 0x34]
call fcn.00505134
push 0x29
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00505134
test ebp, ebp
mov edi, eax
jl 0x49a553
test edi, edi
jle 0x49a553
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 8]
dec eax
cmp edi, eax
jne 0x49a553
cmp ebp, edi
jge 0x49a553
lea esi, [ebp + 1]
cmp esi, edi
jge 0x49a53f
mov eax, dword [esp + 0x30]
movsx ecx, byte [esi + eax]
push ecx
call fcn.0048d720
add esp, 4
test eax, eax
je 0x49a553
inc esi
cmp esi, edi
jl 0x49a525
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [edx - 8]
sub eax, ebp
push eax
push ebp
call fcn.00504bda
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__d__s
push eax
call fcn.005054dc
mov esi, dword [esp + 0x40]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00507aaf
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00507d3a
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4a6ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x20]
call fcn.004608a0
mov edi, dword [esp + 0xcc]
mov dword [esp + 0xc4], 0
lea esi, [edi + 0xc]
mov dword [esp + 0xc], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x34
lea ecx, [esp + 0x20]
push edi
mov byte [esp + 0xc8], 1
call fcn.00461150
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0xc4], 0
call dword [edx + 0x14]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, 0x572a70
call fcn.004e4710
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, eax
jle 0x4a6fd7
mov ecx, 0x571fb8
call fcn.00481d10
test eax, eax
jne 0x4a6fae
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x4a6fae
mov eax, 1
jmp 0x4a6fb0
xor eax, eax
push eax
mov eax, dword [esp + 0xa4]
push 0
push esi
push eax
push ecx
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00507aaf
mov ecx, ebp
call fcn.004cbd00
mov dword [esp + 0xc4], 2
lea eax, [esp + 0x84]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xc4], 7
call fcn.00507d3a
lea ecx, [esp + 0x84]
mov byte [esp + 0xc4], 6
call fcn.00507d3a
lea ecx, [esp + 0x80]
mov byte [esp + 0xc4], 5
call fcn.00507d3a
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc4], 4
call fcn.00507d3a
lea ecx, [esp + 0x78]
mov byte [esp + 0xc4], 3
call fcn.00507d3a
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0xc4], 9
call fcn.00507d3a
lea ecx, [esp + 0x64]
mov byte [esp + 0xc4], 8
call fcn.00507d3a
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 2
call fcn.00507d3a
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0xc4], 0xd
call fcn.00506597
lea ecx, [esp + 0x44]
mov byte [esp + 0xc4], 0xc
call fcn.00507d3a
lea ecx, [esp + 0x34]
mov byte [esp + 0xc4], 0xb
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xbc
ret 4
Function at 0x4a9000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x53724c
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x10]
mov ecx, 0x572a70
push eax
mov dword [esp + 0x30], ebp
call fcn.004e57c0
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebp
mov dword [esp + 8], esi
jle 0x4a90b7
push ebx
push edi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + ebp*4]
lea esi, [ebx + 0xc]
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov edi, dword [ebx + 0x21c]
mov ecx, esi
call dword [eax + 0x14]
and edi, 0xffff0000
cmp edi, 0x10000
jne 0x4a90a6
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a90a2
mov ecx, dword [esp + 0x14]
push 1
push 1
push ebx
call fcn.004a1f60
jmp 0x4a90a6
inc dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x4a905b
mov esi, dword [esp + 0x10]
pop edi
xor ebp, ebp
pop ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x53724c
cmp eax, ebp
je 0x4a90d0
push eax
call fcn.0050c4cc
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4aeff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52b228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
mov dword [esp + 8], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x30]
mov dword [esp + 0x14], 0
call fcn.00405370
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov dword [esp + 0x14], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4b3200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52b948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
lea esi, [edi + 0xc]
mov dword [esp + 0x2c], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0x30]
mov dword [esp + 0x24], 0
mov ecx, ebx
call fcn.00405370
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x24], 0xffffffff
call dword [edx + 0x14]
test ebp, ebp
jne 0x4b326b
mov ecx, dword [esp + 0x14]
push edi
call fcn.004b1080
jmp 0x4b339d
lea eax, [esi + 8]
mov dword [esp + 0x2c], esi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [esp + 0x24], 1
call fcn.00405370
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x24], 0xffffffff
call dword [edx + 0x14]
cmp ebp, 3
jne 0x4b3303
mov eax, dword [0x569c90]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x14]
mov ebx, 2
push ecx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.004a5480
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push 0xe1ea
push eax
mov byte [esp + 0x30], 3
call fcn.005054ef
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00507d3a
mov ecx, dword [esp + 0x2c]
push 1
push ebx
push ecx
mov ecx, edi
call fcn.004d2190
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x4b3393
lea edx, [esi + 8]
mov dword [esp + 0x2c], esi
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [esp + 0x24], 4
call fcn.00405370
mov ebx, eax
mov eax, dword [esi]
or ebp, 0xffffffff
mov ecx, esi
mov dword [esp + 0x24], ebp
call dword [eax + 0x14]
cmp ebx, 1
jne 0x4b3398
mov ecx, dword [0x569c90]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x18]
mov ebx, 5
push edx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.004a5480
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0xe1ae
push ecx
mov byte [esp + 0x30], 6
call fcn.005054ef
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00507d3a
mov edx, dword [esp + 0x10]
push 1
push 2
push edx
mov ecx, edi
call fcn.004d2190
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x10]
call fcn.00507d3a
mov eax, 0x30006
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4b3a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x52bbc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
push esi
call fcn.004b49c0
mov ecx, eax
mov dword [esp + 0x10], eax
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4b3c08
lea ecx, [esp + 0x18]
call fcn.00466aa0
xor ebx, ebx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], ebx
call fcn.00466640
lea edx, [esp + 0x5c]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esi + 0x224]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0xac], 1
call fcn.00507aaf
call fcn.00467900
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x18]
push eax
call fcn.004676e0
test al, al
je 0x4b3afa
lea ecx, [esp + 0x5c]
mov dword [esp + 0x84], 1
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], ebx
call fcn.004677b0
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.00467580
cmp dword [esi + 0x220], ebx
je 0x4b3b19
mov esi, dword [esi + 0x20c]
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9c], 3
call fcn.00507d3a
lea ecx, [esp + 0x7c]
mov byte [esp + 0x9c], 2
call fcn.00507d3a
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 4
call fcn.00507d3a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], bl
call fcn.00507d3a
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], 8
mov ebp, eax
mov edi, dword [eax]
cmp edi, eax
je 0x4b3bac
mov esi, edi
mov edi, dword [edi]
push ebx
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 8]
call fcn.004689a0
push esi
call fcn.0050c4cc
mov ecx, dword [esp + 0x54]
add esp, 4
dec ecx
cmp edi, ebp
mov dword [esp + 0x50], ecx
jne 0x4b3b76
mov eax, dword [esp + 0x4c]
push eax
call fcn.0050c4cc
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x9c], 7
call fcn.00507d3a
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 6
call fcn.00507d3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 5
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00507d3a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret 4
Function at 0x4bf500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52d418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
mov dword [esp + 0xc], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ecx
push ebx
lea ecx, [edi + 0x30]
mov dword [esp + 0x20], 0
call fcn.004054e0
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c8b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52e11f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
lea esi, [edi + 0xc]
mov dword [esp + 0x10], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x24]
lea ecx, [edi + 0x30]
push ebp
mov dword [esp + 0x20], 1
call fcn.004c8b80
mov dword [esp + 0xc], 1
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x1c], 0
call dword [edx + 0x14]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4c8fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52e198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], esi
call fcn.00506564
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push esi
push eax
push ecx
push str..dll
push edx
mov byte [esp + 0x3c], 1
call fcn.004258d0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, esi
jle 0x4c907a
mov eax, dword [esp + 0x10]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x38]
call fcn.00507aaf
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
mov byte [esp + 0x30], 2
call fcn.00507aaf
mov ecx, edi
call fcn.004c90b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.00507d3a
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x4c9035
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00506597
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 8
Function at 0x4ccd30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x52e8ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [esp + 0x158]
push ebp
push edi
push 0x55cf9c
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00424830
add esp, 0xc
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
xor edi, edi
push edx
push eax
mov dword [esp + 0x15c], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4ccdb0
lea ecx, [esp + 8]
mov dword [esp + 0x154], eax
call fcn.00507d3a
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
add esp, 0x150
ret
push ebx
mov ebx, dword [esp + 0x160]
push esi
push 1
lea ecx, [esp + 0x44]
push 0x55e51c
push ecx
call fcn.0048d6e0
add esp, 0xc
test eax, eax
je 0x4cce46
push 2
lea edx, [esp + 0x44]
push 0x55e518
push edx
call fcn.0048d6e0
add esp, 0xc
test eax, eax
je 0x4cce46
lea eax, [esp + 0x40]
push 0x3f
push eax
call fcn.004f4883
add esp, 8
test eax, eax
jne 0x4cce46
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x170]
call fcn.00426f10
test eax, eax
je 0x4cce46
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, 0x10
lea ecx, [esp + 0x40]
cmp dl, 0x10
sete al
mov esi, eax
push esi
push ecx
mov ecx, ebx
call fcn.004261b0
test esi, esi
mov edi, 1
je 0x4cce46
push 0
push 0x55cf9c
mov ecx, eax
call fcn.004261b0
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4ccdb9
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x154]
pop esi
mov eax, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x150
ret
Function at 0x4d1040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52eec8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
lea eax, [esp + 0x1c]
mov ebx, dword [esi + 0x58]
mov edi, ecx
push eax
mov ecx, esi
call fcn.00409670
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x4c]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push ecx
push ebx
push eax
push str._s__s:_d:_d:_d
push edi
mov dword [esp + 0x30], 0
call fcn.005054dc
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00507d3a
mov ecx, edi
call fcn.0050826e
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4