joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbdbd20
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 0xbdbd58
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 0xbdbd60
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 0xbdbd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xbdbd94
push eax
push esi
call fcn.00bde20b
add esp, 8
pop esi
ret 0x10

Function at 0xbdbda0
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 0xbdbe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xbdbe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xbf4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bdddff
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 0xbdbdda
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 0xbdbe30
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 0xbdbec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xbdbeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xbf4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bdddff
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 0xbdbeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xbdbe6a
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 0xbdc000
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 0xbdc131
push esi
call fcn.00bdf145
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.00bce080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xbdc131
push 0
push ebp
call fcn.00bce3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00bce260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xbdc08b
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.00bce2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xbdc121
push 0xbf4918
push edi
call fcn.00bdd3f0
push eax
push ebx
push esi
call fcn.00bdbf60
push 0xbf48f8
push edi
call fcn.00bdd3f0
push eax
push ebx
push esi
call fcn.00bdbf60
push 0xbf48d8
push edi
call fcn.00bdd3f0
push eax
push ebx
push esi
call fcn.00bdbf60
push 0xbf48c0
push edi
call fcn.00bdd3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00bdbf60
push 0xbf48a0
push edi
call fcn.00bdd3f0
push eax
push ebx
push esi
call fcn.00bdbf60
push 0xbf4888
push edi
call fcn.00bdd3f0
push eax
push ebx
push esi
call fcn.00bdbf60
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 0xbdd1b0
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.00bdd140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bdd140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bdd140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bdd140
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 0xbddbfa
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 0xbddc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xbef87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbddc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbddc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10012b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x1003018], ebx
jne 0x1001328
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
test si, si
je 0x1001314
push 0x10
lea eax, [ebp - 0x24]
push eax
movzx eax, si
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001314
test dword [ebp - 0x16], 0x800
je 0x1001314
push esi
call fcn.01001284
test eax, eax
je 0x1001314
inc ebx
xor eax, eax
test ebx, ebx
sete al
inc eax
push eax
push 0x1003018
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003018], 1
jne 0x1001338
test edi, edi
je 0x1001338
mov word [edi], si
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x1003018], 1
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.01001889
leave
ret 4
Function at 0x100187a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001d00
call fcn.01001a24
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001635
cmp eax, esi
jne 0x1001628
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001638
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100160f
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x100164b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100167a
mov eax, dword [0x1003374]
test eax, eax
jne 0x1001674
mov dword [0x1003374], esi
push 0x10010f8
push 0x10010ec
call fcn.01001571
pop ecx
pop ecx
test eax, eax
je 0x100167a
jmp 0x100179e
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x100169e
push 0x10010e8
push 0x10010e0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x20], ebx
jne 0x10016ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x10016cc
push 0x100337c
call fcn.01001999
pop ecx
test eax, eax
je 0x10016cc
push ebx
push 2
push ebx
call dword [0x100337c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100179e
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001736
cmp cx, bx
je 0x10016f1
cmp dword [ebp - 0x1c], ebx
jne 0x1001736
movzx ecx, word [eax]
cmp cx, bx
je 0x1001706
cmp cx, 0x20
ja 0x1001706
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10016f1
test byte [ebp - 0x40], 1
je 0x1001712
movzx ecx, word [ebp - 0x3c]
jmp 0x1001715
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x100177b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001747
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10016db
cmp dword [0x1003038], ebx
jne 0x1001789
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
jmp 0x10017aa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001a69
ret
call fcn.01001b71
jmp 0x10015d2
Function at 0x403fac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405b08
test esi, esi
jne 0x403fe2
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.00405c44
jmp 0x404000
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e90
mov edi, eax
test esi, esi
je 0x404000
cmp dword [ebx], 0
je 0x404000
dec esi
jmp 0x403fe9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405888
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42b04c], 0
je 0x4058ef
cmp word [0x42b338], 0xd7b2
jne 0x4058b1
cmp dword [0x42b340], 0
jbe 0x4058b1
mov eax, 0x42b334
call dword [0x42b350]
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, 0x40591c
call fcn.00405fec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426026], 0
jne 0x40590b
push 0
push 0x4269a2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4070b0
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 0x407215
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405b08
cmp si, word [0x4269e0]
jb 0x407148
cmp si, word [0x426be0]
ja 0x407148
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407148
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4269e0]
jae 0x407122
mov edi, ebx
dec edi
jmp 0x407143
cmp si, word [ebx*8 + 0x4269e0]
jbe 0x407132
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407143
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4269e4]
call fcn.00406fd0
jmp 0x407148
cmp edi, dword [ebp - 8]
jae 0x40710c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4071f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4071f7
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.00406128
push dword [ebp - 0x160]
push 0x407230
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406128
push dword [ebp - 0x164]
push 0x407240
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406128
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004062e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40721c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b68
ret
Function at 0x4073c8
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 0x4074cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x42db7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x42db94]
jne 0x407414
mov eax, esi
mov edx, 0x42db96
mov ecx, 0x55
call fcn.00406128
push 0x42db7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4074b5
push 0x42db7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405b08
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407483
cmp byte [0x42db78], 0
je 0x407448
mov edx, esi
mov eax, ebx
call fcn.004072ac
jmp 0x407483
mov edx, esi
mov eax, ebx
call fcn.004070b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407483
cmp dword [esi], 0
je 0x40746c
mov eax, esi
mov edx, 0x4074e4
call fcn.00406200
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004070b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406200
push 0x42db7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x42db94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406094
push eax
push 0x42db96
call sub.kernel32.dll_lstrcpynW
push 0x42db7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074d2
lea eax, [ebp - 4]
call fcn.00405b08
ret
Function at 0x407700
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.00405bec
xor eax, eax
push ebp
push 0x407925
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407740
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40775a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406094
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40790f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407829
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407829
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407970
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407829
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407970
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407829
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4079a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407829
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4079d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40790f
xor eax, eax
push ebp
push 0x407908
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040750c
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 0x407898
mov eax, dword [ebp - 0x10]
call fcn.00403bec
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.004060ec
jmp 0x4078e3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407a18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4078e3
mov eax, dword [ebp - 0x10]
call fcn.00403bec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407a18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004060ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40790f
cmp dword [ebp - 8], 0
je 0x4078fe
mov eax, dword [ebp - 8]
call fcn.00403c08
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 0x40792c
lea eax, [ebp - 4]
call fcn.00405b08
ret
Function at 0x407c14
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.00405bec
xor eax, eax
push ebp
push 0x407cd4
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.00406128
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406258
mov eax, dword [ebx]
call fcn.00407adc
test al, al
jne 0x407cb1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406128
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406258
mov eax, dword [ebx]
call fcn.00407adc
test al, al
jne 0x407cb1
mov eax, ebx
call fcn.00405b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cdb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405b68
lea eax, [ebp - 4]
call fcn.00405b08
ret

Function at 0x408264
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 0x415070
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.00406094
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4150da
test ah, 4
je 0x4150d3
test bl, bl
jne 0x415098
mov al, 1
jmp 0x415101
test al, 0x10
je 0x4150a0
xor eax, eax
jmp 0x415101
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4150c4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x415101
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x415101
test al, 0x10
sete al
jmp 0x415101
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4150fb
cmp ebx, 3
je 0x4150fb
cmp ebx, 0x7b
je 0x4150fb
mov eax, esi
call fcn.00415030
test al, al
jne 0x4150ff
xor eax, eax
jmp 0x415101
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x415108
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.00406094
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41515d
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415157
test ah, 4
je 0x415157
test al, 0x10
je 0x415157
mov eax, esi
call fcn.00406094
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41515d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4169fc
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 0x416a35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c44
jmp 0x416a3e
mov eax, ebx
mov edx, esi
call fcn.00405dc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x417744
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 0x417869
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041754c
mov esi, eax
mov eax, dword [0x42a428]
cmp byte [eax], 0
je 0x417811
mov eax, dword [0x42a348]
call fcn.0040450c
call fcn.00403d40
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 [0x417714]
call fcn.00406b4c
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 0x417884
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41784d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x42a324]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42dc44]
call fcn.00406c04
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 0x417870
lea eax, [ebp - 4]
mov edx, dword [0x417714]
call fcn.00406b58
ret