joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
dec ecx
movzx eax, byte [ecx]
test eax, eax
je 0x401106
mov dword [esi], eax
lea eax, [ecx - 1]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x497638]
test edx, edx
jne 0x40112b
mov dword [esi], 1
xor eax, eax
jmp 0x401151
movzx ecx, byte [edx + 0x497738]
movzx esi, byte [eax]
not ecx
and ecx, esi
jmp 0x401149
dec eax
movzx esi, byte [eax]
shl ecx, 6
xor esi, 0x3f
or esi, ecx
mov ecx, esi
dec edx
jne 0x40113b
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop esi
pop ebp
ret

Function at 0x401b9b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [edi]
test eax, eax
push ebx
push esi
jne 0x401c11
mov eax, dword [0x49c754]
test eax, eax
jne 0x401bb4
or eax, 0xffffffff
jmp 0x401cd4
cmp dword [eax + 8], 1
jne 0x401bfe
cmp dword [eax + 0xc], 1
jne 0x401bfe
mov esi, dword [eax + 0x10]
push 0xfffffffffffffff8
pop edx
mov ecx, esi
and ecx, edx
lea ecx, [ecx + eax + 0x14]
mov ebx, dword [ecx]
and esi, edx
and ebx, edx
cmp esi, ebx
jne 0x401bfe
mov cl, byte [ecx]
and cl, 7
lea edx, [eax + 0x14]
movzx eax, byte [eax + 0x10]
shl cl, 4
movzx ecx, cl
and eax, 7
or ecx, eax
mov dword [edi], edx
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
push 0xfffffffffffffffe
jmp 0x401cd3
push str.mad_heap_beginning
call dword [0x495974]
pop ecx
push 0xfffffffffffffffd
jmp 0x401cd3
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x401c2e
push str.misaligned__heapwalk_address
call dword [0x495974]
pop ecx
push 0xfffffffffffffffa
jmp 0x401cd3
call fcn.00401055
mov ecx, dword [eax]
push 0xfffffffffffffff8
pop edx
mov esi, ecx
and esi, edx
add eax, esi
mov esi, dword [eax + 4]
xor esi, ecx
test edx, esi
je 0x401c4e
push str.invalid__heapwalk_block
jmp 0x401c20
lea esi, [eax + 8]
jmp 0x401c5f
mov eax, dword [esi + 4]
mov esi, dword [eax]
test esi, esi
je 0x401cc1
add esi, 0x10
cmp dword [esi], 1
je 0x401c53
mov ecx, dword [esi]
mov eax, ecx
and eax, edx
lea eax, [eax + esi + 4]
mov ebx, dword [eax]
and ecx, edx
and ebx, edx
cmp ecx, ebx
jne 0x401cc5
mov al, byte [eax]
and al, 7
shl al, 4
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [esi]
and ecx, 7
or eax, ecx
mov dword [edi + 8], eax
mov eax, dword [esi]
and al, 1
neg al
lea edx, [esi + 4]
mov dword [edi], edx
sbb eax, eax
not eax
test esi, eax
jne 0x401bf7
mov ecx, esi
call fcn.0040135e
test al, al
je 0x401cd1
mov ecx, esi
call fcn.004011cf
sub dword [edi + 4], eax
jmp 0x401bf7
push 0xfffffffffffffffb
jmp 0x401cd3
push str.bad__heapwalk_chunk_node
call dword [0x495974]
pop ecx
push 0xfffffffffffffffc
pop eax
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f23
mov al, 1
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401f38
cmp eax, 3
je 0x401f38
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402149
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
je 0x402279
push dword [0x49c71c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x49c8d4]
mov eax, dword [0x49c8e0]
cmp ecx, eax
jb 0x40217b
sub eax, ecx
add eax, 0x1000
jmp 0x40217d
sub eax, ecx
cmp eax, 2
mov dword [ebp - 4], eax
jae 0x402193
push dword [0x49c71c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
leave
ret
cmp dword [ebp + 0xc], 0
jbe 0x402261
push esi
mov esi, dword [0x49c8d4]
push ebx
push edi
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x40225e
mov edi, dword [ebp + 0xc]
cmp edi, eax
jb 0x4021bc
lea edi, [eax - 1]
lea eax, [esi + edi]
cmp eax, 0x1000
jb 0x4021cd
mov edi, 0xfff
sub edi, esi
push edi
push dword [ebp + 8]
lea ebx, [esi + 0x49c8e8]
push ebx
call fcn.004555f0
add dword [ebp + 8], edi
sub dword [ebp + 0xc], edi
mov eax, dword [0x49c8e0]
add esp, 0xc
mov byte [ebx + edi], 0
inc edi
sub dword [ebp - 4], edi
add esi, edi
xor ebx, ebx
cmp esi, eax
jne 0x402236
cmp ebx, 1
jge 0x402236
mov eax, dword [0x49d8f0]
test eax, eax
je 0x402236
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [0x49d8ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x49c8d4]
mov ecx, dword [0x49c8e0]
add eax, edi
inc ebx
cmp eax, ecx
je 0x4021fb
mov esi, dword [0x49c8d4]
add esi, edi
cmp esi, 0x1000
mov dword [0x49c8d4], esi
jb 0x402254
xor esi, esi
mov dword [0x49c8d4], esi
cmp dword [ebp + 0xc], 0
ja 0x4021a6
pop edi
pop ebx
pop esi
push dword [0x49c71c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x49d8ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
leave
ret

Function at 0x40365c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x49d8f8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, eax
jne 0x40368d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x49d8f8], eax
dec eax
not eax
mov dword [0x49d8fc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4036b1
cmp dword [eax + 0x10], 0
jne 0x4036b1
push 1
lea ecx, [eax + 8]
call fcn.00403854
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
add ecx, 8
call fcn.00403854
mov eax, dword [esi]
mov ecx, dword [ebx]
lea ecx, [ecx + eax - 1]
dec eax
not eax
and ecx, eax
mov dword [ebx], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4036d1
cmp byte [eax], 0
je 0x4036d1
xor eax, eax
inc eax
jmp 0x4036d3
xor eax, eax
neg al
push 1
sbb eax, eax
and eax, 0x200000
mov edi, eax
or edi, 0x2000
push edi
push ecx
push dword [esi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
jne 0x4036ff
push 1
push edi
push dword [ebx]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405fd0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
jne 0x40608d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x483028
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x40600d
or eax, 0xffffffff
jmp 0x40608b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x406089
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x406081
cmp edi, 0xffffffff
je 0x406081
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
push dword [ebp + 8]
jne 0x40607b
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40608b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4061f2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49dab4]
sub esp, 0x24
test eax, eax
jne 0x406244
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 1
push 0x2000
mov dword [0x49dab8], eax
dec eax
push 0x1000000
push dword [0x49dab4]
not eax
mov dword [0x49daac], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [eax + 0x1000000]
mov dword [0x49dab4], eax
mov dword [0x49dad4], ecx
add eax, 0x1000000
mov dword [0x49dae0], eax
leave
ret
Function at 0x4073cc
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x4074fb
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsWow64Process
push edi
call esi
push str.GetNativeSystemInfo
push edi
mov ebx, eax
call esi
test ebx, ebx
mov esi, eax
je 0x4074f7
test esi, esi
je 0x4074f7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x120]
push eax
call edi
push eax
call ebx
test eax, eax
je 0x4074f7
cmp dword [ebp - 0x120], 0
je 0x4074f7
lea eax, [ebp - 0x144]
push eax
call esi
cmp word [ebp - 0x144], 6
je 0x4074f7
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00452b30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x40749c
mov byte [0x49570a], 0xc9
lea eax, [ebp - 0x11c]
push eax
push 0x40
push 0x2a
mov esi, 0x4956fc
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
push 0x40
push 7
push 0x49695c
call edi
push eax
call ebx
mov eax, esi
mov byte [0x49695d], al
shr eax, 8
mov byte [0x49695e], al
mov eax, esi
shr eax, 0x10
mov byte [0x49695f], al
mov eax, esi
shr eax, 0x18
mov byte [0x496960], al
mov eax, 0x4072d6
jmp 0x4074f9
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004533e4
leave
ret

Function at 0x4085e7
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
jmp 0x40860f
mov cl, byte [edx]
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x4085fc
add cl, 0x20
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x495af8]
inc edx
cmp edx, dword [ebp + 8]
jne 0x4085ef
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40beb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov ebx, dword [ebp + 8]
shr ecx, 2
mov esi, 0x495af8
je 0x40bef7
xor ebx, dword [edi]
add edi, 4
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
dec ecx
jne 0x40becb
mov ecx, edx
and ecx, 3
je 0x40bf0f
xor bl, byte [edi]
add edi, 1
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
dec ecx
jne 0x40befe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40dbc3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x49dc5c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40dbf6
mov ecx, dword [0x49dc58]
cmp ecx, dword [0x49ef24]
je 0x40dd13
call fcn.0040db80
mov eax, dword [0x49ef24]
push esi
push edi
push 0x50
mov dword [0x49dc58], eax
call fcn.0040dd20
push 0x51
mov dword [0x49dc2c], eax
call fcn.0040dd20
push 0xf
mov dword [0x49dc30], eax
call fcn.0040dd20
push 0xe
mov dword [0x49dc38], eax
call fcn.0040dd20
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x10
push 0x20
mov dword [0x49dc3c], eax
lea eax, [ebp - 0x24]
push eax
push 0x1010
mov edi, 0x400
push edi
mov dword [0x49dc34], ebx
mov dword [0x49dc40], ebx
mov dword [0x49dc44], 0x484b30
call esi
test eax, eax
jne 0x40dc98
mov eax, dword [eax*4 + 0x4956e0]
mov dword [0x49dc48], eax
call fcn.0040ddc9
push 0x10
mov word [0x49dc4c], ax
call fcn.0040dd20
cmp eax, ebx
pop ecx
je 0x40dcb1
mov cl, byte [eax]
sub cl, 0x30
mov byte [0x49dc50], cl
jmp 0x40dcb7
lea edx, [ebp - 0x24]
call fcn.0040dea1
cmp eax, 5
jb 0x40dc68
mov dword [0x49dc48], 0x484b1c
jmp 0x40dc74
mov byte [0x49dc50], bl
push eax
call fcn.00401990
pop ecx
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x11
push edi
call esi
test eax, eax
je 0x40dcd5
lea edx, [ebp - 0x24]
call fcn.0040dea1
movzx ax, al
push 0x20
mov word [0x49dc4e], ax
lea eax, [ebp - 0x24]
push eax
push 0x12
push edi
call esi
test eax, eax
pop edi
pop esi
je 0x40dcf8
lea edx, [ebp - 0x24]
call fcn.0040dea1
mov byte [0x49dc51], al
mov eax, 0x49dc28
mov byte [0x49dc52], bl
mov byte [0x49dc54], bl
mov dword [0x49dc5c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004533e4
leave
ret

Function at 0x40dd20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov esi, 0x400
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
cmp edi, ebx
jne 0x40dd87
push ebx
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40ddb7
inc edi
cmp edi, 0x20
jbe 0x40dd75
mov eax, edi
call fcn.00452f30
mov dword [ebp - 0x28], esp
jmp 0x40dd7b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push edi
push dword [ebp - 0x28]
push dword [ebp + 8]
push esi
call ebx
jmp 0x40dd88
inc edi
lea eax, [edi + edi]
push eax
call fcn.0040196a
cmp dword [ebp - 0x28], 0
pop ecx
mov ebx, eax
push edi
jne 0x40dda8
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40ddb5
push dword [ebp - 0x28]
push edi
push ebx
call fcn.00403dbe
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004533e4
leave
ret
Function at 0x40e70a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40e75d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40e773
push 0x80004005
call fcn.0040e055
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e776
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40ec8a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040e6d5
mov edi, eax
cmp edi, esi
je 0x40ecf2
lea ecx, [ebp - 0x70]
call fcn.0040e670
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40ed0a
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ec8a
cmp eax, esi
jne 0x40ed3d
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x40ecfa
lea ecx, [ebp - 0x70]
call fcn.0040e670
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040e670
mov eax, esi
jmp 0x40ecd8
Function at 0x418597
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esi + 0x204]
inc ebx
cmp byte [eax], 0
je 0x4185ea
push 0x476574
push eax
call fcn.00455b07
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x4185ea
push edi
push 0
push 0
push ebp
call fcn.004565ed
push ebp
mov edi, 0x200
push edi
push ebx
add esi, 4
push esi
call fcn.004564e4
add esp, 0x1c
cmp eax, edi
pop edi
je 0x4185e1
xor bl, bl
push ebp
call fcn.004559c7
pop ecx
jmp 0x4185ec
xor bl, bl
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x41a832
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a907
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a8f6
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x41a8e0
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x41a8f6
push eax
push edi
push dword [ebp - 0x110]
call fcn.0041a7cf
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x41a909
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004533e4
leave
ret 4
Function at 0x41aaac
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xe4]
sub esp, 0x164
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp + 0xe0], eax
mov eax, dword [ebp + 0xec]
push ebx
mov ebx, dword [ebp + 0xf4]
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x28], eax
lea eax, [esi + 4]
push edi
mov dword [ebp - 0x2c], eax
jb 0x41aaed
mov eax, dword [eax]
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
jb 0x41aafa
mov ecx, dword [edi]
jmp 0x41aafc
mov ecx, edi
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x41abba
dec eax
dec eax
je 0x41ab7e
sub eax, 0x1d
je 0x41ab4c
lea eax, [ebp - 0x64]
push 0x7d2
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab35
mov eax, dword [eax + 4]
jmp 0x41ab38
add eax, 4
push 0x10
xor esi, esi
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x64]
jmp 0x41abae
lea eax, [ebp - 0x80]
push 0x7d0
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab67
mov eax, dword [eax + 4]
jmp 0x41ab6a
add eax, 4
push 0x10
xor esi, esi
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x80]
jmp 0x41abae
lea eax, [ebp - 0x48]
push 0x7d1
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab99
mov eax, dword [eax + 4]
jmp 0x41ab9c
add eax, 4
xor esi, esi
push 0x10
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x48]
push esi
push 1
call fcn.00410bbf
xor al, al
jmp 0x41ac05
cmp dword [esi + 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jb 0x41abc5
mov eax, dword [eax]
cmp dword [ebx + 0x18], 0x10
jb 0x41abcd
mov edi, dword [edi]
push 1
push eax
xor esi, esi
push esi
push edi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x41ac03
lea eax, [ebp - 0x48]
push 0x7d2
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41abfe
mov eax, dword [eax + 4]
jmp 0x41ab9e
add eax, 4
jmp 0x41ab9e
mov al, 1
mov ecx, dword [ebp + 0xe0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
add ebp, 0xe4
leave
ret

Function at 0x421ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421d23
call fcn.004225f8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421d23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421d3e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00421897
test ebx, ebx
mov esi, eax
je 0x421d3c
test edi, edi
je 0x421d3c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x422c1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x422c5c
push 0x478048
push 4
push eax
call fcn.00401dd9
push eax
call fcn.0040df72
add esp, 0x10
jmp 0x422c6e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x422cdc
push edi
call fcn.004574ab
mov edi, dword [eax]
call fcn.004574ab
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00453b7d
add esp, 0x18
mov ebx, eax
call fcn.004574ab
cmp dword [eax], 0
je 0x422cbc
call fcn.004574ab
push dword [eax]
call fcn.0041bd1d
pop ecx
jmp 0x422cc3
call fcn.004574ab
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x422cdc
cmp ebx, esi
jae 0x422cdc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x422cde
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
leave
ret
Function at 0x425989
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4700a8
call fcn.004533f3
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4259ae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4259fa
call fcn.00425585
push eax
lea ecx, [ebp - 0x10]
call fcn.00411557
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e576
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041100a
mov eax, esi
call fcn.004534cb
ret 8