joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa6dbb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0xa99758
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0xb196ec]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ecx, 1
call fcn.00902f30
xor ebx, ebx
cmp eax, ebx
je 0xa6dbef
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0xa6dbf1
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], ebx
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x18], ecx
call fcn.00a6e130
mov ecx, dword [esp + 0x3c]
xor ebp, ebp
cmp ecx, ebx
je 0xa6dd22
mov eax, dword [esp + 0x38]
add ecx, eax
mov esi, eax
cmp eax, ecx
jbe 0xa6dc44
call fcn.00a7a8a1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00902df0
mov esi, dword [eax]
cmp dword [esp + 0x3c], ebx
je 0xa6dc88
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc eax
lea edx, [ecx*4]
mov dword [esp + 0x38], eax
cmp edx, eax
ja 0xa6dc7d
mov dword [esp + 0x38], ebx
sub dword [esp + 0x3c], 1
jne 0xa6dc88
mov dword [esp + 0x38], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
xor edi, edi
call edx
test eax, eax
jbe 0xa6dcc1
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push edi
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
call fcn.00a6e130
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
inc edi
call eax
cmp edi, eax
jb 0xa6dc97
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
test eax, eax
jne 0xa6dcd6
mov ecx, dword [esp + 0x54]
mov byte [ecx + 0x78], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, 3
jne 0xa6dd16
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push esi
mov ecx, esi
call eax
mov ecx, dword [esp + 0x58]
push eax
add ecx, 0x40
push ecx
call fcn.00a70200
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp dword [eax + 0x14], ebp
jle 0xa6dd16
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ebp, dword [eax + 0x14]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jne 0xa6dc33
mov ecx, dword [esp + 0x54]
add ecx, 0x40
push ecx
call fcn.00a70410
lea esi, [esp + 0x20]
call fcn.00a6e1b0
mov edx, dword [esp + 0x20]
push edx
call fcn.00a7a9b9
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
Function at 0xa78f21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xb196ec]
jne 0xa78f2b
repz ret
jmp fcn.00a82c45

Function at 0xa9197b
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.00a84c60
and dword [ebp - 4], 0
cmp dword [0xb51fa4], 0
mov ebx, eax
jne 0xa91a2c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0xa91add
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xaa0be0
push edi
call esi
test eax, eax
je 0xa91add
push eax
call fcn.00a84bee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0xb51fa4], eax
call esi
push eax
call fcn.00a84bee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0xb51fa8], eax
call esi
push eax
call fcn.00a84bee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0xb51fac], eax
call esi
push eax
call fcn.00a84bee
pop ecx
mov dword [0xb51fb4], eax
test eax, eax
je 0xa91a2c
push 0xaa0b88
push edi
call esi
push eax
call fcn.00a84bee
pop ecx
mov dword [0xb51fb0], eax
mov eax, dword [0xb51fb0]
cmp eax, ebx
je 0xa91a84
cmp dword [0xb51fb4], ebx
je 0xa91a84
push eax
call fcn.00a84c69
push dword [0xb51fb4]
mov esi, eax
call fcn.00a84c69
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0xa91a84
test edi, edi
je 0xa91a84
call esi
test eax, eax
je 0xa91a7b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0xa91a7b
test byte [ebp - 0xc], 1
jne 0xa91a84
or dword [ebp + 0x10], 0x200000
jmp 0xa91abd
mov eax, dword [0xb51fa8]
cmp eax, ebx
je 0xa91abd
push eax
call fcn.00a84c69
pop ecx
test eax, eax
je 0xa91abd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0xa91abd
mov eax, dword [0xb51fac]
cmp eax, ebx
je 0xa91abd
push eax
call fcn.00a84c69
pop ecx
test eax, eax
je 0xa91abd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xb51fa4]
call fcn.00a84c69
pop ecx
test eax, eax
je 0xa91add
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0xa91adf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x25f75f17
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1dd16aa8
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x381241
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..rsrc_1
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x8142f80
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4076d4
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.0040a3bc
test esi, esi
jne 0x40770a
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.0040a554
jmp 0x407728
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407618
mov edi, eax
test esi, esi
je 0x407728
cmp dword [ebx], 0
je 0x407728
dec esi
jmp 0x407711
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409004
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.004094c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40918d
test edi, edi
je 0x40918d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090a8
cmp edi, 0xffffffff
je 0x409069
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409069
mov byte [esp], 0
jmp 0x40918d
cmp dword [esi], 1
jg 0x4090a8
cmp dword [esi], 0
jne 0x40909a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40909a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40918d
lea eax, [esp + 0xc]
call fcn.00408cb8
dec ebp
test ebp, ebp
jg 0x40904e
cmp edi, 0xffffffff
je 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090cb
mov byte [esp], 0
jmp 0x40918d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409012
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409208
mov edx, eax
mov ebx, dword [0x5fd8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409131
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40912f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409131
xor edi, edi
cmp byte [esp], 0
je 0x409157
mov ebx, dword [esi]
test bl, 1
jne 0x40916d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409137
mov byte [esp + 1], 1
jmp 0x40916d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409157
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090e4
cmp byte [esp], 0
je 0x40918d
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 0x40a054
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fd05c], 0
je 0x40a0bb
cmp word [0x5fd348], 0xd7b2
jne 0x40a07d
cmp dword [0x5fd350], 0
jbe 0x40a07d
mov eax, 0x5fd344
call dword [0x5fd360]
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, 0x40a0e8
call fcn.0040abd4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f7036], 0
jne 0x40a0d7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a27c
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 [0x5f7038], 0
je 0x40a2a7
mov edx, edi
mov eax, esi
call dword [0x5f7038]
mov ebx, eax
jmp 0x40a2b8
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fd05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a244
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 0x40a2e8
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40db38
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 0x40dc9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3bc
cmp si, word [0x5f7a18]
jb 0x40dbd0
cmp si, word [0x5f7c18]
ja 0x40dbd0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dbd0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f7a18]
jae 0x40dbaa
mov edi, ebx
dec edi
jmp 0x40dbcb
cmp si, word [ebx*8 + 0x5f7a18]
jbe 0x40dbba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dbcb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f7a1c]
call fcn.0040da54
jmp 0x40dbd0
cmp edi, dword [ebp - 8]
jae 0x40db94
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dc7f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc7f
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.0040aebc
push dword [ebp - 0x160]
push 0x40dcbc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aebc
push dword [ebp - 0x164]
push 0x40dccc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aebc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dca6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a41c
pop eax
jmp eax
Function at 0x40de54
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 0x40df5a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ffc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5ffc30]
jne 0x40dea0
mov eax, esi
mov edx, 0x5ffc32
mov ecx, 0x55
call fcn.0040aebc
push 0x5ffc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40df42
push 0x5ffc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df0f
cmp byte [0x5ffc14], 0
je 0x40ded4
mov edx, esi
mov eax, ebx
call fcn.0040dd38
jmp 0x40df0f
mov edx, esi
mov eax, ebx
call fcn.0040db38
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40df0f
cmp dword [esi], 0
je 0x40def8
mov eax, esi
mov edx, 0x40df74
call fcn.0040b014
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040db38
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b014
push 0x5ffc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5ffc30], bx
mov eax, dword [esi]
call fcn.0040ae20
mov ecx, eax
mov eax, 0x5ffc32
mov edx, 0xaa
call fcn.0040d9b4
push 0x5ffc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df61
lea eax, [ebp - 4]
call fcn.0040a3bc
pop eax
jmp eax
Function at 0x424658
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4246b1
test eax, edx
je 0x4246b4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42466f
movzx eax, word [eax]
sub eax, ecx
jmp 0x424696
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 0x424697
add ecx, 4
js 0x424687
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424694
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424696
xor eax, eax
ret
test eax, eax
je 0x4246c0
test edx, edx
jne 0x424660
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x425938
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.0040ae20
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4259a2
test ah, 4
je 0x42599b
test bl, bl
jne 0x425960
mov al, 1
jmp 0x4259c9
test al, 0x10
je 0x425968
xor eax, eax
jmp 0x4259c9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42598c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4259c9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4259c9
test al, 0x10
sete al
jmp 0x4259c9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4259c3
cmp ebx, 3
je 0x4259c3
cmp ebx, 0x7b
je 0x4259c3
mov eax, esi
call fcn.004258f8
test al, al
jne 0x4259c7
xor eax, eax
jmp 0x4259c9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4259d0
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.0040ae20
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x425a6e
test esi, 0x400
jne 0x425a05
test esi, 0x10
setne bl
jmp 0x425a6e
cmp byte [esp], 0
je 0x425a39
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425a6e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x425a6e
test esi, 0x10
je 0x425a45
mov bl, 1
jmp 0x425a6e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425a6c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x425a6e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42a448
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 0x42a481
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a554
jmp 0x42a48a
mov eax, ebx
mov edx, esi
call fcn.0040a7ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a494
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 0x42a4b8
movzx eax, word [esp]
jmp 0x42a4ba
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42bbd8
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 0x42bcff
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b9e0
mov esi, eax
mov eax, dword [0x5fcafc]
cmp byte [eax], 0
je 0x42bca5
mov eax, dword [0x5fc7b4]
call fcn.00407d8c
call fcn.00407140
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 [0x42bba8]
call fcn.0040d094
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 0x42bd18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42bce1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5fc72c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x60063c]
call fcn.0040d658
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 0x42bd06
lea eax, [ebp - 4]
mov edx, dword [0x42bba8]
call fcn.0040d1b8
pop eax
jmp eax