joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ae8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4733d8
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x80]
mov eax, dword [eax - 8]
test eax, eax
jne 0x403bc9
push ebx
lea ebx, [esi + 0x24]
mov edx, ebx
push ebp
push 0x4891f8
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x34], eax
sub eax, ecx
cdq
sub eax, edx
lea ecx, [esp + 0x14]
mov edi, eax
sar edi, 1
call fcn.004654a8
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
push 0x2411
mov dword [esp + 0x50], 0
mov ebp, dword [ecx]
mov edx, dword [eax - 8]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
call dword [ebp + 0x68]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0046543a
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub eax, edx
cdq
sub eax, edx
lea edx, [esp + 0x24]
sar eax, 1
neg eax
add edi, eax
push edi
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x54]
mov ecx, dword [ebx]
mov esi, dword [esi + 0x2c]
mov edx, eax
add ecx, 4
sub esi, 4
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x28]
pop edi
mov dword [edx + 8], esi
pop esi
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
lea edx, [esi + 0x24]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
push 0xfffffffffffffffc
mov eax, dword [edx]
push 0xfffffffffffffffc
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.0046e809
lea ecx, [esp + 0xc]
call fcn.0046e7ea
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x80]
lea edi, [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
push 0x2c11
mov dword [esp + 0x3c], edx
mov edx, dword [ecx]
push edi
mov edi, dword [eax - 8]
push edi
push eax
call dword [edx + 0x68]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
sub ecx, edi
mov edi, dword [esp + 0x10]
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, edi
lea edi, [esi + 0x34]
mov dword [esi + 0x38], eax
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x3c], ecx
mov ecx, edi
mov dword [edi], eax
call fcn.0046e7ea
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x4049d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47364b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x478c28
mov dword [esp + 0x24], 0xe
call fcn.00406650
mov eax, dword [0x48b464]
mov ebp, dword [esi + 0x38]
mov dword [esp + 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
test ebp, ebp
mov byte [esp + 0x24], 0xf
jle 0x404a59
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esi + 0x30]
call fcn.00404b90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0x10
call fcn.00465573
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xf
call fcn.0046543a
mov edx, dword [esp + 0x10]
push edx
call ebx
inc edi
cmp edi, ebp
jl 0x404a22
lea edi, [esi + 0x30]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00460d62
mov eax, dword [0x48f4bc]
push eax
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0xe
call fcn.0046543a
lea ecx, [esi + 0x224]
mov byte [esp + 0x24], 0xd
call fcn.0046543a
lea ecx, [esi + 0x220]
mov byte [esp + 0x24], 0xc
call fcn.0046543a
lea ecx, [esi + 0x214]
mov dword [esp + 0x14], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x24], 0x11
call fcn.00468f65
lea ecx, [esi + 0x110]
mov dword [esp + 0x14], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x24], 0x12
call fcn.00468f65
lea ecx, [esi + 0x108]
mov dword [esp + 0x14], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x24], 0x13
call fcn.00468f65
lea ecx, [esi + 0xf8]
mov byte [esp + 0x24], 8
call fcn.004684e7
lea ecx, [esi + 0xe8]
mov byte [esp + 0x24], 7
call fcn.004684e7
lea ecx, [esi + 0xe4]
mov byte [esp + 0x24], 6
call fcn.0046543a
lea ecx, [esi + 0xbc]
mov byte [esp + 0x24], 5
call fcn.00460c21
lea ecx, [esi + 0xa0]
mov byte [esp + 0x24], 4
call fcn.00460c21
lea ecx, [esi + 0x84]
mov byte [esp + 0x24], 3
call fcn.00460c21
mov ecx, edi
mov byte [esp + 0x24], 2
call fcn.00460d02
lea ecx, [esi + 0x1c]
mov byte [esp + 0x24], 1
call fcn.00460d02
lea ecx, [esi + 8]
mov byte [esp + 0x24], 0
call fcn.00460d02
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x406650
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473976
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x90], ebx
je 0x4066a5
mov esi, dword [edi + 0x88]
cmp esi, ebx
je 0x40669a
mov eax, esi
mov esi, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x406696
mov eax, dword [ecx]
push 1
call dword [eax + 4]
cmp esi, ebx
jne 0x406684
lea ecx, [edi + 0x84]
call fcn.00460aaa
lea ecx, [edi + 0xa0]
call fcn.00460aaa
cmp dword [edi + 0xc8], ebx
je 0x4066d8
mov esi, dword [edi + 0xc0]
cmp esi, ebx
je 0x4066d8
mov eax, esi
mov esi, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x4066d4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
cmp esi, ebx
jne 0x4066c2
lea ecx, [edi + 0xbc]
call fcn.00460aaa
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 8]
call fcn.00460d62
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x1c]
call fcn.00460d62
mov dword [edi + 0xd8], ebx
mov dword [edi + 0x228], ebx
cmp dword [0x48f4c4], ebx
jne 0x406821
lea eax, [esp + 0x14]
push ebp
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [edi + 0x240]
xor esi, esi
cmp eax, ebx
jle 0x4067d6
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x48f490
lea ecx, [esp + 0x14]
call fcn.004654a8
mov ecx, dword [0x48b464]
mov dword [esp + 0x120], ebx
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x124], 1
call fcn.004657a2
push esi
lea eax, [esp + 0x18]
push 0x489234
push eax
call fcn.0045fd47
add esp, 0xc
lea ecx, [esp + 0x10]
push str.wcmeffect
call fcn.004657a2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004657de
mov edx, dword [esp + 0x10]
push edx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], bl
call fcn.0046543a
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0046543a
mov eax, dword [edi + 0x240]
inc esi
cmp esi, eax
jl 0x406738
mov dword [edi + 0x23c], ebx
mov esi, dword [0x48f4a4]
cmp esi, ebx
je 0x406816
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 8]
cmp dword [edi], ebx
je 0x4067ff
mov eax, dword [edi + 4]
push eax
call ebp
jmp 0x406809
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.004651a4
add esp, 4
cmp esi, ebx
jne 0x4067ec
mov ecx, 0x48f4a0
call fcn.00460aaa
pop ebp
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x427280
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x48f534]
sub esp, 0x100
test eax, eax
je 0x4272a6
mov ecx, dword [esp + 0x114]
mov eax, 4
cmp ecx, eax
jge 0x4272a6
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x118]
mov eax, dword [edi]
test eax, eax
je 0x4272bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], eax
mov esi, dword [esp + 0x114]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x4272df
pop edi
pop esi
pop ebx
add esp, 0x100
ret
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push ebp
mov ebp, dword [esp + 0x114]
push esi
push ebp
call ebx
test eax, eax
jne 0x427301
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x427320
push esi
push ebp
lea eax, [esp + 0x18]
push str.Source_Compress_Bad_Pointer_:_0x_08x___d__n
push eax
call fcn.00450ad3
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
jne 0x427338
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x427359
mov ecx, dword [edi]
push esi
push ecx
lea edx, [esp + 0x18]
push str.Target_Compress_Bad_Pointer_:_0x_08x___d__n
push edx
call fcn.00450ad3
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
push ecx
push esi
mov dword [ebx], esi
mov edx, dword [edi]
push ebp
push ebx
push edx
call fcn.0043de30
add esp, 0x14
test eax, eax
pop ebp
je 0x427389
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x100
ret
mov eax, dword [ebx]
mov ecx, dword [edi]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov dword [edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x4273b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x114]
push esi
push edi
call ebp
test eax, eax
jne 0x4273e2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x427401
push esi
push edi
lea eax, [esp + 0x18]
push str.Source_Compress_Bad_Pointer_:_0x_08x___d__n
push eax
call fcn.00450ad3
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x120]
mov ebx, dword [esp + 0x11c]
push edx
push ebx
call ebp
test eax, eax
jne 0x42742a
mov eax, dword [esp + 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x427450
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x10]
push ecx
push ebx
push str.Target_Compress_Bad_Pointer_:_0x_08x___d__n
push edx
call fcn.00450ad3
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
lea ecx, [esp + 0x124]
push edi
push ecx
push ebx
call fcn.0043df20
add esp, 0x10
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x100
ret
Function at 0x42fff0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x42fffd
mov eax, 0x48f688
push ebx
mov ebx, dword [eax + 8]
push edi
xor edi, edi
test ebx, ebx
jle 0x43002b
push esi
mov esi, dword [eax + 4]
mov ecx, dword [esi]
add esi, 4
mov eax, dword [ecx + 0x64]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0x14]
add eax, edx
add edi, eax
dec ebx
jne 0x43000c
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
mov eax, edi
pop edi
pop ebx
ret 4

Function at 0x431290
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475360
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x4312f1
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0xa8]
push 1
push 1
push 1
push eax
push edx
call fcn.00439ef0
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x4312dc
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xac], ebx
mov ecx, dword [0x48b464]
push ebp
mov ebp, dword [esi + 0x5c]
mov dword [esp + 0x10], ecx
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x20], ebx
jle 0x431348
lea ebx, [esi + 0x54]
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, ebx
call fcn.00404b90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00465573
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.0046543a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, ebp
jl 0x43130c
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x54]
call fcn.00460d62
mov eax, dword [esi + 0x9c]
pop ebp
cmp eax, ebx
je 0x431377
xor edi, edi
mov ecx, dword [esi + 0x44]
push 0x48f490
add ecx, edi
call fcn.004655c3
add edi, 4
cmp edi, 0x1c
jl 0x431360
mov eax, 1
lea ecx, [esp + 0xc]
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x88], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0046543a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x438090
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [esp + 0x11]
and eax, 0x80
add esp, 0x100
ret

Function at 0x4380c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [esp + 0x10]
and eax, 0x80
add esp, 0x100
ret

Function at 0x4380f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [esp + 0x12]
and eax, 0x80
add esp, 0x100
ret
Function at 0x438420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4791f0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
call fcn.00468c66
mov edi, dword [esp + 0x34]
mov byte [esp + 0x2c], 1
cmp edi, esi
jne 0x43849d
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00468cd8
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 2
call fcn.00468f65
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x4384a8
mov esi, eax
jmp 0x4384b2
mov cl, byte [edi + 0xe]
mov esi, 1
shl esi, cl
cmp word [edi + 0xe], 8
push ebx
push ebp
jbe 0x4384d2
mov edx, dword [edi + 0x10]
xor ecx, ecx
cmp edx, 3
setne cl
dec ecx
and ecx, 3
add ecx, eax
lea ebx, [edi + ecx*4 + 0x28]
jmp 0x4384d6
lea ebx, [edi + esi*4 + 0x28]
cmp esi, 0x100
jg 0x438571
mov edx, dword [esp + 0x20]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x438571
lea eax, [esi*4 + 8]
push eax
call fcn.0046517b
mov ebp, eax
add esp, 4
test esi, esi
mov word [ebp], 0x300
mov word [ebp + 2], si
jle 0x438538
lea eax, [ebp + 5]
lea ecx, [edi + 0x29]
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 0
add eax, 4
dec esi
jne 0x43851a
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x14]
call fcn.00468f0e
push ebp
call fcn.004651a4
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.00468643
mov ecx, dword [esp + 0x1c]
mov ebp, eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x438575
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
push 0
push edi
sbb eax, eax
push ebx
and eax, ecx
push 4
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
lea edx, [esp + 0x10]
mov esi, eax
test edx, edx
je 0x4385af
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4385af
push 0
push ebp
lea ecx, [esp + 0x20]
call fcn.00468643
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.00468cd8
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 3
call fcn.00468f65
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438f5c
test al, 0x10
jne 0x438f5c
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4391b0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov dword [ebx + 0x104], eax
ja 0x43920a
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
push eax
push 0
push 0x4000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebx + 0x104]
mov dword [ebx + 0x108], eax
push ecx
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebx + 0x104]
push 4
push 0x1000
push edx
push eax
mov dword [ebx + 0x10c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
pop edi
test eax, eax
setne cl
mov dword [ebx + 0x110], eax
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x43a420
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475d01
push eax
mov dword fs:[0], esp
sub esp, 0x234
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x43a55e
lea ecx, [esp + 0x130]
push 0x104
push ecx
call fcn.00450550
lea edx, [esp + 0x34]
push edx
call fcn.004504ca
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00448218
push 0x489224
lea ecx, [esp + 8]
mov dword [esp + 0x240], 0
call fcn.004654a8
lea eax, [esp + 4]
push 0x489934
lea ecx, [esp + 4]
push eax
push ecx
mov byte [esp + 0x248], 1
call fcn.004656cf
mov edx, dword [esp]
push 0
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 2
call fcn.004482db
test eax, eax
je 0x43a518
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call fcn.004484fb
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.004486f3
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x14]
call fcn.0046543a
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004486f3
lea ecx, [esp + 0x10]
call fcn.0046543a
test esi, esi
jne 0x43a4d4
pop edi
pop esi
lea edx, [esp + 0x130]
push edx
call fcn.004504ca
add esp, 4
lea ecx, [esp]
mov byte [esp + 0x23c], 1
call fcn.0046543a
lea ecx, [esp + 4]
mov byte [esp + 0x23c], 0
call fcn.0046543a
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00448255
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
add esp, 0x240
ret
Function at 0x4581f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48ec80
cmp edx, dword [eax]
je 0x45821b
add eax, 8
inc ecx
cmp eax, 0x48ed10
jl 0x45820c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48ec80]
jne 0x458349
mov eax, dword [0x491c14]
cmp eax, 1
je 0x458323
test eax, eax
jne 0x45824c
cmp dword [0x48c124], 1
je 0x458323
cmp edx, 0xfc
je 0x458349
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x458283
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00455840
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00451de0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4582c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00451de0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47e290
push edi
call fcn.00457220
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00455840
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00455850
lea eax, [ebp - 0xa0]
push 0x47e270
push eax
call fcn.00455850
push dword [esi + 0x48ec84]
lea eax, [ebp - 0xa0]
push eax
call fcn.00455850
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045b033
add esp, 0x2c
pop edi
jmp 0x458349
lea eax, [ebp + 8]
lea esi, [esi + 0x48ec84]
push 0
push eax
push dword [esi]
call fcn.00451de0
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 0x45f210
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.00450de0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45f2db
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 0x45f2db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45f28e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45f299
or bh, 8
and edi, 0x8000000
je 0x45f2b4
mov eax, dword [0x49337c]
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 0x45f2db
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