joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d50
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x41f000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4290e0]
jne 0x41f00a
repz ret
jmp fcn.00420fe8

Function at 0x41fccb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4290e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d845
and dword [ebp - 0x14], 0
cmp dword [0x42bf64], 0
mov dword [ebp - 0x18], eax
jne 0x41fd7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fe26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fe26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42bf64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42bf68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42bf6c], eax
call edi
push eax
call esi
mov dword [0x42bf74], eax
test eax, eax
je 0x41fd7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42bf70], eax
mov eax, dword [0x42bf70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fdd7
cmp dword [0x42bf74], ecx
je 0x41fdd7
push eax
call esi
push dword [0x42bf74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fdd7
test ebx, ebx
je 0x41fdd7
call edi
test eax, eax
je 0x41fdce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fdce
test byte [ebp - 8], 1
jne 0x41fdd7
or dword [ebp + 0x10], 0x200000
jmp 0x41fe0a
mov eax, dword [0x42bf68]
cmp eax, dword [ebp - 0x18]
je 0x41fe0a
push eax
call esi
test eax, eax
je 0x41fe0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fe0a
mov eax, dword [0x42bf6c]
cmp eax, dword [ebp - 0x18]
je 0x41fe0a
push eax
call esi
test eax, eax
je 0x41fe0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42bf64]
call esi
test eax, eax
je 0x41fe26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fe28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f000
leave
ret
Function at 0x403a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x4038ef
xor edi, edi
movzx ecx, word [edx + 0x26]
nop
jmp 0x403901
mov esi, dword [edx + 0x28]
jmp 0x40390f
jmp 0x40391d
xor eax, eax
lodsb al, byte [esi]
nop
cmp al, 0x61
nop
jmp 0x403931
jl 0x403947
nop
jmp 0x403944
sub al, 0x20
nop
jmp 0x403955
ror edi, 0xd
add edi, eax
dec ecx
nop
jmp 0x403969
jne 0x40390f
nop
jmp 0x40397d
nop
jmp 0x40398e
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
jmp 0x40399f
push edi
jmp 0x4039ae
add eax, edx
nop
mov eax, dword [eax + 0x78]
nop
jmp 0x4039c2
test eax, eax
je 0x403bd5
nop
jmp 0x4039db
add eax, edx
nop
jmp 0x4039ec
mov ecx, dword [eax + 0x18]
jmp 0x4039fa
push eax
nop
mov ebx, dword [eax + 0x20]
jmp 0x403a0a
add ebx, edx
nop
jmp 0x403a18
jmp 0x403a24
test ecx, ecx
nop
jmp 0x403a32
je 0x403bb2
nop
jmp 0x403a44
jmp 0x403a4f
dec ecx
jmp 0x403a5d
mov esi, dword [ebx + ecx*4]
nop
jmp 0x403a6f
add esi, edx
nop
jmp 0x403a7c
xor edi, edi
nop
xor eax, eax
nop
jmp fcn.00403a90
ror edi, 0xd
lodsb al, byte [esi]
nop
add edi, eax
cmp al, ah
nop
jmp 0x403aad
jne 0x403a7e
nop
nop
add edi, dword [ebp - 8]
nop
jmp 0x403acc
cmp edi, dword [ebp + 0x24]
jne 0x403a18
nop
pop eax
nop
mov ebx, dword [eax + 0x24]
jmp 0x403ae8
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
nop
jmp 0x403b02
mov ebx, dword [eax + 0x1c]
jmp 0x403b14
add ebx, edx
nop
jmp 0x403b26
mov eax, dword [ebx + ecx*4]
jmp 0x403b3c
add eax, edx
jmp 0x403b4f
mov dword [esp + 0x24], eax
nop
jmp 0x403b65
pop ebx
nop
jmp 0x403b77
pop ebx
nop
popal
nop
jmp 0x403b8b
pop ecx
nop
jmp 0x403ba0
pop edx
push ecx
nop
jmp eax
jmp 0x403bc2
pop eax
nop
jmp 0x403bd5
nop
pop edi
pop edx
mov edx, dword [edx]
jmp 0x403be7
jmp 0x4038e1

Function at 0x406740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + edx + 0x56144d8b]
mov esi, dword [ebp + 8]
push edi
mov esp, dword [esi]
or al, 0x8b
push esi
adc byte [edx], ch
push edi
push edx
mov dword [esi + 8], eax
jo 0x4067ab
dec edi
or ch, byte [ebp + 6]
add byte [eax], al
mov eax, dword [eax + 0x5a006a35]
push eax
call fcn.00406dd0
cmp dword [eax], 0x18
pop edi
pop esi
pop ebp
ret
push ecx
call fcn.00405960
mov edi, eax
xor edi, dword [ebx]
dec ecx
jno 0x4067ab
mov ebx, 0xf30000fa
stosd dword es:[edi], eax
sbb dword [edx], edx
invalid
Function at 0x407044
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407086
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4070a6
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040ab24
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4072a0
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.0040a004
test esi, esi
jne 0x4072d6
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.0040a18c
jmp 0x4072f4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071e4
mov edi, eax
test esi, esi
je 0x4072f4
cmp dword [ebx], 0
je 0x4072f4
dec esi
jmp 0x4072dd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x408c4c
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.0040910c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408dd5
test edi, edi
je 0x408dd5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408cf0
cmp edi, 0xffffffff
je 0x408cb1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408cb1
mov byte [esp], 0
jmp 0x408dd5
cmp dword [esi], 1
jg 0x408cf0
cmp dword [esi], 0
jne 0x408ce2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408ce2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408dd5
lea eax, [esp + 0xc]
call fcn.004088fc
dec ebp
test ebp, ebp
jg 0x408c96
cmp edi, 0xffffffff
je 0x408d15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d13
mov byte [esp], 0
jmp 0x408dd5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408c5a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408e50
mov edx, eax
mov ebx, dword [0x64d8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d79
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d77
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d79
xor edi, edi
cmp byte [esp], 0
je 0x408d9f
mov ebx, dword [esi]
test bl, 1
jne 0x408db5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d7f
mov byte [esp + 1], 1
jmp 0x408db5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d9f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408d2c
cmp byte [esp], 0
je 0x408dd5
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 0x409c9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64d05c], 0
je 0x409d03
cmp word [0x64d348], 0xd7b2
jne 0x409cc5
cmp dword [0x64d350], 0
jbe 0x409cc5
mov eax, 0x64d344
call dword [0x64d360]
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, 0x409d30
call fcn.0040a81c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x644032], 0
jne 0x409d1f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409ec4
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 [0x644034], 0
je 0x409eef
mov edx, edi
mov eax, esi
call dword [0x644034]
mov ebx, eax
jmp 0x409f00
mov eax, 8
call fcn.00406ea0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x64d05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409e8c
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 0x409f30
mov eax, ebx
call fcn.00406ebc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d3f4
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 0x40d55b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a004
cmp si, word [0x644a10]
jb 0x40d48c
cmp si, word [0x644c10]
ja 0x40d48c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d48c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x644a10]
jae 0x40d466
mov edi, ebx
dec edi
jmp 0x40d487
cmp si, word [ebx*8 + 0x644a10]
jbe 0x40d476
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d487
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x644a14]
call fcn.0040d310
jmp 0x40d48c
cmp edi, dword [ebp - 8]
jae 0x40d450
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d53b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d53b
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.0040ab24
push dword [ebp - 0x160]
push 0x40d578
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab24
push dword [ebp - 0x164]
push 0x40d588
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab24
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d562
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a064
pop eax
jmp eax
Function at 0x40d710
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 0x40d816
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64fc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x64fc2c]
jne 0x40d75c
mov eax, esi
mov edx, 0x64fc2e
mov ecx, 0x55
call fcn.0040ab24
push 0x64fc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d7fe
push 0x64fc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a004
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d7cb
cmp byte [0x64fc10], 0
je 0x40d790
mov edx, esi
mov eax, ebx
call fcn.0040d5f4
jmp 0x40d7cb
mov edx, esi
mov eax, ebx
call fcn.0040d3f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d7cb
cmp dword [esi], 0
je 0x40d7b4
mov eax, esi
mov edx, 0x40d830
call fcn.0040ac7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d3f4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac7c
push 0x64fc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x64fc2c], bx
mov eax, dword [esi]
call fcn.0040aa6c
mov ecx, eax
mov eax, 0x64fc2e
mov edx, 0xaa
call fcn.0040d270
push 0x64fc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d81d
lea eax, [ebp - 4]
call fcn.0040a004
pop eax
jmp eax
Function at 0x40da48
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.0040a0e8
xor eax, eax
push ebp
push 0x40dc71
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40da88
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40daa2
mov eax, dword [ebp - 4]
call fcn.0040aa6c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d270
cmp word [ebp - 0x21a], 0
je 0x40dc59
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcf0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db71
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dd24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dc59
xor eax, eax
push ebp
push 0x40dc52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d858
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 0x40dbe0
mov eax, dword [ebp - 0x10]
call fcn.00406ea0
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.0040aad0
jmp 0x40dc2b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dd64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dc2b
mov eax, dword [ebp - 0x10]
call fcn.00406ea0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dd64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc59
cmp dword [ebp - 8], 0
je 0x40dc46
mov eax, dword [ebp - 8]
call fcn.00406ebc
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 0x40dc78
lea eax, [ebp - 4]
call fcn.0040a004
pop eax
jmp eax
Function at 0x40df84
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.0040a0e8
xor eax, eax
push ebp
push 0x40e046
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.0040ab24
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acd4
mov eax, dword [ebx]
call fcn.0040de2c
test al, al
jne 0x40e021
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab24
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acd4
mov eax, dword [ebx]
call fcn.0040de2c
test al, al
jne 0x40e021
mov eax, ebx
call fcn.0040a004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e04d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a064
lea eax, [ebp - 4]
call fcn.0040a004
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x424805
test eax, edx
je 0x424808
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4247c3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4247ea
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 0x4247eb
add ecx, 4
js 0x4247db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4247e8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4247ea
xor eax, eax
ret
test eax, eax
je 0x424814
test edx, edx
jne 0x4247b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x425d10
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 0x425d3d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x425e10
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.0040aa6c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425e7a
test ah, 4
je 0x425e73
test bl, bl
jne 0x425e38
mov al, 1
jmp 0x425ea1
test al, 0x10
je 0x425e40
xor eax, eax
jmp 0x425ea1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425e64
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x425ea1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x425ea1
test al, 0x10
sete al
jmp 0x425ea1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x425e9b
cmp ebx, 3
je 0x425e9b
cmp ebx, 0x7b
je 0x425e9b
mov eax, esi
call fcn.00425dd0
test al, al
jne 0x425e9f
xor eax, eax
jmp 0x425ea1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x425ea8
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.0040aa6c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x425f46
test esi, 0x400
jne 0x425edd
test esi, 0x10
setne bl
jmp 0x425f46
cmp byte [esp], 0
je 0x425f11
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425f46
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x425f46
test esi, 0x10
je 0x425f1d
mov bl, 1
jmp 0x425f46
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425f44
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x425f46
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x429f30
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 0x429f69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a18c
jmp 0x429f72
mov eax, ebx
mov edx, esi
call fcn.0040a3e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429f7c
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 0x429f9e
movzx eax, word [esp]
jmp 0x429fa0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42b2a0
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 0x42b3c7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b0a8
mov esi, eax
mov eax, dword [0x64cbdc]
cmp byte [eax], 0
je 0x42b36d
mov eax, dword [0x64c84c]
call fcn.004079d8
call fcn.00407014
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 [0x42b270]
call fcn.0040caf4
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 0x42b3e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42b3a9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x64c7bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x650634]
call fcn.0040cf14
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 0x42b3ce
lea eax, [ebp - 4]
mov edx, dword [0x42b270]
call fcn.0040cc18
pop eax
jmp eax