joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419059
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0x419085
xor esi, esi
inc esi
jmp 0x4190d2
test esi, esi
jle 0x419097
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4190d2
push dword [ebp - 4]
call fcn.00418e7d
mov esi, eax
test esi, esi
js 0x4190d2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x4190d2
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 4], 0
je 0x4190e1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x419774
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x421b90], 0xffffffff
mov eax, 0x104
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
mov edi, 0x403914
je 0x4198c8
cmp dword [0x422f08], esi
je 0x4198c8
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x208
test eax, eax
jne 0x4197ea
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411211
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004173dd
test eax, eax
jns 0x419814
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41983d
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00411211
add esp, 0xc
push esi
call fcn.00419fdc
push eax
push 0x40396c
push 1
call fcn.004196b7
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x418]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0x403988
push 1
call fcn.004196b7
mov eax, dword [0x421b94]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x4198b1
dec eax
je 0x4198aa
dec eax
je 0x4198a3
dec eax
jne 0x4198b6
mov edi, 0x403930
jmp 0x4198b6
mov edi, 0x403928
jmp 0x4198b6
mov edi, 0x40391c
jmp 0x4198b6
mov edi, 0x403938
push edi
push 0x403940
push 1
call fcn.004196b7
add esp, 0xc
jmp 0x4198cb
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410f5c
leave
ret
Function at 0x4198f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push 0x900
mov edi, ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x419949
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41993f
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4199c9
test ebx, ebx
je 0x41998d
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x421b90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x419984
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4199c9
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x419949
cmp dword [ebp + 0x14], 0
je 0x4199c9
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x421b98]
push dword [0x421b90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4199c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4199c9
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 4], 0
je 0x4199d8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4199e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
xor edi, edi
and dword [ebp - 8], edi
push eax
call fcn.004170b3
mov esi, eax
test esi, esi
js 0x419a9b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x419a5e
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x421b90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x419a55
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x419a9a
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x419a1a
cmp dword [ebp + 0x10], 0
je 0x419a9a
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x421b98]
push dword [0x421b90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x419a9a
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 4], 0
je 0x419aa9
push dword [ebp - 4]
call fcn.00417131
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x419d67
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.0041128b
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10010], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x10014], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.00419ea9
mov esi, eax
test esi, esi
js 0x419e81
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x422f0c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419e34
push 0
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419e10
call edi
mov esi, eax
test esi, esi
jle 0x419e0e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x419e81
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x419e52
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x419dd3
call edi
mov esi, eax
test esi, esi
jle 0x419e4e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jns 0x419dd3
jmp 0x419e81
push dword [ebp - 0x10014]
xor esi, esi
push ebx
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x419e81
call edi
mov esi, eax
test esi, esi
jle 0x419e81
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 0x10008], 0
je 0x419e96
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret 0x10
Function at 0x4046d4
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.00406ee8
test esi, esi
jne 0x40470c
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.00407024
jmp 0x40472a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004045b8
mov edi, eax
test esi, esi
je 0x40472a
cmp dword [ebx], 0
je 0x40472a
dec esi
jmp 0x404713
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40475c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5a1008], 0x8088405
inc edx
mov dword [ebx + 0x5a1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406050
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a9054], 0
je 0x4060b1
cmp word [0x5a9330], 0xd7b2
jne 0x406079
cmp dword [0x5a9338], 0
jbe 0x406079
mov eax, 0x5a932c
call dword [0x5a9348]
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 0x4060dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a1030], 0
jne 0x4060cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40625c
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 [0x5a1034], 0
je 0x406282
mov edx, esi
mov eax, ebx
call dword [0x5a1034]
jmp 0x406291
mov eax, 8
call fcn.0040429c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406224
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 0x40799c
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 0x4079de
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 0x4079fe
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004070f8
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x409018
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 0x40917f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ee8
cmp si, word [0x5a17dc]
jb 0x4090b2
cmp si, word [0x5a19dc]
ja 0x4090b2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4090b2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5a17dc]
jae 0x40908c
mov edi, ebx
dec edi
jmp 0x4090ad
cmp si, word [ebx*8 + 0x5a17dc]
jbe 0x40909c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4090ad
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5a17e0]
call fcn.00408f28
jmp 0x4090b2
cmp edi, dword [ebp - 0xc]
jae 0x409076
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409161
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409161
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.004070f8
push dword [ebp - 0x164]
push 0x40919c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004070f8
push dword [ebp - 0x168]
push 0x4091ac
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004070f8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409186
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ee0
ret
Function at 0x409338
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 0x40943d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5abb74]
jne 0x409384
mov eax, esi
mov edx, 0x5abb78
mov ecx, 0x55
call fcn.004070f8
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409427
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ee8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093f5
cmp byte [0x5abb58], 0
je 0x4093ba
mov edx, esi
mov eax, ebx
call fcn.00409218
jmp 0x4093f5
mov edx, esi
mov eax, ebx
call fcn.00409018
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4093f5
cmp dword [esi], 0
je 0x4093de
mov eax, esi
mov edx, 0x409458
call fcn.0040730c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409018
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040730c
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5abb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406f74
push eax
push 0x5abb78
call sub.kernel32.dll_lstrcpynW
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409444
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x40967c
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.00406ed0
xor eax, eax
push ebp
push 0x409861
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4096bc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4096d6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406f74
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40984b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409870
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409765
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409870
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409765
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409765
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40984b
xor eax, eax
push ebp
push 0x409844
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409480
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 0x4097d4
mov eax, dword [ebp - 0x10]
call fcn.0040429c
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.004070a4
jmp 0x40981f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409918
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40981f
mov eax, dword [ebp - 0x10]
call fcn.0040429c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409918
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004070a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40984b
cmp dword [ebp - 8], 0
je 0x40983a
mov eax, dword [ebp - 8]
call fcn.004042b8
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 0x409868
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x409b2c
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.00406ed0
mov eax, dword [ebp - 0x21c]
call fcn.00406ed0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409ccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ee8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406f74
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 0x409bcc
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409bde
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409bc9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409c97
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 0x409c07
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.0040967c
cmp dword [ebp - 0x220], 0
je 0x409c3f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409a20
pop ecx
mov ebx, eax
jmp 0x409c97
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409338
mov eax, dword [ebp - 0x224]
call fcn.00409a20
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c8a
cmp byte [0x5abb58], 0
jne 0x409c8a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409338
mov eax, dword [ebp - 0x228]
call fcn.00409a20
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c97
push ebp
call fcn.00409ad0
pop ecx
mov ebx, eax
test bl, bl
je 0x409cad
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cd2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ee0
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x5abc5c
push 0xa
push 0x40df70
mov eax, dword [0x5abc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40df00
call fcn.0041d040
push ebx
mov eax, dword [0x5abc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40df17
call fcn.0041d040
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40df29
call fcn.0041d040
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5abc60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5abc64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5abc68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5abc6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5abc70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5abc74], edx
pop esi
pop ebx
ret

Function at 0x413398
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413441
test eax, edx
je 0x413444
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4133c1
push edx
mov edx, eax
mov eax, esp
call fcn.00407114
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4133d7
push eax
lea eax, [esp + 8]
call fcn.00407114
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4133e6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41340d
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 0x413427
add ecx, 4
js 0x4133fe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413424
push eax
mov eax, ecx
mov edx, 2
call fcn.004062fc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41340b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41340d
xor eax, eax
ret
test eax, eax
je 0x413454
test edx, edx
jne 0x4133a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406f74
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4149ca
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4149eb
cmp ebx, 3
je 0x4149eb
cmp ebx, 0x7b
je 0x4149eb
mov eax, esi
call fcn.0041496c
test al, al
jne 0x4149ef
xor eax, eax
jmp 0x4149f1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406f74
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414a0d
test al, 0x10
jne 0x414a11
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x414af4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406f74
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x414b16
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x419ab8
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 0x419af1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407024
jmp 0x419afa
mov eax, ebx
mov edx, esi
call fcn.00406ee8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41a408
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 0x41a52d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041a218
mov esi, eax
mov eax, dword [0x5a8774]
cmp byte [eax], 0
je 0x41a4d5
mov eax, dword [0x5a8124]
call fcn.00404880
call fcn.00404404
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 [0x41a3e0]
call fcn.00408a14
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 0x41a548
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41a511
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5a8030]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5abc40]
call fcn.00408b08
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 0x41a534
lea eax, [ebp - 4]
mov edx, dword [0x41a3e0]
call fcn.00408a20
ret