joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4217a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x4217c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4217c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4217b8
mov eax, 1
add ebx, ebx
jne 0x4217db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4217d0
jne 0x4217ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4217d0
xor ecx, ecx
sub eax, 3
jb 0x421800
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421872
mov ebp, eax
add ebx, ebx
jne 0x42180b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42183c
inc ecx
add ebx, ebx
jne 0x421828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42181d
jne 0x421839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42181d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42185c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42184d
jmp 0x4217be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42185c
add edi, ecx
jmp 0x4217be
pop esi
mov edi, esi
mov ecx, 0x8d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42187a
cmp byte [edi], 1
jne 0x42187a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42187f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4218ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21554]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x215a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4218ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x215a8]
or eax, eax
je 0x4218e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4218c9
call dword [esi + 0x215ac]
popal
jmp 0x401562
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406150
push 0x401ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x401190
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xbc], ecx
mov cl, byte [ebp + 0x14]
test cl, cl
mov ecx, str.SendMessageW
jne 0x401067
mov ecx, str.SendMessageA
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb8], eax
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x401190
push 4
push 0x1000
push 0x88
push 0
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x401196
lea edx, [ebp - 0x20]
push edx
push 0x88
lea eax, [ebp - 0xbc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, 0x401230
sub edi, 0x401200
mov dword [ebp - 0xc0], edi
push 0x40
push 0x1000
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x401196
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0x401200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 0x24]
push edx
push 0
push esi
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x401196
push 0xffffffffffffffff
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x20]
push edx
push 0x88
lea eax, [ebp - 0xbc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov al, byte [ebp + 0x14]
test al, al
je 0x40116a
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401a80
add esp, 8
jmp 0x401196
lea edi, [ebp - 0xb4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401193
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004011bc
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403891
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407280
cmp edx, dword [eax]
je 0x4038b3
add eax, 8
inc ecx
cmp eax, 0x407310
jl 0x4038a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407280]
jne 0x4039e1
mov eax, dword [0x407988]
cmp eax, 1
je 0x4039bb
test eax, eax
jne 0x4038e4
cmp dword [0x4070d8], 1
je 0x4039bb
cmp edx, 0xfc
je 0x4039e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40391b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004041f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403fa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40395e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403fa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064d8
push edi
call fcn.00404f70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004041f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404200
lea eax, [ebp - 0xa0]
push 0x4064b8
push eax
call fcn.00404200
push dword [esi + 0x407284]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404ede
add esp, 0x2c
pop edi
jmp 0x4039e1
lea eax, [ebp + 8]
lea esi, [esi + 0x407284]
push 0
push eax
push dword [esi]
call fcn.00403fa0
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 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.0040191c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401984]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.00401838
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401882
mov eax, edi
add eax, 0x23400
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea esi, [0x4030e4]
mov ecx, edi
shl esi, cl
push esi
call fcn.00401984
add esp, 0x18
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40191c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret
Function at 0xb2f47d
Capabilities:
Encode data using xor

Disassembly:
pushal
jmp 0xb2f444
into
pop ebp
insd dword es:[edi], dx
add edi, edi
add byte [eax], al
add byte [eax], al
mov ecx, 0x54026099
mov ebx, 0xd941d693
mov ebp, 0xd0abdb5f
xor edi, 0xb02372c1
movsx edi, cx
call 0xb2f47d
jns 0xb2f4b4
xlatb
sbb eax, edi
sbb al, 0x32
jnp 0xb2f4cb
cli
mov edi, 0x66513347
mov eax, 0x64b40359
aas
insb byte es:[edi], dx
aam 0x14
xor dword [ebp + 0x79], eax
inc edx
mov si, di
mov di, bx
pop ecx
movsx edi, ax
add edi, 0x43e33283
push ecx
xor bh, 0x59
pop edx
add esi, 0xed17a761
add edx, 0xd01d243
jmp 0xb2f4b7
retf
movsx ebx, bp
mov ebx, 0xa90b0cd9
xor dword [edx - 0xd01d269], 0xfc969a27
or ecx, 0xcef477a9
inc ebp
test eax, 0x45cef477
mov ebx, 0x88cd9219
mov edi, 0x6dbf1b79
sub edx, 4
mov esi, 0xb2b76c41
mov cl, 0xce
movsx ebx, cx
cmp ebp, 0xd0abdc6d
jne 0xb2f4ba
xor edi, 0x76335069
jmp 0xb2f43b
Function at 0x401980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0x41b978
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
call fcn.004188e8
mov eax, dword [eax + 0xc]
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004146a0
lea ecx, [esp + 0x18]
call fcn.00413fff
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 1
cmp esi, edi
jne 0x4019e6
xor eax, eax
jmp 0x4019e9
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.004140b6
lea eax, [esp + 0x10]
test eax, eax
je 0x401a16
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x401a16
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
mov ebp, dword [esp + 0x3c]
mov edx, dword [esi + 4]
sbb eax, eax
push 0x8800c6
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push edi
push edi
mov edi, dword [esp + 0x4c]
push eax
push 0x1c
push 0x1c
push edi
push ebp
push edx
call ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0x660046
and eax, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff
push 0
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
mov eax, dword [esi + 4]
push 0x1c
push 0x1c
push edi
push ebp
push eax
call ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0041411e
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 2
call fcn.004146f7
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x4025f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
mov ecx, dword [edi - 8]
cmp ecx, 0xc
mov dword [esp + 8], ecx
jle 0x40260f
mov ecx, 0xc
mov dword [esp + 8], ecx
xor eax, eax
test ecx, ecx
jle 0x402621
mov dl, byte [edi + eax]
mov byte [esp + eax + 0xc], dl
inc eax
cmp eax, ecx
jl 0x402615
mov byte [esp + ecx + 0xc], 0
mov ecx, dword [esi + 8]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esp + 0x18], al
jns 0x40264b
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x19], cl
mov ecx, dword [esi + 4]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esp + 0x1a], al
jns 0x402674
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x1b], cl
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dl, byte [esp + eax + 0xc]
xor edx, 0xfe
add ecx, edx
inc eax
cmp eax, 0x10
jl 0x40267c
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esp + 0x1c], al
jns 0x4026b2
dec ecx
or ecx, 0xffffff00
inc ecx
push 0x24
lea eax, [esp + 0xc]
mov byte [esp + 0x21], cl
push 0x100
push eax
lea ecx, [esp + 0x38]
push 0x12
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00402520
test al, al
jne 0x4026df
pop edi
pop esi
add esp, 0x44
ret
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00413234
mov eax, dword [esp + 8]
xor esi, esi
test eax, eax
jle 0x402718
mov al, byte [esp + esi + 0x2c]
cmp al, 9
jbe 0x402701
add al, 7
mov byte [esp + esi + 0x2c], al
mov al, byte [esp + esi + 0x2c]
mov ecx, edi
add al, 0x30
push eax
call fcn.00413466
mov eax, dword [esp + 8]
inc esi
cmp esi, eax
jl 0x4026f3
pop edi
mov al, 1
pop esi
add esp, 0x44
ret
Function at 0x402720
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
push ebp
mov ebp, ecx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [esi - 8]
test edx, edx
mov dword [esp + 8], edx
jne 0x40273d
pop esi
xor al, al
pop ebp
add esp, 0x44
ret
cmp edx, 0x1c
jle 0x40274b
mov edx, 0x1c
mov dword [esp + 8], edx
xor ecx, ecx
test edx, edx
jle 0x402770
mov al, byte [esi + ecx]
sub al, 0x30
cmp al, 9
mov byte [esp + ecx + 0x2c], al
jbe 0x402764
sub al, 7
mov byte [esp + ecx + 0x2c], al
cmp byte [esp + ecx + 0x2c], 0x23
ja 0x4027cc
inc ecx
cmp ecx, edx
jl 0x402751
push 0x100
lea eax, [esp + 0xc]
push 0x24
push eax
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, ebp
call fcn.00402520
test al, al
jne 0x402798
pop esi
pop ebp
add esp, 0x44
ret
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dl, byte [esp + eax + 0xc]
xor edx, 0xfe
add ecx, edx
inc eax
cmp eax, 0x10
jl 0x40279c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1d]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
cmp eax, ecx
je 0x4027d4
pop esi
xor al, al
pop ebp
add esp, 0x44
ret
push edi
lea edi, [ebp + 0xc]
mov ecx, edi
call fcn.00413234
xor esi, esi
mov al, byte [esp + esi + 0x10]
test al, al
je 0x4027f7
push eax
mov ecx, edi
call fcn.00413466
inc esi
cmp esi, 0xc
jl 0x4027e1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1d]
mov edx, dword [esp + 0x1e]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
pop edi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1b]
shl edx, 8
and eax, 0xff
pop esi
add edx, eax
mov al, 1
mov dword [ebp + 4], edx
pop ebp
add esp, 0x44
ret

Function at 0x4030b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [esp + 0x10]
mov esi, eax
call edi
sub eax, esi
cmp eax, ebx
jbe 0x4030c1
pop edi
pop esi
pop ebx
ret 4
Function at 0x4082f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421bf8
cmp edx, dword [eax]
je 0x408317
add eax, 8
inc ecx
cmp eax, 0x421c88
jl 0x408308
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421bf8]
jne 0x408445
mov eax, dword [0x4246f8]
cmp eax, 1
je 0x40841f
test eax, eax
jne 0x408348
cmp dword [0x421724], 1
je 0x40841f
cmp edx, 0xfc
je 0x408445
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40837f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406c90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4083c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406d80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d6b4
push edi
call fcn.00409820
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406c90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406ca0
lea eax, [ebp - 0xa0]
push 0x41d694
push eax
call fcn.00406ca0
push dword [esi + 0x421bfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406ca0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409789
add esp, 0x2c
pop edi
jmp 0x408445
lea eax, [ebp + 8]
lea esi, [esi + 0x421bfc]
push 0
push eax
push dword [esi]
call fcn.00406d80
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 0x40d940
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.004051e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40da0b
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 0x40da0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40d9be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40d9c9
or bh, 8
and edi, 0x8000000
je 0x40d9e4
mov eax, dword [0x425e9c]
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 0x40da0b
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 0x40dde0
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 0x40de0b
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 0x40de2f
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 0x40de4a
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 0x412761
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 0x4127a3
call fcn.004188e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4127a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41279a
xor eax, eax
jmp 0x4127ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004127b1
pop edi
pop esi
pop ebx
ret 4

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