joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x407550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40755f
pop dword [ebp - 0x2c]
mov eax, 0x19efb3cf
add eax, 0xe650c190
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3a7c2
push 0
mov eax, 0xfb3d489
add eax, 0xf08d0c97
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x15d0cc4a
sub ecx, 0x15d08110
mov esi, eax
mov edi, 0x417800
add edi, dword [ebp - 0x2c]
mov ebx, 0x3c4c104f
add ebx, 0x4421976b
xor dword [ebp - 0x1c], esi
mov edx, dword [edi]
xor dword [ebp - 0x14], 0x7f4519db
sub edx, ebx
sub dword [ebp - 0x20], ecx
mov dword [esi], edx
xor dword [ebp - 8], ebx
add esi, 0x9287b688
add esi, 0x6d78497c
add edi, 4
loop 0x4075b8
add eax, 0xab9aa368
add eax, 0x54667c53
xor ebx, ebx
add ebx, eax
add eax, 0xc79c4694
add eax, 0x3863b971
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40b010
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x4b2030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c9201c]
push ebx
mov ebx, dword [0x2c91e68]
push esi
mov esi, dword [0x4b2f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b051
push str.pirebewaxamicafivojazirisibilig
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c9201c]
mov dword [0x4b48f4], esi
cmp eax, 0x114e
jne 0x40b07b
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.sosepukuvupafizafaguwiferayiv
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2c9201c]
cmp eax, 0x2f
jne 0x40b0b5
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call fcn.0040af50
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x428
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401c66
pop dword [ebp - 0x14]
mov eax, 0x26a63bbe
add eax, 0xd999e0a8
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xea0b208d
add dword [ebp - 0x24], 0x644724be
mov dword [ebp - 0x20], 0xab5fd8da
sub dword [ebp - 0x20], 0x792c8c95
mov dword [ebp - 0x1c], 0x670bfd27
sub dword [ebp - 0x1c], 0x1abfb8f9
mov dword [ebp - 0x18], 0x884a0423
add dword [ebp - 0x18], 0x77b5fbdd
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x5c4e2c77
sub dword [ebp - 0x24], 0xe7dbc321
mov dword [ebp - 0x20], 0x13e1de6f
add dword [ebp - 0x20], 0x2d8a8306
mov dword [ebp - 0x1c], 0xceee79b1
sub dword [ebp - 0x1c], 0x6b7f0d45
mov dword [ebp - 0x18], 0xfdc02186
sub dword [ebp - 0x18], 0xfdc02186
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x6db988ff
add eax, 0x9286a72d
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x36802
push 0
call eax
mov ecx, 0xc0920b42
add ecx, 0x3f6e3cd2
mov edi, eax
mov esi, 0xca0cef2b
sub esi, 0xc9cc7f2b
add esi, dword [ebp - 0x14]
mov ebx, 0x760a7569
add ebx, 0x8e1360f7
xor dword [ebp - 8], 0x44cadf99
mov edx, dword [esi]
xor dword [ebp - 8], 0x686f73a1
add edx, ebx
sub dword [ebp - 4], eax
mov dword [edi], edx
sub dword [ebp - 4], ecx
add edi, 4
add esi, 4
loop 0x401d83
add eax, 0x9ace13f4
sub eax, 0x9acd00d1
xor ebx, ebx
add ebx, eax
add eax, 0xab01a63c
add eax, 0x54fe59c9
mov ecx, 0xf6fb2739
add ecx, 0x944d8c7
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x100424a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x100424af
pop dword [ebp - 0x2c]
mov eax, 0x91859fe8
sub eax, 0x81817b39
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x4cd94c78
add dword [ebp - 0x3c], 0x178f8d3
mov dword [ebp - 0x38], 0xb8755dd4
add dword [ebp - 0x38], 0x79bdee71
mov dword [ebp - 0x34], 0x7446663b
add dword [ebp - 0x34], 0xd805ddf3
mov dword [ebp - 0x30], 0x6de17186
add dword [ebp - 0x30], 0x921e8e7a
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x74f6793
add eax, 0x8b908a1
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x371b759
sub dword [ebp - 0x3c], 0x8eff4e03
mov dword [ebp - 0x38], 0xaf5b23e1
sub dword [ebp - 0x38], 0x6deec26c
mov dword [ebp - 0x34], 0x734c406b
add dword [ebp - 0x34], 0xf0232c01
mov dword [ebp - 0x30], 0xaa95424f
sub dword [ebp - 0x30], 0xaa95424f
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x9f966f7d
add eax, 0x707200a7
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x4227a
push 0
call eax
mov ecx, 0xc955a5c7
sub ecx, 0xc9554b4e
mov edi, eax
mov esi, 0x100b9000
add esi, dword [ebp - 0x2c]
mov ebx, 0xcd09a1a2
add dword [ebp - 8], edi
mov edx, dword [esi]
mov dword [ebp - 0x1c], 0x14f5373b
add edx, ebx
xor dword [ebp - 0x14], edi
mov dword [edi], edx
mov dword [ebp - 0xc], 0x828244bb
add edi, 4
add esi, 0x9295a28f
sub esi, 0x9295a28b
loop 0x100425c5
add eax, 0x3501983
add eax, 0xfcb14334
mov ebx, eax
add eax, 0x3ec9f61a
add eax, 0xc13609eb
mov ecx, 0x49200710
add ecx, 0xc6dff8f0
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x423c72
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4de980]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x423ca7
xor eax, eax
jmp 0x423cfa
lea eax, [ebp - 0x210]
push eax
call fcn.004262b0
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x423cd8
push 0x4ae8c4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004253bc
add esp, 0xc
test eax, eax
jne 0x423ca3
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004253bc
add esp, 0xc
test eax, eax
jne 0x423ca3
lea eax, [ebp - 0x210]
push eax
call fcn.0041a1c1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424ae1
leave
ret

Function at 0x43386d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00429965
and dword [ebp - 4], 0
cmp dword [0x4e4eb8], 0
mov ebx, eax
jne 0x43391e
push 0x4b26b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4339cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b26a8
push edi
call esi
test eax, eax
je 0x4339cf
push eax
call fcn.004298f3
mov dword [esp], 0x4b2698
push edi
mov dword [0x4e4eb8], eax
call esi
push eax
call fcn.004298f3
mov dword [esp], 0x4b2684
push edi
mov dword [0x4e4ebc], eax
call esi
push eax
call fcn.004298f3
mov dword [esp], 0x4b2668
push edi
mov dword [0x4e4ec0], eax
call esi
push eax
call fcn.004298f3
pop ecx
mov dword [0x4e4ec8], eax
test eax, eax
je 0x43391e
push 0x4b2650
push edi
call esi
push eax
call fcn.004298f3
pop ecx
mov dword [0x4e4ec4], eax
mov eax, dword [0x4e4ec4]
cmp eax, ebx
je 0x433976
cmp dword [0x4e4ec8], ebx
je 0x433976
push eax
call fcn.0042996e
push dword [0x4e4ec8]
mov esi, eax
call fcn.0042996e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x433976
test edi, edi
je 0x433976
call esi
test eax, eax
je 0x43396d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43396d
test byte [ebp - 0xc], 1
jne 0x433976
or dword [ebp + 0x10], 0x200000
jmp 0x4339af
mov eax, dword [0x4e4ebc]
cmp eax, ebx
je 0x4339af
push eax
call fcn.0042996e
pop ecx
test eax, eax
je 0x4339af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4339af
mov eax, dword [0x4e4ec0]
cmp eax, ebx
je 0x4339af
push eax
call fcn.0042996e
pop ecx
test eax, eax
je 0x4339af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e4eb8]
call fcn.0042996e
pop ecx
test eax, eax
je 0x4339cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4339d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001f87f
pop dword [ebp - 0x34]
mov eax, 0x1001f87f
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x40445
push 0
mov eax, 0x1da56e1a
add eax, 0xf25df2c2
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xd4400243
add ecx, 0x2bc04517
mov esi, eax
mov edi, 0xa421156e
add edi, 0x6be2a892
add edi, dword [ebp - 0x34]
mov edx, 0xe41d023b
add edx, 0x7a5b2c5b
add dword [ebp - 0x14], ebx
mov ebx, dword [edi]
xor dword [ebp - 0x1c], edx
xor ebx, edx
add dword [ebp - 0x10], edx
mov dword [esi], ebx
add dword [ebp - 0xc], 0xd83e8d0c
add esi, 4
add edi, 0xb909874b
sub edi, 0xb9098747
loop 0x1001f8d9
add eax, 0xe3473d6e
add eax, 0x1cb9d2cd
xor ebx, ebx
add ebx, eax
add eax, 0x2a805f56
sub eax, 0x2a805f51
mov ecx, 0x96282a06
sub ecx, 0x86282a06
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001f870
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001f870
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x4017c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401819
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x401946
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x401a33
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, SysReAllocStringLen
push str..htm
push edi
call fcn.004017c0
test eax, eax
jne 0x401a33
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.004017c0
test eax, eax
jne 0x401a33
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.0040a18b
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x401a10
lea eax, [ebp - 0x210]
push 0x43343c
push eax
call fcn.0040a18b
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x401a10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x401a12
mov byte [edi], bl
push 0x433438
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401deb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x401e28
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, dword [ebp + 0x10]
push esi
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
lea esi, [edi + eax]
call fcn.0040a2c0
pop ecx
xor edx, edx
mov ecx, eax
mov eax, edi
div ecx
mov eax, dword [ebp + 8]
mov al, byte [edx + eax]
xor al, byte [ebx + esi]
inc edi
cmp edi, dword [ebp + 0x14]
mov byte [esi], al
jne 0x401dfe
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x40232f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041f83e
lea ecx, [esi + 0x160]
mov ebx, 0x104
lea edx, [esi + 0x5c]
push ecx
push ebx
push edx
push eax
call fcn.004021c5
add esp, 0x10
cmp eax, 1
jne 0x4023e5
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x5c]
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call fcn.00423d86
mov ebx, dword [eax + 8]
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.SHELL32.dll_ExtractIconA]
push ebx
call edi
mov dword [esi + 0x168], eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x4023ce
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
and dword [esi + 0x164], 0
push dword [esi + 0x160]
lea eax, [esi + 0x5c]
push eax
push ebx
call edi
mov dword [esi + 0x164], eax
push 1
jmp 0x4023e7
push 2
pop edi
mov ecx, esi
call fcn.0041f878
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d6bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4350f0
cmp edx, dword [eax]
je 0x40d6df
add eax, 8
inc ecx
cmp eax, 0x435180
jl 0x40d6d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4350f0]
jne 0x40d80d
mov eax, dword [0x4380f4]
cmp eax, 1
je 0x40d7e7
test eax, eax
jne 0x40d710
cmp dword [0x434aa4], 1
je 0x40d7e7
cmp edx, 0xfc
je 0x40d80d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d747
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f3c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d78a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b20c
push edi
call fcn.004103e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f3c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f3d0
lea eax, [ebp - 0xa0]
push 0x42b1ec
push eax
call fcn.0040f3d0
push dword [esi + 0x4350f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f3d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410349
add esp, 0x2c
pop edi
jmp 0x40d80d
lea eax, [ebp + 8]
lea esi, [esi + 0x4350f4]
push 0
push eax
push dword [esi]
call fcn.0040a2c0
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 0x418c60
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.0040b6c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418d2b
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 0x418d2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418cde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418ce9
or bh, 8
and edi, 0x8000000
je 0x418d04
mov eax, dword [0x439d1c]
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 0x418d2b
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 0x419100
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 0x41912b
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 0x41914f
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 0x41916a
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 0x41c1ca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41c202
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.0041ebd0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041eba8
jmp 0x41c20e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41d71b
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 0x41d75d
call fcn.00423d86
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d75d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d754
xor eax, eax
jmp 0x41d765
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d76b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4242e3
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 0x424311
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42432f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424249
jmp 0x42432f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42432f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424249
test edi, edi
mov eax, edi
jne 0x424319
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8