joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546434
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404af8
mov eax, dword [ebp - 8]
call fcn.00404af8
mov eax, dword [ebp - 0xc]
call fcn.00404af8
mov eax, dword [ebp + 8]
call fcn.00404af8
xor eax, eax
push ebp
push 0x546524
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b08
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409754
mov eax, dword [ebp - 0x14]
call fcn.00404b08
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404b08
push eax
mov eax, dword [ebp - 8]
call fcn.00404b08
push eax
mov eax, dword [ebp - 4]
call fcn.00404b08
push eax
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x5464e8
push 0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 8]
call fcn.00404eac
mov eax, dword [ebp - 0x1c]
mov cx, word [0x546538]
mov dl, 1
call fcn.00543b88
mov byte [ebp - 0xd], 0
jmp 0x5464ec
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54652b
lea eax, [ebp - 0x1c]
call fcn.00404d48
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040467c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040467c
lea eax, [ebp + 8]
call fcn.00404658
ret
Function at 0x546d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404af8
xor eax, eax
push ebp
push 0x546ddd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x546d4a
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050a284
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x546df4
call fcn.0040495c
jmp 0x546d57
lea eax, [ebp - 0x10]
mov edx, 0x546df4
call fcn.004046f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x10]
call fcn.00404b08
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0xffffffff
jne 0x546d87
cmp eax, 0xffffffff
je 0x546da6
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.00404b08
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 5], 1
jmp 0x546dba
call sub.kernel32.dll_GetLastError_1
cmp eax, 5
jne 0x546db6
mov byte [ebp - 5], 0
jmp 0x546dba
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546de4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040467c
lea eax, [ebp - 4]
call fcn.00404658
ret
Function at 0x43f2e8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043f47f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43f457
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43f457
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43f40c
jg 0x43f344
test eax, eax
je 0x43f402
push 1
push 0x1000
call fcn.00430a4f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43f367
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43f3f9
push 0x8000
push ebx
call fcn.0042a81b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43f390
jg 0x43f38b
cmp ecx, 0x1000
jb 0x43f390
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00436f73
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f3d5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43f38b
jl 0x43f3bc
test ecx, ecx
jne 0x43f37d
push dword [ebp - 0xc]
push ebx
call fcn.0042a81b
push esi
call fcn.0042f73f
add esp, 0xc
xor ebx, ebx
jmp 0x43f465
cmp byte [edi + 0x24], 0
je 0x43f3ec
cmp dword [edi + 0x20], 5
jne 0x43f3ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43f3f7
mov ebx, dword [edi + 0x18]
jmp 0x43f3f9
xor ebx, ebx
push esi
call fcn.0042f73f
pop ecx
jmp 0x43f465
test ecx, ecx
jg 0x43f3ce
jl 0x43f40c
test eax, eax
jae 0x43f3ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435fe4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43f42c
cmp byte [edi + 0x1c], 0
je 0x43f3ce
jmp 0x43f45d
push ebx
call fcn.00436669
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43f3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43f465
cmp byte [edi + 0x1c], 0
je 0x43f462
mov ebx, dword [edi + 0x18]
jmp 0x43f465
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00435fe4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44e284
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x44e284
lcall 0x5de5, 0x8b10c483
jmp fcn.0096a710

Function at 0x40895e
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408990
add edx, esi
add edx, 0x48f93f30
xor dword [eax], ebx
sub edx, esi
inc eax
add esi, 0x83b0c5a9
add edx, 0xccb9c5a6
cmp eax, ecx
jne fcn.0040895e
add esi, 0xce644bda
mov edx, edx
ret
Function at 0x4075a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409ce4
test esi, esi
jne 0x4075da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409e7c
jmp 0x4075f8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004074e8
mov edi, eax
test esi, esi
je 0x4075f8
cmp dword [ebx], 0
je 0x4075f8
dec esi
jmp 0x4075e1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408858
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.00408d18
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089e1
test edi, edi
je 0x4089e1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408921
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4088fc
cmp edi, 0xffffffff
je 0x4088bd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088bd
mov byte [esp], 0
jmp 0x4089e1
cmp dword [esi], 1
jg 0x4088fc
cmp dword [esi], 0
jne 0x4088ee
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088ee
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089e1
lea eax, [esp + 0xc]
call fcn.00408514
dec ebp
test ebp, ebp
jg 0x4088a2
cmp edi, 0xffffffff
je 0x408921
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40891f
mov byte [esp], 0
jmp 0x4089e1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408866
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408921
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a5c
mov edx, eax
mov ebx, dword [0x67c900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408985
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408983
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408985
xor edi, edi
cmp byte [esp], 0
je 0x4089ab
mov ebx, dword [esi]
test bl, 1
jne 0x4089c1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40898b
mov byte [esp + 1], 1
jmp 0x4089c1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089ab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408938
cmp byte [esp], 0
je 0x4089e1
call sub.kernel32.dll_GetCurrentThreadId
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 0x40997c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67c05c], 0
je 0x4099e3
cmp word [0x67c34c], 0xd7b2
jne 0x4099a5
cmp dword [0x67c354], 0
jbe 0x4099a5
mov eax, 0x67c348
call dword [0x67c364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x6729e1
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, 0x409a10
call fcn.0040a580
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x67203a], 0
jne 0x4099ff
push 0
push 0x6729db
push 0x6729e1
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ba4
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 [0x67203c], 0
je 0x409bcf
mov edx, edi
mov eax, esi
call dword [0x67203c]
mov ebx, eax
jmp 0x409be0
mov eax, 8
call fcn.00406e94
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67c05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b6c
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 0x409c10
mov eax, ebx
call fcn.00406eb0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dcdc
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 0x40de43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ce4
cmp si, word [0x672a18]
jb 0x40dd74
cmp si, word [0x672c18]
ja 0x40dd74
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd74
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x672a18]
jae 0x40dd4e
mov edi, ebx
dec edi
jmp 0x40dd6f
cmp si, word [ebx*8 + 0x672a18]
jbe 0x40dd5e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd6f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x672a1c]
call fcn.0040dbfc
jmp 0x40dd74
cmp edi, dword [ebp - 8]
jae 0x40dd38
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40de23
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40de23
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.0040a918
push dword [ebp - 0x160]
push 0x40de60
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a918
push dword [ebp - 0x164]
push 0x40de70
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a918
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de4a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d44
pop eax
jmp eax
Function at 0x40dff8
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 0x40e0fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x67ec18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x67ec30]
jne 0x40e044
mov eax, esi
mov edx, 0x67ec32
mov ecx, 0x55
call fcn.0040a918
push 0x67ec18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e0e6
push 0x67ec18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409ce4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e0b3
cmp byte [0x67ec14], 0
je 0x40e078
mov edx, esi
mov eax, ebx
call fcn.0040dedc
jmp 0x40e0b3
mov edx, esi
mov eax, ebx
call fcn.0040dcdc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e0b3
cmp dword [esi], 0
je 0x40e09c
mov eax, esi
mov edx, 0x40e118
call fcn.0040aa74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dcdc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa74
push 0x67ec18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x67ec30], bx
mov eax, dword [esi]
call fcn.0040a87c
mov ecx, eax
mov eax, 0x67ec32
mov edx, 0xaa
call fcn.0040db5c
push 0x67ec18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e105
lea eax, [ebp - 4]
call fcn.00409ce4
pop eax
jmp eax
Function at 0x40e340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409dd8
xor eax, eax
push ebp
push 0x40e568
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e386
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e3a0
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040db5c
cmp word [ebp - 0x21e], 0
je 0x40e54b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e578
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e46f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e578
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e46f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e46f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e46f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e46f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e61c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e54b
xor eax, eax
push ebp
push 0x40e544
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e140
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e4d2
mov eax, dword [ebp - 0x14]
call fcn.00406e94
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a8dc
jmp 0x40e51d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e65c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e51d
mov eax, dword [ebp - 0x14]
call fcn.00406e94
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e65c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a8dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e54b
cmp dword [ebp - 0xc], 0
je 0x40e538
mov eax, dword [ebp - 0xc]
call fcn.00406eb0
mov eax, dword [ebp - 0x10]
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 0x40e56f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409d44
pop eax
jmp eax
Function at 0x40e878
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.00409dd8
xor eax, eax
push ebp
push 0x40e93a
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.0040a918
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aacc
mov eax, dword [ebx]
call fcn.0040e724
test al, al
jne 0x40e915
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a918
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aacc
mov eax, dword [ebx]
call fcn.0040e724
test al, al
jne 0x40e915
mov eax, ebx
call fcn.00409ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e941
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409d44
lea eax, [ebp - 4]
call fcn.00409ce4
pop eax
jmp eax

Function at 0x41039c
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 0x422fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423009
test eax, edx
je 0x42300c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422fc7
movzx eax, word [eax]
sub eax, ecx
jmp 0x422fee
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x422fef
add ecx, 4
js 0x422fdf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422fec
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422fee
xor eax, eax
ret
test eax, eax
je 0x423018
test edx, edx
jne 0x422fb8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x424214
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a87c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42427e
test ah, 4
je 0x424277
test bl, bl
jne 0x42423c
mov al, 1
jmp 0x4242a5
test al, 0x10
je 0x424244
xor eax, eax
jmp 0x4242a5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424268
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4242a5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4242a5
test al, 0x10
sete al
jmp 0x4242a5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42429f
cmp ebx, 3
je 0x42429f
cmp ebx, 0x7b
je 0x42429f
mov eax, esi
call fcn.004241d4
test al, al
jne 0x4242a3
xor eax, eax
jmp 0x4242a5
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4242ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a87c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42434a
test esi, 0x400
jne 0x4242e1
test esi, 0x10
setne bl
jmp 0x42434a
cmp byte [esp], 0
je 0x424315
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42434a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42434a
test esi, 0x10
je 0x424321
mov bl, 1
jmp 0x42434a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424348
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42434a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4298f8
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x429931
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409e7c
jmp 0x42993a
mov eax, ebx
mov edx, esi
call fcn.0040a0d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429944
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x429968
movzx eax, word [esp]
jmp 0x42996a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42b650
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 0x42b777
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b458
mov esi, eax
mov eax, dword [0x67bc64]
cmp byte [eax], 0
je 0x42b71d
mov eax, dword [0x67b7ec]
call fcn.00407814
call fcn.0040700c
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 [0x42b620]
call fcn.0040cf8c
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 0x42b790
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42b759
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x67b738]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x67f63c]
call fcn.0040d800
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 0x42b77e
lea eax, [ebp - 4]
mov edx, dword [0x42b620]
call fcn.0040d0b0
pop eax
jmp eax