joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4e0360]
cmp ax, 0xcb
je 0x40fc9c
cmp ax, 0xcc
je 0x40fc9c
lea esi, [esi]
mov edx, dword [0x57e090]
test edx, edx
je 0x40fbc5
mov eax, dword [0x57df40]
call edx
mov ebx, eax
jmp 0x40fbca
mov ebx, 0x57df44
cmp word [0x57df30], 0
jle 0x40fbf0
mov eax, 0x57df10
call fcn.0040fe50
mov eax, ebx
call fcn.0040f750
mov eax, ebx
call fcn.0040f7c0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40fc12
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40fc0d
mov edx, edi
mov eax, ebx
call fcn.0040ebc0
jmp 0x40fc10
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40fbf8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x57df30], 0
jle 0x40fc9c
mov edx, 0x57de50
mov eax, ebx
call fcn.0040ed00
mov edi, eax
test edi, edi
je 0x40fc6c
mov eax, dword [0x57dee4]
mov dword [edi + 0xc], eax
cmp dword [0x57dee4], 0
je 0x40fc60
mov eax, dword [0x57dee4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x57dee4], eax
nop
sub word [0x57df30], 1
cmp word [0x57df30], 0
sete bl
mov eax, 0x57df10
call fcn.0040fe70
test bl, bl
je 0x40fc9c
mov eax, 0x57df10
call fcn.0040fe40
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4120c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004120a0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x4121ea
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040a990
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41214f
mov edx, 0x57d310
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4121a1
call sub.kernel32.dll_GetLastError
call fcn.004037a0
lea eax, [ebp - 0x10]
call fcn.004096f0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00409b90
mov edx, dword [ebp - 0x14]
mov ecx, 0x4ff714
lea eax, [ebp - 0x10]
call fcn.00409a20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040a380
jmp 0x412238
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4121ba
cmp eax, ecx
je 0x4121c4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040a990
cmp byte [0x4e05e0], 0
jne 0x412238
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040af50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040a3c0
lea esi, [esi]
jmp 0x412238
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040a990
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41220e
mov eax, 0x57d310
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x4e05e0], 0
jne 0x412238
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040af50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040a3c0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004120a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412730
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x57d270], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00412910
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x57d270]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402d40
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4e03e0], eax
mov ebx, eax
jmp 0x4128d3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4127b8
cmp byte [ebx], 0
je 0x4128dc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412833
mov al, byte [ebx]
cmp al, 1
jb 0x412828
sub al, 0x20
jbe 0x4127f8
sub al, 2
je 0x41280c
jmp 0x412828
mov al, byte [ebp - 0x114]
test al, al
je 0x412838
add dword [ebp - 0x110], 1
jmp 0x412830
cmp byte [ebx + 1], 0x22
je 0x412823
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412830
add ebx, 1
jmp 0x412830
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4127e8
test dword [ebp - 0x10c], 0xffffffff
je 0x4128cc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00412910
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x57d270]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4128c3
mov al, byte [ebx]
cmp al, 1
jb 0x4128b8
sub al, 0x20
jbe 0x412888
sub al, 2
je 0x41289c
jmp 0x4128b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4128c8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4128c0
cmp byte [ebx + 1], 0x22
je 0x4128b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4128c0
add ebx, 1
jmp 0x4128c0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412878
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4127bb
mov ebx, dword [ebp - 0x10c]
mov dword [0x57d260], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x57d270
call fcn.0040f9d0
mov eax, dword [0x57d270]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415ee0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0xffff
lea esi, [esi]
add dx, 1
movsx eax, dx
mov ecx, eax
xor bx, bx
lea esi, [esi]
add bx, 1
mov eax, ecx
and eax, 1
je 0x415f11
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x415f13
shr ecx, 1
cmp bx, 8
jl 0x415ef8
movzx eax, dx
mov dword [eax*4 + 0x57ff30], ecx
cmp dx, 0xff
jl 0x415ee8
pop ebx
ret

Function at 0x415f30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
cmp dword [0x57ff34], 0
jne 0x415f48
call fcn.00415ee0
nop
mov ecx, edi
not ebx
mov eax, ebx
cmp esi, 1
jl 0x415f7c
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov dl, al
xor dl, byte [ecx]
and edx, 0xff
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x57ff30]
mov eax, edi
add ecx, 1
cmp esi, ebx
jg 0x415f58
mov esi, esi
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x417150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00417140
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x417268
mov al, byte [ebp - 0x110]
test al, al
je 0x417231
lea eax, [ebp - 0xc]
call fcn.004031f0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404430
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004087c0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409570
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5000d8
call fcn.00431080
mov edx, 0x4171ba
mov ecx, ebp
call fcn.00413470
jmp 0x417268
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5000d8
call fcn.00431080
mov edx, 0x417231
mov ecx, ebp
call fcn.00413470
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x417334
mov al, byte [ebp - 0x110]
test al, al
je 0x4172fd
lea eax, [ebp - 0xc]
call fcn.004031f0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404430
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004087c0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409570
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5000d8
call fcn.00431080
mov edx, 0x417286
mov ecx, ebp
call fcn.00413470
jmp 0x417334
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5000d8
call fcn.00431080
mov edx, 0x4172fd
mov ecx, ebp
call fcn.00413470
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00416e80
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00417140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41c9f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x41ca0c
mov dword [ebx + 0xc], 0
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov byte [ebp - 0xc], cl
mov eax, dword [ebp - 4]
test eax, eax
jne 0x43261e
mov eax, 0x57d310
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x432656
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x43263a
clc
jmp 0x432641
bt dword [0x5056d8], eax
jb 0x432652
mov eax, ebp
call fcn.00432740
test al, al
je 0x432652
mov bl, 1
jmp 0x432684
xor bl, bl
jmp 0x432684
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x4e1960]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x432684
and esi, 0x400
je 0x432684
mov eax, ebp
call fcn.004326b0
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432e90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00432e80
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5806dc]
xor edx, edx
call fcn.00407f40
mov dword [ebx*4 + 0x5806fc], 0xffffffff
cmp ebx, 7
jl 0x432eb8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x432f44
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00408930
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00429070
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x432f44
push 4
push ebx
push esi
mov eax, 0x432d60
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x432df0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00432e80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00433660
push ebp
push 0x4135b0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00428b30
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00407f40
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.00409570
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00407f40
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x43379c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00408890
mov eax, dword [ebp - 8]
test eax, eax
je 0x433727
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.00409570
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00408f10
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00408d10
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00428b30
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00408ab0
test eax, eax
jne 0x433794
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x433783
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00408d10
jmp 0x4337a5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x433710
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00433660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4337f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x580740], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5805a0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5805b0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5805c0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5805d0], eax
mov edx, 0x5805e1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402d40
lea eax, [ebp - 0x80]
call fcn.00403e60
mov byte [0x5805e0], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x580750], eax
test eax, eax
je 0x433890
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x580750]
call sub.kernel32.dll_GetProcAddress
mov dword [0x580740], eax
nop
cmp dword [0x5805b0], 6
jae 0x4338a4
mov dword [0x4e1220], 0
nop
cmp dword [0x5805b0], 6
jb 0x4338c0
cmp dword [0x5805c0], 1
jb 0x4338c0
mov dword [0x4e1230], 2
mov esp, ebp
pop ebp
ret
Function at 0x4397d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 8], 1
jne 0x4397fc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x439912
mov esi, esi
xor eax, eax
push 0x4398f3
push ebp
push 0x413930
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
push fcn.004397c0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040c250
cmp dword [ebp - 4], 0
jne 0x43985c
push ebp
mov ecx, 0x43c
mov edx, 0x5096bc
mov eax, 0x5096d0
call fcn.0040e7c0
mov esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 3
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x20], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 0
lea ecx, [ebp - 0x14]
mov dl, 1
mov eax, 0x50f740
call fcn.00459480
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, 0x24
call fcn.00407f40
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0x8000
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004397c0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4398e8
cmp dword [ebp - 8], 0
je 0x4398e8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x439912
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459c60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x459d0a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x459d26
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x459d26
sub dx, 0x20
je 0x459d00
sub dx, 0x80
je 0x459d00
sub dx, 0x1f62
jb 0x459d26
sub dx, 1
jbe 0x459d00
sub dx, 6
je 0x459d00
sub dx, 0x26
jne 0x459d26
nop
jmp 0x459d00
cmp eax, dword [ebp - 0x20]
jg 0x459ca8
lea esi, [esi]
jmp 0x459d26
cmp dword [ebp - 0x1c], 2
jne 0x459d1a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x459d26
mov al, byte [ebp - 0xc]
call fcn.0040a6c0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x459da4
sub ax, 0x21
je 0x459db8
sub ax, 0x17
je 0x459dc4
sub ax, 0x222
je 0x459dd0
sub ax, 0x392
je 0x459dd8
sub ax, 1
je 0x459de0
sub ax, 0x1996
je 0x459de8
sub ax, 1
je 0x459df0
sub ax, 6
je 0x459df8
sub ax, 0xb
je 0x459e08
sub ax, 0x1b
je 0x459e00
sub ax, 0x367
je 0x459e10
jmp 0x459e18
mov ax, word [ebp - 0x24]
call fcn.0040a730
mov byte [ebp - 0x10], al
jmp 0x459e20
mov byte [ebp - 0x10], 0x20
jmp 0x459e20
mov byte [ebp - 0x10], 0x2e
jmp 0x459e20
mov byte [ebp - 0x10], 0x27
jmp 0x459e20
mov byte [ebp - 0x10], 0x2c
jmp 0x459e20
mov byte [ebp - 0x10], 0x27
jmp 0x459e20
mov byte [ebp - 0x10], 0x20
jmp 0x459e20
mov byte [ebp - 0x10], 0x20
jmp 0x459e20
mov byte [ebp - 0x10], 0x20
jmp 0x459e20
mov byte [ebp - 0x10], 0x20
jmp 0x459e20
mov byte [ebp - 0x10], 0x2d
jmp 0x459e20
mov byte [ebp - 0x10], 0x27
jmp 0x459e20
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x470640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x470668
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x470792
mov esi, esi
xor eax, eax
push 0x470773
push ebp
push 0x413930
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
xor al, al
call fcn.0046b990
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x48], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x4c], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x54], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x58], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x5c], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 0
movzx eax, byte [ebp + 0x18]
push eax
push dword [ebp + 0x14]
movzx eax, byte [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004707f0
push 0x400000
mov eax, dword [ebp - 0xc]
xor cl, cl
xor edx, edx
call fcn.0041cac0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x470768
cmp dword [ebp - 8], 0
je 0x470768
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x470792
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4745c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
je 0x47467d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
call fcn.00479ca0
test al, al
jne 0x47467d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
call fcn.0046f290
xor eax, eax
push fcn.004745b0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
push dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004b9ce0
mov eax, dword [ebp - 0xc]
add dword [eax + 0x28], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
call fcn.004b9c80
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004745b0
mov edx, dword [ebp + 8]
mov eax, edx
sar eax, 0x1f
push eax
push edx
mov eax, dword [ebp - 0xc]
call fcn.004752e0
mov esp, ebp
pop ebp
ret 4

Function at 0x47abf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
mov eax, dword [0x580dd0]
call fcn.0046a010
xor eax, eax
push fcn.0047abe0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0
cmp word [0x580c40], 0
jne 0x47ac38
push 0x580c40
push 0x202
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 4], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0047abe0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47ac90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
lea edi, [ebp - 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x47acc8
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x47acc8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x47acdc
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov dword [ebx], 0
jmp 0x47ad44
xor esi, esi
mov edx, 0x20
mov eax, 0x51243c
call fcn.0046a300
mov dword [ebx], eax
xor cl, cl
mov edx, 0x20
call fcn.00402d80
mov eax, dword [ebx]
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov dword [eax + 0x10], 0x10
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, 0x51243c
call fcn.0046a300
mov edx, dword [ebx]
mov dword [edx + 0x18], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dx, word [ebp - 0x1c]
mov word [eax], dx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [eax + 4], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret