joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405a12
pop dword [ebp - 8]
mov eax, 0x693dcd10
add eax, 0x97028d02
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2d18a654
sub dword [ebp - 0x18], 0xdec66109
mov dword [ebp - 0x14], 0x3218c3
sub dword [ebp - 0x14], 0xcdfecc7e
mov dword [ebp - 0x10], 0x34984bcb
add dword [ebp - 0x10], 0x17b3f863
mov dword [ebp - 0xc], 0x6bbbf94b
sub dword [ebp - 0xc], 0x6bbbf94b
lea eax, [ebp - 0x18]
push eax
mov eax, 0x3efd542b
add eax, 0xc1432cd9
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x9257f380
sub dword [ebp - 0x18], 0x1de58a2a
mov dword [ebp - 0x14], 0xd8f37991
add dword [ebp - 0x14], 0x6878e7e4
mov dword [ebp - 0x10], 0x21a6c847
sub dword [ebp - 0x10], 0xbe375bdb
mov dword [ebp - 0xc], 0x82f76189
sub dword [ebp - 0xc], 0x82f76189
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x977380a7
add eax, 0x68cd0059
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x34f84
push 0
call eax
mov ecx, 0x3ff5
mov edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 8]
mov edx, 0x659d1e93
sub edx, 0x2be949c3
add dword [ebp - 4], edx
mov esi, dword [ebx]
xor dword [ebp - 4], eax
add esi, edx
add dword [ebp - 4], esi
mov dword [edi], esi
sub dword [ebp - 4], 0xf8075ea
add edi, 0x879d947f
sub edi, 0x879d947b
add ebx, 0x3fbfd6b0
sub ebx, 0x3fbfd6ac
loop 0x405b28
add eax, 0x79a09f27
sub eax, 0x799fac80
xor ebx, ebx
add ebx, eax
add eax, 0xf3587414
add eax, 0xca78bf1
mov ecx, 0x3faf1e13
add ecx, 0xc090e1ed
add ecx, dword [ebp - 8]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x100051ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100051fe
pop dword [ebp - 0x48]
mov eax, 0x100051fe
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x25cd54dd
add dword [ebp - 0x58], 0x2884f06e
mov dword [ebp - 0x54], 0xfe4d1aac
sub dword [ebp - 0x54], 0xcc19ce67
mov dword [ebp - 0x50], 0x553ded3b
sub dword [ebp - 0x50], 0x8f1a90d
mov dword [ebp - 0x4c], 0xbea21c78
add dword [ebp - 0x4c], 0x415de388
lea eax, [ebp - 0x58]
push eax
mov eax, 0x2b855bde
add eax, 0xe47b5446
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x21fdf99e
add dword [ebp - 0x58], 0x52746fb8
mov dword [ebp - 0x54], 0xdc30eed9
add dword [ebp - 0x54], 0x653b729c
mov dword [ebp - 0x50], 0x74005b4e
add dword [ebp - 0x50], 0xef6f111e
mov dword [ebp - 0x4c], 0x5c76f57e
add dword [ebp - 0x4c], 0xa3890a82
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x2023b614
sub eax, 0x102305e8
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x360f9
push 0
call eax
mov ecx, 0x1797d62f
add ecx, 0xe8686c54
mov edi, eax
mov esi, 0x10046200
add esi, dword [ebp - 0x48]
mov ebx, 0x8bba74af
sub dword [ebp - 0xc], 0x1fe2b80
mov edx, dword [esi]
xor dword [ebp - 0x44], 0x490b691c
sub edx, ebx
xor dword [ebp - 4], 0xbc96384e
mov dword [edi], edx
add dword [ebp - 0x3c], edi
add edi, 0x60e1d3a5
sub edi, 0x60e1d3a1
add esi, 0x9a13436d
add esi, 0x65ecbc97
loop 0x1000530f
add eax, 0x2d43eb8a
add eax, 0xd2bd1155
mov ebx, eax
add eax, 0xcc9d23db
add eax, 0x3362dc2a
mov ecx, 0x7605f2a7
add ecx, 0x99fa0d59
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x408297
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 1
jne 0x4082aa
mov al, 1
jmp 0x4083e4
cmp dword [ebp + 8], 3
jne 0x4082b7
xor al, al
jmp 0x4083e4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x46be70
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408334
mov dword [ebp - 0x14], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46be9c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40834b
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.RealTek_Customer_Tool_Configuration_Parameters
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4083a5
mov dword [ebp - 0x14], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push str.RTDTool_Version
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4083bc
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jbe 0x4083cc
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
jmp 0x4083d2
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
jae 0x4083e2
xor al, al
jmp 0x4083e4
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40c913
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
call fcn.00404cc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404cc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x1e8
call fcn.0040cec0
test eax, eax
je 0x40c975
mov eax, dword [0x45d1b8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004504e6
jmp 0x40c9e7
mov ecx, dword [ebp - 0x28]
add ecx, 0x1e8
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.0040cae4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00450496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045035d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1f4]
mov ecx, dword [eax*4 + 0x471fb0]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1ec]
mov ecx, dword [eax*4 + 0x471fc4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str._s___s____s_
lea eax, [ebp - 0x18]
push eax
call fcn.0044b146
add esp, 0x14
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.0040cd36
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0045058c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00450496
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0045035d
lea ecx, [ebp - 0x18]
call fcn.00404d20
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0044f9c6
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [0x45d1bc]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x18]
call fcn.00404ce0
push eax
lea ecx, [ebp - 0x18]
call fcn.00404ce0
push eax
lea ecx, [ebp - 0x18]
call fcn.0045078d
push eax
push 1
push 0
mov ecx, dword [0x45d1c0]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004507dc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045035d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4124ea
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 0xc]
call fcn.00404d20
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412548
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0
je 0x412558
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0045035d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x412580
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4125d5
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x4125d5
mov ecx, dword [ebp - 4]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret 4
Function at 0x41318b
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459057
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x14]
call fcn.00404cc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004364ab
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
push str..
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004505f2
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.00450496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045035d
push 0
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x30]
call fcn.0043656e
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4132a8
lea ecx, [ebp - 0x30]
call fcn.0043678e
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0043685d
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00450496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0045035d
lea ecx, [ebp - 0x30]
call fcn.00436755
test eax, eax
je 0x41326c
jmp 0x413218
lea ecx, [ebp - 0x30]
call fcn.00413450
test eax, eax
je 0x413288
push 1
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0041318b
jmp 0x4132a3
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00412580
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x413218
lea ecx, [ebp - 0x30]
call fcn.00436524
cmp dword [ebp + 0xc], 0
je 0x4132c5
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004364e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0045035d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x42dcce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a73a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
push 0x472600
lea ecx, [ebp - 0x14]
call fcn.004503cb
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
add eax, 0x1112c
push eax
push 0x46f8ec
lea ecx, [ebp - 0x14]
push ecx
call fcn.0044b146
add esp, 0xc
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [str.RealTek_DebugTool_Configuration_Parameters]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x14]
call fcn.00404ce0
push eax
lea ecx, [ebp - 0x14]
call fcn.00404ce0
push eax
lea ecx, [ebp - 0x14]
call fcn.0045078d
push eax
push 1
push 0
mov ecx, dword [str.isp_title]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004507dc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0043107b
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0045058c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00450496
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0045035d
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0044f9c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0045035d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4420ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4712d0
cmp edx, dword [eax]
je 0x44210f
add eax, 8
inc ecx
cmp eax, 0x471360
jl 0x442100
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4712d0]
jne 0x44223d
mov eax, dword [0x47471c]
cmp eax, 1
je 0x442217
test eax, eax
jne 0x442140
cmp dword [0x470bc4], 1
je 0x442217
cmp edx, 0xfc
je 0x44223d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x442177
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00444230
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043de60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4421ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043de60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46127c
push edi
call fcn.00444d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00444230
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00444240
lea eax, [ebp - 0xa0]
push 0x46125c
push eax
call fcn.00444240
push dword [esi + 0x4712d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00444240
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00444ce7
add esp, 0x2c
pop edi
jmp 0x44223d
lea eax, [ebp + 8]
lea esi, [esi + 0x4712d4]
push 0
push eax
push dword [esi]
call fcn.0043de60
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 0x44a540
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.0043e260
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44a60b
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 0x44a60b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44a5be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x44a5c9
or bh, 8
and edi, 0x8000000
je 0x44a5e4
mov eax, dword [0x475edc]
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 0x44a60b
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 0x44a9e0
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 0x44aa0b
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 0x44aa2f
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 0x44aa4a
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 0x44f209
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 0x44f24b
call fcn.00454dce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44f24b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44f242
xor eax, eax
jmp 0x44f253
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044f259
pop edi
pop esi
pop ebx
ret 4

Function at 0x4559f6
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 0x455a24
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x455a42
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045595c
jmp 0x455a42
mov eax, dword [esi + 0x14]
test eax, eax
je 0x455a42
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045595c
test edi, edi
mov eax, edi
jne 0x455a2c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8