joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x42c1a2
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp - 8], 0
je 0x42c1ae
cmp dword [ebp + 0xc], 0
jne 0x42c1bd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42c25a
mov edx, dword [ebp - 8]
cmp dword [edx], 0xffffffff
je 0x42c205
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x42c1f5
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42c25a
cmp dword [ebp + 0x14], 0
je 0x42c203
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x42c255
cmp dword [ebp + 0x10], 0
jbe 0x42c247
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042b620
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42c234
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
je 0x42c238
xor eax, eax
jmp 0x42c25a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x42c255
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42c2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x42c31c
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x42c31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c342
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042b280
test eax, eax
je 0x42c342
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c3d5
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
cmp dword [eax + 0x14], 0
je 0x42c3d5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
push eax
call fcn.0040ee54
add esp, 4
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0042c180
test eax, eax
jne 0x42c3a4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040c3d4
add esp, 4
xor eax, eax
jmp 0x42c40d
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], 0
jne 0x42c3c9
mov dword [ebp - 4], 0x70
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040c3d4
add esp, 4
cmp dword [ebp - 8], 0
je 0x42c3e4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042b240
cmp dword [ebp - 0xc], 0xffffffff
je 0x42c3f4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x42c404
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4013b0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013c2
call fcn.00512744
mov eax, dword [0x51b0a3]
shl eax, 2
mov dword [0x51b0a7], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
mov dword [0x51b0ab], edx
call fcn.005073bc
pop edx
call fcn.00507274
call fcn.005074d0
push 0x51b04c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x51b0ab], eax
push 0
jmp 0x514a1c
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x5228f4], eax
call fcn.0050749c
sub esp, 8
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.0050fe04
add esp, 4
push dword [esi + 0x28]
call fcn.00508870
add esp, 4
push dword [esi + 0x44]
call fcn.00508880
add esp, 0x10
mov dword [0x52eb60], 1
mov dword [0x52eb64], esi
lea eax, [esp + 4]
mov dword [0x52eb28], eax
call fcn.0051541c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x52eb2c], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x52eb34], eax
sub esp, 8
push dword [esi + 0x30]
push dword [esi + 0x2c]
call fcn.00512c48
add esp, 0x10
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.00512c88
add esp, 8
push 0
push 0x52eb60
call fcn.005147f4
add esp, 0x10
test byte [esi + 0x10], 1
jne 0x514af0
sub esp, 4
push dword [0x52eb4c]
push dword [0x52eb48]
push dword [0x52eb44]
call dword [esi + 0x18]
add esp, 0x10
push 0xffffffffffffffff
push eax
push 0
push 0
jmp 0x514b9b
mov eax, dword [0x52eb34]
nop dword [eax]
inc eax
mov cl, byte [eax - 1]
cmp cl, 9
je 0x514afc
cmp cl, 0x20
je 0x514afc
cmp cl, 0x22
jne 0x514b18
mov cl, byte [eax]
mov edx, 0x22
jmp 0x514b1e
dec eax
mov edx, 0x20
movsx edi, cl
cmp edx, edi
je 0x514b3e
nop dword [eax]
test cl, cl
je 0x514b3e
cmp cl, 9
je 0x514b3e
movsx ecx, byte [eax + 1]
inc eax
cmp edx, ecx
jne 0x514b2c
lea edi, [eax + 1]
cmp cl, 0x22
cmovne edi, eax
jmp 0x514b4d
inc edi
movzx eax, byte [edi]
cmp al, 0x20
je 0x514b4c
cmp al, 9
je 0x514b4c
mov ebx, dword [esi + 0x18]
sub esp, 0xc
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
add esp, 0xc
mov eax, dword [esp + 0x38]
test al, 1
movzx eax, word [esp + 0x3c]
mov ecx, 0xa
cmovne ecx, eax
push ecx
push edi
push 0
push esi
call ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call fcn.00512a6c
add esp, 0x10
add esp, 0x50
pop esi
pop edi
pop ebx
ret
Function at 0x40d45c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040d91c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40d5e5
test edi, edi
je 0x40d5e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40d525
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40d500
cmp edi, 0xffffffff
je 0x40d4c1
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40d4c1
mov byte [esp], 0
jmp 0x40d5e5
cmp dword [esi], 1
jg 0x40d500
cmp dword [esi], 0
jne 0x40d4f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40d4f2
call fcn.00519f4e
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40d5e5
lea eax, [esp + 0xc]
call fcn.0040d10c
dec ebp
test ebp, ebp
jg 0x40d4a6
cmp edi, 0xffffffff
je 0x40d525
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40d523
mov byte [esp], 0
jmp 0x40d5e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40d46a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40d525
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040d660
mov edx, eax
mov ebx, dword [0x523ffc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40d589
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40d587
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40d589
xor edi, edi
cmp byte [esp], 0
je 0x40d5af
mov ebx, dword [esi]
test bl, 1
jne 0x40d5c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40d58f
mov byte [esp + 1], 1
jmp 0x40d5c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40d5af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40d53c
cmp byte [esp], 0
je 0x40d5e5
call fcn.00519f4e
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e3d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52375c], 0
je 0x40e43f
cmp word [0x523a48], 0xd7b2
jne 0x40e401
cmp dword [0x523a50], 0
jbe 0x40e401
mov eax, 0x523a44
call dword [0x523a60]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40e46c
call fcn.0040eeec
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x51b9d0], 0
jne 0x40e45b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x40e600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x51b998], 0
je 0x40e62b
mov edx, edi
mov eax, esi
call dword [0x51b998]
mov ebx, eax
jmp 0x40e63c
mov eax, 8
call fcn.0040b84c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x52375d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40e5c8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x40e66c
mov eax, ebx
call fcn.0040b868
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4119ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x411b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040e740
cmp si, word [0x51c3a0]
jb 0x411a84
cmp si, word [0x51c5a0]
ja 0x411a84
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x411a84
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x51c3a0]
jae 0x411a5e
mov edi, ebx
dec edi
jmp 0x411a7f
cmp si, word [ebx*8 + 0x51c3a0]
jbe 0x411a6e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x411a7f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x51c3a4]
call fcn.00411908
jmp 0x411a84
cmp edi, dword [ebp - 8]
jae 0x411a48
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x411b33
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x411b33
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040f1dc
push dword [ebp - 0x160]
push 0x411b70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040f1dc
push dword [ebp - 0x164]
push 0x411b80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040f1dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040f414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b5a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040e7a0
pop eax
jmp eax
Function at 0x411d08
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411e0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52631c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x526334]
jne 0x411d54
mov eax, esi
mov edx, 0x526336
mov ecx, 0x55
call fcn.0040f1dc
push 0x52631c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x411df6
push 0x52631c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040e740
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x411dc3
cmp byte [0x526318], 0
je 0x411d88
mov edx, esi
mov eax, ebx
call fcn.00411bec
jmp 0x411dc3
mov edx, esi
mov eax, ebx
call fcn.004119ec
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x411dc3
cmp dword [esi], 0
je 0x411dac
mov eax, esi
mov edx, 0x411e28
call fcn.0040f334
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004119ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040f334
push 0x52631c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x526334], bx
mov eax, dword [esi]
call fcn.0040f13c
mov ecx, eax
mov eax, 0x526336
mov edx, 0xaa
call fcn.00411868
push 0x52631c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e15
lea eax, [ebp - 4]
call fcn.0040e740
pop eax
jmp eax
Function at 0x412040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040e824
xor eax, eax
push ebp
push 0x412269
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x412080
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x41209a
mov eax, dword [ebp - 4]
call fcn.0040f13c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00411868
cmp word [ebp - 0x21a], 0
je 0x412251
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x412278
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x412169
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x412278
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x412169
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4122b4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x412169
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4122b4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x412169
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4122e8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x412169
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x41231c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x412251
xor eax, eax
push ebp
push 0x41224a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00411e50
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4121d8
mov eax, dword [ebp - 0x10]
call fcn.0040b84c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040f1a0
jmp 0x412223
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x41235c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x412223
mov eax, dword [ebp - 0x10]
call fcn.0040b84c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x41235c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040f1a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412251
cmp dword [ebp - 8], 0
je 0x41223e
mov eax, dword [ebp - 8]
call fcn.0040b868
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412270
lea eax, [ebp - 4]
call fcn.0040e740
pop eax
jmp eax
Function at 0x41257c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040e824
xor eax, eax
push ebp
push 0x41263e
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040f1dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040f38c
mov eax, dword [ebx]
call fcn.00412424
test al, al
jne 0x412619
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040f1dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040f38c
mov eax, dword [ebx]
call fcn.00412424
test al, al
jne 0x412619
mov eax, ebx
call fcn.0040e740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412645
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040e7a0
lea eax, [ebp - 4]
call fcn.0040e740
pop eax
jmp eax

Function at 0x414198
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4150f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4151c9
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x524098], 1
jae 0x4151b9
call fcn.0040c5d4
call fcn.0040b604
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.0041176c
mov byte [0x51b9bc], 2
mov dword [0x523718], 0x51a0c2
mov dword [0x52371c], 0x51a0e6
mov byte [0x52375e], 2
call fcn.00414198
mov dword [0x523764], eax
mov dword [0x523704], 0x410964
call fcn.0040c610
call fcn.0040c62c
mov word [0x52376c], 0xd7b0
mov word [0x523a48], 0xd7b0
mov word [0x523d24], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x523750], eax
call fcn.00409c8c
mov dword [0x52374c], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x524080], eax
mov dword [0x524084], 0x4b0
call fcn.00519f4e
mov dword [0x523744], eax
call fcn.004141ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4151d0
pop eax
jmp eax
Function at 0x4238cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423925
test eax, edx
je 0x423928
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4238e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x42390a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x42390b
add ecx, 4
js 0x4238fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x423908
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42390a
xor eax, eax
ret
test eax, eax
je 0x423934
test edx, edx
jne 0x4238d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x424bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x424c1d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4288e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x428919
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040e8c8
jmp 0x428922
mov eax, ebx
mov edx, esi
call fcn.0040eb20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42892c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42894e
movzx eax, word [esp]
jmp 0x428950
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x429d77
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00429a58
mov esi, eax
mov eax, dword [0x5230ac]
cmp byte [eax], 0
je 0x429d1d
mov eax, dword [0x5230fc]
call fcn.0040c250
call fcn.0040ba30
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x429c20]
call fcn.004110f4
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x429d90
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x429d59
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x523100]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5236a8]
call fcn.0041150c
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429d7e
lea eax, [ebp - 4]
mov edx, dword [0x429c20]
call fcn.00411218
pop eax
jmp eax