joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [0x403000]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x40665c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406b04
mov byte [esp], al
cmp byte [esp], 0
jne 0x4067e5
test edi, edi
je 0x4067e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406700
cmp edi, 0xffffffff
je 0x4066c1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066c1
mov byte [esp], 0
jmp 0x4067e5
cmp dword [esi], 1
jg 0x406700
cmp dword [esi], 0
jne 0x4066f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4066f2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4067e5
lea eax, [esp + 0xc]
call fcn.0040633c
dec ebp
test ebp, ebp
jg 0x4066a6
cmp edi, 0xffffffff
je 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406723
mov byte [esp], 0
jmp 0x4067e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40666a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406725
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406860
mov edx, eax
mov ebx, dword [0x4ad8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406789
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406787
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406789
xor edi, edi
cmp byte [esp], 0
je 0x4067af
mov ebx, dword [esi]
test bl, 1
jne 0x4067c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40678f
mov byte [esp + 1], 1
jmp 0x4067c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40673c
cmp byte [esp], 0
je 0x4067e5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40768c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad058], 0
je 0x4076f3
cmp word [0x4ad344], 0xd7b2
jne 0x4076b5
cmp dword [0x4ad34c], 0
jbe 0x4076b5
mov eax, 0x4ad340
call dword [0x4ad35c]
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, 0x407720
call fcn.004081cc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a9032], 0
jne 0x40770f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4078b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4a9034], 0
je 0x4078df
mov edx, edi
mov eax, esi
call dword [0x4a9034]
mov ebx, eax
jmp 0x4078f0
mov eax, 8
call fcn.004053f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ad059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40787c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407920
mov eax, ebx
call fcn.0040540c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a840
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 0x40a9a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004079f4
cmp si, word [0x4a9a08]
jb 0x40a8d8
cmp si, word [0x4a9c08]
ja 0x40a8d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a8d8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4a9a08]
jae 0x40a8b2
mov edi, ebx
dec edi
jmp 0x40a8d3
cmp si, word [ebx*8 + 0x4a9a08]
jbe 0x40a8c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a8d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4a9a0c]
call fcn.0040a760
jmp 0x40a8d8
cmp edi, dword [ebp - 8]
jae 0x40a89c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a987
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a987
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.0040856c
push dword [ebp - 0x160]
push 0x40a9c0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040856c
push dword [ebp - 0x164]
push 0x40a9d0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040856c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004087a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9ac
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407a54
ret
Function at 0x40ab58
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 0x40ac5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4afc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4afc28]
jne 0x40aba4
mov eax, esi
mov edx, 0x4afc2a
mov ecx, 0x55
call fcn.0040856c
push 0x4afc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ac46
push 0x4afc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004079f4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ac13
cmp byte [0x4afc0c], 0
je 0x40abd8
mov edx, esi
mov eax, ebx
call fcn.0040aa3c
jmp 0x40ac13
mov edx, esi
mov eax, ebx
call fcn.0040a840
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ac13
cmp dword [esi], 0
je 0x40abfc
mov eax, esi
mov edx, 0x40ac74
call fcn.004086c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a840
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004086c4
push 0x4afc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4afc28], bx
mov eax, dword [esi]
call fcn.004084c8
mov ecx, eax
mov eax, 0x4afc2a
mov edx, 0xaa
call fcn.0040a6c0
push 0x4afc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac63
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x40ae8c
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.00407ad8
xor eax, eax
push ebp
push 0x40b0b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40aecc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40aee6
mov eax, dword [ebp - 4]
call fcn.004084c8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a6c0
cmp word [ebp - 0x21a], 0
je 0x40b09b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b0c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40afb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b0c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40afb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b0fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40afb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b0fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40afb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b130
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40afb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b164
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b09b
xor eax, eax
push ebp
push 0x40b094
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ac9c
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 0x40b024
mov eax, dword [ebp - 0x10]
call fcn.004053f0
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.00408530
jmp 0x40b06f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b1a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b06f
mov eax, dword [ebp - 0x10]
call fcn.004053f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b1a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b09b
cmp dword [ebp - 8], 0
je 0x40b08a
mov eax, dword [ebp - 8]
call fcn.0040540c
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 0x40b0b8
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x40b3b8
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.00407ad8
xor eax, eax
push ebp
push 0x40b478
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.0040856c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040856c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov eax, ebx
call fcn.004079f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b47f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407a54
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x40cde0
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 0x40e818
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e804
add esp, 0x208
pop ebx
ret

Function at 0x4197cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x419825
test eax, edx
je 0x419828
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4197e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41980a
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 0x41980b
add ecx, 4
js 0x4197fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x419808
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41980a
xor eax, eax
ret
test eax, eax
je 0x419834
test edx, edx
jne 0x4197d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e154
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
test eax, eax
jle 0x41e18d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407b7c
jmp 0x41e196
mov eax, ebx
mov edx, esi
call fcn.00407dd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e1a0
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
test eax, eax
jle 0x41e1c2
movzx eax, word [esp]
jmp 0x41e1c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f214
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 0x41f339
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041f01c
mov esi, eax
mov eax, dword [0x4ac6c0]
cmp byte [eax], 0
je 0x41f2e1
mov eax, dword [0x4ac524]
call fcn.00405800
call fcn.00405544
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41f1e4]
call fcn.00409f74
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f354
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41f31d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ac4f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0634]
call fcn.0040a364
push eax
call sub.user32.dll_LoadStringW
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 0x41f340
lea eax, [ebp - 4]
mov edx, dword [0x41f1e4]
call fcn.0040a098
ret
Function at 0x420060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420160
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407e1c
lea eax, [ebp - 4]
call fcn.00407f84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42014a
mov eax, ebx
call fcn.004053f0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x420143
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42012d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x420174
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42012d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42014a
mov eax, dword [ebp - 0x10]
call fcn.0040540c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420167
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x42290c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x422952
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004228a0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422959
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x422b68
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x422bfd
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x422bb3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407b7c
jmp 0x422be7
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x422bca
lea eax, [ebp - 4]
call fcn.004079f4
jmp 0x422bdd
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00422a28
mov ebx, eax
test esi, esi
je 0x422bdd
dec esi
jmp 0x422bba
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c04
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x422c0c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a884
add esp, 0x208
pop ebx
ret

Function at 0x422c38
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a884
add esp, 0x208
pop ebx
ret

Function at 0x422d94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x422eca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422eb4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422df1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422eb4
cmp dword [ebp - 0x14], 0
jne 0x422e06
mov eax, dword [ebp - 0xc]
call fcn.004079f4
mov bl, 1
jmp 0x422eb4
cmp dword [ebp - 0x14], 0x70000000
jb 0x422e14
call fcn.0041f378
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407b7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407f74
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x422dba
test eax, eax
jne 0x422eb4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422e62
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422eb4
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x422e6a
dec esi
test esi, esi
je 0x422e79
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x422e69
cmp dword [ebp - 0x10], 7
jne 0x422e84
test esi, esi
je 0x422e84
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408644
cmp dword [ebp - 0x10], 7
jne 0x422ea7
test esi, esi
je 0x422ea7
lea eax, [ebp - 4]
call fcn.00407f74
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407dd4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ed1
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x424490
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b2904
mov eax, esi
mov edx, 8
test al, 1
je 0x4244ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4244ae
shr eax, 1
dec edx
jne 0x42449f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x424498
pop esi
ret
Function at 0x4244c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b2900], 0
jne 0x4244ee
call fcn.00424490
mov dword [esp], 0x4b2900
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x424518
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b2904]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4244f4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00426ff4
test al, al
jne 0x427061
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4270ad
xor eax, eax
push ebp
push 0x42709d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004084c8
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4270a4
lea eax, [ebp - 0xc]
call fcn.00427030
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret