joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ac93
push esi
call fcn.00458fc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ac8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44ad19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ad02
mov eax, dword [esi + 8]
test eax, eax
je 0x44acb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44acfe
cmp eax, 2
je 0x44ad02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44acaa
cmp eax, 3
je 0x44acdd
cmp eax, 1
jne 0x44acaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44acaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44acaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ad40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ad28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ad40
add esp, 4
pop esi
ret

Function at 0x44b5c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44b5e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44b5e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44b5e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4662c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x466363
test eax, eax
jbe 0x466363
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466363
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46630e
xor esi, esi
jmp 0x466314
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46633f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00468330
add esi, eax
push esi
mov ebx, esi
call fcn.00468330
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x466320
pop ebp
test edi, edi
pop edi
jne 0x466363
test ebx, ebx
je 0x466363
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00471530
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x466485
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46659d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46659d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00481f4a
mov esi, eax
test esi, esi
je 0x46659d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46659d
mov ecx, esi
call fcn.00466410
cmp edi, eax
jge 0x46659d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x466523
mov dword [esp + 0x34], 1
jmp 0x46657e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46659d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004659f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4828ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x482925
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004809a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048097c
jmp 0x482931
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x483fe2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x484024
call fcn.00489a9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x484024
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48401b
xor eax, eax
jmp 0x48402c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484032
pop edi
pop esi
pop ebx
ret 4
Function at 0x489fcc
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 0x489ffa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48a018
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00489f32
jmp 0x48a018
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48a018
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00489f32
test edi, edi
mov eax, edi
jne 0x48a002
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4046bc
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.00407674
test esi, esi
jne 0x4046f4
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.004077b0
jmp 0x404712
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404600
mov edi, eax
test esi, esi
je 0x404712
cmp dword [ebx], 0
je 0x404712
dec esi
jmp 0x4046fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x408120
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 0x408162
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 0x408182
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00407884
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4095ec
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 0x409753
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407674
cmp si, word [0x5217e0]
jb 0x409686
cmp si, word [0x5219e0]
ja 0x409686
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409686
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5217e0]
jae 0x409660
mov edi, ebx
dec edi
jmp 0x409681
cmp si, word [ebx*8 + 0x5217e0]
jbe 0x409670
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409681
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5217e4]
call fcn.004094fc
jmp 0x409686
cmp edi, dword [ebp - 0xc]
jae 0x40964a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409735
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409735
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.00407884
push dword [ebp - 0x164]
push 0x409770
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407884
push dword [ebp - 0x168]
push 0x409780
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407884
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40975a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040766c
ret
Function at 0x40990c
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 0x409a11
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52cb60
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x52cb78]
jne 0x409958
mov eax, esi
mov edx, 0x52cb7c
mov ecx, 0x55
call fcn.00407884
push 0x52cb60
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4099fb
push 0x52cb60
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407674
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099c9
cmp byte [0x52cb5c], 0
je 0x40998e
mov edx, esi
mov eax, ebx
call fcn.004097ec
jmp 0x4099c9
mov edx, esi
mov eax, ebx
call fcn.004095ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4099c9
cmp dword [esi], 0
je 0x4099b2
mov eax, esi
mov edx, 0x409a2c
call fcn.00407a98
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004095ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407a98
push 0x52cb60
call sub.kernel32.dll_EnterCriticalSection
mov word [0x52cb78], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407700
push eax
push 0x52cb7c
call sub.kernel32.dll_lstrcpynW
push 0x52cb60
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a18
lea eax, [ebp - 4]
call fcn.00407664
ret
Function at 0x409c50
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.0040765c
xor eax, eax
push ebp
push 0x409e35
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409c90
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409caa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407700
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409e1f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409e44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409e44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409e78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409eac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409e1f
xor eax, eax
push ebp
push 0x409e18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409a54
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 0x409da8
mov eax, dword [ebp - 0x10]
call fcn.00404214
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.00407830
jmp 0x409df3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409eec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409df3
mov eax, dword [ebp - 0x10]
call fcn.00404214
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409eec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e1f
cmp dword [ebp - 8], 0
je 0x409e0e
mov eax, dword [ebp - 8]
call fcn.00404230
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 0x409e3c
lea eax, [ebp - 4]
call fcn.00407664
ret
Function at 0x40a100
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.0040765c
mov eax, dword [ebp - 0x21c]
call fcn.0040765c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a29f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407674
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407700
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 0x40a1a0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a1b2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a19d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a26b
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 0x40a1db
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.00409c50
cmp dword [ebp - 0x220], 0
je 0x40a213
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409ff4
pop ecx
mov ebx, eax
jmp 0x40a26b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040990c
mov eax, dword [ebp - 0x224]
call fcn.00409ff4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a25e
cmp byte [0x52cb5c], 0
jne 0x40a25e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040990c
mov eax, dword [ebp - 0x228]
call fcn.00409ff4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a26b
push ebp
call fcn.0040a0a4
pop ecx
mov ebx, eax
test bl, bl
je 0x40a281
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2a6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040766c
ret

Function at 0x40dbd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x52cc54
push 0xa
push 0x40dc64
mov eax, dword [0x52cc44]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dbf4
call fcn.0041980c
push ebx
mov eax, dword [0x52cc44]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dc0b
call fcn.0041980c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dc1d
call fcn.0041980c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52cc58], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52cc5c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52cc60], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52cc64], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52cc68], ecx
add edx, dword [eax + 0x14]
mov dword [0x52cc6c], edx
pop esi
pop ebx
ret
Function at 0x4115e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411691
test eax, edx
je 0x411694
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411611
push edx
mov edx, eax
mov eax, esp
call fcn.004078a0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411627
push eax
lea eax, [esp + 8]
call fcn.004078a0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411636
movzx eax, word [eax]
sub eax, ecx
jmp 0x41165d
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 0x411677
add ecx, 4
js 0x41164e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411674
push eax
mov eax, ecx
mov edx, 2
call fcn.00406704
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41165b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41165d
xor eax, eax
ret
test eax, eax
je 0x4116a4
test edx, edx
jne 0x4115f8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407700
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412842
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x412863
cmp ebx, 3
je 0x412863
cmp ebx, 0x7b
je 0x412863
mov eax, esi
call fcn.004127e4
test al, al
jne 0x412867
xor eax, eax
jmp 0x412869
mov al, 1
pop esi
pop ebx
ret

Function at 0x416c44
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 0x416c7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004077b0
jmp 0x416c86
mov eax, ebx
mov edx, esi
call fcn.00407674
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416c90
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 0x416cb2
movzx eax, word [esp]
jmp 0x416cb4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x418748
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 0x41881e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004076c8
lea eax, [ebp - 4]
call fcn.00408088
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407700
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x418808
mov eax, ebx
call fcn.00404214
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x418801
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.00407700
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4187eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418830
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4187eb
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 0x418808
mov eax, dword [ebp - 0x10]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418825
lea eax, [ebp - 4]
call fcn.00407664
ret

Function at 0x41963b
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.00406ae0
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 0x41965e
mov eax, edi
add eax, eax
call fcn.00404214
mov esi, eax
jmp 0x419660
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 0x419699
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 0x419683
mov eax, esp
cmp esi, eax
je 0x4196a6
mov eax, esi
call fcn.00404230
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 0x4196e0
cmp bl, 0
je 0x4196dc
cmp bl, 0x41
jl 0x4196d7
cmp bl, 0x5a
jg 0x4196d7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4196bb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419620
Function at 0x43d4f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43d53e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043cb58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43d557
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43ed9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52ef94
cmp dword [edi], 0
jne 0x43ee18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x52ef90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x521fe8
mov ecx, 2
call fcn.00404500
mov edx, 0x43ed74
lea eax, [esi + 5]
call fcn.0043ed94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043ed94
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43eded
mov dword [0x52ef90], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8