joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x40b31c]
call fcn.00408524
add esp, 4
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, esi
test eax, eax
je 0x40fa41
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x40fa4c
xor ebx, ebx
jmp 0x40fbd8
push 0xa
lea eax, [ebp - 0xd]
push eax
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [0x40e8c8]
call fcn.0040f860
mov ebx, eax
test ebx, ebx
je 0x40fa6f
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x40fa73
mov byte [ebp - 0xd], 0
test ebx, ebx
jne 0x40fa96
push 0xe
mov eax, esi
call fcn.004073dc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40fa96
mov eax, dword [ebp + 0xc]
mov byte [eax], 3
test ebx, ebx
jne 0x40fab9
push 2
mov eax, esi
call fcn.004073dc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40fab9
mov eax, dword [ebp + 0xc]
mov byte [eax], 2
test ebx, ebx
jne 0x40fadc
push 0xc
mov eax, esi
call fcn.004073dc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40fadc
mov eax, dword [ebp + 0xc]
mov byte [eax], 4
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
cmp al, 7
ja 0x40faf0
and eax, 0x7f
movzx edx, byte [ebp + 8]
bt edx, eax
jae 0x40faf9
mov bl, 1
jmp 0x40fbd8
test ebx, ebx
je 0x40fbb1
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40fbb1
cmp dword [ebp - 0xc], 0xffffffff
je 0x40fbb1
xor eax, eax
push ebp
push 0x40fbaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
xor eax, eax
push ebp
push 0x40fb8c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
test ebx, ebx
jbe 0x40fb7e
push ebx
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x40b31c]
call fcn.00408524
add esp, 4
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, esi
mov ecx, ebx
call fcn.00404510
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb93
ret
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408370
test eax, eax
setg bl
test bl, bl
je 0x40fbd8
cmp byte [ebp - 0xd], 0
je 0x40fbd8
mov eax, dword [ebp - 8]
call fcn.0040b390
test al, al
je 0x40fbd8
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4100a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004073dc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410115
test ah, 4
je 0x41010e
test bl, bl
jne 0x4100d3
mov al, 1
jmp 0x41013c
test al, 0x10
je 0x4100db
xor eax, eax
jmp 0x41013c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4100ff
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41013c
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41013c
test al, 0x10
sete al
jmp 0x41013c
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x410136
cmp ebx, 3
je 0x410136
cmp ebx, 0x7b
je 0x410136
mov eax, esi
call fcn.00410068
test al, al
jne 0x41013a
xor eax, eax
jmp 0x41013c
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x411624
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4117b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00406b14
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40b31c]
call fcn.00408524
add esp, 4
push 0xa
lea eax, [ebp - 0xd]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [0x40e8c8]
call fcn.0040f860
mov ebx, eax
test ebx, ebx
je 0x411730
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x411730
cmp dword [ebp - 0xc], 0xffffffff
je 0x411730
xor eax, eax
push ebp
push 0x411729
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov edi, eax
xor eax, eax
push ebp
push 0x41170b
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
test ebx, ebx
jbe 0x4116fd
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40b31c]
call fcn.00408524
add esp, 4
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, ebx
call fcn.00404510
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411712
ret
mov eax, dword [ebp - 4]
call fcn.00408370
test eax, eax
je 0x411796
cmp byte [ebp - 0xd], 0
je 0x41174e
lea eax, [ebp - 4]
call fcn.0040b390
test al, al
jne 0x411796
mov eax, dword [ebp - 4]
call fcn.00408370
cmp eax, 2
jl 0x411796
mov eax, dword [ebp - 4]
call fcn.00408370
mov edx, eax
sar edx, 1
jns 0x41176c
adc edx, 0
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00407548
mov eax, dword [ebp - 4]
call fcn.00408370
push eax
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00407094
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.00404510
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4117b9
lea eax, [ebp - 4]
mov edx, dword [0x40b31c]
call fcn.00408530
ret
Function at 0x412040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x412055
add esp, 0xfffffff0
call fcn.0040583c
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00405548
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
xor edi, edi
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
test bl, bl
je 0x4120a3
or edi, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
jmp 0x4120ad
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 2
mov eax, dword [ebp - 4]
add eax, 4
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push 0x412424
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], esi
cmp esi, 0xffffffff
jne 0x4120dc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4120f7
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 4
push 0x459c84
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x412134
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [0x459c70]
call fcn.004126bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41213b
push 0x459c84
call sub.kernel32.dll_LeaveCriticalSection_1
ret

Function at 0x412368
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
cmp dword [ebx + 8], 0
je 0x412393
xor edx, edx
mov eax, ebx
call fcn.004123c8
cmp al, 1
jne 0x412393
mov dl, 2
mov eax, ebx
call fcn.004123c8
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
pop ebx
pop ebp
ret

Function at 0x412818
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov ebx, eax
lea eax, [ebp - 0x20a]
xor ecx, ecx
mov edx, 0x20a
call fcn.00404a7c
push 0
push 0x10
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x4128aa
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407470
mov edx, dword [ebx]
mov eax, edx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x412877
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4128b1
mov eax, edx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x412892
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4128b1
mov eax, ebx
mov edx, 0x4128c4
call fcn.004075c8
jmp 0x4128b1
mov eax, ebx
call fcn.00406b14
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4128c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412a4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x412a37
xor edx, edx
push ebp
push 0x412a30
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
push 1
push 2
push 0
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x41293b
call fcn.0040633c
jmp 0x412a37
xor edx, edx
push ebp
push 0x412a12
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00404a7c
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004074c0
push esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00407328
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4129fb
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x522
jne 0x4129ef
push esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.004073dc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4129fb
call fcn.0040633c
call fcn.0040633c
jmp 0x412a37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a19
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a54
lea eax, [ebp - 4]
call fcn.00406b5c
ret
Function at 0x412bf4
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
setne byte [ebp - 0x19]
movzx eax, byte [ebp - 0x19]
or al, byte [ebp - 5]
je 0x412c36
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x412c4b
push 3
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
push ebp
push 0x412d8f
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
sete bl
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x412d53
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x412cee
xor eax, eax
push ebp
push 0x412ce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412cee
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
sete bl
ret
test bl, bl
jne 0x412d43
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
sete bl
cmp dword [ebp - 0x18], 0
je 0x412d50
push 0x32
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x18]
test bl, bl
jne 0x412d61
cmp dword [ebp - 0x18], 0xa
jle 0x412c6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d96
movzx eax, byte [ebp - 0x19]
xor al, 1
and al, byte [ebp - 5]
je 0x412d8e
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetWindowPos
ret
Function at 0x413e48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
push ebp
push 0x413f88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040472c
mov eax, dword [ebp - 0x14]
call fcn.004073dc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x413f6d
mov eax, dword [ebp - 4]
call fcn.0040436c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x413f66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.0040472c
mov eax, dword [ebp - 0x18]
call fcn.004073dc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x413f50
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x413f98
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x413f50
cmp dword [ebp - 4], 0
jbe 0x413f50
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [ebx + 8]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
and esi, 0xffff
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], 0
mov edi, dword [ebx + 0xc]
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
and edi, 0xffff
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x413fa8
call fcn.00410ac0
mov edx, dword [ebp - 0x1c]
mov eax, 0x459dd4
call fcn.00406ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f6d
mov eax, dword [ebp - 0xc]
call fcn.00404388
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f8f
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406b74
ret
Function at 0x4145fc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x414772
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b14
mov eax, esi
call fcn.00406b14
mov dword [ebp - 0xc], 0x824
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.00409af0
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x414750
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
add edx, edx
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00404a7c
push 0x2000000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.004073dc
push eax
call sub.wininet.dll_InternetCanonicalizeUrlW
test eax, eax
jne 0x41468e
mov byte [ebp - 1], 0
call fcn.0040633c
jmp 0x414757
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404a7c
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x34], pe_nt_image_headers32
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x18], 0x800
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 0x48]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCrackUrlW
test eax, eax
jne 0x4146f0
mov byte [ebp - 1], 0
call fcn.0040633c
jmp 0x414757
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x414712
push ebx
lea eax, [ebp - 0x4c]
mov edx, edi
call fcn.00407434
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
mov edx, 1
call fcn.00407790
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x414734
push esi
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00407434
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call fcn.00407790
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414757
mov eax, dword [ebp - 8]
push eax
call fcn.00409b00
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414779
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00406b74
ret
Function at 0x41591c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406c08
xor eax, eax
push ebp
push 0x4159c8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [esi + 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00404a7c
mov word [esi + 0x1c], 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
add al, 0xd0
sub al, 0xa
jae 0x415976
mov eax, dword [ebp - 4]
call fcn.004071e4
push eax
call sub.wsock32.dll_inet_addr
mov dword [esi + 0x20], eax
mov bl, 1
jmp 0x4159b2
mov eax, dword [ebp - 4]
call fcn.004071e4
push eax
call sub.wsock32.dll_gethostbyname
mov edi, eax
test edi, edi
je 0x4159aa
lea edx, [esi + 0x20]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00404510
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x20], eax
mov bl, 1
jmp 0x4159b2
call sub.wsock32.dll_WSAGetLastError
mov dword [esi + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4159cf
lea eax, [ebp - 4]
call fcn.00406b38
ret

Function at 0x4159d8
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x194], edx
mov esi, eax
xor eax, eax
push ebp
push 0x415a80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x18], 0
je 0x415a05
mov bl, 1
jmp 0x415a67
xor ebx, ebx
lea eax, [ebp - 0x190]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x415a5f
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov dword [esi + 4], eax
mov bl, 1
mov byte [esi + 0x18], 1
lea eax, [ebp - 0x194]
mov edx, dword [esi + 8]
mov ecx, 0
call fcn.00407274
mov edx, dword [ebp - 0x194]
mov eax, esi
call fcn.0041591c
test al, al
jne 0x415a67
xor ebx, ebx
mov eax, esi
call fcn.00415678
jmp 0x415a67
call sub.wsock32.dll_WSAGetLastError
mov dword [esi + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415a87
lea eax, [ebp - 0x194]
call fcn.00406b38
ret
Function at 0x415c20
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov word [ebp - 2], dx
mov edi, eax
xor ebx, ebx
push 4
lea eax, [edi + 0x10]
push eax
push 0x1006
push 0xffff
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x415c57
call sub.wsock32.dll_WSAGetLastError
mov dword [edi + 0x14], eax
jmp 0x415cd2
movzx eax, word [ebp - 2]
push eax
call sub.wsock32.dll_htons
mov word [edi + 0x1e], ax
push 0x10
lea eax, [edi + 0x1c]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x415c81
call sub.wsock32.dll_WSAGetLastError
mov dword [edi + 0x14], eax
jmp 0x415cd2
movzx eax, si
push eax
push 0x30
lea eax, [edi + 0x2d]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
inc eax
jne 0x415ca1
call sub.wsock32.dll_WSAGetLastError
mov dword [edi + 0x14], eax
jmp 0x415cd2
lea eax, [edi + 0x2d]
xor ecx, ecx
mov edx, 0x30
call fcn.00404a7c
movzx eax, si
push eax
push 0x30
lea eax, [edi + 0x2d]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_recv
inc eax
jne 0x415cd0
call sub.wsock32.dll_WSAGetLastError
mov dword [edi + 0x14], eax
jmp 0x415cd2
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x426398
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4263d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c9c
jmp 0x4263da
mov eax, ebx
mov edx, esi
call fcn.00406ef4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4263e4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426406
movzx eax, word [esp]
jmp 0x426408
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4270cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4271f1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426ed4
mov esi, eax
mov eax, dword [0x456154]
cmp byte [eax], 0
je 0x427199
mov eax, dword [0x45600c]
call fcn.00404a18
call fcn.004044c0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42709c]
call fcn.00408524
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42720c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4271d5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x455fe4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459c48]
call fcn.004085e8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4271f8
lea eax, [ebp - 4]
mov edx, dword [0x42709c]
call fcn.00408530
ret

Function at 0x42887c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407470
add esp, 0x800
pop ebx
ret