joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a10
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a4d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a6d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d2c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c34
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404abc
test esi, esi
jne 0x402c6a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404bac
jmp 0x402c88
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae8
mov edi, eax
test esi, esi
je 0x402c88
cmp dword [ebx], 0
je 0x402c88
dec esi
jmp 0x402c71
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403334
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403a18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ab0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a90
xor eax, eax
push ebp
push 0x403a89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403acc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d0024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40489c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d504c], 0
je 0x4048fd
cmp word [0x4d5220], 0xd7b2
jne 0x4048c5
cmp dword [0x4d5228], 0
jbe 0x4048c5
mov eax, 0x4d521c
call dword [fcn.004d5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d0094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404924
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d0034], 0
jne 0x404919
push 0
push 0x4d008c
push 0x4d0094
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4065b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406637
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406637
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406800
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066c0
xor eax, eax
push ebp
push 0x4066b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406820
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyn
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4067da
cmp byte [ebp - 0xd], 0
jne 0x406707
cmp byte [ebp - 0x12], 0
je 0x4067da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406720
dec ebx
cmp byte [ebx], 0x2e
je 0x40672f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40671f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40676c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067da
cmp byte [ebp - 0xd], 0
je 0x4067da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406f56
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d2c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403474
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f5d
lea eax, [ebp - 0x10]
call fcn.00404abc
ret

Function at 0x40d050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bac
jmp 0x40d092
mov eax, ebx
mov edx, esi
call fcn.00404b10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d09c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d0bd
mov al, byte [esp]
jmp 0x40d0bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e0c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e19e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b54
lea eax, [ebp - 8]
call fcn.00404fe8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f98
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e188
mov eax, ebx
call fcn.00402828
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e181
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f98
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e16b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e1b0
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e16b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e188
mov eax, dword [ebp - 0x10]
call fcn.00402848
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1a5
lea eax, [ebp - 8]
call fcn.00404abc
ret
Function at 0x40e724
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e788
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d2c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004099c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e78f
lea eax, [ebp - 0xc]
call fcn.00404abc
ret

Function at 0x427878
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4278c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00427648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4278dd
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x429068
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d588c
cmp dword [edi], 0
jne 0x4290e4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d06f0
mov ecx, 2
call fcn.00402aa8
mov edx, 0x429040
lea eax, [esi + 5]
call fcn.00429060
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429060
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4290b9
mov dword [0x4d5888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42a3c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404f88
mov eax, dword [ebp - 8]
call fcn.00404f88
xor eax, eax
push ebp
push 0x42a4c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x42a415
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42a415
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405038
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404f98
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42a4a6
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404f98
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42a496
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405124
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404f98
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00404d98
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404ff8
jmp 0x42a49d
mov eax, ebx
call fcn.00404abc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a4c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ae0
ret

Function at 0x42b06c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404f88
xor eax, eax
push ebp
push 0x42b156
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d98
dec eax
jle 0x42b0d5
mov edx, dword [ebp - 4]
mov eax, 0x42b16c
call fcn.004050dc
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d98
dec eax
cmp ebx, eax
jne 0x42b0d5
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d98
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404ff8
mov eax, dword [ebp - 4]
call fcn.00404d98
mov ebx, eax
test ebx, ebx
jle 0x42b10c
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00404ff0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x42b0ea
mov eax, dword [ebp - 4]
call fcn.00404d98
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x42b140
lea eax, [ebp - 4]
call fcn.00404ff0
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b15d
lea eax, [ebp - 4]
call fcn.00404abc
ret
Function at 0x42b498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405124
cmp dword [ebp - 4], 0
jle 0x42b4d5
mov eax, ebx
call fcn.00404ff0
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.00404d98
mov esi, eax
test esi, esi
jle 0x42b509
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00404ff0
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x42b4e9
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42c538
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402aa8
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42c5e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00404f88
xor eax, eax
push ebp
push 0x42c7d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042c4f8
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0042c4f8
mov dword [ebp - 4], eax
test esi, esi
jne 0x42c654
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, 0x42c7ec
mov dl, 1
mov eax, dword [0x42c3c0]
call fcn.0040d86c
call fcn.00404438
jmp 0x42c69b
cmp esi, 0x7fffffff
jbe 0x42c69b
mov eax, dword [0x4d4960]
cmp dword [eax], 2
je 0x42c69b
mov eax, esi
call fcn.00406348
lea edx, [ebp - 0x18]
call fcn.0042c5b8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, 0x42c81c
mov dl, 1
mov eax, dword [0x42c474]
call fcn.0040d86c
call fcn.00404438
xor edx, edx
push ebp
push 0x42c783
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x43
call fcn.00402828
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x2d
lea eax, [ebx + 0x16]
push eax
call sub.kernel32.dll_VirtualProtect
lea eax, [ebx + 0x16]
mov byte [eax], 0x50
mov dword [eax + 1], 0x424448b
mov byte [eax + 5], 0xa3
lea edx, [ebx + 8]
mov dword [eax + 6], edx
mov byte [eax + 0xa], 0x58
mov byte [eax + 0xb], 0x83
mov word [eax + 0xc], 0x4c4
mov byte [eax + 0xe], 0x68
mov dword [eax + 0xf], ebx
mov byte [eax + 0x13], 0xe8
mov edx, fcn.0042c598
lea ecx, [ebx + 0x29]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], 0xe8
lea edx, [ebx + 0x2e]
mov ecx, esi
sub ecx, edx
sub ecx, 5
mov dword [eax + 0x19], ecx
mov byte [eax + 0x1d], 0x68
mov dword [eax + 0x1e], ebx
mov byte [eax + 0x22], 0xe8
mov edx, fcn.0042c578
lea ecx, [ebx + 0x38]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x23], edx
mov word [eax + 0x27], 0x25ff
lea edx, [ebx + 8]
mov dword [eax + 0x29], edx
lea edi, [ebx + 0x16]
mov dword [ebx], esi
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea edx, [ebx + 0xc]
mov eax, esi
mov ecx, 5
call fcn.00402aa8
mov edx, ebx
mov eax, dword [0x4d58c4]
call fcn.0041e3c4
mov byte [ebx + 0x11], 0xe9
mov eax, dword [ebp - 4]
sub eax, esi
sub eax, 5
mov dword [ebx + 0x12], eax
push ebx
call fcn.0042c578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42c7b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c7d8
lea eax, [ebp - 0x18]
call fcn.00404abc
lea eax, [ebp - 8]
call fcn.00404abc
ret
Function at 0x42cd98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x42ce0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d2c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004099c4
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.GDI32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce14
lea eax, [ebp - 0x2c]
call fcn.00404abc
ret

Function at 0x42d060
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d0cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x2c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, eax
test esi, esi
je 0x42d0b6
push 0
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0040d004
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 8]
mov edx, 0x42d0e4
mov eax, ebx
call fcn.0042d1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d0d3
lea eax, [ebp - 0xc]
call fcn.00404abc
ret

Function at 0x42d194
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404f98
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403314
test ebx, ebx
je 0x42d1df
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x42d430
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d5a0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x42d585
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x42d49a
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040d004
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d5b8
mov eax, ebx
call fcn.0042d1f0
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0042d194
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x42d51c
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040d004
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d5d8
mov eax, ebx
call fcn.0042d1f0
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x42d5f8
call fcn.0040a994
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x1bc]
call fcn.00404b10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d5a7
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ae0
ret