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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x437144]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x42c014
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42619c
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x42629e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42624c
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42629f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426241
cmp dword [ebp - 0x34], 1
jne 0x426241
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x42bf84
push eax
call fcn.0040fdd8
add esp, 0xc
cmp eax, 1
jne 0x426241
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42629f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42629f
lea ecx, [ebp - 0x28]
push ecx
push 0x4260e4
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x42629f
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4262c5
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.00426065
cmp eax, ebx
pop ecx
pop ecx
jne 0x4262c7
inc edi
cmp edi, esi
jl 0x4262ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040f58c
leave
ret 4
Function at 0x4262d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x436120
je 0x426392
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42637a
mov esi, dword [ebx + 4]
jmp 0x426374
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426364
cmp dword [ebp - 0xc], 4
jne 0x426364
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42635c
or dword [eax + 0x9c], ecx
jmp 0x426364
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x426328
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42630b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x426df1
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42a444
call fcn.0040fe10
sub esp, 0x220
mov eax, dword [0x437144]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x426eea
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x426ebe
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401f30
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00426df1
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401120
test bl, bl
jne 0x426ebe
or dword [ebp - 4], 0xffffffff
jmp 0x426e2f
cmp esi, 0x103
je 0x426ece
cmp esi, 0x3f2
jne 0x426ede
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040f58c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427bee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x427c23
cmp edi, dword [esi + 0xc]
jge 0x427c23
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427c23
cmp edi, dword [eax + 8]
jge 0x427c23
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x427c25
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x427d29
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x427d5d
jmp fcn.0041c9e8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x427dce
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x427ec7
cmp eax, dword [edi + 0xc]
jge 0x427ec7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x427e1f
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x427eb0
cmp dword [ebp + 0xc], ebx
je 0x427eb0
jmp 0x427e49
push 0x10
call fcn.00427aba
cmp eax, ebx
je 0x427e35
mov ecx, eax
call fcn.00427d20
mov esi, eax
jmp 0x427e37
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x427e60
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x427e70
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x427e82
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041c9e8
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00410500
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x427ec2
cmp ecx, dword [esi + 8]
jge 0x427ec2
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x427ec8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427f87
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x427fb5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427fd3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427ef1
jmp 0x427fd3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427fd3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00427ef1
test edi, edi
mov eax, edi
jne 0x427fbd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43a244]
test ecx, ecx
je 0x428086
jmp 0x427f86
ret 8
Function at 0x4011de
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x402018]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x844]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x888]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x210], si
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x41c], si
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
mov word [ebp - 0x830], si
mov ecx, 0x104
lea edi, [ebp - 0x82e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 0x884], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x40130f
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x401285
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x4010fc
push eax
call edi
add esp, 0xc
call fcn.004011a9
test eax, eax
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x830]
push 0x4010d0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x888]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40135c
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push 0x400
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401372
push 0x10
push 0x4010bc
push dword [ebp - 0x834]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401372
push dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.004013f8
leave
ret
Function at 0x403424
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.00405ac0
test esi, esi
jne 0x40345c
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.00405bfc
jmp 0x40347a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403308
mov edi, eax
test esi, esi
je 0x40347a
cmp dword [ebx], 0
je 0x40347a
dec esi
jmp 0x403463
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403ae4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ab020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b5c
xor eax, eax
push ebp
push 0x403b55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bb4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ab020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ab020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404cc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae054], 0
je 0x404d29
cmp word [0x4ae330], 0xd7b2
jne 0x404cf1
cmp dword [0x4ae338], 0
jbe 0x404cf1
mov eax, 0x4ae32c
call dword [0x4ae348]
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 0x404d54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ab02c], 0
jne 0x404d45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ed4
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 [0x4ab030], 0
je 0x404efa
mov edx, esi
mov eax, ebx
call dword [0x4ab030]
jmp 0x404f09
mov eax, 8
call fcn.00403050
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ae055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e9c
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 0x4080f4
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 0x409e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b0b60
push 0xa
push 0x409eb4
mov eax, dword [0x4b0b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409e44
call fcn.00412924
push ebx
mov eax, dword [0x4b0b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409e5b
call fcn.00412924
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409e6d
call fcn.00412924
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b0b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b0b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b0b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b0b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b0b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b0b78], edx
pop esi
pop ebx
ret

Function at 0x40b790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b839
test eax, edx
je 0x40b83c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b7b9
push edx
mov edx, eax
mov eax, esp
call fcn.00405cdc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b7cf
push eax
lea eax, [esp + 8]
call fcn.00405cdc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b7de
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b805
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 0x40b81f
add ecx, 4
js 0x40b7f6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b81c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f74
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b803
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b805
xor eax, eax
ret
test eax, eax
je 0x40b84c
test edx, edx
jne 0x40b7a0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b4c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c87e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c89f
cmp ebx, 3
je 0x40c89f
cmp ebx, 0x7b
je 0x40c89f
mov eax, esi
call fcn.0040c820
test al, al
jne 0x40c8a3
xor eax, eax
jmp 0x40c8a5
mov al, 1
pop esi
pop ebx
ret
Function at 0x40fea0
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 0x40fed9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405bfc
jmp 0x40fee2
mov eax, ebx
mov edx, esi
call fcn.00405ac0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x410698
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 0x4107bd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004104ac
mov esi, eax
mov eax, dword [0x4ad594]
cmp byte [eax], 0
je 0x410765
mov eax, dword [0x4ad2ec]
call fcn.00403530
call fcn.004031b8
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 [0x410674]
call fcn.0040732c
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 0x4107d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4107a1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ad27c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0b50]
call fcn.00407420
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 0x4107c4
lea eax, [ebp - 4]
mov edx, dword [0x410674]
call fcn.00407338
ret
Function at 0x4113f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4114ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405b14
lea eax, [ebp - 4]
call fcn.00406530
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b4c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4114b4
mov eax, ebx
call fcn.00403050
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4114ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b4c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x411497
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4114dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x411497
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114b4
mov eax, dword [ebp - 0x10]
call fcn.0040306c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114d1
lea eax, [ebp - 4]
call fcn.00405ab0
ret

Function at 0x41279c
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.00405298
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 0x412746
mov eax, edi
add eax, eax
call fcn.00403050
mov esi, eax
jmp 0x412748
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 0x412781
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 0x41276b
mov eax, esp
cmp esi, eax
je 0x41278e
mov eax, esi
call fcn.0040306c
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 0x4127c8
cmp bl, 0
je 0x4127c4
cmp bl, 0x41
jl 0x4127bf
cmp bl, 0x5a
jg 0x4127bf
or bl, 0x20
xor al, bl
inc esi
jmp 0x4127a3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412708

Function at 0x42774c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00427450
dec esi
jne 0x42776e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret