joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7791
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4f7819
cmp dword [esi + 0x10], 0
je 0x4f7819
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0051bdf0
mov ebx, esp
test ebx, ebx
je 0x4f7819
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.004bdd06
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004bbb23
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7b5f
test al, al
je 0x4f7819
mov ecx, dword [esi + 0x10]
call fcn.004c0043
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4fc119
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5547e4
call fcn.00518bb5
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4fc1b3
lea eax, [ebp - 0xa8]
push eax
call fcn.004fbd2e
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7893
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004beaad
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004eead6
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7437
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004be332
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004bdc6e
test bl, bl
je 0x4fc1f0
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.004fc25f
test al, al
je 0x4fc203
push 0x56e714
jmp 0x4fc208
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.0050b860
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00518b64
ret 4
Function at 0x4fc771
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4fc79d
xor eax, eax
jmp 0x4fc81a
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0050c840
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4fc799
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0050b860
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret

Function at 0x4fc917
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x554846
call fcn.00518bb5
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4fc9d4
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4fc9ac
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004fc4f6
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7893
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004beaad
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004eead6
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7437
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004be332
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004bdc6e
test bl, bl
je 0x4fca10
call fcn.004fc771
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00518b64
ret 4
Function at 0x505044
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x505092
cmp edi, 0x28
jbe 0x50508c
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x505092
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x50509e
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0050c840
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004bdb6b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0xc

Function at 0x505398
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x555095
call fcn.00518bb5
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x5054a8
lea eax, [ebp - 0xa4]
push eax
call fcn.00504b8e
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7893
push eax
mov ecx, ebx
call fcn.004beaad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5054a8
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004eead6
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7437
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.005058d3
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.00504e92
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.004bdce7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004bdc6e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.00518b64
ret 4

Function at 0x512561
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x53bf7b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0051e074
mov dword [ebp - 0x14], eax
cmp dword [0x5b4b5c], esi
jne 0x53c06e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53bffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53c14e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53c14e
push 0x57bdf0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53c14e
push eax
call ebx
push 0x57bdfc
push edi
mov dword [0x5b4b5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5b4b60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b4b64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b4b6c], eax
test eax, eax
je 0x53c06b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b4b68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53c093
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53c086
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x53c0a8
push 4
pop eax
jmp 0x53c150
cmp dword [ebp - 0x14], esi
je 0x53c0a8
push dword [0x5b4b5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53c08d
mov eax, dword [0x5b4b68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53c106
cmp dword [0x5b4b6c], edi
je 0x53c106
push eax
call ebx
push dword [0x5b4b6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53c106
test eax, eax
je 0x53c106
call ecx
test eax, eax
je 0x53c0fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53c0fb
test byte [ebp - 8], 1
jne 0x53c106
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53c136
mov eax, dword [0x5b4b60]
cmp eax, edi
je 0x53c133
push eax
call ebx
test eax, eax
je 0x53c133
call eax
mov esi, eax
test esi, esi
je 0x53c133
mov eax, dword [0x5b4b64]
cmp eax, edi
je 0x53c133
push eax
call ebx
test eax, eax
je 0x53c133
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b4b5c]
call ebx
test eax, eax
je 0x53c14e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53c150
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b792
mov esp, ebp
pop ebp
ret
Function at 0x4055a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45be5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
mov eax, dword [0x4774f0]
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.00404000
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 0x4056e9
cmp eax, ebx
je 0x4056e9
push str.htstfld.tmp
push 0x460e1c
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00403000
add esp, 8
push eax
call fcn.00403000
add esp, 8
push eax
call fcn.00403000
add esp, 8
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405580
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
jb 0x40567b
mov eax, dword [eax + 4]
jmp 0x40567e
add eax, 4
push 0x460e18
push eax
call fcn.004309bf
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, edi
jb 0x4056a3
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00446038
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jne 0x4056e0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004026f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x460c84
call fcn.0043ef7a
xor al, al
jmp 0x405710
push esi
call fcn.00430912
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004026f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x460c84
call fcn.0043ef7a
mov al, 1
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1bc]
call fcn.004305ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45c268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x4774f0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
xor ebx, ebx
push 0x46138c
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.00403690
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 0x408fb4
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.00402300
cmp esi, ebx
mov edi, eax
je 0x408fd2
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.00407540
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.00403490
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x78], 1
jb 0x409018
mov edx, dword [esp + 0x1c]
push edx
call fcn.00446038
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.00408c80
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x409044
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
push ecx
push edi
push eax
mov ecx, ebp
call fcn.00402300
mov esi, eax
cmp esi, 0xffffffff
jne 0x408fa5
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp eax, esi
jb 0x409077
mov edx, dword [esp + 0x54]
push edx
call fcn.00446038
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 0x4090a0
mov eax, dword [esp + 0x28]
push eax
call fcn.00446038
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
call fcn.004305ce
add esp, 0x6c
ret
Function at 0x40cc70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4774f0]
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.0040c6d0
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.00403490
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x40cce8
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.0040a740
cmp dword [esp + 0x28], 0x10
jb 0x40cd13
mov eax, dword [esp + 0x14]
push eax
call fcn.00446038
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40cd37
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00446038
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
mov eax, ebp
call fcn.004305ce
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x28
Function at 0x40d4f0
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 0x40d596
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x40d569
cmp word [ecx + 0xa], 4
jne 0x40d569
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40d569
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.0040d480
test eax, eax
mov dword [esi], eax
je 0x40d58a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40d540
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.00430e10
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.0x40d5a6.11001
jmp dword [eax*4 + 0x40d5cc]
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 0x40ddd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4774f0]
mov dword [esp + 0x22c], eax
mov eax, dword [0x478650]
test eax, eax
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x40d850
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x40db40
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0040d800
jne 0x40df32
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x40df28
xor eax, eax
jmp 0x40de40
mov cl, byte [esp + eax + 0x124]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x40de40
push edi
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40de56
mov edx, dword [str.ws2_32]
mov eax, dword [0x4616a4]
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 0x40de9d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40deef
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 0x40dea0
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40deb5
mov edx, dword [str.wship6]
mov eax, dword [0x46169c]
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov esi, eax
test esi, esi
je 0x40df24
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40deef
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40df24
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 0x40dee6
inc edi
cmp edi, 3
jl 0x40def1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [0x476168], eax
mov dword [0x476170], ecx
mov dword [fcn.0040d800], edx
pop esi
pop ebp
pop ebx
pop edi
mov dword [0x478650], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [eax*8 + 0x476168]
call fcn.004305ce
add esp, 0x230
ret 4
Function at 0x411270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45cd50
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.00410f40
mov esi, dword [eax]
cmp esi, ebx
je 0x4112c1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], esi
je 0x4112d3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x411308
mov eax, dword [esp + 8]
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov dword [esi], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x4112f3
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 0x46178c
push esi
call dword [edx]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x411344
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 0x411374
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x411374
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x411354
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 0x411374
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