joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405720
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push esi
mov esi, dword [esp + 0x214]
test esi, esi
je 0x405903
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
push 0x40
push str._n_c____s_n
push esi
call ebx
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405765
sub eax, edx
push edi
mov edi, eax
cmp byte [0x67d9f0], cl
jne 0x40577e
call fcn.00405690
push 0x67d9f0
push 0x5a8500
add edi, esi
push edi
call ebx
push str.Expiration
call fcn.00575200
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4057c1
push str.unlimited
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x4057c1
push edi
call fcn.0056c450
add esp, 4
cmp eax, 0xffffffff
jne 0x4057c6
mov eax, 0xfffffffe
mov dword [esp + 0xc], eax
mov eax, dword [str.ValidationKey]
push eax
call fcn.00575200
add esp, 4
test eax, eax
jne 0x4057e5
mov eax, str.No_valid_license_found
test eax, eax
je 0x405826
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057f0
mov ecx, dword [str.ValidationKey]
sub eax, edx
push ecx
mov edi, eax
call fcn.00575200
add esp, 4
test eax, eax
jne 0x405813
mov eax, str.No_valid_license_found
push eax
push str.License
push str._9.9s:__s_n
add edi, esi
push edi
call ebx
add esp, 0x10
cmp dword [esp + 0xc], 0xfffffffe
je 0x40585b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405832
sub eax, edx
lea edx, [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.MSVCR90.dll__ctime32]
push eax
push str.Expires
push str._9.9s:__s_n
add edi, esi
push edi
call ebx
add esp, 0x14
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405860
sub eax, edx
add eax, esi
push str._nU.S._Patent_Nr._6_381_596_and_6_510_335_n
push eax
call ebx
mov eax, esi
add esp, 8
lea edx, [eax + 1]
jmp 0x405880
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405880
push str.Transaction_Software__D_81829_Munich
sub eax, edx
push str.Copyright__c__1987___2010
add eax, esi
push str._n_s_by__s_n
push eax
call ebx
add esp, 0x10
push 0x5a8460
lea eax, [esp + 0x14]
push eax
push str.logo
push 0
call fcn.0056b720
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x405901
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4058d0
sub eax, edx
push edi
mov ecx, 0x1ff
sub ecx, eax
push ecx
add esi, eax
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
test ebx, ebx
jl 0x405901
mov byte [esi + ebx], 0
pop edi
pop ebx
call fcn.0056c2d0
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00586584
add esp, 0x208
ret
Function at 0x405920
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [0x67da30]
test eax, eax
jne 0x4059d6
lea eax, [esp]
push eax
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x4059cc
sub eax, 1
je 0x4059aa
sub eax, 1
je 0x40596d
mov eax, 0x8000
jmp 0x4059d1
mov eax, dword [esp + 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.0x405979.6
jmp dword [eax*4 + 0x4059ec]
mov eax, 0x1000
jmp 0x4059d1
mov eax, 0x2000
jmp 0x4059d1
mov eax, dword [esp + 8]
sub eax, 0
je 0x4059a3
sub eax, 1
je case.0x405979.6
mov eax, 0x10000
jmp 0x4059d1
mov eax, 0x4000
jmp 0x4059d1
mov eax, dword [esp + 8]
test eax, eax
je 0x4059c5
cmp eax, 0xa
je 0x4059be
mov eax, 0x40
jmp 0x4059d1
mov eax, 0x10
jmp 0x4059d1
mov eax, 4
jmp 0x4059d1
mov eax, 2
mov dword [0x67da30], eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00586584
add esp, 0xa0
ret

Function at 0x405a00
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc8
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0xc4], eax
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd0]
push 0x9c
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov dword [ebx], 1
mov dword [esp + 0x30], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405b24
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x405aa0
lea edx, [esp + 0x10]
push edx
call eax
jmp 0x405aab
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x44], 2
jne 0x405b1c
mov eax, dword [esp + 0x38]
cmp eax, 4
jbe 0x405b1c
cmp eax, 6
jne 0x405afc
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call edi
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0
push edx
push ecx
call eax
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x405af8
cmp eax, 3
ja 0x405af8
mov dword [ebx], 0
mov eax, dword [esp + 0x38]
cmp eax, 5
jne 0x405b17
cmp dword [esp + 0x3c], 1
jne 0x405b22
test dword [esp + 0xcc], 0x200
je 0x405b22
jmp 0x405b1c
cmp eax, 4
jne 0x405b22
mov dword [ebx], 0
pop edi
pop esi
mov ecx, dword [esp + 0xc8]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00586584
add esp, 0xc8
ret
Function at 0x406690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x50c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
mov ebx, dword [esp + 0x518]
push esi
push edi
mov edi, ebx
call fcn.00406610
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll__time32]
mov esi, dword [sym.imp.MSVCR90.dll__ctime32]
lea ecx, [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
call esi
add esp, 0xc
mov edi, eax
call fcn.00406610
mov esi, eax
add esi, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4066e8
sub eax, edx
mov byte [eax + esi - 1], cl
push 0x5a8ac0
lea eax, [esp + 0x14]
push eax
push 0x67db64
push 0
call fcn.0056b720
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40676e
mov ecx, dword [esp + 0x51c]
push ebx
push ecx
call fcn.00405650
push eax
push esi
lea edx, [esp + 0x124]
push str._s_t_s_t_d_t_s_n
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x12c]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406750
sub eax, edx
push edi
push eax
lea eax, [esp + 0x11c]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x518]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x50c
ret
Function at 0x410940
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x848
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x844], eax
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
mov esi, dword [esp + 0x854]
imul esi, esi, 0x41c
mov eax, dword [esi + 0x6229e0]
push edi
push eax
lea ecx, [esp + 0x14]
push str._s32
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call fcn.0056c440
add esp, 0x10
test eax, eax
jne 0x4109d7
cmp dword [esi + 0x6225d0], eax
je 0x4109c0
lea eax, [esp + 0x10]
push eax
push 0x2b2d
call fcn.004073f0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.00586584
add esp, 0x848
ret
mov ecx, dword [esi + 0x6229d4]
push 0x20
push ecx
lea edi, [esi + 0x6225d4]
push edi
call ebx
add esp, 0xc
jmp 0x4109eb
lea edi, [esi + 0x6225d4]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4109e1
push ebp
lea edx, [esp + 0x454]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x54]
push eax
push edi
call fcn.0056b010
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 8
lea ecx, [esp + 0x54]
push ecx
call ebp
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [esp + 0x10]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x454]
push eax
call ebp
pop ebp
cmp ebx, 0x20
jae 0x410a75
push edi
push 0
push 0x2b2e
call fcn.00406f10
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.00586584
add esp, 0x848
ret
mov dword [esi + 0x6225c8], ebx
call fcn.0056c2e0
mov dword [esi + 0x6225cc], eax
mov esi, dword [esi + 0x6229d8]
test esi, esi
je 0x410adb
mov edx, dword [esp + 0x858]
push esi
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00410b90
add esp, 0xc
test eax, eax
jne 0x410add
call dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x410adb
push edi
push 0
push 0x36bc
call fcn.00406f10
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.00586584
add esp, 0x848
ret
xor eax, eax
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x848
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x410ce5
call fcn.00410c40
mov eax, esi
pop esi
ret

Function at 0x410d10
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push 8
lea eax, [esp + 8]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x32
call sub.WSOCK32.dll_setsockopt
push esi
call sub.WSOCK32.dll_closesocket
pop esi
add esp, 8
ret
Function at 0x410e30
Capabilities:
Get hostname

Disassembly:
push str.USELOCALHOST
call fcn.0056c440
add esp, 4
test eax, eax
je 0x410ecc
mov edx, 0x5a8ea0
mov ecx, eax
push ebx
lea ecx, [ecx]
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x410e70
test bl, bl
je 0x410e6c
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x410e70
add ecx, 2
add edx, 2
test bl, bl
jne 0x410e50
xor ecx, ecx
jmp 0x410e75
sbb ecx, ecx
sbb ecx, 0xffffffff
pop ebx
test ecx, ecx
je 0x410ea9
mov ecx, 0x5a8e9c
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410ea0
test dl, dl
je 0x410e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410ea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x410e80
xor eax, eax
jmp 0x410ea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410ecc
mov ecx, dword [str.localhost]
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov edx, dword [0x5a8560]
mov dword [eax + 4], edx
mov cx, word [0x5a8564]
mov word [eax + 8], cx
xor eax, eax
ret
mov edx, dword [esp + 4]
push 0x81
push edx
call sub.WSOCK32.dll_gethostname
xor eax, eax
ret

Function at 0x411200
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x24]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x411231
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov edi, eax
cmp edi, ebx
je 0x41122e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, ebx
je 0x411247
push eax
call edi
add esp, 4
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x30]
mov dword [esi + 0x2c], ebx
cmp eax, ebx
je 0x41125a
push eax
call edi
add esp, 4
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41126a
push eax
call edi
add esp, 4
mov dword [esi + 0x34], ebx
cmp dword [esi], 0xffffffff
je 0x4112aa
call dword [sym.imp.MSVCR90.dll__errno]
push 8
mov dword [eax], ebx
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0x80
push 0xffff
push edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x32
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov edi, eax
jmp 0x4112ac
mov edi, ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4112c3
cmp dword [esi], eax
je 0x4112c3
push eax
call fcn.00410d10
add esp, 4
jmp 0x4112c5
mov eax, ebx
cmp edi, ebx
jne 0x4112e3
cmp eax, ebx
jne 0x4112e7
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
jmp 0x4112ea
mov eax, dword [esi + 4]
push eax
push 0x70c
call fcn.004073f0
add esp, 8
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4115b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov esi, eax
neg esi
sbb esi, esi
call fcn.00405920
test eax, 0xff07c
je 0x4115f0
push 0x410cb0
call sub.WSOCK32.dll_WSASetBlockingHook
test esi, esi
jne 0x4115fe
mov dword [0x67f900], 1
push 0x411590
call fcn.0058667d
mov ecx, dword [esp + 0x198]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.00586584
add esp, 0x194
ret
jmp 0x4115b0

Function at 0x411630
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov esi, eax
neg esi
sbb esi, esi
call fcn.00405920
test eax, 0xff07c
je 0x4115f0
push 0x410cb0
call sub.WSOCK32.dll_WSASetBlockingHook
test esi, esi
jne 0x4115fe
mov dword [0x67f900], 1
push 0x411590
call fcn.0058667d
mov ecx, dword [esp + 0x198]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.00586584
add esp, 0x194
ret
jmp 0x4115b0
Function at 0x4116b0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x1014
call fcn.005865a0
push ebp
push esi
xor eax, eax
cmp dword [esp + 0x1024], 0xfffffffe
push edi
mov edi, 1
mov dword [esp + 0x10], eax
jne 0x4116dd
mov dword [esp + 0x1028], 5
mov dword [esp + 0xc], eax
cmp dword [0x67f900], eax
je 0x4118b3
mov ebp, dword [sym.imp.MSVCR90.dll__errno]
mov eax, dword [esp + 0x1028]
cmp eax, 0xffffffff
je 0x411710
test eax, eax
je 0x411710
cmp dword [esp + 0xc], eax
jge 0x4118aa
lea ecx, [ecx]
mov esi, dword [esp + 0x1024]
xor edx, edx
xor eax, eax
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x41174d
cmp edx, 0x400
jae 0x41173b
mov ecx, dword [ebx + eax*4]
mov dword [esp + edx*4 + 0x20], ecx
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
mov ecx, dword [ebx + eax*4]
cmp ecx, dword [esp + 0x10]
jle 0x411748
mov dword [esp + 0x10], ecx
inc eax
cmp eax, esi
jl 0x411723
xor edx, edx
cmp dword [esp + 0x1028], edx
lea eax, [esp + 0x14]
push eax
push 0
setne dl
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x400
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_select
mov edi, eax
test edi, edi
jge 0x41185b
call ebp
cmp dword [eax], 4
je 0x411798
call ebp
cmp dword [eax], 0x202
jne 0x4117fd
call ebp
cmp dword [eax], 0
je 0x4117c9
cmp dword [0x67f860], 0
jne 0x4117c9
call fcn.00406070
mov esi, eax
call ebp
mov eax, dword [eax]
push 0
mov dword [esi], eax
mov dword [0x67f860], eax
call fcn.00406060
add esp, 4
mov dword [0x67f864], eax
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
je 0x411710
call fcn.00406070
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
push 0
mov dword [esi], eax
mov dword [0x67f860], eax
call fcn.00406060
add esp, 4
mov dword [0x67f864], eax
jmp 0x411710
call ebp
cmp dword [eax], 0
je 0x41182e
cmp dword [0x67f860], 0
jne 0x41182e
call fcn.00406070
mov esi, eax
call ebp
mov eax, dword [eax]
push 0
mov dword [esi], eax
mov dword [0x67f860], eax
call fcn.00406060
add esp, 4
mov dword [0x67f864], eax
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
je 0x41188b
call fcn.00406070
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
push 0
mov dword [esi], eax
mov dword [0x67f860], eax
call fcn.00406060
add esp, 4
mov dword [0x67f864], eax
jmp 0x41188b
jle 0x41188b
xor esi, esi
cmp dword [esp + 0x1024], esi
jle 0x41188b
mov eax, dword [ebx + esi*4]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x411881
mov dword [ebx + esi*4], 0xffffffff
inc esi
cmp esi, dword [esp + 0x1024]
jl 0x411868
test edi, edi
jne 0x4118aa
cmp dword [esp + 0x1028], edi
je 0x4118aa
inc dword [esp + 0xc]
cmp dword [0x67f900], edi
jne 0x4116f3
jmp 0x4118b3
cmp dword [0x67f900], 0
jne 0x4118de
mov dword [0x67f900], 1
call sub.WSOCK32.dll_WSAUnhookBlockingHook
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
mov dword [0x67f900], 0
or eax, 0xffffffff
pop ebp
add esp, 0x1014
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x1014
ret
Function at 0x411910
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x188], eax
push ebp
xor eax, eax
push esi
xor ebp, ebp
push edi
mov esi, edx
mov dword [0x67f868], eax
mov dword [0x67f86c], eax
mov dword [0x67f870], eax
mov dword [0x67f874], eax
cmp ecx, 1
jne 0x4119e3
mov edi, dword [sym.imp.MSVCR90.dll_fopen]
push 0x5a8460
push str.f.log
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x4119a6
push 0x5a8460
lea eax, [esp + 0x94]
push eax
push str.f.log
push esi
call fcn.0056b720
add esp, 0xc
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x4119a6
pop edi
pop esi
mov dword [ebx], ebp
pop ebp
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00586584
add esp, 0x18c
ret
push esi
lea ecx, [esp + 0x10]
push 0x81
push ecx
call dword [sym.imp.MSVCR90.dll_fgets]
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4119c1
sub eax, edx
cmp byte [esp + eax + 0xb], 0xa
lea eax, [esp + eax + 0xb]
jne 0x4119d7
mov byte [eax], cl
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
jmp 0x411a0a
lea edx, [esp + 0xc]
cmp ecx, 2
jne 0x4119f7
push edx
call fcn.00410e30
add esp, 4
jmp 0x411a0a
mov eax, esi
sub edx, esi
jmp 0x411a00
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411a00
mov esi, 0x67f868
lea edi, [esp + 0xc]
call fcn.00410ee0
test eax, eax
jne 0x411a6c
mov eax, edi
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x411a43
call fcn.0056c2d0
mov ecx, edi
push ecx
push 0x2734
call fcn.004073f0
add esp, 8
mov ebp, eax
jmp 0x411a6c
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
push 0x67f868
call sub.MSVCR90.dll_memcpy
mov dl, byte [esi + 0xa]
mov byte [0x67f86c], dl
mov al, byte [esi + 8]
add esp, 0xc
mov byte [0x67f86d], al
call fcn.0056c2d0
mov ecx, dword [esp + 0x194]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
mov dword [ebx], 0x67f868
call fcn.00586584
add esp, 0x18c
ret
Function at 0x411c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push edi
mov edi, 1
mov dword [esp + 4], edi
call fcn.00405920
test al, 2
je 0x411ca8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x8004667e
push ecx
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x411ca8
call fcn.00410c40
or eax, 0xffffffff
pop edi
pop ecx
ret
push ebx
push esi
call fcn.00405920
test eax, 0xff07c
mov eax, dword [0x622e7c]
je 0x411d99
cmp eax, 0xffffffff
jne 0x411d99
push str.SELECTBEFOREREAD
call fcn.0056c440
mov esi, eax
add esp, 4
test esi, esi
je 0x411d91
mov edx, 0x5a8edc
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x411d06
test al, al
je 0x411d02
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x411d06
add ecx, 2
add edx, 2
test al, al
jne 0x411ce6
xor eax, eax
jmp 0x411d0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411d3f
mov ecx, 0x5a8c1c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411d36
test dl, dl
je 0x411d32
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411d36
add eax, 2
add ecx, 2
test dl, dl
jne 0x411d16
xor eax, eax
jmp 0x411d3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411d91
mov dword [0x622e7c], 0
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
cmp dword [0x67f900], 0
je 0x411dfa
mov eax, dword [esp + 0x18]
push 0
push ebx
push ebp
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jg 0x411df1
call fcn.00410c40
cmp esi, 0xffffffff
jne 0x411dc5
cmp dword [0x67f860], 0x2733
jne 0x411dc5
xor edi, edi
jmp 0x411dca
mov dword [0x622e7c], edi
jmp 0x411d9d
cmp eax, edi
jne 0x411d49
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.004116b0
add esp, 8
test eax, eax
jg 0x411d49
call fcn.00410c40
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ecx
ret
mov edi, 1
cmp dword [0x67f900], 0
je 0x411ddd
push 1
call fcn.00574330
add esp, 4
xor eax, eax
mov dword [0x67f860], eax
mov dword [0x67f864], eax
cmp edi, eax
je 0x411d52
cmp dword [0x67f900], 0
jne 0x411e21
mov dword [0x67f900], 1
call sub.WSOCK32.dll_WSAUnhookBlockingHook
call sub.WSOCK32.dll_WSACleanup
pop ebp
pop esi
pop ebx
mov dword [0x67f900], 0
or eax, 0xffffffff
pop edi
pop ecx
ret
test esi, esi
jge 0x411e2a
call fcn.00410c40
mov dword [esp + 0x10], 0
call fcn.00405920
test al, 2
je 0x411e62
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edx
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x411e62
call fcn.00410c40
pop ebp
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ecx
ret
pop ebp
mov eax, esi
pop esi
pop ebx
pop edi
pop ecx
ret