joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab20
Capabilities:
Hide graphical window

Disassembly:
jmp 0x40ab20
push 0xffffffffffffffff
push 0x439eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
push str.Help_Menu_for
push ecx
call fcn.0040139d
push eax
push 0x448f68
mov byte [esp + 0x64], 1
call fcn.004014dd
add esp, 0x14
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
mov edi, 0x10
cmp dword [esp + 0x28], edi
mov byte [esp + 0x50], bl
jb 0x40abb0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040eac4
add esp, 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x30]
push str.Syntax:_t
push ecx
call fcn.0040139d
push str.__parameter
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x68], 2
call fcn.00401212
push eax
push 0x448f68
mov byte [esp + 0x70], 3
call fcn.004014dd
add esp, 0x20
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
cmp dword [esp + 0x28], edi
jb 0x40ac11
mov eax, dword [esp + 0x14]
push eax
call fcn.0040eac4
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x50], bl
jb 0x40ac38
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040eac4
add esp, 4
push str.Parameters:
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str._t___t__Display_Help_Menu__This_Menu_
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str.____l:_two_letter_language_code____force_install_to_display_in_the_specified_language
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str.____address:_IP_or_network_name____specify_IP_address_of_the_target_printer
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str.____port:_portname____specify_port_name_to_be_created
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str.The__port:_and__address:_parameters_are_useable_only_with
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
push str.a_packge_created_with_Specify_Port_on_Cmd_line_option.
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
cmp dword [esp + 0x70], edi
jb 0x40ad47
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040eac4
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x40c8f0
Capabilities:
Terminate process

Disassembly:
jmp 0x40c8f0
push 0xffffffffffffffff
push 0x43a178
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push str.Running_Install...
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov eax, 0x448cb0
mov byte [esp + 0x78], 1
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c975
sub eax, esi
push eax
push 0x448cb0
lea ecx, [esp + 0x58]
call fcn.004011fe
mov eax, 0x448bb0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c997
sub eax, edx
push eax
push 0x448bb0
lea ecx, [esp + 0x3c]
call fcn.004011fe
call fcn.00401343
test al, al
je 0x40ca66
call fcn.0040103c
test al, al
jne 0x40ca0d
call fcn.004011ea
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp eax, ebx
je 0x40c9dd
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.Press_ENTER_to_continue
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
call fcn.00410f2a
push 0xa
call fcn.00410e91
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004014e7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x90]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0xbc], 2
mov byte [ecx + 4], bl
call fcn.004014e7
mov byte [esp + 0xb0], 1
call fcn.004014ab
add esp, 0x38
cmp byte [0x448db4], bl
je 0x40caaa
lea eax, [esp + 0x18]
push eax
call fcn.00401348
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40ca8a
mov eax, dword [eax + 4]
jmp 0x40ca8d
add eax, 4
push 1
push 0x448ba0
push eax
call fcn.00401145
add esp, 0xc
cmp dword [esp + 0x30], esi
jb 0x40cae8
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40cae0
lea edx, [esp + 0x18]
push edx
call fcn.00401348
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40cac6
mov eax, dword [eax + 4]
jmp 0x40cac9
add eax, 4
push 1
push ebx
push eax
call fcn.00401145
add esp, 0xc
cmp dword [esp + 0x30], esi
jb 0x40cae8
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eac4
add esp, 4
call fcn.004011ea
cmp dword [esp + 0x4c], esi
jb 0x40cb00
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040eac4
add esp, 4
cmp dword [esp + 0x68], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x40cb1f
mov edx, dword [esp + 0x54]
push edx
call fcn.0040eac4
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x6c
ret
Function at 0x40f4c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4475c4]
jne 0x40f4cd
repz ret
jmp fcn.00417e1c
Function at 0x41b70c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x448188]
je 0x41b727
inc edi
cmp edi, 0x17
jb 0x41b718
cmp edi, 0x17
jae 0x41b8a7
push ebp
push 3
call fcn.0042bde1
cmp eax, 1
pop ecx
je 0x41b873
push 3
call fcn.0042bde1
test eax, eax
pop ecx
jne 0x41b75b
cmp dword [0x4475d0], 1
je 0x41b873
cmp ebx, 0xfc
je 0x41b8a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x449540
push ebp
call fcn.004155f6
add esp, 0xc
test eax, eax
je 0x41b791
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed77
add esp, 0x14
push 0x104
mov esi, 0x449559
push esi
push 0
mov byte [0x44965d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b7d5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004155f6
add esp, 0xc
test eax, eax
je 0x41b7d5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040ed77
add esp, 0x14
push esi
call fcn.00412620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b81a
push esi
call fcn.00412620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x449854
push 0x440a24
sub ecx, eax
push ecx
push eax
call fcn.0040eee8
add esp, 0x14
test eax, eax
je 0x41b81a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed77
add esp, 0x14
jmp 0x41b81c
xor esi, esi
push 0x440a20
push ebx
push ebp
call fcn.0041ef38
add esp, 0xc
test eax, eax
je 0x41b83c
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed77
add esp, 0x14
push dword [edi*8 + 0x44818c]
push ebx
push ebp
call fcn.0041ef38
add esp, 0xc
test eax, eax
je 0x41b85e
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed77
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042bc24
add esp, 0xc
jmp 0x41b8a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41b8a6
cmp ebp, 0xffffffff
je 0x41b8a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44818c]
push dword [esi]
call fcn.00412620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42bc24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417738
xor ebx, ebx
cmp dword [0x4499dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42bcfa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42bdda
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42bdda
push eax
call fcn.004176ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4499dc], eax
call esi
push eax
call fcn.004176ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4499e0], eax
call esi
push eax
call fcn.004176ca
mov dword [0x4499e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410b88
test eax, eax
pop ecx
pop ecx
je 0x42bcc8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ed77
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42bcfa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004176ca
cmp eax, ebx
pop ecx
mov dword [0x4499ec], eax
je 0x42bcfa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004176ca
pop ecx
mov dword [0x4499e8], eax
mov eax, dword [0x4499e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42bd7f
cmp dword [0x4499ec], ecx
je 0x42bd7f
push eax
call fcn.00417741
push dword [0x4499ec]
mov esi, eax
call fcn.00417741
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42bd7f
cmp edi, ebx
je 0x42bd7f
call esi
cmp eax, ebx
je 0x42bd4c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42bd4c
test byte [ebp - 0x18], 1
jne 0x42bd7f
lea eax, [ebp - 0x10]
push eax
call fcn.00410c37
test eax, eax
pop ecx
je 0x42bd67
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ed77
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42bd76
or dword [ebp + 0x10], 0x200000
jmp 0x42bdba
or dword [ebp + 0x10], 0x40000
jmp 0x42bdba
mov eax, dword [0x4499e0]
cmp eax, dword [ebp - 8]
je 0x42bdba
push eax
call fcn.00417741
cmp eax, ebx
pop ecx
je 0x42bdba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42bdba
mov eax, dword [0x4499e4]
cmp eax, dword [ebp - 8]
je 0x42bdba
push eax
call fcn.00417741
cmp eax, ebx
pop ecx
je 0x42bdba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4499dc]
call fcn.00417741
cmp eax, ebx
pop ecx
je 0x42bdda
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bddc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5e0008], 0x8088405
inc edx
mov dword [ebx + 0x5e0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5c389e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c38a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5c4c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x5e25f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x5e25f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x5e13fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c4c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401370
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x42752a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.00401000
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], ebx
call fcn.00401000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.00401000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.00401000
lea eax, [esp + 0xc]
mov byte [esi + 0xc0], 1
push eax
mov dword [esi + 0xc4], 0xc
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
push 0x202
mov dword [esi], 0x428518
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xac], eax
mov byte [esi + 0xb8], bl
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xd4], ebx
mov byte [esi + 0xd8], bl
mov ecx, dword [str.F_f]
mov eax, esi
mov dword [esi + 0xb4], ecx
mov ecx, dword [esp + 0x19c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x401530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0xd8], al
call fcn.00401d20
mov ecx, esi
call fcn.00401a90
mov ecx, dword [esi + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
xor ebx, ebx
push 1
push 2
mov byte [esi + 0xb8], bl
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [esp + 0x38]
mov dword [esi + 0xa8], eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
jne 0x401591
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x28
ret 0xc
mov eax, dword [esp + 0x3c]
mov word [esp + 0x24], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov ecx, dword [edi + 0xc]
push 0x10
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [edx]
mov edx, dword [esi + 0xa8]
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4015d7
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x28
ret 0xc
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0x40]
push 4
push eax
push 8
push 0xffff
push ecx
mov dword [esp + 0x54], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401657
xor edx, edx
push ebx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
push ebx
push ecx
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], eax
push 0xc
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x98000004
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 0xea60
mov dword [esp + 0x38], 0x1388
mov dword [esp + 0x30], 1
mov dword [esp + 0x5c], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov byte [esi + 0xb8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push ebx
push ebx
push esi
push 0x4016c0
push ebx
push ebx
mov dword [esi + 0xd0], eax
call fcn.0040baa0
mov dword [esi + 0xa4], eax
mov al, byte [esi + 0xd8]
add esp, 0x1c
cmp al, bl
je 0x4016a8
push 1
push ebx
push ebx
push esi
push 0x4017a0
push ebx
push ebx
call fcn.0040baa0
add esp, 0x1c
mov dword [esi + 0xd4], eax
mov dword [esi + 0xb0], ebx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x28
ret 0xc