joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429300
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x438420]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42946b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42946b
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x438420]
add esp, 4
mov edi, eax
test esi, esi
je 0x42935d
inc dword [esi + 0xb0]
test edi, edi
je 0x429370
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x429372
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x68], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x4293ad
mov esi, dword [esi + 0x70]
jmp 0x4293af
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4293d2
mov dword [esi], eax
mov eax, dword [0x438420]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x47f4]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x429439
inc esi
cmp esi, 5
jl 0x429410
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e3cb
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e3cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e3cb
mov esp, ebp
pop ebp
ret
Function at 0x42eccf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ed0e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ed0e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ed0e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42ed0e
cmp dword [ecx + 0x74], 0xe
jbe 0x42ed0e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x74086a5e
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x57c609fa
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x42b0d4
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042b07d
test eax, eax
je 0x42b22d
lea ecx, [esp + 0x18]
call fcn.0042b07d
lea ecx, [esp + 0x18]
test eax, eax
je 0x42b19c
call fcn.0042b07d
test eax, eax
je 0x42b15e
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042b07d
lea edi, [eax + edi*2]
dec ebx
jne 0x42b134
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42b155
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42b158
mov byte [edx], 0
inc edx
jmp 0x42b23f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42b194
test ecx, ecx
je 0x42b228
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b186
jmp 0x42b224
xor ebp, ebp
inc ebp
jmp 0x42b228
call fcn.0042b0b3
test edi, edi
jne 0x42b1d1
cmp eax, 2
jne 0x42b1cc
lea ecx, [esp + 0x18]
call fcn.0042b0b3
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42b228
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42b1c1
jmp 0x42b224
sub eax, 3
jmp 0x42b1d4
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042b0b3
mov ecx, eax
cmp esi, 0x7d00
jb 0x42b1fb
inc ecx
cmp esi, 0x500
jb 0x42b204
inc ecx
cmp esi, 0x80
jae 0x42b20f
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42b228
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b21b
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42b245
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42b104
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b3ca
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42b3fc
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42b3dd
jmp 0x42b400
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42b40a
xor byte [esi], al
inc esi
dec edi
jne 0x42b404
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10001290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
cmp ebp, 1
mov edi, ecx
jge 0x100012a4
mov ebp, 1
jmp 0x100012ae
cmp ebp, 8
jle 0x100012ae
mov ebp, 8
test ebp, ebp
mov dword [edi], ebp
jle 0x10001316
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
xor esi, esi
push 0
push 0
push 1
push 0
call ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 1
push 0
mov dword [ecx + esi + 0xc], eax
call ebx
mov edx, dword [edi + 4]
mov dword [edx + esi + 8], eax
mov eax, dword [edi + 4]
mov dword [eax + esi + 0x10], edi
mov ecx, dword [edi + 4]
lea eax, [ecx + esi]
push eax
push 0
push eax
push 0x100014f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [edi + 4]
add esi, 0x14
dec ebp
mov dword [edx + esi - 0x10], eax
jne 0x100012be
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 4
pop edi
xor eax, eax
pop ebp
ret 4

Function at 0x10006da0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x108]
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push eax
call fcn.10008ec6
add esp, 8
lea ecx, [esp]
lea edx, [esp + 0x108]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006e53
push esi
lea eax, [esp + 0xc]
push str.TcpTimedWaitDelay
push eax
call fcn.10008ec6
mov eax, dword [esp + 0xc]
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
push 4
push ecx
push 4
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov dword [esp + 0x20], 1
call esi
lea ecx, [esp + 0xc]
push str.MaxUserPort
push ecx
call fcn.10008ec6
mov ecx, dword [esp + 0xc]
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push 4
push edx
push 4
push 0
push eax
push ecx
mov dword [esp + 0x20], 0xffff
call esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x208
ret
Function at 0x10006e60
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001a90a
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10006da0
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x14
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10012e54
add esp, 4
mov dword [esp + 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x10006f1a
push edi
push edi
push edi
push edi
push 1
push str.SJZTEST
mov ecx, eax
call fcn.10018070
jmp 0x10006f1c
xor eax, eax
push edi
lea ecx, [esp + 0x20]
push 4
push ecx
push 2
mov ecx, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [ebx], eax
mov dword [esp + 0x2c], 0xbb8
call fcn.100181b6
mov ecx, dword [ebx]
push edi
lea edx, [esp + 0x20]
push 4
mov esi, 0x3e8
push edx
push 5
mov dword [esp + 0x2c], esi
call fcn.100181b6
mov ecx, dword [ebx]
push edi
lea eax, [esp + 0x20]
push 4
push eax
push 6
mov dword [esp + 0x2c], esi
call fcn.100181b6
push edi
lea ecx, [esp + 0x20]
push 4
push ecx
mov ecx, dword [ebx]
push 7
mov dword [esp + 0x2c], esi
call fcn.100181b6
mov ecx, dword [ebx]
push edi
lea edx, [esp + 0x20]
push 4
push edx
push 8
mov dword [esp + 0x2c], esi
call fcn.100181b6
mov ecx, dword [ebx]
push edi
lea eax, [esp + 0x20]
push 4
push eax
push 4
mov dword [esp + 0x2c], esi
call fcn.100181b6
push edi
lea ecx, [esp + 0x24]
push 4
push ecx
mov ecx, dword [ebx]
push 3
mov dword [esp + 0x30], edi
call fcn.100181b6
push 0x20
call fcn.10012e54
push 0x20
mov dword [ebx + 4], eax
call fcn.10012e54
add esp, 8
mov dword [ebx + 0xc8], eax
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push ebx
push 0x100075a0
push edi
push edi
mov dword [ebx + 0xd0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xd4], eax
mov ecx, ebx
call fcn.10007030
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x100073b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], 0xffffffff
push edi
mov dword [ecx], ebx
mov eax, dword [esi + 0xcc]
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
jne 0x100073fa
mov ecx, esi
call fcn.10007030
cmp dword [esi + 4], ebx
je 0x10007516
mov dword [ebp - 4], ebx
xor edi, edi
cmp edi, 8
mov dword [ebp - 0x14], edi
jge 0x10007516
mov eax, dword [esi + 0xc8]
cmp eax, ebx
je 0x10007532
cmp dword [eax + edi*4], ebx
jne 0x10007532
mov dword [eax + edi*4], 1
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4]
lea eax, [edx + edi*4]
cmp ecx, ebx
je 0x10007496
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x18], 0x100
push ecx
mov ecx, dword [eax]
push edx
call fcn.10018aec
cmp eax, ebx
jne 0x100074e2
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
cmp ecx, ebx
je 0x1000747c
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esi + 4]
push ebx
lea ecx, [esi + 0x88]
push 0x15
mov dword [eax + edi*4], ebx
lea edx, [esi + 0x48]
push ecx
lea eax, [esi + 8]
push edx
push eax
jmp 0x100074a8
push ebx
lea eax, [esi + 0x88]
push 0x15
lea ecx, [esi + 0x48]
push eax
lea edx, [esi + 8]
push ecx
push edx
mov ecx, dword [esi]
call fcn.1001816b
mov ecx, dword [esi + 4]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 4]
cmp dword [edx + edi*4], ebx
je 0x100074ca
mov dword [esi + 0xd8], ebx
push 0x100217a4
jmp 0x100074dc
mov ecx, dword [esi + 0xd8]
push 0x10021790
inc ecx
mov dword [esi + 0xd8], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0xd8], 0x1e
jle 0x100074f1
push ebx
call fcn.10009408
mov eax, dword [esi + 4]
cmp dword [eax + edi*4], ebx
je 0x10007529
mov ecx, dword [esi + 0xc8]
mov dword [ecx + edi*4], 1
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + edi*4]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [edx], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xc8]
mov dword [eax + edi*4], ebx
inc edi
jmp 0x10007408

Function at 0x10007b80
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x100230d0
jmp 0x10007b90
push 0xffffffffffffffff
push 0x1001a973
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], 0x100000
mov dword [esi + 0xc], 0x14
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], eax
call fcn.100011c0
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 1
call fcn.10001aa0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10007cc0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 6
xor edi, edi
push 1
push 2
mov dword [esi + 0x1a4], edi
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x198], eax
jne 0x10007d02
push str.socket_faile_n
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugString_char__]
add esp, 4
mov dword [esi + 0x198], edi
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10
ret
push edi
call sub.WS2_32.dll_htonl
mov dword [esp + 0xc], eax
mov ax, word [esi + 0x52c]
push eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x198]
push edi
push edi
push 4
push 0xffff
push ecx
mov word [esp + 0x1e], ax
call sub.WS2_32.dll_setsockopt
mov eax, dword [esi + 0x198]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x10007d71
push str.bind_faile_n
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugString_char__]
add esp, 4
mov dword [esi + 0x198], edi
mov eax, 0xfffffffe
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [esi + 0x198]
push 5
push ecx
call sub.WS2_32.dll_listen
test eax, eax
je 0x10007da2
push str.listen_faile_n
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugString_char__]
add esp, 4
mov dword [esi + 0x198], edi
mov eax, 0xfffffffd
pop edi
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x10007db0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x120
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
mov eax, dword [esi + 0x198]
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1a4]
push 0
push 0
inc eax
push edx
push eax
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 1
call sub.WS2_32.dll_select
test eax, eax
je 0x10007e0d
cmp eax, 0xffffffff
jne 0x10007e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
add esp, 0x120
ret
mov edx, dword [esi + 0x198]
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007e0d
mov edx, dword [esi + 0x198]
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call sub.WS2_32.dll_accept
cmp eax, 0xffffffff
je 0x10007e0d
cmp dword [esi + 0x1a4], eax
jae 0x10007e0f
mov dword [esi + 0x1a4], eax
pop esi
add esp, 0x120
ret
Function at 0x10007e60
Capabilities:
Create thread
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001a9b6
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, ecx
push esi
push edi
mov ecx, 0xe5
lea edi, [ebx + 0x1a8]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebx + 0x530]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugTimeStringToFile_char__]
test eax, eax
je 0x10007ee3
lea eax, [ebx + 0x2a8]
push 8
push eax
lea ecx, [ebx + 0x74]
call fcn.10001ab0
cmp eax, 1
je 0x10007ee3
push 0x100219d8
call esi
push str.serverBll
call edi
push 0x100219c0
push str.serverBll
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugStringToFile_char___char__]
add esp, 0xc
mov eax, dword [ebx + 0x534]
cmp eax, 2
je 0x10007ef3
cmp eax, 3
jne 0x10007f67
push 0xdc
call fcn.10012e54
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x10007f19
mov ecx, eax
call fcn.10006d80
jmp 0x10007f1b
xor eax, eax
lea ecx, [ebx + 0x428]
lea edx, [ebx + 0x3e8]
push ecx
lea ecx, [ebx + 0x3a8]
push edx
push ecx
mov ecx, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [ebx + 0x28], eax
call fcn.10006e60
test eax, eax
je 0x10007f67
push 0x100219a8
call esi
push str.serverBll
call edi
push 0x10021990
push str.serverBll
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugStringToFile_char___char__]
add esp, 0xc
cmp dword [ebx + 0x528], 1
jne 0x10007fe4
push 0xdc
call fcn.10012e54
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 1
je 0x10007f96
mov ecx, eax
call fcn.10006d80
jmp 0x10007f98
xor eax, eax
lea edx, [ebx + 0x4e8]
lea ecx, [ebx + 0x4a8]
push edx
lea edx, [ebx + 0x468]
push ecx
push edx
mov ecx, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [ebx + 0x2c], eax
call fcn.10006e60
test eax, eax
je 0x10007fe4
push 0x10021978
call esi
push str.serverBll
call edi
push 0x1002195c
push str.serverBll
call dword [sym.imp.uw_kit.dll_public:_static_void___cdecl_MyTrace::DebugStringToFile_char___char__]
add esp, 0xc
push 0x9c4000
push 0x1e
mov ecx, ebx
call fcn.10007640
push 8
lea ecx, [ebx + 0x30]
call fcn.10001290
mov eax, dword [ebp + 0x38c]
mov ecx, dword [ebp + 0x388]
mov edx, dword [ebx + 0x528]
push eax
push ecx
push edx
push ebp
call fcn.10002370
add esp, 0x10
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push ebx
push 0x100080f0
push 0
push 0
mov dword [ebx + 0x19c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 0x1a0], eax
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x1000eb4b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10022930
cmp edx, dword [eax]
je 0x1000eb6d
add eax, 8
inc ecx
cmp eax, 0x100229c0
jl 0x1000eb5e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10022930]
jne 0x1000ec9b
mov eax, dword [0x10025660]
cmp eax, 1
je 0x1000ec75
test eax, eax
jne 0x1000eb9e
cmp dword [0x10025664], 1
je 0x1000ec75
cmp edx, 0xfc
je 0x1000ec9b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000ebd5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1000eed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000efc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000ec18
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000efc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001c8bc
push edi
call fcn.10010f70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1000eed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000eee0
lea eax, [ebp - 0xa0]
push 0x1001c89c
push eax
call fcn.1000eee0
push dword [esi + 0x10022934]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000eee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10010ee3
add esp, 0x2c
pop edi
jmp 0x1000ec9b
lea eax, [ebp + 8]
lea esi, [esi + 0x10022934]
push 0
push eax
push dword [esi]
call fcn.1000efc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x10018070
Capabilities:
Create http request

Disassembly:
mov eax, 0x1001a9dc
call fcn.10009898
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x100180a8
call fcn.10019883
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x100180cd
push eax
push dword [esi + 4]
call fcn.10018b7b
jmp 0x100180d9
push esi
push eax
mov ecx, 0x10023620
call fcn.100180ea
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x10018269
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x1001aa17
call fcn.10009898
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10013307
mov eax, dword [0x10021e48]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x10023620
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.100180ea
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.10013a9b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.10008356
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10013a4b
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.100139a2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10