joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592c48
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x592e78
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x592ccb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x592e78
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x592ccb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x592e94
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x592d54
xor eax, eax
push ebp
push 0x592d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00592a90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x592d32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x592eb4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x592d32
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592d54
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.dll_GetThreadLocale
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x592e6e
cmp byte [ebp - 0xd], 0
jne 0x592d9b
cmp byte [ebp - 0x12], 0
je 0x592e6e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x592db4
dec ebx
cmp byte [ebx], 0x2e
je 0x592dc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x592db3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x592e6e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x592e00
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x592e6e
cmp byte [ebp - 0xd], 0
je 0x592e6e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x592e6e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x594f00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x594f39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0059233c
jmp 0x594f42
mov eax, ebx
mov edx, esi
call fcn.005922a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x594f4c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x594f6d
mov al, byte [esp]
jmp 0x594f6f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x596024
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x596088
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00592490
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.005941d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59608f
lea eax, [ebp - 0xc]
call fcn.0059224c
ret
Function at 0x598180
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x358], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x598397
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x24d]
mov edx, edi
call fcn.0059433c
xor edx, edx
push ebp
push 0x59836c
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea eax, [ebp - 0x358]
mov edx, edi
call fcn.00592424
lea eax, [ebp - 0x358]
mov edx, 0x5983b4
call fcn.005924c4
mov eax, dword [ebp - 0x358]
call fcn.005926a4
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x598229
mov ecx, 0xab4
mov edx, 0x5983c0
mov eax, 0x5983fc
call fcn.0059222c
cmp dword [ebp - 8], 0xffffffff
jne 0x59823e
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00591cb0
jmp 0x598373
mov al, 1
jmp 0x598347
lea eax, [ebp - 0x458]
lea edx, [esi + 0x2c]
call fcn.00591380
lea eax, [ebp - 0x458]
mov edx, 0x598410
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00591244
je 0x598337
lea eax, [ebp - 0x45c]
lea edx, [esi + 0x2c]
call fcn.00592424
mov eax, dword [ebp - 0x45c]
mov edx, 0x59841c
call fcn.00592600
je 0x598337
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.0059433c
test byte [esi], 0x10
je 0x598312
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00594398
push 0xffffffffffffffff
lea eax, [ebp - 0x352]
push eax
call dword [0x755e61]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
test ebx, ebx
je 0x598337
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.0059433c
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00594398
mov edx, 0x598420
lea eax, [ebp - 0x352]
call fcn.00594398
push ebx
lea eax, [ebp - 0x352]
push eax
call fcn.00598180
mov dword [ebp - 4], eax
jmp 0x598337
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00594398
push 0
lea eax, [ebp - 0x352]
push eax
call dword [0x755e61]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
push esi
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x598245
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598373
cmp dword [ebp - 8], 0xffffffff
je 0x59836b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59839e
lea eax, [ebp - 0x45c]
call fcn.0059224c
lea eax, [ebp - 0x358]
call fcn.0059224c
ret
Function at 0x402db0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x402e6f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x402e6f
cmp dword [0x4112f0], 1
jle 0x402def
movsx eax, byte [edi + esi - 1]
push 4
push eax
call fcn.0040582d
add esp, 8
jmp 0x402e00
movsx ecx, byte [edi + esi - 1]
mov edx, dword [str.________________________________H]
mov al, byte [edx + ecx*2]
and eax, 4
test eax, eax
je 0x402e19
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
ret
cmp dword [0x4112f0], 1
jle 0x402e37
movsx edx, byte [edi + esi - 1]
push 0x103
push edx
call fcn.0040582d
add esp, 8
jmp 0x402e4b
movsx eax, byte [edi + esi - 1]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, 0x103
test eax, eax
je 0x402e6f
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x402e6f
mov edx, dword [eax + 0xc]
pop edi
pop esi
mov eax, dword [edx]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
mov eax, 1
mov dword [edx], ecx
ret
pop edi
or eax, 0xffffffff
pop esi
ret

Function at 0x402e80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_send]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [0x416a40]
push 0
push edi
push ebx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x402ecb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4100a8
call fcn.004058a2
add esp, 8
cmp esi, 0x2747
je 0x402e92
cmp esi, 0x2733
jne 0x402ed5
jmp 0x402e92
cmp eax, edi
je 0x402edd
sub edi, eax
add ebx, eax
jmp 0x402e92
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x402ef9
ret
mov ecx, dword [0x416a40]
push 0
push eax
mov eax, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
ret
Function at 0x402f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40300a
mov ebp, dword [esp + 0x18]
test ebp, ebp
jle 0x40300a
push 0
push 1
push 2
mov dword [0x416a40], 0xffffffff
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [0x416a40], eax
jl 0x40300a
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00402db0
mov ebx, dword [sym.imp.WSOCK32.dll_closesocket]
add esp, 8
test eax, eax
jne 0x402f6f
mov ecx, dword [0x416a40]
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.WSOCK32.dll_htons]
test eax, eax
je 0x402fce
push eax
mov word [0x416a30], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
mov dword [0x416a34], eax
call esi
mov edx, dword [0x416a40]
push 0x10
push 0x416a30
push edx
mov word [0x416a32], ax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jge 0x402fce
mov eax, dword [0x416a40]
push eax
call ebx
push str._1_occured_in_CServerSocket__Bind__1_n
push 0x411340
call fcn.004058d3
add esp, 8
mov ecx, dword [esp + 0x14]
push ebp
mov word [0x416a50], 2
mov dword [0x416a54], ecx
call esi
mov edx, dword [0x416a40]
push 0x10
push 0x416a50
push edx
mov word [0x416a52], ax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x403011
mov eax, dword [0x416a40]
push eax
call ebx
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4030c0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x4160b8
push 8
push edi
call fcn.00403090
add esp, 8
mov edx, 8
shl eax, 0x18
mov dword [esi], eax
mov ebx, eax
mov ecx, ebx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebx, eax
jne 0x4030e1
push 0x20
push eax
mov dword [esi], ebx
call fcn.00403090
mov dword [esi], eax
add esp, 8
add esi, 4
inc edi
cmp esi, 0x4164b4
jle 0x4030ca
pop edi
pop esi
pop ebx
ret

Function at 0x403120
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.004030c0
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 8]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x40315b
push edi
lea edi, [ecx + 1]
mov ecx, eax
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
xor ecx, edx
inc esi
shr eax, 8
mov ecx, dword [ecx*4 + 0x4160b8]
xor eax, ecx
dec edi
jne 0x40313c
pop edi
not eax
pop esi
ret
Function at 0x403160
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x410104]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x403173
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp word [esp + 0x10c], 1
je 0x4031b5
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4101ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4031e7
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4031eb
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4031dc
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x403209
mov bl, byte [esp + ecx + 0x4c]
jmp 0x40320d
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4031fe
xor ecx, ecx
mov eax, 0x410114
xor ebx, ebx
mov bl, byte [ecx + 0x4101bc]
cmp byte [esp + ebx + 0x14], 0
je 0x403238
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4101d4]
cmp byte [esp + ebx + 0x14], 0
je 0x40324f
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x40321f
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4031a7
lea edx, [esp + 0x84]
push edx
call fcn.00403290
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x403af0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x8c
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
jne 0x403b31
push str.Failed___n
call fcn.004058a2
add esp, 4
push 0
call fcn.00405aee
push 0x403870
push 0x16
mov dword [0x4166e8], 1
call fcn.00405d5d
push 0x410c94
push str.datalist.txt
call fcn.00405d4a
add esp, 0x10
mov dword [0x416638], eax
test eax, eax
jne 0x403b6f
push 0x410c6c
call fcn.004058a2
add esp, 4
push str._n_t_tThe_Registration_System_of_TaiXin_STBs_by_Net__n_n
call fcn.004058a2
push str._t_t__Copyright__C___2009_2011__TaiXin_Elec.Co.__Ltd._n_Add:_FL.6_Haichen_Building_Wenhua_west__Road_Lixia_District_Jinan_250012_China_n_Tel:86_531_87175001_n_Fax:86_531_86023598_n
call fcn.004058a2
push str._nPlease_Enter_Your_Login_Information._n
call fcn.004058a2
add esp, 0xc
xor esi, esi
call fcn.004039d0
test al, al
jne 0x403bb5
cmp esi, 2
jge 0x403bad
push str.Error_User_Information_Please_Retry__n
call fcn.004058a2
add esp, 4
inc esi
cmp esi, 3
jl 0x403b92
jmp 0x403bba
cmp esi, 3
jl 0x403bce
push str._nExceed_Allowable_Times_of_Error_Exit_System__n_n
call fcn.004058a2
add esp, 4
push 0
call fcn.00405aee
call fcn.00403c80
test eax, eax
jg 0x403bde
push 0
call fcn.00405aee
push 3
push 0x65
push str.172.18.8
call fcn.004037e0
add esp, 0xc
test eax, eax
jg 0x403c07
push str.___Init_Product_Line_Err______n
call fcn.004058a2
add esp, 4
push 0
call fcn.00405aee
push 0x115c
call fcn.00403cb0
push 0x115c
call fcn.00403de0
add esp, 8
test eax, eax
jge 0x403c29
push 0
call fcn.00405aee
push str.Log_in_system_successfully_and_Ready_for_Our_Work_..._n
call fcn.004058a2
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0x403880
push 0
push ecx
call dword [sym.imp.pthreadVC.dll_pthread_create]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x14
push 0xa
call esi
mov eax, dword [0x4166e8]
test eax, eax
jne 0x403c53
push 0
call fcn.00405aee
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x403c80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
neg eax
sbb eax, eax
and al, 0xfe
inc eax
add esp, 0x190
ret

Function at 0x403cb0
Capabilities:
Terminate process

Disassembly:
xor eax, eax
mov dword [0x416a20], 0xffffffff
mov dword [0x416a10], eax
mov dword [0x416a14], eax
mov dword [0x416a18], eax
push eax
push 1
push 2
mov dword [0x416a1c], eax
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [0x416a20], eax
jge 0x403cfd
push str._1_occured_in_CServerSocket__Bad_socket_descriptor_incomes_n
push 0x411340
call fcn.004058d3
add esp, 8
push 0xffffffffffffffff
call fcn.00405aee
ret
Function at 0x403d00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x416a20]
push esi
mov esi, 1
mov dword [esp + 0x14], 0x1f40
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x7d0
mov dword [esp + 8], esi
jge 0x403d3c
push str._1_occured_in_SetSocketOption__Bad_file_descriptor_incomes_n
push 0x411340
call fcn.004058d3
add esp, 8
mov ecx, dword [0x416a20]
lea eax, [esp + 4]
push 4
push eax
push 0x80
mov word [esp + 0x10], si
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 0xffff
push ecx
mov word [esp + 0x1a], 0x1e
call esi
test eax, eax
jge 0x403d83
push str._1_occured_in_SetSocketOption__Cant_set_linger_option_n
push 0x411340
call fcn.004058d3
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, dword [0x416a20]
lea edx, [esp + 8]
push 4
push edx
push 8
push 0xffff
push eax
call esi
test eax, eax
jge 0x403db4
push str._1_occured_in_SetSocketOption__Cant_set_keepalive_option_n
push 0x411340
call fcn.004058d3
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, dword [0x416a20]
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push 0xc
push edx
push 0x98000004
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop esi
add esp, 0x18
ret

Function at 0x403fe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403fe9
ret
mov ecx, dword [esp + 4]
push 0
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
ret

Function at 0x404000
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push edi
push ebx
push ebp
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x404048
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4100a8
call fcn.004058a2
add esp, 8
cmp esi, 0x2747
je 0x404010
cmp esi, 0x2733
jne 0x404052
jmp 0x404010
cmp eax, edi
je 0x40405a
sub edi, eax
add ebx, eax
jmp 0x404010
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40aa39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4117b8
cmp edx, dword [eax]
je 0x40aa5b
add eax, 8
inc ecx
cmp eax, 0x411848
jl 0x40aa4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4117b8]
jne 0x40ab89
mov eax, dword [0x41678c]
cmp eax, 1
je 0x40ab63
test eax, eax
jne 0x40aa8c
cmp dword [0x411588], 1
je 0x40ab63
cmp edx, 0xfc
je 0x40ab89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aac3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ab06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f14c
push edi
call fcn.0040c160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c270
lea eax, [ebp - 0xa0]
push 0x40f12c
push eax
call fcn.0040c270
push dword [esi + 0x4117bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c855
add esp, 0x2c
pop edi
jmp 0x40ab89
lea eax, [ebp + 8]
lea esi, [esi + 0x4117bc]
push 0
push eax
push dword [esi]
call fcn.00407d00
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 0x40abc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46d81c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40acd2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad4e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b240
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad38
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad4e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acc9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411146
mov esp, ebp
pop ebp
ret
Function at 0x411791
Capabilities:
Parse pe header

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

Function at 0x41e30e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323c8
push 0x4323c0
push str.FlsAlloc
push 0x1e
call fcn.0041e17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e342
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
jmp 0x41e348
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e38c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323d8
push 0x4323d0
push str.FlsGetValue
push 0x20
call fcn.0041e17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e3c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x420eaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420b4c

Function at 0x420eb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420cdb