joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41080b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410831
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x410831
xor al, al
jmp 0x410846
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x1005ad60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101258d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005ad90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1005adc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1005adc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1005aebe
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005ade9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1005ae1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1005ae7c
sub eax, 1
je 0x1005ae7c
sub eax, 2
jne 0x1005aebe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100b33b0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005ae9d
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005aebe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1005aebe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
Function at 0x100b33b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100b33bf
pop dword [ebp - 0x24]
mov eax, 0x34f34c12
add eax, 0xdb17e7ad
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x40750ae5
sub dword [ebp - 0x34], 0xf222c59a
mov dword [ebp - 0x30], 0x31910829
sub dword [ebp - 0x30], 0xff5dbbe4
mov dword [ebp - 0x2c], 0x43f4e16f
sub dword [ebp - 0x2c], 0xf7a89d41
mov dword [ebp - 0x28], 0x45c5bf80
sub dword [ebp - 0x28], 0x45c5bf80
lea eax, [ebp - 0x34]
push eax
mov eax, 0xa3815f69
add eax, 0x6c8dd1a7
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x84206383
add dword [ebp - 0x34], 0xf05205d3
mov dword [ebp - 0x30], 0xc82ddad3
sub dword [ebp - 0x30], 0x86c1795e
mov dword [ebp - 0x2c], 0xa5d0d389
add dword [ebp - 0x2c], 0xbd9e98e3
mov dword [ebp - 0x28], 0x4d9a7741
add dword [ebp - 0x28], 0xb26588bf
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x86e49
push 0
call eax
mov ecx, 0x4c2c
mov edi, eax
mov ebx, 0x8748280b
sub ebx, 0x7734be0b
add ebx, dword [ebp - 0x24]
mov edx, 0x350008d7
xor dword [ebp - 0x10], 0x48be41d8
mov esi, dword [ebx]
add dword [ebp - 4], 0x48a7a769
sub esi, edx
xor dword [ebp - 0x20], edi
mov dword [edi], esi
xor dword [ebp - 0x14], ebx
add edi, 0xd8087f8f
sub edi, 0xd8087f8b
add ebx, 4
loop 0x100b34d0
add eax, 0xca39d516
add eax, 0x35c74e6d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7c01d586
add ecx, 0x93fe2a7a
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40105a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x42f648]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42f64c]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401053
mov eax, dword [0x42f650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42f654]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1a2020c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1a20208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a2015c], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a20204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a2020c], 0xc
mov dword [ebp - 4], eax
jne 0x401165
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x40519b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e2a8]
jne 0x4051a5
repz ret
jmp fcn.0040b4a7

Function at 0x40bf1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407c7c
and dword [ebp - 4], 0
cmp dword [0x438a04], 0
mov ebx, eax
jne 0x40bfcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c07c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c07c
push eax
call fcn.00407c0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438a04], eax
call esi
push eax
call fcn.00407c0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438a08], eax
call esi
push eax
call fcn.00407c0a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438a0c], eax
call esi
push eax
call fcn.00407c0a
pop ecx
mov dword [0x438a14], eax
test eax, eax
je 0x40bfcb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c0a
pop ecx
mov dword [0x438a10], eax
mov eax, dword [0x438a10]
cmp eax, ebx
je 0x40c023
cmp dword [0x438a14], ebx
je 0x40c023
push eax
call fcn.00407c85
push dword [0x438a14]
mov esi, eax
call fcn.00407c85
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c023
test edi, edi
je 0x40c023
call esi
test eax, eax
je 0x40c01a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c01a
test byte [ebp - 0xc], 1
jne 0x40c023
or dword [ebp + 0x10], 0x200000
jmp 0x40c05c
mov eax, dword [0x438a08]
cmp eax, ebx
je 0x40c05c
push eax
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c05c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c05c
mov eax, dword [0x438a0c]
cmp eax, ebx
je 0x40c05c
push eax
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c05c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438a04]
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c07c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c07e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40cb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40cb5f
pop dword [ebp - 0x3c]
mov eax, 0x392317e5
sub eax, 0x38e24c86
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x37966
push 0
mov eax, 0x4c01c4d8
sub eax, 0x4bc0e400
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x27917f0
add ecx, 0xfd872975
mov edi, eax
mov esi, 0x70ba73a
add esi, 0xf935948a
add esi, dword [ebp - 0x3c]
mov ebx, 0xc50779a4
sub dword [ebp - 0x2c], edx
mov edx, dword [esi]
xor dword [ebp - 0x20], edi
add edx, ebx
sub dword [ebp - 0x18], ecx
mov dword [edi], edx
xor dword [ebp - 0x28], esi
add edi, 0xc506e5e0
add edi, 0x3af91a24
add esi, 4
loop 0x40cbb8
add eax, 0xa141131e
add eax, 0x5ebfe549
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x40d673
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d6a4
call fcn.00403763
mov dword [eax], esi
call fcn.00403750
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cb50
add esp, 0x14
push 0x16
pop eax
jmp 0x40d6f9
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d680
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d6d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040cb50
pop ecx
call fcn.00403750
mov eax, dword [eax]
jmp 0x40d6f9
test al, 0x10
jne 0x40d6f7
test al, 1
je 0x40d6f7
test byte [ebp + 0xc], 2
je 0x40d6f7
call fcn.00403763
mov dword [eax], 5
call fcn.00403750
mov dword [eax], 0xd
jmp 0x40d6c8
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x403360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
mov eax, dword [0x4664d0]
push ebx
push esi
push edi
mov dword [esp + 0x1bc], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0xb0], bl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0xb1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 3
lea ecx, [esp + 0x30]
stosb byte es:[edi], al
call fcn.00403140
push 0x104
lea eax, [esp + 0xb4]
push eax
push str.TEMP
mov dword [esp + 0x1d8], ebx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp eax, 0x104
ja 0x4034a9
cmp eax, ebx
je 0x4034a9
push 0x452d00
push 0x452cfc
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00402c40
add esp, 8
push eax
call fcn.00402c40
add esp, 8
push eax
call fcn.00402c40
add esp, 8
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403340
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
jb 0x40343b
mov eax, dword [eax + 4]
jmp 0x40343e
add eax, 4
push 0x452cf8
push eax
call fcn.004231cc
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, edi
jb 0x403463
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004388a9
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jne 0x4034a0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004024d0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x452c34
call fcn.00431807
xor al, al
jmp 0x4034d0
push esi
call fcn.0042311f
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004024d0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x452c34
call fcn.00431807
mov al, 1
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1bc]
call fcn.00422ede
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4049c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0xc]
call fcn.0040b7d0
push 0x2001
mov dword [esp + 0x3c], 0
mov bl, 1
call fcn.004388ae
mov esi, eax
add esp, 4
test esi, esi
je 0x404a39
push edi
xor eax, eax
mov ecx, 0x800
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp dword [ebp + 0x18], 0x10
pop edi
jb 0x404a1c
mov ebp, dword [ebp + 4]
jmp 0x404a1f
add ebp, 4
push 0x2000
push 0x2000
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040d1e0
cmp eax, 1
je 0x404a3d
xor bl, bl
jmp 0x404a56
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a42
mov ecx, dword [esp + 0x40]
sub eax, edx
push eax
push esi
call fcn.00402f40
test esi, esi
je 0x404a63
push esi
call fcn.004388a9
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040b920
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x407100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44ea28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x4664d0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
xor ebx, ebx
push 0x4532c0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00402f40
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x48]
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], eax
add ebp, 0xc
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x407184
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
push ecx
add edx, edi
push edx
push eax
mov ecx, ebp
call fcn.00404430
cmp esi, ebx
mov edi, eax
je 0x4071a2
add esi, dword [esp + 0x48]
mov eax, edi
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.00404770
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.00402e50
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x78], 1
jb 0x4071e8
mov edx, dword [esp + 0x1c]
push edx
call fcn.004388a9
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00406e80
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x407214
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
push ecx
push edi
push eax
mov ecx, ebp
call fcn.00404430
mov esi, eax
cmp esi, 0xffffffff
jne 0x407175
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp eax, esi
jb 0x407247
mov edx, dword [esp + 0x54]
push edx
call fcn.004388a9
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
cmp eax, esi
pop esi
pop ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x5c], 0xf
pop ebx
jb 0x407270
mov eax, dword [esp + 0x28]
push eax
call fcn.004388a9
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
call fcn.00422ede
add esp, 0x6c
ret
Function at 0x40ce60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4664d0]
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x2c], eax
mov esi, ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0040c8c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x60], 1
mov byte [ecx + 4], bl
call fcn.00402e50
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x40ced8
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
push ecx
push eax
push edx
push ebp
mov ecx, esi
call fcn.0040a930
cmp dword [esp + 0x28], 0x10
jb 0x40cf03
mov eax, dword [esp + 0x14]
push eax
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40cf27
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004388a9
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
mov eax, ebp
call fcn.00422ede
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x28
Function at 0x40d6e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x40d786
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x40d759
cmp word [ecx + 0xa], 4
jne 0x40d759
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40d759
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call fcn.0040d670
test eax, eax
mov dword [esi], eax
je 0x40d77a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40d730
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.004237a0
add esp, 0xc
pop edi
pop ebp
pop esi
mov byte [ebx + 0x400], 0
xor eax, eax
pop ebx
ret 0x18
pop edi
pop ebp
pop esi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40d796.11001
jmp dword [eax*4 + 0x40d7bc]
pop esi
mov eax, 0x2af9
pop ebx
ret 0x18
pop esi
mov eax, 0x2afa
pop ebx
ret 0x18
pop esi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x40dfc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4664d0]
mov dword [esp + 0x22c], eax
mov eax, dword [0x46762c]
test eax, eax
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x40da40
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x40dd30
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0040d9f0
jne 0x40e122
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x40e118
xor eax, eax
jmp 0x40e030
mov cl, byte [esp + eax + 0x124]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x40e030
push edi
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e046
mov edx, dword [str.ws2_32]
mov eax, dword [0x453664]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40e08d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40e0df
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
nop
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x40e090
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e0a5
mov edx, dword [str.wship6]
mov eax, dword [0x45365c]
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov esi, eax
test esi, esi
je 0x40e114
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40e0df
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40e114
xor edi, edi
mov edx, dword [esp + edi*8 + 0x10]
push edx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x40e0d6
inc edi
cmp edi, 3
jl 0x40e0e1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [0x465158], eax
mov dword [0x465160], ecx
mov dword [fcn.0040d9f0], edx
pop esi
pop ebp
pop ebx
pop edi
mov dword [0x46762c], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [eax*8 + 0x465158]
call fcn.00422ede
add esp, 0x230
ret 4
Function at 0x40ecc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.0040e940
mov esi, dword [eax]
cmp esi, ebx
je 0x40ed11
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x40ed23
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x40ed58
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40ed43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
push 0x4536bc
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40ed94
mov dword [edi], ebx
mov ecx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40edc4
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40edc4
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x40eda4
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi]
push esi
mov byte [esp + 0x20], bl
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x40edc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc