joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100161d7
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x1013811c
call fcn.1011f22e
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x10016205
call fcn.10008dcb
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x10016200
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1001624d
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.10121b54
push eax
call fcn.1000474d
add esp, 0x14
push ebx
push edi
call fcn.100161aa
xor eax, eax
jmp 0x1001636e
cmp eax, 0x104
jb 0x1001626a
test edi, edi
je 0x10016246
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.1000563c
jmp 0x10016246
call fcn.10009afa
push eax
lea ecx, [ebp - 0x15c]
call fcn.100041b4
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.10015b6d
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x10016363
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100162d5
push ebx
push edi
call fcn.100161aa
lea ecx, [esi - 0x10]
call fcn.10003263
jmp 0x10016246
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x100162f1
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x10016363
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10016363
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x100162c1
cmp eax, dword [ebp - 0x158]
jbe 0x100162c1
lea eax, [ebp - 0x124]
push eax
call fcn.10120ab0
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x10016376
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.1012170b
push eax
call fcn.1000474d
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.10003263
xor eax, eax
inc eax
call fcn.1011f1dd
ret 0xc
test edi, edi
je 0x100162c8
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.1000563c
jmp 0x100162c8

Function at 0x10019ab6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10003044
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10019aed
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10019b0e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c001
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001067d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001c03d
call fcn.1001c220
mov dword [esi + 0xc], 1
jmp 0x1001c042
call fcn.1001c220
cmp dword [esi], 0
je 0x1001c08b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001c065
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000bf33
jmp 0x1001c076
push 0xff
mov ecx, esi
call fcn.100031f3
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10005fe8
jmp 0x1001c0af
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x1001c0af
push dword [esi]
push dword [ebp - 4]
call fcn.10010ace
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001c175
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1001c220
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001c1bd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000bf33
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10005fe8
jmp 0x1001c1c8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10010ace
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1001c264
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101a3590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov dword [ebp - 0x48], esi
call fcn.1001c220
cmp dword [edi], 0
mov ebx, eax
mov dword [edi + 0xc], 1
je 0x1001c2d5
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push 0x40
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.101233be
add esp, 0x10
cmp eax, 1
je 0x1001c323
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.100068ff
mov ecx, edi
call fcn.1001c1ce
jmp 0x1001c323
call fcn.1012117c
mov edi, dword [eax]
call fcn.1012117c
and dword [eax], 0
lea eax, [ebp + 0x18]
push eax
push esi
push 0x3f
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.10120f05
add esp, 0x14
call fcn.1012117c
cmp dword [eax], 0
je 0x1001c312
call fcn.1012117c
push dword [eax]
call fcn.100049b0
pop ecx
jmp 0x1001c319
call fcn.1012117c
mov dword [eax], edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.10010ace
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011e2a7
mov esp, ebp
pop ebp
ret
Function at 0x1002b1c6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x101a3590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1002b21b
xor eax, eax
test esi, esi
sete al
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x26c]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011e2a7
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b357
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x101a3590]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test edx, edx
je 0x1002b576
test esi, esi
je 0x1002b576
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], ebx
sub eax, ebx
je 0x1002b547
dec eax
je 0x1002b3e9
dec eax
je 0x1002b4af
dec eax
jne 0x1002b561
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x108]
push eax
push dword [edx + 4]
call edi
test eax, eax
je 0x1002b542
push ebx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10018de6
test eax, eax
je 0x1002b542
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x1002b4a7
push ebx
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10018de6
test eax, eax
je 0x1002b4a7
cmp dword [ebp + 0x10], 1
jne 0x1002b507
test byte [ebp - 0x43c], 0x10
jne 0x1002b542
test byte [ebp - 0x314], 0x10
jne 0x1002b4a7
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
cmp dword [ebp - 0x440], ecx
ja 0x1002b4a7
jb 0x1002b542
cmp dword [ebp - 0x444], eax
jb 0x1002b542
cmp dword [ebp - 0x440], ecx
jb 0x1002b561
ja 0x1002b4a7
cmp dword [ebp - 0x444], eax
jbe 0x1002b561
xor ebx, ebx
inc ebx
jmp 0x1002b561
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x71c]
push 0x408
push 0x160
push eax
push ebx
push dword [edx + 4]
call edi
test eax, eax
je 0x1002b561
push 0x408
push 0x160
lea eax, [ebp - 0x5bc]
push eax
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x1002b561
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, eax
jmp 0x1002b561
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.1002aaa5
test al, al
jne 0x1002b542
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.1002aac4
xor ebx, ebx
test al, al
setne bl
jmp 0x1002b561
or ebx, 0xffffffff
jmp 0x1002b561
push dword [esi + 8]
mov eax, dword [edx]
push dword [edx + 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x1002b55e
xor eax, eax
jmp 0x1002b563
movsx ebx, ax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011e2a7
mov esp, ebp
pop ebp
ret 0xc
call fcn.10008dcb
int3
Function at 0x1002bb23
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x1013942e
call fcn.1011f22e
mov edi, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov esi, dword [ebp + 8]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x3a4], ebx
setne al
test eax, eax
jne 0x1002bb52
call fcn.10008dcb
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x1002bc7a
dec eax
je 0x1002bba4
dec eax
je 0x1002bb7c
dec eax
je 0x1002bba4
push 0x10146db0
mov ecx, esi
call fcn.100041dd
mov eax, esi
call fcn.1011f1dd
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1002bb66
lea eax, [ebp - 0x28c]
push eax
jmp 0x1002bb6b
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1002bb66
push ebx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call fcn.10018de6
test eax, eax
je 0x1002bb66
call fcn.10009afa
push eax
lea ecx, [ebp - 0x3a0]
call fcn.100041b4
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], ebx
jne 0x1002bc3a
test byte [ebp - 0x21c], 0x18
jne 0x1002bc52
mov eax, dword [edi]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov ecx, edi
push dword [ebp - 0x224]
call dword [eax + 0x19c]
jmp 0x1002bc52
mov eax, dword [edi]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov ecx, edi
call dword [eax + 0x1a0]
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10004a63
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [esi], eax
lea ecx, [ecx - 0x10]
call fcn.10003263
jmp 0x1002bb72
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1002bb66
lea eax, [ebp - 0x390]
jmp 0x1002bba1

Function at 0x1002be2b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100629d2
call fcn.10003098
cmp dword [eax + 0x14], 0
jne 0x1002be46
mov ecx, esi
pop esi
jmp fcn.1002b22c
pop esi
ret

Function at 0x1002cb61
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10119fb6
call fcn.10003098
cmp dword [eax + 0x14], 0
jne 0x1002cb7c
mov ecx, esi
pop esi
jmp fcn.1002c44a
pop esi
ret
Function at 0x10062d37
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10062d85
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.10120ab0
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x10062d7a
mov edx, ecx
movsx ecx, byte [edi + esi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x10062d68
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10008dcb
int3
Function at 0x100bf7d2
Capabilities:
Get file system object information

Disassembly:
push 0x270
mov eax, 0x10140d35
call fcn.1011f22e
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10004a63
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x101473dc
call fcn.10004caa
cmp eax, 0xffffffff
jne 0x100bf8b7
push 0
push 0x1014dac4
lea ecx, [ebp - 0x278]
call fcn.10004caa
cmp eax, 0xffffffff
jne 0x100bf8b7
push 0
push 0x10147350
lea ecx, [ebp - 0x278]
call fcn.10004caa
cmp eax, 0xffffffff
jne 0x100bf8b7
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10004a63
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x27c], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x114]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x100bf893
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.10003263
jmp 0x100bf8e6
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.1000563c
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.10003263
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x100bf8dd
mov ebx, dword [ebp - 0x274]
jmp 0x100bf8e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.10003263
mov eax, ebx
call fcn.1011f1dd
ret
Function at 0x100e32ff
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x101428b6
call fcn.1011f22e
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.10102751
push 0x1c4
call fcn.10002d5f
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100e3342
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.10102d84
jmp 0x100e3344
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.10101bcc
call fcn.10003044
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.10120ab0
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x100e3561
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x100e355b
xor esi, esi
mov dword [ebp - 0x120], esi
cmp dword [ebx + 4], eax
jle 0x100e355b
call fcn.10009afa
push eax
lea ecx, [ebp - 0x118]
call fcn.100041b4
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x100e3539
push 0x10156598
mov esi, 0x1015659c
lea ecx, [ebp - 0x118]
push esi
call fcn.10030ae2
push esi
push 0x1014d9e8
lea ecx, [ebp - 0x118]
call fcn.10030ae2
push esi
push 0x10156598
lea ecx, [ebp - 0x118]
call fcn.10030ae2
call fcn.10009afa
push eax
lea ecx, [ebp - 0x124]
call fcn.100041b4
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x100e3465
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.10__s
push eax
call fcn.10004d47
add esp, 0xc
jmp 0x100e3497
jge 0x100e3485
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x124]
push str._d__s
push eax
call fcn.10004d47
add esp, 0x10
jmp 0x100e3497
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x124]
call fcn.100045fa
push 0x1c4
call fcn.10002d5f
pop ecx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x100e34c1
mov ecx, eax
call fcn.1008ac36
mov ecx, eax
mov dword [ebp - 0x11c], eax
jmp 0x100e34c9
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x124]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.100066e4
mov ecx, dword [ebp - 0x11c]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.10101bcc
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.10003263
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10003263
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebx + 4]
jl 0x100e33ba
call fcn.1011f1dd
ret
call fcn.101224f5
int3
Function at 0x404aa0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jb 0x404ac1
mov ecx, dword [ebp - 8]
call fcn.00404b10
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jae 0x404ae0
xor eax, eax
jmp 0x404b04
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x404aff
xor eax, eax
jmp 0x404b04
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404b10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
jb 0x404b7e
mov ecx, 1
mov word [ebp - 8], cx
mov edx, 2
mov word [ebp - 6], dx
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x404df0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
movzx eax, word [0x40d0a8]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jge 0x404e18
xor eax, eax
jmp 0x404e8b
mov edx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov dword [ebp - 4], 0x3e8
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404e54
xor eax, eax
jmp 0x404e8b
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3e8
mov dword [ebp - 4], ecx
push 4
lea edx, [ebp - 4]
push edx
push 0x1005
push 0xffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404e86
xor eax, eax
jmp 0x404e8b
mov eax, 1
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esp, ebp
pop ebp
ret 8
Function at 0x4055d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406862
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x40d018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x405631
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
movzx ecx, byte [ebp - 0x14]
test ecx, ecx
jne 0x405631
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40569c
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40567f
push 0x407551
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov edx, dword [ebp - 0x24]
or edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
jmp 0x40573d
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x10], 0xffffffff
je 0x405713
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
movzx ecx, byte [ebp - 0x19]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
movzx eax, byte [ebp - 0x1b]
push eax
movzx ecx, byte [ebp - 0x1c]
push ecx
push 0x40762c
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
jmp 0x40573d
push 0x407552
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov edx, dword [ebp - 0x24]
or edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret