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

Disassembly:
push 0xffffffffffffffff
push 0x43d13b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebp
push esi
xor esi, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], esi
push 0x452ac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 1
call fcn.00431a55
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareIBMACCESSIBM
push SysReAllocStringLen
mov byte [esp + 0x14c], 2
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411f36
mov esi, dword [esp + 8]
push 0x452ac0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.00431a55
lea edx, [esp + 8]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.FirstRunTime
push esi
mov byte [esp + 0x140], 3
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411f14
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
call fcn.00431b70
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call fcn.004319e7
test esi, esi
je 0x411f36
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x130]
lea eax, [esp + 0xc]
push eax
mov ecx, ebp
call fcn.0043175c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 1
call fcn.004319e7
test esi, esi
je 0x411f6d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x412460
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x13c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x14]
push 0xfe
push ecx
push 0x452ac0
xor bl, bl
push str.MENU1_BACKGROUND
push str.OTHER
mov byte [esp + 0x28], bl
call ebp
lea edx, [esp + 0x10]
lea edi, [esi + 0x144]
push edx
push str.__MENU1_BACKGROUND__
mov ecx, edi
call fcn.0042c3e2
mov eax, dword [esi + 0x13c]
lea ecx, [esp + 0x10]
push eax
push 0xfe
push ecx
push 0x452ac0
push str.MENU2_BACKGROUND
push str.OTHER
mov byte [esp + 0x28], bl
call ebp
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.__MENU2_BACKGROUND__
call fcn.0042c3e2
mov eax, dword [esi + 0x13c]
lea ecx, [esp + 0x10]
push eax
push 0xfe
push ecx
push 0x452ac0
push str.MENU3_BACKGROUND
push str.OTHER
mov byte [esp + 0x28], bl
call ebp
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.__MENU3_BACKGROUND__
call fcn.0042c3e2
mov eax, dword [esi + 0x13c]
lea ecx, [esp + 0x10]
push eax
push 0xfe
push ecx
push 0x452ac0
push str.MENU4_BACKGROUND
push str.OTHER
mov byte [esp + 0x28], bl
call ebp
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.__MENU4_BACKGROUND__
call fcn.0042c3e2
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x100
ret
Function at 0x412580
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43d206
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], esi
push 0x452ac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 1
call fcn.00431a55
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareIBMACCESSIBM
push SysReAllocStringLen
mov byte [esp + 0x158], 2
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4126dd
mov esi, dword [esp + 8]
mov dword [esp + 8], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.LastCycleTime
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412645
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xc]
push edx
call fcn.00431b70
jmp 0x4126cc
mov ecx, edi
call fcn.00412730
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.00411e40
mov ecx, dword [esp + 8]
mov byte [esp + 0x134], 3
mov eax, dword [ecx - 8]
test eax, eax
jle 0x41267b
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.00431b20
jmp 0x4126bb
lea eax, [esp + 0x20]
push eax
call fcn.0041620e
lea ecx, [esp + 0x14]
push str._m__d__Y
push ecx
lea ecx, [esp + 0x28]
call fcn.0041639f
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 4
call fcn.00431b20
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 3
call fcn.004319e7
lea ecx, [esp + 8]
mov byte [esp + 0x134], 2
call fcn.004319e7
test esi, esi
je 0x4126dd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x13c]
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.0043175c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 1
call fcn.004319e7
test esi, esi
je 0x412714
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x130
ret 4
Function at 0x412730
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43d240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push edi
mov ebp, ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareIBMACCESSIBM
push SysReAllocStringLen
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4128fa
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x24]
push esi
push edx
mov dword [esp + 0x28], edi
call fcn.0041620e
lea eax, [esp + 0x20]
push str._m__d__Y
push eax
lea ecx, [esp + 0x30]
call fcn.0041639f
lea ecx, [esp + 0x14]
push str._m__d__Y
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 1
call fcn.0041639f
mov esi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.LastCycleTime
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004319e7
cmp esi, ebx
je 0x4128e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea edx, [esp + 0x18]
push ebx
mov esi, eax
push edx
push 0x400
push esi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x44ed90]
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
mov bl, 2
push 0x44d194
push ecx
mov byte [esp + 0x48], bl
call fcn.0042ca77
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push str.Error_:
push eax
call fcn.00431cf0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.00431b20
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call fcn.004319e7
lea ecx, [esp + 0x10]
push 0x44d3ac
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00431c7c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x48], 4
call fcn.00431c7c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.00431b20
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call fcn.004319e7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.004319e7
mov eax, dword [esp + 0x10]
push 0x40
push str.Error
push eax
mov ecx, ebp
call fcn.004302fc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004319e7
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.004319e7
test edi, edi
pop esi
je 0x4128fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x412f00
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43d41b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x18], esi
lea eax, [esp + 0xc]
mov dword [esp + 0x224], esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
mov dword [esp + 0x28], 4
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x413016
push edi
mov edi, 0x452ac0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
push ecx
push edx
push eax
push 0
push str.AppData
push ebp
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412ff2
lea ecx, [esp + 0x20]
push str.IBM
lea esi, [ebx + 0xb8]
push ecx
push str._s_s
push esi
call fcn.0042ca77
mov edx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push 0
push edx
call edi
push str.Access
mov ecx, esi
call fcn.00431dc3
mov eax, dword [esi]
push 0
push eax
call edi
test ebp, ebp
pop edi
je 0x412ffe
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
lea ecx, [ebx + 0xb4]
push ecx
lea ecx, [ebx + 0xb8]
call fcn.00431b20
jmp 0x412ffe

Function at 0x4130c0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d458
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4131a1
mov eax, dword [esi + 0xb0]
push eax
push ecx
call fcn.0041c499
add esp, 8
test eax, eax
jne 0x413128
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004319e7
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
mov eax, dword [esp + 0x14]
push str.http:__NOSHOW_
push eax
call fcn.0041c499
add esp, 8
test eax, eax
jne 0x413148
push eax
mov ecx, esi
call fcn.004131d0
jmp 0x4131a1
mov ecx, dword [esp + 0x14]
push str.http:__SHOW_
push ecx
call fcn.0041c499
add esp, 8
test eax, eax
jne 0x413169
push 1
mov ecx, esi
call fcn.004131d0
jmp 0x4131a1
mov edx, dword [esp + 0x14]
push str.http:__EXIT_
push edx
call fcn.0041c499
add esp, 8
test eax, eax
jne 0x413189
push eax
mov ecx, esi
call fcn.0042e59f
jmp 0x4131a1
mov eax, dword [esp + 0x14]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004319e7
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x413240
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43d4b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00413a30
mov ecx, esi
call fcn.00413c80
push str.TEXT
lea ecx, [esp + 0x24]
call fcn.00431a55
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x430], 0
mov ebp, 1
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [0x44ed90]
mov dword [esp + 0x18], eax
push ebp
lea ecx, [esp + 0x1c]
push 0x44d194
push ecx
mov byte [esp + 0x43c], 1
call fcn.0042ca77
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00431c16
mov eax, dword [esi + 0xa0]
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x452ac0
push eax
push str.WELCOME
mov byte [esp + 0x448], 2
call ebx
test eax, eax
jle 0x4133fa
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00431a55
push 0x44d12c
lea ecx, [esp + 0x14]
mov byte [esp + 0x434], 3
call fcn.0042c6f1
mov edi, eax
cmp edi, 0xffffffff
jle 0x4133c1
lea edx, [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x18]
call fcn.0042c657
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], 4
mov eax, dword [eax - 8]
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0042c5db
push 0x44d180
lea ecx, [esp + 0x18]
mov byte [esp + 0x434], 5
call fcn.0042cadd
push 0x44d128
lea ecx, [esp + 0x18]
call fcn.0042ca8a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esi + 0xa4]
call fcn.0042c3e2
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], 4
call fcn.004319e7
lea ecx, [esp + 0x24]
mov byte [esp + 0x430], 3
call fcn.004319e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x430], 2
call fcn.004319e7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], 1
call fcn.004319e7
lea ecx, [esp + 0x18]
mov byte [esp + 0x430], 0
call fcn.004319e7
inc ebp
jmp 0x413291
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], 1
call fcn.004319e7
lea ecx, [esp + 0x18]
mov byte [esp + 0x430], 0
call fcn.004319e7
mov eax, dword [esi + 0xa0]
lea ecx, [esp + 0x28]
push eax
push 0x400
push ecx
push 0x452ac0
push str.TITLE
push str.WELCOME
call ebx
lea edx, [esp + 0x28]
lea ecx, [esi + 0xa4]
push edx
push str.__TITLE__
call fcn.0042c3e2
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004314b0
lea ecx, [esp + 0x20]
mov dword [esp + 0x430], 0xffffffff
call fcn.004319e7
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x413a30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43d58d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x452ac0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
call fcn.00431a55
mov al, byte [ebp + 0x9c]
mov dword [esp + 0x43c], 0
test al, al
je 0x413a7f
push str.Welcome_Large_Styles
jmp 0x413a84
push str.Welcome_Small_Styles
lea ecx, [esp + 0x1c]
call fcn.00431b70
push str.__STYLES__
lea ecx, [esp + 0x28]
call fcn.00431a55
mov eax, dword [esp + 0x24]
add ebp, 0xa4
push eax
mov ecx, ebp
mov byte [esp + 0x440], 1
call fcn.0042c6f1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx - 8]
push ecx
push eax
mov ecx, ebp
call fcn.0042c2d5
push str.STYLE
lea ecx, [esp + 0x2c]
call fcn.00431a55
mov esi, 1
mov bl, 3
mov edx, dword [0x44ed90]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
push esi
lea eax, [esp + 0x18]
push 0x44d194
push eax
mov byte [esp + 0x448], bl
call fcn.0042ca77
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.00431c16
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x34]
mov byte [esp + 0x43c], 4
mov eax, dword [ecx + 0xac]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x452ac0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x413c0d
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.00431a55
push 0x44e7d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x440], 5
call fcn.00431a55
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x440], 6
call fcn.0042cadd
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042ca8a
push 0x44ea40
lea ecx, [esp + 0x14]
call fcn.00431dc3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, ebp
call fcn.0042c32d
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 5
call fcn.004319e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 4
call fcn.004319e7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x43c], bl
call fcn.004319e7
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 2
call fcn.004319e7
inc esi
jmp 0x413ade
lea ecx, [esp + 0x1c]
mov byte [esp + 0x43c], bl
call fcn.004319e7
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 2
call fcn.004319e7
lea ecx, [esp + 0x28]
mov byte [esp + 0x43c], 1
call fcn.004319e7
lea ecx, [esp + 0x24]
mov byte [esp + 0x43c], 0
call fcn.004319e7
lea ecx, [esp + 0x18]
mov dword [esp + 0x43c], 0xffffffff
call fcn.004319e7
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret
Function at 0x414069
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4140c1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x452ac0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4140b4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4140c3
xor eax, eax
pop esi
leave
ret 4

Function at 0x422bb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x450060
cmp edx, dword [eax]
je 0x422bd6
add eax, 8
inc ecx
cmp eax, 0x4500f0
jl 0x422bc7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x450060]
jne 0x422d04
mov eax, dword [0x454ca4]
cmp eax, 1
je 0x422cde
test eax, eax
jne 0x422c07
cmp dword [0x44f94c], 1
je 0x422cde
cmp edx, 0xfc
je 0x422d04
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422c3e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004245c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041dc60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422c81
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041dc60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4439f8
push edi
call fcn.00426880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004245c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004245d0
lea eax, [ebp - 0xa0]
push 0x4439d8
push eax
call fcn.004245d0
push dword [esi + 0x450064]
lea eax, [ebp - 0xa0]
push eax
call fcn.004245d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004267f6
add esp, 0x2c
pop edi
jmp 0x422d04
lea eax, [ebp + 8]
lea esi, [esi + 0x450064]
push 0
push eax
push dword [esi]
call fcn.0041dc60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42b820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c900
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b8eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42b8eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b89e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b8a9
or bh, 8
and edi, 0x8000000
je 0x42b8c4
mov eax, dword [0x45647c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42b8eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bcc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42bceb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42bd0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42bd2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20