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

Disassembly:
pop eax
mov ecx, dword [0x580058]
pop eax
mov dword [eax], ebx
pop eax
add byte [eax + 0x61], bl
pop eax
jbe 0x41bf3a
sbb dword [eax + 0x10], 0x58
inc esp
pop eax
add al, 0x58
add byte [eax], bl
pop eax
add eax, 0x588558
pop eax
inc esp
pop eax
or byte [eax + 0x44], bl
pop eax
add al, 0x58
inc esp
pop eax
or al, 0x58
inc esp
pop eax
or byte [eax + 4], bl
pop eax
call 0x9aa063
pop eax
inc esp
pop eax
add al, 0x58
inc esp
pop eax
adc al, 0x58
les ebx, [eax - 0x3d]
pop eax
mov ah, 0x58
add bl, byte [eax - 0x15]
pop eax
int3
mov ebx, dword [eax + 0x14]
pop eax
add byte [eax - 0x75], bl
pop eax
add byte [eax], bl
pop eax
mov ebx, dword [eax + 0x18]
pop eax
push ecx
pop eax
test dword [eax + 0x75], ebx
pop eax
mov ebx, dword [eax + 0x60]
pop eax
rcr byte [eax + 0xa], cl
pop eax
or dword [eax - 0x38], ebx
pop eax
test dword [eax], ebx
pop eax
add byte [eax + 0x44], bl
pop eax
sbb al, 0x58
add byte [eax + 0xd], bl
pop eax
popfd
pop eax
add byte [eax + 0x4c], bl
pop eax
adc byte [eax + 0x50], bl
pop eax
mov dword [eax + 0x24], ebx
pop eax
mov dword [eax + 0x24], ebx
pop eax
loopne 0x41bfd6
invalid
mov dword [eax + 0x24], ebx
pop eax
inc esp
pop eax
add al, 0x58
call 0x99c03b
pop eax
les ebx, [eax - 0x3d]
pop eax
les ebx, [eax - 0x3d]
pop eax
add eax, 0x58f758
pop eax
add al, 0x58
invalid

Function at 0x420950
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x420a6c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x4209e0
cmp cl, 2
jne 0x420a54
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.004215c0
lea eax, [0x71c2f4]
mov dword [esp], eax
call fcn.0040c7e0
lea eax, [0x71c2d0]
test byte [eax], al
mov eax, dword [0x71c2e8]
mov ecx, dword [0x71c2d0]
sub eax, ecx
mov dword [0x71c2e8], eax
mov eax, dword [0x71c2dc]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x71c2dc], ecx
lea eax, [0x71c2f4]
mov dword [esp], eax
call fcn.0040c9b0
add esp, 0x14
ret
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00412560
lea eax, [0x71c2f4]
mov dword [esp], eax
call fcn.0040c7e0
lea eax, [0x71c2ac]
test byte [eax], al
mov eax, dword [0x71c2c4]
mov ecx, dword [0x71c2ac]
sub eax, ecx
mov dword [0x71c2c4], eax
mov eax, dword [0x71c2b8]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x71c2b8], ecx
lea eax, [0x71c2f4]
mov dword [esp], eax
call fcn.0040c9b0
jmp 0x4209dc
lea eax, [0x5f9444]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00426ea0
ud2
call fcn.0044a1d0
jmp fcn.00420950
Function at 0x462c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x462d1c
sub esp, 0x4c
mov eax, dword [0x715574]
mov dword [esp], eax
call fcn.0045c920
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
mov dword [esp + 4], 9
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
call fcn.0043ed10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x462d16
test ecx, ecx
je 0x462d08
cmp ecx, 0x3e5
jne 0x462ce4
mov eax, dword [0x711480]
mov ecx, dword [0x711484]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x4c
ret
mov dword [esp + 0x38], ecx
lea eax, [0x6e6510]
mov dword [esp], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call fcn.0040bf00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x462cd8
lea ecx, [0x624f90]
lea eax, [0x6e6510]
jmp 0x462cd8
xor ecx, ecx
mov eax, ecx
jmp 0x462cd8
call fcn.0044a1d0
jmp fcn.00462c10
Function at 0x4071f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407270
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407267
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040ba00
mov eax, dword [ebp - 4]
call fcn.0040b88c
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4072a0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040b928
jmp 0x4072bc
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040ba00
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040b88c
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4072e4
cmp edi, 0x104
jbe 0x4072d8
mov eax, dword [ebp - 4]
call fcn.0040b88c
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4072e4
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407303
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax
Function at 0x4094b4
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.00409974
mov byte [esp], al
cmp byte [esp], 0
jne 0x40963d
test edi, edi
je 0x40963d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40957d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409558
cmp edi, 0xffffffff
je 0x409519
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409519
mov byte [esp], 0
jmp 0x40963d
cmp dword [esi], 1
jg 0x409558
cmp dword [esi], 0
jne 0x40954a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40954a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40963d
lea eax, [esp + 0xc]
call fcn.0040918c
dec ebp
test ebp, ebp
jg 0x4094fe
cmp edi, 0xffffffff
je 0x40957d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40957b
mov byte [esp], 0
jmp 0x40963d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4094c2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40957d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004096b8
mov edx, eax
mov ebx, dword [0x6b88fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4095e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4095df
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4095e1
xor edi, edi
cmp byte [esp], 0
je 0x409607
mov ebx, dword [esi]
test bl, 1
jne 0x40961d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4095e7
mov byte [esp + 1], 1
jmp 0x40961d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409607
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409594
cmp byte [esp], 0
je 0x40963d
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 0x40a504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b805c], 0
je 0x40a56b
cmp word [0x6b8348], 0xd7b2
jne 0x40a52d
cmp dword [0x6b8350], 0
jbe 0x40a52d
mov eax, 0x6b8344
call dword [0x6b8360]
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, 0x40a598
call fcn.0040b2e4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ae03a], 0
jne 0x40a587
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a72c
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 [0x6ae03c], 0
je 0x40a757
mov edx, edi
mov eax, esi
call dword [0x6ae03c]
mov ebx, eax
jmp 0x40a768
mov eax, 8
call fcn.0040704c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6b805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a6f4
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 0x40a798
mov eax, ebx
call fcn.00407068
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ee94
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 0x40effb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a86c
cmp si, word [0x6aea20]
jb 0x40ef2c
cmp si, word [0x6aec20]
ja 0x40ef2c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ef2c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6aea20]
jae 0x40ef06
mov edi, ebx
dec edi
jmp 0x40ef27
cmp si, word [ebx*8 + 0x6aea20]
jbe 0x40ef16
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ef27
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6aea24]
call fcn.0040edb0
jmp 0x40ef2c
cmp edi, dword [ebp - 8]
jae 0x40eef0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40efdb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40efdb
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.0040b928
push dword [ebp - 0x160]
push 0x40f018
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b928
push dword [ebp - 0x164]
push 0x40f028
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b928
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040bb60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f002
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a8cc
pop eax
jmp eax
Function at 0x40f1b0
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 0x40f2b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6bac18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6bac30]
jne 0x40f1fc
mov eax, esi
mov edx, 0x6bac32
mov ecx, 0x55
call fcn.0040b928
push 0x6bac18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f29e
push 0x6bac18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a86c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f26b
cmp byte [0x6bac14], 0
je 0x40f230
mov edx, esi
mov eax, ebx
call fcn.0040f094
jmp 0x40f26b
mov edx, esi
mov eax, ebx
call fcn.0040ee94
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f26b
cmp dword [esi], 0
je 0x40f254
mov eax, esi
mov edx, 0x40f2d0
call fcn.0040ba80
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ee94
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ba80
push 0x6bac18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6bac30], bx
mov eax, dword [esi]
call fcn.0040b88c
mov ecx, eax
mov eax, 0x6bac32
mov edx, 0xaa
call fcn.0040ed10
push 0x6bac18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2bd
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax
Function at 0x40f4f8
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.0040a960
xor eax, eax
push ebp
push 0x40f720
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40f53e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40f558
mov eax, dword [ebp - 4]
call fcn.0040b88c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040ed10
cmp word [ebp - 0x21e], 0
je 0x40f703
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f730
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f627
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f730
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f627
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f76c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f627
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f76c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f627
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f7a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f627
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f7d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f703
xor eax, eax
push ebp
push 0x40f6fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040f2f8
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 0x40f68a
mov eax, dword [ebp - 0x14]
call fcn.0040704c
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.0040b8ec
jmp 0x40f6d5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f814
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f6d5
mov eax, dword [ebp - 0x14]
call fcn.0040704c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f814
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b8ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f703
cmp dword [ebp - 0xc], 0
je 0x40f6f0
mov eax, dword [ebp - 0xc]
call fcn.00407068
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 0x40f727
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a8cc
pop eax
jmp eax
Function at 0x40fa34
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.0040a960
xor eax, eax
push ebp
push 0x40faf6
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.0040b928
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bad8
mov eax, dword [ebx]
call fcn.0040f8dc
test al, al
jne 0x40fad1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b928
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bad8
mov eax, dword [ebx]
call fcn.0040f8dc
test al, al
jne 0x40fad1
mov eax, ebx
call fcn.0040a86c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fafd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a8cc
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax

Function at 0x4114b0
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 0x4164ac
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00416498
add esp, 0x208
pop ebx
ret

Function at 0x423c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423c69
test eax, edx
je 0x423c6c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423c27
movzx eax, word [eax]
sub eax, ecx
jmp 0x423c4e
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 0x423c4f
add ecx, 4
js 0x423c3f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x423c4c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x423c4e
xor eax, eax
ret
test eax, eax
je 0x423c78
test edx, edx
jne 0x423c18
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x425044
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.0040b88c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4250ae
test ah, 4
je 0x4250a7
test bl, bl
jne 0x42506c
mov al, 1
jmp 0x4250d5
test al, 0x10
je 0x425074
xor eax, eax
jmp 0x4250d5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425098
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4250d5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4250d5
test al, 0x10
sete al
jmp 0x4250d5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4250cf
cmp ebx, 3
je 0x4250cf
cmp ebx, 0x7b
je 0x4250cf
mov eax, esi
call fcn.00425004
test al, al
jne 0x4250d3
xor eax, eax
jmp 0x4250d5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x425184
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040b88c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4251d9
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4251d3
test ah, 4
je 0x4251d3
test al, 0x10
je 0x4251d3
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4251d9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x429efc
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 0x429f35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040aa04
jmp 0x429f3e
mov eax, ebx
mov edx, esi
call fcn.0040ac5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429f48
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 0x429f6c
movzx eax, word [esp]
jmp 0x429f6e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42b3a0
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 0x42b4c7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b1a8
mov esi, eax
mov eax, dword [0x6b7bb4]
cmp byte [eax], 0
je 0x42b46d
mov eax, dword [0x6b7738]
call fcn.00407cac
call fcn.004071c0
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 [0x42b370]
call fcn.0040e27c
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 0x42b4e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42b4a9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6b7680]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6bb63c]
call fcn.0040e9b4
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 0x42b4ce
lea eax, [ebp - 4]
mov edx, dword [0x42b370]
call fcn.0040e3a0
pop eax
jmp eax