joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b0e
Capabilities:
Terminate process

Disassembly:
push 0x10
mov eax, 0x40c344
call fcn.0040c065
mov esi, edx
mov edi, ecx
push esi
push edi
push 0x40172c
push 0x2ee0
call fcn.0040b1de
push eax
call fcn.0040b607
xor eax, eax
push 0x2ee1
mov dword [ebp - 0x1c], eax
mov dword [0x42eb48], eax
mov dword [ebp - 4], eax
call fcn.0040b1de
push 0x42eb38
push 0x42eb44
push 0x401560
push esi
push edi
push eax
call fcn.0040b700
or dword [ebp - 4], 0xffffffff
cmp dword [0x42eb08], 0
movzx eax, al
jne 0x405d6e
xor ebx, ebx
inc ebx
cmp dword [0x42eb38], ebx
jge 0x405b89
mov ecx, ebx
jmp 0x405d70
test eax, eax
jne 0x405b94
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x42eb00]
test eax, eax
je 0x405bf0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
jmp 0x405bdf
push 0xa
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [ebp - 0x18]
xor edx, edx
add esp, 0xc
cmp word [ecx], dx
jne 0x405c2b
lea ecx, [eax - 1]
cmp ecx, 0x44a
ja 0x405c2b
push eax
call fcn.0040a1f0
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push 0x401748
push eax
call edi
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405bae
mov eax, dword [0x42eb04]
test eax, eax
jne 0x405c43
cmp dword [0x42eaf4], eax
jne 0x405c69
cmp dword [0x42eaf8], eax
jne 0x405c69
cmp dword [0x42eb18], eax
jne 0x405c69
push 0x424
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a374
jmp 0x405b8d
push esi
push 0x49
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a2fc
jmp 0x405b8d
mov dword [0x42eb48], eax
test eax, eax
jg 0x405c69
push eax
push 0x40174c
push 0x41
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a336
jmp 0x405b8d
cmp dword [0x42eb40], 0
je 0x405c78
neg dword [0x42eb48]
xor ecx, ecx
mov esi, ecx
cmp dword [0x42eb38], ecx
jle 0x405cea
mov eax, dword [0x42eb44]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1c]
jne 0x405c91
sub ecx, edi
sar ecx, 1
cmp ecx, 4
jbe 0x405cdc
add ecx, 0xfffffffc
push 4
push 0x40176c
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405cdc
cmp dword [0x42eb50], eax
jne 0x405d05
mov eax, dword [0x42eb44]
mov dword [0x42eb4c], esi
mov eax, dword [eax + esi*4]
mov dword [0x42eb50], eax
inc esi
cmp esi, dword [0x42eb38]
jl 0x405c84
mov eax, dword [0x42eb04]
cmp dword [0x42eaf4], 0
je 0x405d51
cmp dword [0x42eb38], ebx
jle 0x405d0c
push 0x420
jmp 0x405c16
push 0x46
jmp 0x405c16
test eax, eax
je 0x405d31
push 0x4016bc
push 0x40167c
push 0x42
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a2be
jmp 0x405b8d
cmp dword [0x42eb18], 0
je 0x405d41
push 0x401720
jmp 0x405d15
cmp dword [0x42eaf8], 0
je 0x405d51
push 0x401700
jmp 0x405d15
cmp dword [0x42eb50], 0
jne 0x405d68
push 0x45
jmp 0x405c16
call fcn.0040bfd9
ret
xor ecx, ecx
call fcn.00405ae7
int3
Function at 0x408fec
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
lea edi, [edx + 7]
imul esi, ecx, 0xc
mov ebx, 0x2720
and edi, 0xfffffff8
jge 0x409017
push 0xd5
push 0x401a28
push 1
push ebx
call fcn.0040b1de
push eax
call fcn.0040a336
cmp edi, 0xff8
ja 0x4090b2
cmp edi, dword [esi + 0x430c08]
jle 0x40909b
mov ecx, dword [0x430bf4]
test ecx, ecx
je 0x40903e
mov eax, dword [ecx]
mov dword [0x430bf4], eax
jmp 0x40906d
push 0x1000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x409066
push 2
push ebx
call fcn.0040b1de
push eax
call fcn.0040a374
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ecx + 4], 0xff8
mov eax, dword [esi + 0x430c00]
mov dword [ecx], eax
mov dword [esi + 0x430c00], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 0x430c08], eax
lea eax, [ecx + 8]
mov dword [esi + 0x430c04], eax
push dword [ecx + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esi + 0x430c04]
sub dword [esi + 0x430c08], edi
lea eax, [ebx + edi]
mov dword [esi + 0x430c04], eax
jmp 0x4090f6
lea eax, [edi + 8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, eax
test ecx, ecx
je 0x409050
mov edx, dword [esi + 0x430c00]
test edx, edx
jne 0x4090d7
and dword [ecx], edx
mov dword [esi + 0x430c00], ecx
jmp 0x4090dd
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
push edi
lea ebx, [ecx + 8]
mov dword [ecx + 4], edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
and dword [esi + 0x430c08], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40b1de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x42d890]
push esi
push edi
xor edi, edi
test ecx, ecx
jne 0x40b211
cmp byte [0x42d894], cl
jne 0x40b211
push edi
push edi
call fcn.0040a967
mov ecx, eax
mov dword [0x42d890], ecx
test ecx, ecx
jne 0x40b211
mov byte [0x42d894], 1
mov esi, dword [ebp + 8]
mov eax, esi
sar eax, 4
push edi
inc eax
movzx eax, ax
push eax
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40b266
push eax
push dword [0x42d890]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
test ecx, ecx
je 0x40b266
and esi, 0x8000000f
jns 0x40b24e
dec esi
or esi, 0xfffffff0
add esi, 1
je 0x40b25e
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40b250
lea eax, [ecx + 2]
cmp word [ecx], di
jne 0x40b26b
mov eax, 0x40135c
pop edi
pop esi
pop ebp
ret 4

Function at 0x40b369
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x104]
push edi
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov edi, esi
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x40b3b2
sub edi, ecx
sar edi, 1
imul edi, dword [ebp - 0x118]
inc edi
cmp edi, 0x100
jle 0x40b3fb
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40b3f9
push 2
push 0x2720
call fcn.0040b1de
push eax
call fcn.0040a374
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor edx, edx
push edx
push edx
push edi
push ebx
push 0xffffffffffffffff
push esi
push edx
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [ebp - 0x11c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0xc
cmp edi, 0x100
jle 0x40b43b
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [esi + 2]
xor edx, edx
mov cx, word [esi]
add esi, 2
cmp cx, dx
jne 0x40b440
mov ecx, dword [ebp - 4]
sub esi, eax
sar esi, 1
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004093e3
leave
ret 8
Function at 0x40b462
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
inc ebx
test esi, esi
je 0x40b47a
cmp esi, ebx
jne 0x40b514
xor eax, eax
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp dword [esi*4 + 0x42d898], eax
jne 0x40b4ae
test esi, esi
jne 0x40b493
push ebx
jmp 0x40b495
push 2
call edi
pop ecx
push eax
call fcn.0040b2b4
mov dword [esi*4 + 0x42d8a0], eax
xor eax, eax
mov dword [esi*4 + 0x42d898], ebx
cmp dword [esi*4 + 0x42d8a0], eax
je 0x40b4c3
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
pop ecx
jmp 0x40b513
lea eax, [ebp + 0xc]
push eax
call fcn.0040b306
test eax, eax
je 0x40b4fe
mov ecx, dword [ebp + 8]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40b4d8
sub ecx, edx
lea eax, [ebp - 4]
push esi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40b513
test esi, esi
jne 0x40b505
push ebx
jmp 0x40b507
push 2
call edi
pop ecx
push dword [ebp + 8]
push eax
call fcn.0040b369
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40beea
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
sub dword [ebp + 0xc], eax
push 1
pop ecx
je 0x40bf00
push 8
mov dword [ebp + 0xc], ecx
jmp 0x40bf09
push 2
mov dword [ebp + 0xc], 4
pop ebx
push eax
push eax
push 3
push eax
push ecx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bf29
xor eax, eax
jmp 0x40bf80
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40bf3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40bf7a
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push edi
mov dword [ebp + 0xc], eax
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40bf7a
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
jmp 0x40bf7f
push esi
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40bfa5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b1de
Function at 0x40e1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553698
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6a60f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d750
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [str.SOFTWAREMetronAxm001]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e2b5
mov dword [ebp - 0x24], 0x104
lea edx, [ebp - 0x24]
push edx
push 0x104
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d8c0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [str.DefLicensePath]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e28d
cmp dword [ebp - 0x18], 1
je 0x40e29b
cmp dword [ebp - 0x18], 2
je 0x40e29b
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d750
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040e0c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040db00
movzx ecx, al
test ecx, ecx
je 0x40e3a3
lea ecx, [ebp - 0x14]
call fcn.0040d150
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040d8c0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e0c0
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0040e170
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40e326
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d1c0
jmp 0x40e3a3
mov edx, dword [str.Axm001.lic]
push edx
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040db90
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040d2e0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d2c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040d1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040d1c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d1c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4103a4
xor eax, eax
jmp 0x410424
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4103bb
xor eax, eax
jmp 0x410424
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x410407
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x410407
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4103de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x410413
xor eax, eax
jmp 0x410424
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x410421
xor eax, eax
jmp 0x410424
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419a79
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6a9da8]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x419ac5
push 0x63d24c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419ae2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6a9da8], eax
jmp 0x419ace
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x419ae2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x419b4f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x419afd
xor eax, eax
jmp 0x419b4f
lea eax, [ebp - 0x210]
push eax
call fcn.00536142
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x419b2e
push 0x63d284
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005371e1
add esp, 0xc
test eax, eax
jne 0x419af9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005371e1
add esp, 0xc
test eax, eax
jne 0x419af9
lea eax, [ebp - 0x210]
push eax
call fcn.0041e87c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00532ffe
leave
ret
Function at 0x41a2fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41a343
call fcn.00420684
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a343
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41a35f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429db5
mov ebx, eax
test edi, edi
je 0x41a35d
test esi, esi
je 0x41a35d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ee18
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55d1cf
call fcn.0053600e
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41ee3e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41ee92
call fcn.00411fad
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cfc0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00535f66
push eax
call fcn.0040f390
add esp, 0x14
test edi, edi
je 0x41ee85
push edi
call fcn.00532f70
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040e080
mov eax, esi
call fcn.00535fdc
ret 8

Function at 0x41f2af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x41f2d1
cmp dword [ebx + 0x74], 0
jne 0x41f2d1
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00420684
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f537
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f30b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00420684
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f342
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041f361
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x420e52
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x5542d0
call fcn.0053600e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ed40
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420eb4
call fcn.004206d2
cmp eax, 1
jne 0x420eb4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1f0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040d230
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.0040e080
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x420ec6
call fcn.00414dce
jmp 0x420ecc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040e080
mov eax, esi
call fcn.00535fdc
ret 0xc

Function at 0x420f7d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5542d0
call fcn.0053600e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ed40
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420fdb
call fcn.004206d2
cmp eax, 1
jne 0x420fdb
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1f0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040d230
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040e080
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e080
mov eax, esi
call fcn.00535fdc
ret 0x10

Function at 0x421002
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5542d0
call fcn.0053600e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ed40
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x421060
call fcn.004206d2
cmp eax, 1
jne 0x421060
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1f0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040d230
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040e080
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e080
mov eax, esi
call fcn.00535fdc
ret 0x14
Function at 0x4229f7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x6aa08c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x422a50
push 0x63d24c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422a6d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6aa08c], eax
jmp 0x422a59
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x422a6d
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x422baa
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005533d0
lea eax, [ebp - 0x14]
push eax
call fcn.00536142
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.005360e6
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.005533d0
lea eax, [ebp - 0x14]
push eax
call fcn.00536142
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005360e6
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005533d0
lea eax, [ebp - 0x14]
push eax
call fcn.00536142
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005360e6
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.005533d0
lea eax, [ebp - 0x14]
push eax
call fcn.00536142
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005360e6
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.005533d0
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00536142
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005360e6
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532ffe
leave
ret