joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
je 0x422e22
cmp dword [ebp + 0x10], 0
jne 0x422e29
xor eax, eax
jmp 0x422f61
cmp dword [ebp + 0x18], 0
jne 0x422e35
mov eax, dword [ebp + 8]
mov dword [ebp + 0x18], eax
push 0x100
call fcn.0048bbe8
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00422d50
add esp, 0xc
test eax, eax
jne 0x422e7c
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0048e9ee
add esp, 4
xor eax, eax
jmp 0x422f61
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x422ea3
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jge 0x422f3e
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0x800000ff
jns 0x422ec3
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x422ee2
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
push ecx
call fcn.00422d20
add esp, 8
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx]
add edx, ecx
and edx, 0x800000ff
jns 0x422f28
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + edx]
xor eax, edx
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
jmp 0x422e9a
cmp dword [ebp + 0x1c], 0
je 0x422f4c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0048e9ee
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x428ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c2e5c], 0
je 0x428f10
mov eax, dword [0x4c2e5c]
push eax
push 0x4bc184
lea ecx, [ebp - 0x110]
push ecx
push 0xe6
call fcn.004276b0
add esp, 0x10
jmp 0x428ff1
call fcn.00428820
test eax, eax
je 0x428f86
lea edx, [ebp - 0x320]
push edx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x320]
push eax
call fcn.004280e0
add esp, 4
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x428f7a
mov ecx, dword [ebp - 0x324]
push ecx
push 0x4bc188
lea edx, [ebp - 0x110]
push edx
push 0xe6
call fcn.004276b0
add esp, 0x10
mov eax, dword [ebp - 0x324]
push eax
call fcn.00491bcd
add esp, 4
jmp 0x428f84
mov eax, 7
jmp 0x4290f1
jmp 0x428ff1
lea ecx, [ebp - 0x430]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x430]
push edx
call fcn.00428090
add esp, 4
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x428fe7
mov eax, dword [ebp - 0x434]
push eax
push 0x4bc18c
lea ecx, [ebp - 0x110]
push ecx
push 0xe6
call fcn.004276b0
add esp, 0x10
mov edx, dword [ebp - 0x434]
push edx
call fcn.00491bcd
add esp, 4
jmp 0x428ff1
mov eax, 7
jmp 0x4290f1
lea eax, [ebp - 0x110]
push eax
call fcn.00427960
add esp, 4
mov dword [ebp - 0x114], eax
jmp 0x429017
mov ecx, dword [ebp - 0x114]
sub ecx, 1
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
jbe 0x429035
mov edx, dword [ebp - 0x114]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x429035
jmp 0x429008
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x110], 0
lea edx, [ebp - 0x110]
push edx
push str._setilqs_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
sub ecx, 0x1e
push ecx
call fcn.004276b0
add esp, 0x10
mov edx, dword [ebp + 0xc]
push edx
call fcn.00427960
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x118]
push eax
push 0x14
call fcn.00427720
add esp, 8
mov dword [ebp - 0x114], 0
jmp 0x4290b2
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x114], 0x14
jae 0x4290e3
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x118]
movzx eax, byte [eax]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x118]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x429094
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x118]
mov byte [edx], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret
Function at 0x429410
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x120], 0x200
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004292b0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42958d
lea eax, [ebp - 0x118]
push eax
call fcn.00428d30
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x42957d
call fcn.00428820
test eax, eax
je 0x4294fd
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
jmp 0x4294a5
mov edx, dword [ebp - 0x128]
add edx, 2
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
movzx ecx, word [eax]
test ecx, ecx
je 0x4294cf
mov edx, dword [ebp - 0x128]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x4294cd
xor ecx, ecx
mov edx, dword [ebp - 0x128]
mov word [edx], cx
jmp 0x4294cf
jmp 0x429496
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 4], eax
jmp 0x42956e
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], edx
jmp 0x42951a
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
movsx edx, byte [ecx]
test edx, edx
je 0x429542
mov eax, dword [ebp - 0x12c]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x429540
mov edx, dword [ebp - 0x12c]
mov byte [edx], 0
jmp 0x429542
jmp 0x42950b
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x124]
push edx
call fcn.00491bcd
add esp, 4
cmp dword [ebp - 4], 0
jne 0x42958d
mov dword [ebp - 0x120], 0x200
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret
Function at 0x45d280
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x45d291
xor eax, eax
jmp 0x45d40e
push 0x44
mov eax, dword [ebp + 8]
push eax
call fcn.00425d80
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45d2af
xor eax, eax
jmp 0x45d40e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045d120
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045d420
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045cce0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045d120
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045cce0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045d120
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 4]
mov byte [edx + 4], cl
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045d280
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045cce0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045cce0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 6]
and edx, 0xfffffff7
mov eax, dword [ebp - 4]
mov word [eax + 6], dx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x480640
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a91a2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c0c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
jne 0x48069b
mov dword [ebp - 0x1c], str.connection_failed...
push 0x4b7ebc
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0048e57b
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4806cd
mov dword [ebp - 0x20], str.response_failed...
push 0x4b7ebc
lea ecx, [ebp - 0x20]
push ecx
call fcn.0048e57b
jmp 0x48078b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x482e20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x482e82
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c
call fcn.00402b30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, 0x1800
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x482eac
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x3c], 0
je 0x482ea5
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x40], 0
je 0x482ea5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
add ecx, 0x1800
mov dword [ebp - 4], ecx
jmp 0x482eac
mov dword [ebp - 4], 0x2000
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x48a650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.rscommon
call fcn.0048a6a0
add esp, 0xc
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x48a687
mov edx, dword [ebp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x48a6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x48a6bf
cmp dword [ebp + 0xc], 0
jne 0x48a6c6
xor eax, eax
jmp 0x48a791
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.0048e260
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SOFTWARERising_s
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.00411290
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x118]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48a785
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.datapath
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0048e1d0
add esp, 4
test eax, eax
je 0x48a77b
push 0x4b203c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00411250
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048e1d0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret

Function at 0x48e19e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c0c00]
jne 0x48e1a8
repz ret
jmp fcn.0049700c
Function at 0x4a35d6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00496946
and dword [ebp - 4], 0
cmp dword [0x4c3f90], 0
mov ebx, eax
jne 0x4a3687
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a3738
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a3738
push eax
call fcn.004968d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c3f90], eax
call esi
push eax
call fcn.004968d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c3f94], eax
call esi
push eax
call fcn.004968d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c3f98], eax
call esi
push eax
call fcn.004968d4
pop ecx
mov dword [0x4c3fa0], eax
test eax, eax
je 0x4a3687
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004968d4
pop ecx
mov dword [0x4c3f9c], eax
mov eax, dword [0x4c3f9c]
cmp eax, ebx
je 0x4a36df
cmp dword [0x4c3fa0], ebx
je 0x4a36df
push eax
call fcn.0049694f
push dword [0x4c3fa0]
mov esi, eax
call fcn.0049694f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a36df
test edi, edi
je 0x4a36df
call esi
test eax, eax
je 0x4a36d6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a36d6
test byte [ebp - 0xc], 1
jne 0x4a36df
or dword [ebp + 0x10], 0x200000
jmp 0x4a3718
mov eax, dword [0x4c3f94]
cmp eax, ebx
je 0x4a3718
push eax
call fcn.0049694f
pop ecx
test eax, eax
je 0x4a3718
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a3718
mov eax, dword [0x4c3f98]
cmp eax, ebx
je 0x4a3718
push eax
call fcn.0049694f
pop ecx
test eax, eax
je 0x4a3718
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c3f90]
call fcn.0049694f
pop ecx
test eax, eax
je 0x4a3738
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a373a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401440
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a68
call fcn.00415160
mov eax, dword [0x433dc0]
xor eax, esp
mov dword [esp + 0x1a64], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
lea eax, [esp + 0x72]
mov ebx, edx
push ebp
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x78], bp
call fcn.004141b0
push esi
lea ecx, [esp + 0x7c]
push 0x104
push ecx
mov dword [esp + 0x28], ebp
call fcn.0041188b
add esp, 0x18
cmp word [esi], 0x22
lea edi, [esp + 0x6c]
jne 0x4014d9
lea eax, [esp + 0x6c]
lea edi, [esp + 0x6e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4014a7
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6a], 0x22
jne 0x4014d9
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4014c5
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x6a], bp
push 0x44
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.004141b0
push 0xffe
lea eax, [esp + 0xa86]
push ebp
push eax
mov dword [esp + 0x40], 0x44
mov word [esp + 0xa8c], bp
call fcn.004141b0
push ebx
push edi
push str._s__s
lea ecx, [esp + 0xa98]
push 0x800
push ecx
call fcn.00411564
push 0x7fe
lea edx, [esp + 0x2a6]
push ebp
push edx
mov word [esp + 0x2ac], bp
call fcn.004141b0
push esi
push str.__s_
lea eax, [esp + 0x2b4]
push 0x400
push eax
call fcn.00411564
add esp, 0x48
lea ecx, [esp + 0xa74]
push ecx
push str.CreateProcess__s
call fcn.00402180
mov edi, eax
call fcn.00402660
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push 8
push ebp
push ebp
push ebp
lea ecx, [esp + 0xa94]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401626
push str.CreateProcess_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00402180
mov ecx, eax
call fcn.004027c0
add esp, 4
push str.Attempt_spawn_before_giving_up...
call fcn.00402180
mov edi, eax
call fcn.00402660
mov ebx, dword [esp + 0x18]
add esp, 4
push ebx
lea edx, [esp + 0x278]
push edx
push str._tspawnl__s__s
call fcn.00402180
mov edi, eax
call fcn.00402660
push ebp
push ebx
lea eax, [esp + 0x288]
push eax
push esi
push ebp
call fcn.00411bff
add esp, 0x20
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40166f
call fcn.00411c89
push str.tspawn_failed
mov esi, eax
call fcn.00402180
mov ebx, dword [esi]
mov ecx, eax
call fcn.004027c0
add esp, 4
jmp 0x40166b
push str.Waiting_for_CreateProcess_to_complete
call fcn.00402180
mov edi, eax
call fcn.00402660
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1a74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041141f
add esp, 0x1a68
ret
Function at 0x402660
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2008
call fcn.00415160
mov eax, dword [0x433dc0]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp dword [esp + 0x200c], 0
je 0x40279d
push 0x1ffe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004141b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [edi + 0x248]
push ecx
push str._s__X_:
lea edx, [esp + 0x10]
push 0x1000
push edx
call fcn.00411564
mov edx, dword [esp + 0x2020]
lea ecx, [esp + 0x2024]
push ecx
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x24]
push edx
call fcn.004124dd
push 0x42e32c
lea eax, [esp + 0x2c]
push 0x1000
push eax
call fcn.004119e5
lea eax, [edi + 0x40]
add esp, 0x30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402702
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub eax, edx
sar eax, 1
push esi
je 0x402737
lea esi, [edi + 4]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.004025d0
push esi
call ebp
lea eax, [esp + 0x10]
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402740
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
je 0x402786
cmp word [esp + edx*2 + 0x10], 0xa
jne 0x402763
mov word [esp + edx*2 + 0x10], 0x20
lea eax, [esp + 0x10]
add edx, 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402770
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
cmp edx, eax
jb 0x402754
lea esi, [edi + 4]
push esi
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.0041141f
add esp, 0x2008
ret

Function at 0x404d90
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, si
movzx eax, ax
jne 0x404df4
cmp di, ax
jne 0x404df4
xor eax, eax
movzx edx, di
mov ecx, 0x435098
jmp 0x404dd0
cmp dword [ecx], edx
je 0x404de6
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x404dd0
movzx eax, di
pop edi
pop esi
pop ebx
ret
pop edi
shl eax, 4
movzx eax, word [eax + 0x43509c]
pop esi
pop ebx
ret
xor eax, eax
movzx edx, bx
mov ecx, 0x435098
mov edi, edi
cmp dword [ecx], edx
je 0x404de6
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x404e00
pop edi
pop esi
movzx eax, bx
pop ebx
ret
Function at 0x405bf6
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x433dc0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x405c94
push 0x42a9b4
push 4
push eax
call fcn.0041188b
push eax
call fcn.004020b0
add esp, 0x10
push ebx
push edi
call fcn.00411c89
mov edi, dword [eax]
call fcn.00411c89
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00411580
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00411c89
cmp dword [eax], ebx
je 0x405cab
call fcn.00411c89
push dword [eax]
call fcn.00405b86
pop ecx
jmp 0x405cb2
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x405c45
jmp 0x405d24
call fcn.00411c89
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x405d20
cmp dword [ebp - 0x40], esi
jae 0x405d20
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004141b0
add esp, 0xc
push 0x42a714
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x405d12
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405d12
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x405d12
push ebx
push ebx
push esi
jmp 0x405d18
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x405d22
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0041141f
add ebp, 0x1f4
leave
ret