joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448710
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x468ad4]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4487c1
mov ecx, dword [esi + 0x9068]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ax, word [esi + 0xb00]
mov cx, word [esi + 0xb02]
lea edx, [esp + 0x18]
mov dword [esi + 0x9068], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push SysReAllocString
push 3
push 0
lea ebx, [esi + 0x75e]
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4487c1
mov ecx, dword [esi + 0x966]
or ecx, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4487d0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
sub esp, 0x64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4487f0
mov eax, 4
pop edi
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x448895
cmp byte [eax], 0
je 0x448895
push eax
call fcn.00440080
mov esi, eax
mov eax, dword [edi + 0xc7c]
add esp, 4
test eax, eax
je 0x448895
push esi
call fcn.00440020
add esp, 4
test eax, eax
je 0x448895
add esi, 0x40
lea ecx, [esp + 0x50]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x448895
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
pop edi
add esp, 0x64
ret

Function at 0x448910
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44893a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x448954
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.004309f0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x448c60
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x448c71
ret
mov cx, word [eax + 0xcd2]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x448c90
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x468ad4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x448d08
mov edx, dword [eax + 0xcca]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x463cb4]
xor ecx, edx
mov edx, dword [eax + 0xcce]
mov dword [eax + 0xcca], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0xcd2]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0xcce], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x463cb4]
xor ecx, edx
mov dword [eax + 0xcd2], ecx
ret

Function at 0x448d10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x448d5d
mov esi, dword [esp + 8]
mov dword [eax + 0xcca], 0x12345678
mov dword [eax + 0xcce], 0x23456789
mov dword [eax + 0xcd2], 0x34567890
mov al, byte [esi]
test al, al
je 0x448d5d
movsx ecx, al
push ecx
call fcn.00448c90
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x448d49
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x8cde]
test edx, edx
je 0x448da7
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x463cb4]
xor eax, edx
inc ecx
dec esi
jne 0x448d7f
pop esi
mov dword [edi + 0x8cde], eax
pop ebx
pop edi
ret
mov dword [edi + 0x8cde], eax
pop edi
ret
Function at 0x449fb0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x468ad4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x449fd2
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push esi
push ecx
mov dword [esi + 0x9078], ebx
mov dword [esi + 0x9084], ebx
mov dword [esi + 0x9080], ebx
mov dword [esi + 0x9a6], ebx
xor edi, edi
mov dword [esi + 0x908a], ebx
call fcn.00449ef0
add esp, 8
cmp eax, ebx
jne 0x44a049
mov eax, dword [esi + 0x908a]
cmp eax, edi
jbe 0x44a010
mov edi, eax
cmp dword [esi], ebx
jne 0x44a037
cmp dword [esp + 0xc], ebx
jne 0x44a037
lea edx, [esp + 0xc]
push esi
push edx
mov dword [esi + 0x908a], ebx
call fcn.00449ef0
add esp, 8
cmp eax, ebx
je 0x44a004
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9078]
push esi
push eax
call fcn.004492d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44a050
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x44a070
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
lea esi, [ebx + 0x9088]
push ebx
push esi
call fcn.00447eb0
xor ebp, ebp
push ebx
mov bp, word [esi]
push esi
inc ebp
xor edi, edi
call fcn.00447eb0
xor eax, eax
mov edx, dword [esp + 0x28]
mov ax, word [esi]
add esp, 0x10
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
cmp eax, edx
ja 0x44a0e1
mov edx, dword [esp + 0x14]
lea edx, [edx + edi*4]
mov dword [edx], ecx
inc edi
add edx, 4
dec eax
jne 0x44a0b0
dec ebp
je 0x44a0eb
push ebx
push esi
call fcn.00447eb0
xor eax, eax
add esp, 8
mov ax, word [esi]
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
lea edx, [eax + edi]
cmp edx, dword [esp + 0x18]
jbe 0x44a0a9
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov esi, dword [esp + 0x18]
mov eax, edi
sub eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 4
pop ebx
ret
Function at 0x44bf60
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x468ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x44c03d
mov eax, 0xffff6f6e
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x9191]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x8cf2], 6
jge 0x44bfa3
push esi
call fcn.00447e40
add esp, 4
mov cl, byte [esi + 0x8cee]
mov bl, byte [0x4640c0]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x8cee]
mov ecx, dword [esi + 0x8cf2]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x8cee], edx
mov dword [esi + 0x8cf2], ecx
mov al, byte [edi]
test al, al
jbe 0x44c028
cmp dword [esi + 0x8cf2], 8
jge 0x44bfeb
push esi
call fcn.00447e40
add esp, 4
mov dl, byte [esi + 0x8cee]
mov al, byte [0x4640c4]
and dl, al
mov eax, dword [esi + 0x908e]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x8cee]
mov edx, dword [esi + 0x8cf2]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x8cee], eax
mov dword [esi + 0x8cf2], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x44bfd9
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x44bf91
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x44c480
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44c553
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
push esi
jle 0x44c4bd
lea ecx, [eax + 0xed8]
or word [ecx], 0x8000
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x44c4aa
mov ecx, dword [eax + 0x91a2]
mov esi, 0x101
cmp ecx, esi
jle 0x44c4fb
lea edx, [eax + 0xed8]
mov cx, word [edx]
and ecx, 0x7fff
cmp ecx, 0x101
jl 0x44c4ed
and word [eax + ecx*2 + 0xcd6], 0x7fff
mov ecx, dword [eax + 0x91a2]
inc esi
add edx, 2
cmp esi, ecx
jl 0x44c4d2
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
jle 0x44c529
lea ecx, [eax + 0xed8]
test byte [ecx + 1], 0x80
je 0x44c51b
mov word [ecx], 0xffff
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x44c510
mov esi, dword [eax + 0x919e]
mov ecx, 0x101
cmp esi, ecx
jle 0x44c54c
lea edx, [eax + 0xed8]
cmp word [edx], 0xffff
je 0x44c54c
inc ecx
add edx, 2
cmp ecx, esi
jl 0x44c53e
mov dword [eax + 0x91a2], ecx
pop esi
ret
Function at 0x401250
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x41a250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [esp + 0x1a4]
push ebx
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x14], esi
call fcn.00411cb3
lea ecx, [esi + 0x5c]
mov dword [esp + 0x1a8], 0
call fcn.00410423
lea ecx, [esi + 0x70]
mov byte [esp + 0x1a8], 1
call fcn.00410423
mov ecx, dword [0x421870]
lea edi, [esi + 0x84]
mov dword [edi], ecx
lea ecx, [esi + 0x94]
mov byte [esp + 0x1a8], 3
call fcn.00402490
mov edx, dword [0x421870]
lea ebx, [esi + 0x154]
mov dword [ebx], edx
mov eax, dword [0x421870]
mov dword [esi + 0x158], eax
mov ecx, dword [0x421870]
mov dword [esi + 0x15c], ecx
mov edx, dword [0x421870]
mov dword [esi + 0x160], edx
mov eax, dword [0x421870]
mov dword [esi + 0x164], eax
mov ecx, dword [0x421870]
mov dword [esi + 0x168], ecx
mov edx, dword [0x421870]
mov dword [esi + 0x16c], edx
push 0x422b28
mov ecx, edi
mov byte [esp + 0x1ac], 0xb
mov dword [esi], method.CDialog.virtual_0
call fcn.00415153
push 0x422b28
mov ecx, ebx
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0xffffffff
call fcn.00415153
call fcn.00418fff
call fcn.00418fff
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x170], eax
lea eax, [esp + 0x10]
push eax
push 1
call sub.WSOCK32.dll_WSAStartup
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4
Function at 0x402ac0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41a578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x402b6a
mov eax, dword [0x421870]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0041537f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004153ce
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00415340
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402b51
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402b51
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00415016
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402be2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x402df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402ee2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00402b80
test eax, eax
jne 0x402ee2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00402b80
test eax, eax
jne 0x402ee2
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00404870
mov esi, eax
add esp, 8
test esi, esi
jne 0x402eb3
lea eax, [esp + 0x10]
push 0x42166c
push eax
call fcn.004047f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402eb3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x402eb6
mov byte [esi], 0
push 0x421668
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x403560
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x20019
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40358d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
je 0x4035c4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.00403840
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x40360c
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
push ebp
call edi
mov ecx, esi
call fcn.00403880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.004037a0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x403640
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push FindClose
push 0
push 0
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403670
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
push esi
push edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
ret
Function at 0x408b1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422500
cmp edx, dword [eax]
je 0x408b3f
add eax, 8
inc ecx
cmp eax, 0x422590
jl 0x408b30
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422500]
jne 0x408c6d
mov eax, dword [0x424b00]
cmp eax, 1
je 0x408c47
test eax, eax
jne 0x408b70
cmp dword [0x421d14], 1
je 0x408c47
cmp edx, 0xfc
je 0x408c6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408ba7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408d00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408080
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408bea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408080
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d2ac
push edi
call fcn.0040b690
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408d00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408d10
lea eax, [ebp - 0xa0]
push 0x41d28c
push eax
call fcn.00408d10
push dword [esi + 0x422504]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408d10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b7d0
add esp, 0x2c
pop edi
jmp 0x408c6d
lea eax, [ebp + 8]
lea esi, [esi + 0x422504]
push 0
push eax
push dword [esi]
call fcn.00408080
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 0x40f4f0
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.00406830
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40f5bb
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 0x40f5bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40f56e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40f579
or bh, 8
and edi, 0x8000000
je 0x40f594
mov eax, dword [0x42627c]
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 0x40f5bb
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 0x40f990
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 0x40f9bb
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 0x40f9df
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 0x40f9fa
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

Function at 0x412fb2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x412fea
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004153f6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004153ce
jmp 0x412ff6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4144ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x414541
call fcn.00418fff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414541
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x414538
xor eax, eax
jmp 0x414549
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041454f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4197be
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4197ec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41980a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419724
jmp 0x41980a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41980a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419724
test edi, edi
mov eax, edi
jne 0x4197f4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8