joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10063690
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10063a80
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100a4a9c], 0
jne 0x100636cd
cmp dword [0x100a4a98], 0
je 0x100636cd
mov eax, dword [0x100a4a98]
mov dword [0x100a4a9c], eax
cmp dword [0x100a4a9c], 0
je 0x1006374a
mov ecx, dword [0x100a4a9c]
cmp dword [ecx + 8], 0
je 0x1006374a
mov edx, dword [0x100a4a9c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1006374a
mov ecx, dword [0x100a4a9c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1006374a
mov eax, dword [0x100a4a9c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10063719
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10063720
xor eax, eax
jmp 0x10063869
mov ecx, dword [0x100a4a9c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10068b00
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10063869
mov edx, dword [0x100a4a98]
mov dword [0x100a4a9c], edx
jmp 0x10063766
mov eax, dword [0x100a4a9c]
mov ecx, dword [eax + 4]
mov dword [0x100a4a9c], ecx
cmp dword [0x100a4a9c], 0
je 0x100637a6
cmp dword [0x100a4a9c], 0
je 0x100637a4
mov edx, dword [0x100a4a9c]
cmp dword [edx + 8], 0
je 0x100637a4
mov eax, dword [0x100a4a9c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100637a4
mov edx, dword [0x100a4a9c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100637a4
jmp 0x100636fe
jmp 0x10063758
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10063870
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10063867
mov eax, dword [ebp - 0x18]
mov dword [0x100a4a9c], eax
mov ecx, dword [0x100a4a9c]
mov dword [ecx], 0x52727464
mov edx, dword [0x100a4a9c]
mov dword [edx + 8], 0
mov eax, dword [0x100a4a9c]
mov ecx, dword [0x100a4a98]
mov dword [eax + 4], ecx
mov edx, dword [0x100a4a9c]
mov dword [0x100a4a98], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100a4a9c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10063837
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10063857
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1006382e
mov eax, dword [0x100a4a9c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100636fe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100645b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a4a98]
mov dword [ebp - 4], eax
jmp 0x100645c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100645f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100645ee
call sub.KERNEL32.dll_GetLastError
jmp 0x100645f2
jmp 0x100645c0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10064a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100a4aa8], eax
je 0x10064ab4
mov eax, 0x10dd
jmp 0x10064c5c
cmp dword [0x100a4aac], 0
je 0x10064ac7
mov eax, dword [0x100a4aac]
jmp 0x10064c5c
cmp dword [ebp + 0xc], 0
jne 0x10064ad7
mov eax, 0x57
jmp 0x10064c5c
cmp dword [ebp + 8], 0
jne 0x10064ae7
mov eax, 6
jmp 0x10064c5c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10064b10
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100a4aac], ecx
mov edx, dword [ebp + 8]
mov dword [0x100a4ab0], edx
mov eax, dword [ebp - 8]
jmp 0x10064c5c
push 0x18
call fcn.10066146
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10064b6b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100a4aac], ecx
cmp dword [ebp - 4], 0
je 0x10064b5a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10066179
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100a4ab0], ecx
mov eax, dword [ebp - 8]
jmp 0x10064c5c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10064a70
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10064a70
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10064bab
cmp dword [ebp - 0xc], 0x1e
jbe 0x10064bc7
mov dword [ebp - 8], 9
cmp dword [0x100a4aa0], 0
je 0x10064bc2
jmp 0x10064b39
jmp 0x10064b30
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10064bee
mov dword [ebp - 8], 9
cmp dword [0x100a4aa0], 0
je 0x10064be9
jmp 0x10064b39
jmp 0x10064b30
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10064c19
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10064b30
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100a4ab8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100a4ab8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10064c70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100a4aa8], eax
je 0x10064c8d
mov eax, 0x10dd
jmp 0x10064d70
mov eax, dword [0x100a4ab8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10064d0c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10064ce8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10064ce8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10063b10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10066179
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10064c95
mov dword [0x100a4ab8], 0
call fcn.100643f0
mov ecx, dword [0x100a4ab4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10064d5a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10066179
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10064d24
mov dword [0x100a4ab4], 0
mov dword [0x100a4aa8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10065250
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100a4aac], 0
je 0x10065269
mov eax, dword [0x100a4aac]
jmp 0x10065308
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1006527a
xor eax, eax
jmp 0x10065308
push 8
call fcn.10066146
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100652d2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100652bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10066179
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100a4aac], eax
mov dword [0x100a4ab0], 0
mov eax, dword [ebp - 8]
jmp 0x10065308
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100652ea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1006529a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100a4ab4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100a4ab4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1007fdb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008574e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100a2078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100a2880]
cmp eax, 0xffffffff
jne 0x1007fde6
xor ebx, ebx
jmp 0x1007fdef
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1007fe31
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1007fe70
test esi, esi
jne 0x1007fe74
push 0x1007f8b0
push 0x100a55c8
call fcn.1007f420
mov eax, dword [0x100a2880]
add esp, 8
cmp eax, 0xffffffff
je 0x1007fe31
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1007fe5e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1007fe5e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1007feb6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1007fe9f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1007fe74
cmp dword [ebx + 0x18], 0
je 0x1007fe00
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1007fedd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1007fedd
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1007f8d0
cmp dword [ebx + 0x18], 0
jne 0x1007fec0
jmp 0x1007fe00
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x10001e70
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x628
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x630]
sub eax, 0
push esi
je 0x10001f6c
sub eax, 1
jne 0x10001f97
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.DLLMain___SNMPManager_DLL_Loaded_n
call esi
push 0x94
lea eax, [esp + 8]
push 0
push eax
call fcn.1000e570
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001f52
push str.GetVersionEx___succeeded._following_are_the_details_n
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x23c]
push str.osvi.dwMajorVersion_d_n_t_t_t_t_t_t_t_tosvi.dwMinorVersion_d_n_t_t_t_t_t_t_t_tosvi.dwPlatformId_d_n_t_t_t_t_t_t_t_tosvi.dwBuildNumber_d_n_t_t_t_t_t_t_t_tosvi.szCSDVersion_s_n
push ecx
call fcn.1000e4d5
add esp, 0x1c
lea edx, [esp + 0x228]
push edx
call esi
cmp dword [esp + 0x14], 2
mov eax, dword [esp + 8]
mov dword [0x10028724], eax
jne 0x10001f34
cmp eax, 4
jb 0x10001f34
mov dword [0x10028720], 1
lea eax, [esp + 0x98]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x10001f97
push str.WSAStartup_MAKEWORD_2_2_...__failed____n
call esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x628
ret 0xc
push str.DLLMain___SNMPManager_DLL_Unloaded_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
cmp dword [0x1002872c], 0
je 0x10001f97
mov eax, dword [0x100271e8]
cmp eax, 0xffffffff
je 0x10001f97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x628]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1000e6bf
add esp, 0x628
ret 0xc

Function at 0x10002d50
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
xor edx, edx
test al, al
mov ecx, esi
je 0x10002d76
nop
cmp al, 0x2e
jne 0x10002d67
add edx, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x10002d60
cmp edx, 3
je 0x10002d7c
xor eax, eax
pop esi
ret 8
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x10002d76
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 8
Function at 0x10002e10
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x10002eb4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x10002e85
cmp word [ecx + 0xa], 4
jne 0x10002e85
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x10002e85
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.10002da0
test eax, eax
mov dword [esi], eax
je 0x10002ea8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x10002e60
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.1000f4a3
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x10002ec4.11001
jmp dword [eax*4 + 0x10002ee8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x10003720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x10028710], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10003170
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10003460
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10003120
je 0x10003792
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x100270f0]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000388f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1000f43e
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.1000f7d4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000380d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10003854
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.1000f43e
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.1000f7d4
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x1000388b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x100038bf
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x100038bf
add edi, 1
cmp edi, 3
jl 0x10003856
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x100270f0], edx
mov dword [0x100270f8], eax
mov dword [fcn.10003120], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x100270f0]
xor ecx, esp
mov dword [0x10028710], 1
call fcn.1000e6bf
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x1000388b
Function at 0x100045c0
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100045fb
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x1c
ret
push edi
lea eax, [esp + 0xc]
push eax
push 0x8004667e
mov edi, 1
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10004635
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x1c
ret
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x20
push 0xffff
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10004622
xor eax, eax
mov dword [esp + 0x10], eax
push 0xce5
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
push str.255.255.255.255
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
push 9
push str.STATCHECK
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WSOCK32.dll_sendto]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x1c
ret
Function at 0x10005950
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x234
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x23c]
mov edx, dword [esp + 0x240]
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
mov ecx, dword [esp + 0x23c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
jne 0x100059ab
mov eax, 0xffffffc2
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x234
ret 0xc
test ecx, ecx
jne 0x100059cc
mov eax, 0xffffffb6
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x234
ret 0xc
push ebx
push ebp
mov ebp, dword [eax]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x12c], eax
mov eax, dword [esi + 8]
push edi
mov edi, dword [esi + 0xc]
mov ebx, 1
mov dword [esp + 0x20], eax
xor eax, eax
test edi, edi
mov dword [esp + 0x1c], 0xe
mov dword [esp + 0x28], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x24], 0
jl 0x10005ab2
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x130]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x10005a41
cmp eax, ebx
jne 0x10005a41
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x10]
je 0x10005a4e
sub edi, ebx
test edi, edi
mov eax, 0xffffffd3
jge 0x10005a13
jmp 0x10005ab2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x234]
push eax
push 0
push ebp
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005a7b
mov eax, 0xffffffd1
jmp 0x10005ab2
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x10005aaa
push 4
lea eax, [esp + 0x236]
push eax
push ebx
mov ecx, esi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::HtoA_char___char___int_
push 6
lea ecx, [esp + 0x23a]
push ecx
add ebx, 8
push ebx
mov ecx, esi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::HtoA_char___char___int_
mov edx, dword [esp + 0x10]
mov dword [edx], edi
xor eax, eax
mov ecx, dword [esp + 0x240]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x234
ret 0xc