joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3b8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d60c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004053f0
cmp dword [0x5567fc], 1
jne 0x40d403
cmp dword [0x556800], 4
jle 0x40d442
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00405878
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40d5ee
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x424]
mov edx, dword [edx]
call fcn.00405594
jmp 0x40d5ee
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0040341c
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x41
jb 0x40d5ee
cmp byte [ebp - 0x19], 0x5a
ja 0x40d5ee
mov eax, dword [ebp - 4]
call fcn.00405678
cmp eax, 3
jl 0x40d5ee
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40d5ee
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40d5ee
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40d5ee
xor eax, eax
push ebp
push 0x40d5e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402df4
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x40d5c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x40d516
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00402e44
jmp 0x40d4d5
cmp dword [ebp - 0x10], 0
je 0x40d52b
call fcn.00404d9c
call fcn.00404d9c
jmp 0x40d5ee
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x40d4d5
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40d5a7
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.0040341c
cmp al, byte [ebp - 0x19]
jne 0x40d5a7
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 4]
call fcn.00405678
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.004058d8
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, dword [ebx + 0x14]
call fcn.00405594
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004056c4
call fcn.00404d9c
call fcn.00404d9c
jmp 0x40d5ee
inc edi
dec esi
jne 0x40d536
jmp 0x40d4d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d613
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.004053c0
ret
Function at 0x4108c0
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 0x4108f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040548c
jmp 0x410902
mov eax, ebx
mov edx, esi
call fcn.004053f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41090c
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 0x41092d
mov al, byte [esp]
jmp 0x41092f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410fc4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x410e2c
mov eax, dword [0x56af88]
cmp byte [eax], 0
je 0x411040
mov eax, dword [0x56aa7c]
call fcn.00403850
call fcn.00402fe8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040daa4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x411088
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411076
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x56a9b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56c668]
call fcn.00406aac
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x411950
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 0x411a26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405434
lea eax, [ebp - 8]
call fcn.004058c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x411a10
mov eax, ebx
call fcn.00402df4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411a09
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.00405878
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4119f3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411a38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4119f3
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 0x411a10
mov eax, dword [ebp - 0x10]
call fcn.00402e24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411a2d
lea eax, [ebp - 8]
call fcn.0040539c
ret

Function at 0x412160
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 0x4121c4
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.0040560c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ca20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4121cb
lea eax, [ebp - 0xc]
call fcn.0040539c
ret

Function at 0x428580
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 0x4285cd
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.00428368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4285e5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4285ec
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00428368
dec esi
jne 0x42860e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x429d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x56eab4
cmp dword [edi], 0
jne 0x429dec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x56eab0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x556cf4
mov ecx, 2
call fcn.00403168
mov edx, 0x429d48
lea eax, [esi + 5]
call fcn.00429d68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429d68
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 0x429dc1
mov dword [0x56eab0], 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 0x42bd1c
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.00405868
mov eax, dword [ebp - 8]
call fcn.00405868
xor eax, eax
push ebp
push 0x42be20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040539c
cmp dword [ebp - 4], 0
je 0x42bd74
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42bd74
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405918
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405878
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42be05
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405878
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42bdf5
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405a04
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00405878
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.00405678
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.004058d8
jmp 0x42bdfc
mov eax, ebx
call fcn.0040539c
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 0x42be27
lea eax, [ebp - 8]
mov edx, 2
call fcn.004053c0
ret

Function at 0x42c02c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
push esi
mov esi, 0x42c084
lea edi, [ebp - 0x400]
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, ebx
call fcn.00405878
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.0040560c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c4c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405878
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42c4e1
test al, 0x10
jne 0x42c4e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42ca78
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.00405868
xor eax, eax
push ebp
push 0x42cb62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405678
dec eax
jle 0x42cae1
mov edx, dword [ebp - 4]
mov eax, 0x42cb78
call fcn.004059bc
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405678
dec eax
cmp ebx, eax
jne 0x42cae1
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405678
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004058d8
mov eax, dword [ebp - 4]
call fcn.00405678
mov ebx, eax
test ebx, ebx
jle 0x42cb18
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.004058d0
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 0x42caf6
mov eax, dword [ebp - 4]
call fcn.00405678
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 0x42cb4c
lea eax, [ebp - 4]
call fcn.004058d0
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 0x42cb69
lea eax, [ebp - 4]
call fcn.0040539c
ret

Function at 0x42d044
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.00405a04
cmp dword [ebp - 4], 0
jle 0x42d081
mov eax, ebx
call fcn.004058d0
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.00405678
mov esi, eax
test esi, esi
jle 0x42d0b5
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.004058d0
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 0x42d095
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42e22c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040560c
mov eax, dword [esi]
call fcn.00405678
mov ebx, eax
test ebx, ebx
jbe 0x42e29e
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x5570d8], eax
jae 0x42e299
mov eax, esi
call fcn.004058d0
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x42e275
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42eaa4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, ecx
shl edx, 2
add edx, eax
mov dword [esp], edx
mov eax, dword [esp]
call fcn.00406a34
test eax, eax
je 0x42eafe
lea eax, [esp + 4]
push eax
push 0x40
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esp]
mov dword [eax], ebx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
push 4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop ecx
pop edx
pop ebx
ret

Function at 0x42ecf8
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.00403168
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 0x42f3bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov ebp, eax
lea edi, [esp + 0x14]
mov eax, dword [0x56ead8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42f408
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x56ead8]
call fcn.0041f7c0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax]
jne 0x42f404
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
jmp 0x42f4ee
inc esi
dec ebx
jne 0x42f3dc
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
xor ebx, ebx
mov edx, edi
mov eax, dword [esp + 0xc]
call fcn.0042eef0
test al, al
jne 0x42f428
mov byte [edi], 1
xor eax, eax
mov al, byte [edi]
add ebx, eax
xor eax, eax
mov al, byte [edi]
add dword [esp + 0xc], eax
cmp ebx, 5
jb 0x42f416
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.0042f114
mov edi, eax
add edi, 5
mov eax, edi
call fcn.00402df4
mov esi, eax
mov eax, 0x14
call fcn.00402df4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x18]
mov dword [eax + 8], edi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebx
mov eax, ebx
call fcn.00402df4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ebp
mov edx, ebp
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00403168
mov edx, dword [esp + 0x18]
mov eax, dword [0x56ead8]
call fcn.0041f664
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00403168
mov ecx, ebx
mov edx, dword [esp + 8]
mov eax, esi
call fcn.0042f1e0
mov edx, dword [esp + 8]
add edx, ebx
lea eax, [ebx + esi]
call fcn.0042ed38
mov edx, dword [esp]
mov eax, dword [esp + 8]
call fcn.0042ed38
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42f780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, 0x40
mov eax, ebx
call fcn.0042b710
test al, al
je 0x42f7d4
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42f7d4
cmp dword [eax + 0x3c], 0
je 0x42f7d4
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042b710
test al, al
je 0x42f7cf
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x42f7d4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret
Function at 0x42fe1c
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 0x42feae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x42febc]
mov dword [ebp - 7], eax
mov ax, word [0x42fec0]
mov word [ebp - 3], ax
mov al, byte [0x42fec2]
mov byte [ebp - 1], al
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.0040560c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ca20
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 0x42feb5
lea eax, [ebp - 0x2c]
call fcn.0040539c
ret

Function at 0x430048
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x430074
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00405878
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403ac0
cmp dword [esp + 4], 0
je 0x4300c6
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x430338
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 0x4304a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x43048a
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 0x4303a2
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.00410874
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4304bc
mov eax, ebx
call fcn.004300d8
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.00430074
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 0x430424
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.00410874
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4304dc
mov eax, ebx
call fcn.004300d8
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, 0x4304fc
call fcn.0040e1f0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.004053f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4304ac
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004053c0
ret
Function at 0x430520
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4305b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x43059f
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x43059f
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x43059f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x43059f
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00410874
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4305d0
mov eax, ebx
call fcn.004300d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4305bc
lea eax, [ebp - 0x10]
call fcn.0040539c
ret

Function at 0x4306a0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x430757
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x4306e6
cmp byte [ebx + 0x24], 0
je 0x4306e6
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x430741
cmp byte [ebx + 0x24], 0
je 0x430741
push 0
push esi
push edi
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x430741
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x430741
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x430741
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00410874
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x430770
mov eax, ebx
call fcn.004300d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43075e
lea eax, [ebp - 0x10]
call fcn.0040539c
ret