joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408ebc
test al, al
jne 0x408f29
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408f75
xor eax, eax
push ebp
push 0x408f65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f6c
lea eax, [ebp - 0xc]
call fcn.00408ef8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40927c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40936b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c90
mov edx, dword [ebp - 8]
mov ecx, 0x409384
xor eax, eax
call fcn.00409170
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409339
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40929c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408d44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408d14
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045ec
call fcn.0040581c
call fcn.00402e88
jmp 0x40929c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409372
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409438
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409492
inc esi
xor edi, edi
cmp edi, 1
jne 0x40945e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40946c
cmp edi, 1
jle 0x40946c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408f08
test eax, eax
jne 0x409492
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409492
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409492
inc edi
dec esi
jne 0x40944e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40949c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x4094e9
xor ebx, ebx
jmp 0x4094de
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404bcc
test eax, eax
jne 0x4094dd
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4094bf
mov al, byte [ebp - 1]
sub al, 1
jb 0x4094f4
je 0x4094fd
jmp 0x409506
call fcn.00406fc0
mov edi, eax
jmp 0x409508
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x409508
xor edi, edi
test di, di
je 0x409599
xor ebx, ebx
jmp 0x409544
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x409543
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409538
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409543
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409515
xor ebx, ebx
jmp 0x40958e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40958d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409582
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40958d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409553
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x409904
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4099d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4099f0
push ebx
push 0x4099fc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409984
mov al, 0x62
call fcn.004095a8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004098d8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40998d
call fcn.004098d8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099de
lea eax, [ebp - 4]
call fcn.00403150
ret
Function at 0x409a70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
jmp 0x409b19
cmp dword [esi + 0x10], 0x1000
jne 0x409b05
test byte [esi + 0x15], 1
jne 0x409b05
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409ac4
cmp eax, 2
je 0x409ac4
cmp eax, 0x10
je 0x409ac4
cmp eax, 0x20
jne 0x409ad9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409ad9
mov bl, 1
xor ebp, ebp
jmp 0x409aea
mov eax, dword [esi]
add eax, ebp
call fcn.00409a68
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409add
test bl, bl
je 0x409b05
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a9c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40455c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406bb8
test esi, esi
jne 0x404594
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.00406cf4
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405fb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x555054], 0
je 0x406019
cmp word [0x555330], 0xd7b2
jne 0x405fe1
cmp dword [0x555338], 0
jbe 0x405fe1
mov eax, 0x55532c
call dword [0x555348]
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
push 0x406044
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d034], 0
jne 0x406035
push 0
push 0x54d7a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4061a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x54d038], 0
je 0x4061ca
mov edx, esi
mov eax, ebx
call dword [0x54d038]
jmp 0x4061d9
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x555055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40616c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408dd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406bb8
cmp si, word [0x54d7e8]
jb 0x408d0a
cmp si, word [0x54d9e8]
ja 0x408d0a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d0a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54d7e8]
jae 0x408ce4
mov edi, ebx
dec edi
jmp 0x408d05
cmp si, word [ebx*8 + 0x54d7e8]
jbe 0x408cf4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d05
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x54d7ec]
call fcn.00408b80
jmp 0x408d0a
cmp edi, dword [ebp - 0xc]
jae 0x408cce
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408db9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408db9
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406db8
push dword [ebp - 0x164]
push 0x408df4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406db8
push dword [ebp - 0x168]
push 0x408e04
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406db8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dde
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406bb0
ret
Function at 0x408f90
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 0x409095
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x557b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x557b74]
jne 0x408fdc
mov eax, esi
mov edx, 0x557b78
mov ecx, 0x55
call fcn.00406db8
push 0x557b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40907f
push 0x557b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406bb8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40904d
cmp byte [0x557b58], 0
je 0x409012
mov edx, esi
mov eax, ebx
call fcn.00408e70
jmp 0x40904d
mov edx, esi
mov eax, ebx
call fcn.00408c70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40904d
cmp dword [esi], 0
je 0x409036
mov eax, esi
mov edx, 0x4090b0
call fcn.00406fcc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406fcc
push 0x557b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x557b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406c44
push eax
push 0x557b78
call sub.kernel32.dll_lstrcpynW
push 0x557b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40909c
lea eax, [ebp - 4]
call fcn.00406ba8
ret
Function at 0x4092d4
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.00406ba0
xor eax, eax
push ebp
push 0x4094b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409314
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40932e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c44
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094a3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409530
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094a3
xor eax, eax
push ebp
push 0x40949c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004090d8
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 0x40942c
mov eax, dword [ebp - 0x10]
call fcn.004041e8
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.00406d64
jmp 0x409477
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409477
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094a3
cmp dword [ebp - 8], 0
je 0x409492
mov eax, dword [ebp - 8]
call fcn.00404204
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094c0
lea eax, [ebp - 4]
call fcn.00406ba8
ret
Function at 0x409784
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406ba0
mov eax, dword [ebp - 0x21c]
call fcn.00406ba0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409923
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406bb8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406c44
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409824
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409836
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409821
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4098ef
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40985f
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004092d4
cmp dword [ebp - 0x220], 0
je 0x409897
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409678
pop ecx
mov ebx, eax
jmp 0x4098ef
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408f90
mov eax, dword [ebp - 0x224]
call fcn.00409678
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098e2
cmp byte [0x557b58], 0
jne 0x4098e2
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408f90
mov eax, dword [ebp - 0x228]
call fcn.00409678
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098ef
push ebp
call fcn.00409728
pop ecx
mov ebx, eax
test bl, bl
je 0x409905
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40992a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406bb0
ret

Function at 0x40a09c
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 0x40da5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x557c58
push 0xa
push 0x40daf0
mov eax, dword [0x557c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40da80
call fcn.0041b67c
push ebx
mov eax, dword [0x557c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40da97
call fcn.0041b67c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40daa9
call fcn.0041b67c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x557c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x557c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x557c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x557c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x557c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x557c70], edx
pop esi
pop ebx
ret

Function at 0x412d88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412e31
test eax, edx
je 0x412e34
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412db1
push edx
mov edx, eax
mov eax, esp
call fcn.00406dd4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412dc7
push eax
lea eax, [esp + 8]
call fcn.00406dd4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412dd6
movzx eax, word [eax]
sub eax, ecx
jmp 0x412dfd
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 0x412e17
add ecx, 4
js 0x412dee
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412e14
push eax
mov eax, ecx
mov edx, 2
call fcn.00406244
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412dfb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412dfd
xor eax, eax
ret
test eax, eax
je 0x412e44
test edx, edx
jne 0x412d98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406c44
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4141ee
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41420f
cmp ebx, 3
je 0x41420f
cmp ebx, 0x7b
je 0x41420f
mov eax, esi
call fcn.00414190
test al, al
jne 0x414213
xor eax, eax
jmp 0x414215
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406c44
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414231
test al, 0x10
jne 0x414235
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x41816c
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_1
test eax, eax
jle 0x4181a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cf4
jmp 0x4181ae
mov eax, ebx
mov edx, esi
call fcn.00406bb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4181b8
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_1
test eax, eax
jle 0x4181da
movzx eax, word [esp]
jmp 0x4181dc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418abc
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 0x418be1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004188cc
mov esi, eax
mov eax, dword [0x5540e4]
cmp byte [eax], 0
je 0x418b89
mov eax, dword [0x553da0]
call fcn.004046c4
call fcn.00404350
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418a94]
call fcn.00408558
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x418bfc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418bc5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x553d24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x557c40]
call fcn.00408760
push eax
call sub.user32.dll_LoadStringW_1
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 0x418be8
lea eax, [ebp - 4]
mov edx, dword [0x418a94]
call fcn.00408678
ret