joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431120
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e238
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042ba20
test eax, eax
je 0x431228
lea ecx, [esp + 0xc]
call fcn.00404600
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042ba20
mov ecx, eax
call fcn.004290e0
test eax, eax
je 0x43120f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43120f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43120f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00404800
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x4311f1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43120f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x56a198]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x53f5c8
call fcn.00404800
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x431270
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042ba20
test eax, eax
je 0x43135f
mov ecx, edi
call fcn.0042ba20
mov ecx, eax
call fcn.00428f90
test eax, eax
jne 0x43135f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43135f
mov eax, dword [0x56a198]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x4312d2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042ba20
mov ecx, eax
call fcn.004291c0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x43135f
cmp ebx, eax
jne 0x43135f
cmp dword [esp + 0x10], eax
jne 0x431345
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x433f80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e4c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433fb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4340cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x433fcd
mov eax, 0xffffffc7
jmp 0x4340ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x433fde
cmp dword [esi + 8], eax
jne 0x433fcd
cmp dword [esi + 8], eax
jne 0x433ff7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433ff7
mov eax, 0xffffffc7
jmp 0x4340ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43400b
push eax
mov ecx, ebx
call fcn.004337b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404600
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43403c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404620
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432f20
test eax, eax
mov dword [esp + 0x38], eax
je 0x43406f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53f5c8
call fcn.00404800
mov eax, dword [esp + 0x38]
jmp 0x4340ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433de0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4340b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433e00
mov esi, eax
test esi, esi
jne 0x4340e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433de0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x434085
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53f5c8
call fcn.00404800
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53f5c8
call fcn.00404800
mov eax, esi
jmp 0x4340ce

Function at 0x437200
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x437260
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x437260
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x437260
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x437260
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4372a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43d400
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eaf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004679d0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043cda0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004678fe
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004641c2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004641c2
push 1
push 0
push 0
mov ecx, esi
call fcn.0046416a
push 1
push 0
push 1
mov ecx, esi
call fcn.0046416a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467a42
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43d580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004679d0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043cda0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004678fe
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43d644
cmp dword [esp + 0x40], 1
jne 0x43d642
cmp ecx, eax
jge 0x43d644
mov eax, ecx
cmp eax, 0xc8
jge 0x43d650
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d400
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467a42
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ddd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eb83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004625e0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467c78
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00469194
test eax, eax
je 0x43deec
mov ecx, dword [esp + 0x3c]
call fcn.00467ca5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43deb0
push edi
mov ecx, esi
call fcn.0046530d
mov ecx, esi
call fcn.0043e050
cmp dword [esp + 0x38], 1
jne 0x43dee5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00465448
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440933
push esi
call fcn.004439f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44092c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4409b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4409a2
mov eax, dword [esi + 8]
test eax, eax
je 0x440957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44099e
cmp eax, 2
je 0x4409a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44094a
cmp eax, 3
je 0x44097d
cmp eax, 1
jne 0x44094a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44094a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44094a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004409e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4409c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004409e0
add esp, 4
pop esi
ret
Function at 0x44d2b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44d2fa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44d329
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44d36b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4633d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46340d
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.0046148c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461464
jmp 0x463419
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464aca
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 0x464b0c
call fcn.0046a57f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464b0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464b03
xor eax, eax
jmp 0x464b14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464b1a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46aaaf
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 0x46aadd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46aafb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046aa15
jmp 0x46aafb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46aafb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046aa15
test edi, edi
mov eax, edi
jne 0x46aae5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40345e
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
movsx eax, byte [str.Notepad.exe]
test eax, eax
jne 0x403490
push 0x40
push 0x40aa60
push str.Viewer_is_not_defined.
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403519
push 0x1ff
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
movsx ecx, byte [ebp - 0x200]
test ecx, ecx
jne 0x4034cc
push 0x40
push 0x40aa88
push str.File_is_not_defined.
mov edx, dword [0x40bef0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403519
lea eax, [ebp - 0x200]
push eax
push str.Notepad.exe
push str._s__s
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x403519
push 0x10
push str.Viewer_Error
push str.Problem_starting_the_Viewer.__Please_check_if_a_valid_path_was_given.
mov eax, dword [0x40bef0]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esp, ebp
pop ebp
ret
Function at 0x405303
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00406230
mov dword [ebp - 0x1004], 0
mov dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x1024]
push ecx
push 0x1000
lea edx, [ebp - 0x1000]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040502e
add esp, 0x14
test eax, eax
je 0x405482
cmp dword [ebp - 0x1024], 0
jne 0x405360
jmp 0x405482
mov ecx, dword [ebp - 0x1024]
mov dword [ebp - 0x1008], ecx
mov edx, dword [ebp - 0x1008]
mov dword [ebp - 0x101c], edx
lea eax, [ebp - 0x1000]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1024], 0
je 0x40540b
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
call fcn.00405077
add esp, 0x18
test eax, eax
je 0x40540b
cmp dword [ebp - 0x1018], 0
jne 0x4053e6
mov ecx, dword [ebp - 0x100c]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
mov eax, dword [ebp - 0x1014]
push eax
call fcn.00404f78
add esp, 0xc
mov ecx, dword [ebp - 0x101c]
sub ecx, dword [ebp - 0x1024]
mov edx, dword [ebp + 0x10]
sub edx, ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x1024]
mov dword [ebp - 0x101c], eax
jmp 0x405384
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1024]
jne 0x405436
push 0x30
push 0x40b540
push 0x40b548
mov edx, dword [0x40bef0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405487
mov dword [ebp - 0x1020], 0
push 0
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x1008]
sub ecx, dword [ebp - 0x1024]
push ecx
lea edx, [ebp - 0x1000]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x1024]
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x1024], 0
jmp 0x405324
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40573f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040625f
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405781
push 0x10
push 0x40b5cc
push str.The_source_file_is_too_big_to_convert.
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405802
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040502e
add esp, 0x14
test eax, eax
je 0x4057fd
cmp dword [ebp - 8], 0
je 0x4057fd
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404f78
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
je 0x4057fd
push 0x10
push 0x40b5fc
push 0x40b604
mov edx, dword [0x40bef0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405802
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405806
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00406230
mov dword [ebp - 0x1008], 0
cmp dword [ebp + 0x10], 0
je 0x405981
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040502e
add esp, 0x14
test eax, eax
je 0x405981
cmp dword [ebp - 0x1008], 0
jne 0x40585e
jmp 0x405981
push 0
push 0
mov eax, dword [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x1000]
push ecx
push 0
mov edx, dword [0x40bd30]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp - 0x1010]
shl eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1004], eax
cmp dword [ebp - 0x1004], 0
jne 0x4058c5
push 0x10
push 0x40b634
push 0x40b63c
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405986
mov edx, dword [ebp - 0x1010]
push edx
mov eax, dword [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x1000]
push edx
push 0
mov eax, dword [0x40bd30]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1010], eax
mov ecx, dword [ebp - 0x1010]
shl ecx, 1
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x100c], 0
push 0
lea edx, [ebp - 0x100c]
push edx
mov eax, dword [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x1004]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1008], 0
mov eax, dword [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x100c]
cmp ecx, dword [ebp - 0x1010]
je 0x405970
push 0x10
push 0x40b664
push 0x40b66c
mov edx, dword [0x40bef0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405986
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x1008]
mov dword [ebp + 0x10], eax
jmp 0x40581d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40598a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00406230
mov dword [ebp - 0x2008], 0
cmp dword [ebp + 0x10], 0
je 0x405af2
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea ecx, [ebp - 0x2004]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040502e
add esp, 0x14
test eax, eax
je 0x405af2
cmp dword [ebp - 0x2008], 0
jne 0x4059e2
jmp 0x405af2
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x2008]
shr eax, 1
push eax
lea ecx, [ebp - 0x2004]
push ecx
push 0
mov edx, dword [0x40bd30]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2010], eax
mov eax, dword [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405a47
push 0x10
push 0x40b69c
push 0x40b6a4
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405af7
push 0
push 0
mov edx, dword [ebp - 0x2010]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x2008]
shr ecx, 1
push ecx
lea edx, [ebp - 0x2004]
push edx
push 0
mov eax, dword [0x40bd30]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x200c], 0
push 0
lea ecx, [ebp - 0x200c]
push ecx
mov edx, dword [ebp - 0x2010]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2008], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x200c]
cmp eax, dword [ebp - 0x2010]
je 0x405ae1
push 0x10
push 0x40b6cc
push str.There_was_a_problem_writing_to_the_target_file.
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405af7
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2008]
mov dword [ebp + 0x10], edx
jmp 0x4059a1
mov eax, 1
mov esp, ebp
pop ebp
ret