joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429ddc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x429e21
call fcn.00423eb2
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429e21
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x429e3d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042f005
mov ebx, eax
test edi, edi
je 0x429e3b
test esi, esi
je 0x429e3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x433c27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042e5fc
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x433c63
call fcn.00433ee9
mov dword [esi + 0xc], 1
jmp 0x433c68
call fcn.00433ee9
cmp dword [esi], 0
je 0x433cb1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x433c8b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042033b
jmp 0x433c9c
push 0xff
mov ecx, esi
call fcn.004056d0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004093f0
jmp 0x433cd5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x433cd5
push dword [esi]
push dword [ebp - 4]
call fcn.00437637
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433e3e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00433ee9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x433e86
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042033b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004093f0
jmp 0x433e91
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00437637
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4e3e8e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00539802
call fcn.00423f06
cmp dword [eax + 0x14], 0
jne 0x4e3ea9
mov ecx, esi
pop esi
jmp fcn.004e3294
pop esi
ret

Function at 0x4f13be
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00403740
call fcn.00423f06
cmp dword [eax + 0x14], 0
jne 0x4f13d9
mov ecx, esi
pop esi
jmp fcn.004f0ca7
pop esi
ret
Function at 0x55f738
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00553486
mov dword [ebp - 0x14], eax
cmp dword [0x5e105c], esi
jne 0x55f82b
push 0x800
push esi
push 0x5a72f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x55f7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x55f90b
push esi
push esi
push 0x5a72f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x55f90b
push 0x5a7308
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x55f90b
push eax
call ebx
push 0x5a7314
push edi
mov dword [0x5e105c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a7324
push edi
mov dword [0x5e1060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5e1064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5e106c], eax
test eax, eax
je 0x55f828
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5e1068], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55f850
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x55f843
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x55f865
push 4
pop eax
jmp 0x55f90d
cmp dword [ebp - 0x14], esi
je 0x55f865
push dword [0x5e105c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x55f84a
mov eax, dword [0x5e1068]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x55f8c3
cmp dword [0x5e106c], edi
je 0x55f8c3
push eax
call ebx
push dword [0x5e106c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x55f8c3
test eax, eax
je 0x55f8c3
call ecx
test eax, eax
je 0x55f8b8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x55f8b8
test byte [ebp - 8], 1
jne 0x55f8c3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x55f8f3
mov eax, dword [0x5e1060]
cmp eax, edi
je 0x55f8f0
push eax
call ebx
test eax, eax
je 0x55f8f0
call eax
mov esi, eax
test esi, esi
je 0x55f8f0
mov eax, dword [0x5e1064]
cmp eax, edi
je 0x55f8f0
push eax
call ebx
test eax, eax
je 0x55f8f0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5e105c]
call ebx
test eax, eax
je 0x55f90b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x55f90d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054a22c
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401288
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x401268
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x401268
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x401225
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x401268
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401120
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x40125b
mov eax, 8
jmp 0x4012ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x40121c
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0044b30b
add esp, 0x10
xor eax, eax
jmp 0x4012ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x4012a6
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x4012d4]
mov eax, 0x2af9
jmp 0x4012ce
mov eax, 0x2afa
jmp 0x4012ce
mov eax, 0x2afb
jmp 0x4012ce
mov eax, 0x2af9
jmp 0x4012ce
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x401bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x492e64]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x401590
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x401910
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.00401520
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x497f50], 0
je 0x401c2b
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x494050]
jmp 0x401ddb
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401c46
jmp 0x401d3b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.0044af58
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.00448d0f
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401cb9
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401cb9
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x401cc1
jmp 0x401d3b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.0044af58
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.00448d0f
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401d34
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401d34
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x401d3b
cmp dword [ebp - 0x20], 0
je 0x401dc6
mov dword [ebp - 4], 0
jmp 0x401d57
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jge 0x401d95
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x401d93
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x401d95
jmp 0x401d4e
cmp dword [ebp - 0x20], 0
je 0x401dc6
mov dword [ebp - 4], 0
jmp 0x401dad
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jge 0x401dc6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x18]
mov dword [edx*8 + 0x494050], ecx
jmp 0x401da4
mov dword [0x497f50], 1
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x494050]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00448dba
mov esp, ebp
pop ebp
ret 4
Function at 0x403200
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov edx, dword [ebp + 0x14]
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x30]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push edi
push esi
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
call fcn.00411720
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4032da
push edi
call fcn.00409560
add esp, 4
cmp dword [esp + 0x14], ebx
mov eax, 1
mov dword [esp + 0x18], eax
je 0x40330c
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x34]
mov edx, edi
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.0040ff30
add esp, 0x10
cmp dword [esp + 0x24], 1
jne 0x4032b5
xor edi, edi
mov eax, dword [esp + 0x10]
push edi
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push eax
call sub.WS2_32.dll_select
cmp eax, ebx
jle 0x4032e4
lea ecx, [esp + 0x38]
push ecx
call fcn.00411740
add esp, 4
jmp 0x4032fe
mov dword [esp + 0x14], 1
jmp 0x403276
cmp eax, 0xffffffff
je 0x4032f4
cmp eax, ebx
jne 0x40334a
call fcn.004116e0
jmp 0x4032fe
call fcn.0044c4dc
cmp dword [eax], 4
jne 0x40332a
cmp dword [esp + 0x14], ebx
jne 0x403276
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
pop edi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x495268], 0xffffffff
call fcn.0044c4dc
mov edx, dword [eax]
push edx
call fcn.0044c43a
push eax
call fcn.00405870
add esp, 8
mov eax, 1
jmp 0x40330c
Function at 0x403730
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00409850
mov edi, dword [ebp + 0xc]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x14]
push edi
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esi + 0x2c], 0x4035e0
mov dword [esi + 0x30], edx
call fcn.004104e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40381a
push edi
call fcn.00409560
add esp, 4
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
je 0x403877
lea ecx, [ecx]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x34]
mov ecx, edi
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x38], 1
call fcn.0040b470
add esp, 0x14
cmp dword [esp + 0x24], 1
jne 0x4037f2
xor edi, edi
mov edx, dword [esp + 0x20]
push edi
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
call sub.WS2_32.dll_select
test eax, eax
jle 0x403824
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004116d0
add esp, 8
jmp 0x403842
mov dword [esp + 0x10], 1
jmp 0x4037b0
cmp eax, 0xffffffff
je 0x403838
test eax, eax
jne 0x40386f
push ebx
call fcn.00410300
add esp, 4
jmp 0x403842
call fcn.0044c4dc
cmp dword [eax], 4
jne 0x40384f
cmp dword [esp + 0x10], 0
jne 0x4037b0
jmp 0x403877
mov dword [0x495268], 0xffffffff
call fcn.0044c4dc
mov ecx, dword [eax]
push ecx
call fcn.0044c43a
push eax
call fcn.00405870
add esp, 8
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [edx], eax
mov edx, dword [esp + 0x28]
pop edi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov eax, dword [esp + 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405280
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x492e64]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x405306
cmp eax, 0x276c
jne 0x4052d9
push str.Unable_to_init._socket_lib__does_not_support_1.1
push 0x494668
call fcn.0044ba14
add esp, 8
mov eax, 0x494668
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00448dba
add esp, 0x194
ret
push eax
push str.Socket_Startup_error__d
push 0x494668
call fcn.0044ba14
add esp, 0xc
mov eax, 0x494668
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00448dba
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.00448dba
add esp, 0x194
ret
Function at 0x4054c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x140
mov eax, dword [0x492e64]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0045ece5
mov edi, eax
add esp, 4
cmp byte [edi], 0
mov dword [esp + 0x10], edi
je 0x405503
cmp byte [eax], 0x5c
jne 0x4054fb
mov byte [eax], 0x2f
add eax, 1
cmp byte [eax], 0
jne 0x4054f3
lea eax, [esp + 0x14]
push eax
push 0x4748ac
push edi
call fcn.004188c0
mov esi, eax
add esp, 0xc
test esi, esi
mov byte [esp + 0x48], 0
je 0x405669
cmp byte [esi + 1], 0x3a
jne 0x405584
mov al, byte [esi + 2]
test al, al
je 0x405536
cmp al, 0x2f
jne 0x405584
mov eax, esi
mov edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405540
lea edi, [esp + 0x48]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405552
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x4748ac
push 0
call fcn.004188c0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov esi, eax
test esi, esi
je 0x405669
mov ebp, dword [esp + 0x15c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [esp]
lea edi, [esp + 0x48]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4055a7
mov dx, word [0x4748ac]
mov eax, esi
mov word [edi], dx
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4055c0
lea edi, [esp + 0x48]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4055d4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
push eax
and ecx, 3
push 0x4748ac
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.004188c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40560a
test ebp, ebp
jne 0x405665
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0044cc20
add esp, 8
test eax, eax
jge 0x405653
lea eax, [esp + 0x48]
push eax
push str.Creating_directory:__s_n
push 6
call fcn.004122a0
add esp, 0xc
push 0
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
jne 0x40565d
mov edx, dword [esp + 0x10]
push edx
call fcn.0044a992
add esp, 4
or eax, 0xffffffff
jmp 0x405674
test dword [esp + 0x1e], 0x4000
je 0x40568d
test esi, esi
jne 0x4055a0
mov edi, dword [esp + 0x10]
push edi
call fcn.0044a992
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448dba
add esp, 0x140
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044a992
add esp, 4
or eax, 0xffffffff
jmp 0x405674
Function at 0x412020
Capabilities:
Access the windows event log

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, 1
call fcn.00411ac0
mov ebp, dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov ebx, eax
test ebx, ebx
jne 0x412062
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.Could_not_open_event_log_for__s._Last_error:_0x_x_n
call fcn.0044adb7
add eax, 0x40
push eax
call fcn.0044ab0b
add esp, 0x10
xor esi, esi
mov eax, dword [0x495278]
test eax, eax
mov ecx, 4
je 0x41208d
cmp dword [eax + 0xc], ecx
jne 0x412082
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], esi
mov dword [eax], esi
mov edi, 1
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x412070
test edi, edi
jne 0x4120b2
push 7
push ecx
call fcn.00411f70
mov edi, eax
add esp, 8
test edi, edi
je 0x4120b2
push ebp
mov dword [edi + 0x1c], ebx
call fcn.0045ece5
add esp, 4
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42c430
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x42c632
cmp word [edi], 2
jne 0x42c632
push esi
push 0x40
call fcn.0044c354
mov esi, eax
add esp, 4
test esi, esi
je 0x42c4b9
push 0x40
push 0
push esi
call fcn.0044a680
push 0x10
call fcn.0044c354
add esp, 0x10
test eax, eax
mov dword [esi + 0x20], eax
je 0x42c4b0
mov dword [esi + 0x24], 0x10
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
push 0
push 1
mov dword [eax + 0xc], edx
push 2
mov dword [esi], 0x48a678
mov dword [esi + 4], 9
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
mov dword [esi + 0x18], eax
jge 0x42c4be
push esi
call fcn.004214f0
add esp, 4
pop esi
xor eax, eax
pop edi
ret
cmp dword [esp + 0x10], 0
push ebx
mov dword [esi + 0x1c], 1
push 6
je 0x42c58f
mov dword [esp + 0x14], 1
mov dword [esi + 0x1c], 3
call fcn.0044c354
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x42c57a
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [eax], ecx
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 8]
mov byte [ecx + 4], ah
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 8]
push 4
lea edx, [esp + 0x14]
push edx
push 4
mov byte [ecx + 5], al
mov eax, dword [esi + 0x18]
push 0xffff
push eax
mov dword [esi + 0xc], 6
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0x18]
push 0x10
push edi
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x42c57a
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esi + 0x18]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x42c602
push esi
call fcn.0042c160
push esi
call fcn.004214f0
add esp, 8
pop ebx
pop esi
xor eax, eax
pop edi
ret
call fcn.0044c354
add esp, 4
test eax, eax
mov dword [esi + 0x10], eax
je 0x42c57a
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [eax], edx
movzx eax, word [edi + 2]
push eax
call ebx
mov ecx, dword [esi + 0x10]
mov byte [ecx + 4], ah
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 0x10]
push 0x10
mov byte [ecx + 5], al
mov edx, dword [esi + 0x18]
push edi
push edx
mov dword [esi + 0x14], 6
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x42c57a
mov eax, dword [esi + 0x18]
push 0
push 0
push 0x1001
push eax
call fcn.0042cf50
mov ecx, dword [esi + 0x18]
push 0
push 0
push 0x1002
push ecx
call fcn.0042cf50
add esp, 0x20
pop ebx
mov dword [esi + 0x28], bind
mov dword [esi + 0x2c], 0x42bfb0
mov dword [esi + 0x30], 0x42a6c0
mov dword [esi + 0x34], fcn.0042c160
mov dword [esi + 0x38], 0x42c1f0
mov dword [esi + 0x3c], fcn.0042bf00
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret