joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf6ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf6ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf6ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf6ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf6ad94
push eax
push esi
call fcn.00f6d20b
add esp, 8
pop esi
ret 0x10

Function at 0xf6ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf6ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf6ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f6cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf6adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf6ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf6aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf6aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f6cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf6aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf6ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf6b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf6b131
push esi
call fcn.00f6e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f5d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf6b131
push 0
push ebp
call fcn.00f5d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f5d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf6b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f5d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf6b121
push 0xf83918
push edi
call fcn.00f6c3f0
push eax
push ebx
push esi
call fcn.00f6af60
push 0xf838f8
push edi
call fcn.00f6c3f0
push eax
push ebx
push esi
call fcn.00f6af60
push 0xf838d8
push edi
call fcn.00f6c3f0
push eax
push ebx
push esi
call fcn.00f6af60
push 0xf838c0
push edi
call fcn.00f6c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f6af60
push 0xf838a0
push edi
call fcn.00f6c3f0
push eax
push ebx
push esi
call fcn.00f6af60
push 0xf83888
push edi
call fcn.00f6c3f0
push eax
push ebx
push esi
call fcn.00f6af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf6c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f6c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f6c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f6c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f6c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf6cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf6cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf7e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf6cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf6cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404510
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.00406b98
test esi, esi
jne 0x404548
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.00406cd4
jmp 0x404566
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404454
mov edi, eax
test esi, esi
je 0x404566
cmp dword [ebx], 0
je 0x404566
dec esi
jmp 0x40454f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4061dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44204c], 0
je 0x40623d
cmp word [0x442328], 0xd7b2
jne 0x406205
cmp dword [0x442330], 0
jbe 0x406205
mov eax, 0x442324
call dword [0x442340]
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 0x406268
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x440030], 0
jne 0x406259
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4087a0
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 0x408907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b98
cmp si, word [0x4407e8]
jb 0x40883a
cmp si, word [0x4409e8]
ja 0x40883a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40883a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4407e8]
jae 0x408814
mov edi, ebx
dec edi
jmp 0x408835
cmp si, word [ebx*8 + 0x4407e8]
jbe 0x408824
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408835
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4407ec]
call fcn.004086b0
jmp 0x40883a
cmp edi, dword [ebp - 0xc]
jae 0x4087fe
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088e9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088e9
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.00406d80
push dword [ebp - 0x164]
push 0x408924
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d80
push dword [ebp - 0x168]
push 0x408934
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d80
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040712c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40890e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b90
ret
Function at 0x408938
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408b1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x444b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x444b6c]
cmp ax, word [ebp - 2]
jne 0x408990
mov eax, dword [ebp - 6]
mov edx, 0x444b70
mov ecx, 0x55
call fcn.00406d80
push 0x444b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b08
push 0x444b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406b98
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ad0
cmp byte [0x444b50], 0
je 0x408a86
call dword [0x444b48]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x444b4c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408a7f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x444b44]
test al, al
je 0x408a58
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041b0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x444b44]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408a4d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408a49
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408a36
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ad0
movzx eax, word [ebp - 0x16]
push eax
call dword [0x444b4c]
cmp dword [ebp - 0x10], 0
je 0x408a7e
mov eax, dword [ebp - 0x10]
call fcn.004041cc
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004087a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408ad0
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408ab5
mov eax, dword [ebp - 6]
mov edx, 0x408b38
call fcn.00406f88
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004087a0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406f88
mov eax, dword [ebp - 6]
push 0x444b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x444b6c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406c24
push eax
push 0x444b70
call sub.kernel32.dll_lstrcpynW
push 0x444b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b25
lea eax, [ebp - 0x1c]
call fcn.00406b88
ret
Function at 0x408d5c
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.00406b80
xor eax, eax
push ebp
push 0x408f41
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d9c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408db6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c24
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408f2b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408f2b
xor eax, eax
push ebp
push 0x408f24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408b60
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 0x408eb4
mov eax, dword [ebp - 0x10]
call fcn.004041b0
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.00406d44
jmp 0x408eff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408ff8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408eff
mov eax, dword [ebp - 0x10]
call fcn.004041b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408ff8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f2b
cmp dword [ebp - 8], 0
je 0x408f1a
mov eax, dword [ebp - 8]
call fcn.004041cc
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 0x408f48
lea eax, [ebp - 4]
call fcn.00406b88
ret
Function at 0x40920c
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.00406b80
mov eax, dword [ebp - 0x21c]
call fcn.00406b80
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4093ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b98
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406c24
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 0x4092ac
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4092be
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4092a9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409377
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 0x4092e7
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.00408d5c
cmp dword [ebp - 0x220], 0
je 0x40931f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409100
pop ecx
mov ebx, eax
jmp 0x409377
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408938
mov eax, dword [ebp - 0x224]
call fcn.00409100
pop ecx
mov ebx, eax
test bl, bl
jne 0x40936a
cmp byte [0x444b50], 0
jne 0x40936a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408938
mov eax, dword [ebp - 0x228]
call fcn.00409100
pop ecx
mov ebx, eax
test bl, bl
jne 0x409377
push ebp
call fcn.004091b0
pop ecx
mov ebx, eax
test bl, bl
je 0x40938d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093b2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b90
ret

Function at 0x40ad2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x444c48
push 0xa
push 0x40adc0
mov eax, dword [0x444c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ad50
call fcn.004157cc
push ebx
mov eax, dword [0x444c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ad67
call fcn.004157cc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ad79
call fcn.004157cc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x444c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x444c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x444c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x444c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x444c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x444c60], edx
pop esi
pop ebx
ret
Function at 0x40e494
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e53d
test eax, edx
je 0x40e540
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e4bd
push edx
mov edx, eax
mov eax, esp
call fcn.00406d9c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e4d3
push eax
lea eax, [esp + 8]
call fcn.00406d9c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e4e2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e509
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 0x40e523
add ecx, 4
js 0x40e4fa
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e520
push eax
mov eax, ecx
mov edx, 2
call fcn.004063b4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e507
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e509
xor eax, eax
ret
test eax, eax
je 0x40e550
test edx, edx
jne 0x40e4a4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406c24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f67e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40f69f
cmp ebx, 3
je 0x40f69f
cmp ebx, 0x7b
je 0x40f69f
mov eax, esi
call fcn.0040f620
test al, al
jne 0x40f6a3
xor eax, eax
jmp 0x40f6a5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406c24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f6c1
test al, 0x10
jne 0x40f6c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x412b60
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 0x412b99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cd4
jmp 0x412ba2
mov eax, ebx
mov edx, esi
call fcn.00406b98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412bac
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 0x412bce
movzx eax, word [esp]
jmp 0x412bd0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x413360
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 0x413485
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00413170
mov esi, eax
mov eax, dword [0x4411e0]
cmp byte [eax], 0
je 0x41342d
mov eax, dword [0x441098]
call fcn.00404908
call fcn.004042f8
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 [0x413338]
call fcn.004081f8
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 0x4134a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413469
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x441068]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x444c38]
call fcn.004082bc
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 0x41348c
lea eax, [ebp - 4]
mov edx, dword [0x413338]
call fcn.00408204
ret

Function at 0x4155fb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004066c4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41561e
mov eax, edi
add eax, eax
call fcn.004041b0
mov esi, eax
jmp 0x415620
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415659
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415643
mov eax, esp
cmp esi, eax
je 0x415666
mov eax, esi
call fcn.004041cc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4156a0
cmp bl, 0
je 0x41569c
cmp bl, 0x41
jl 0x415697
cmp bl, 0x5a
jg 0x415697
or bl, 0x20
xor al, bl
inc esi
jmp 0x41567b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4155e0