joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001053
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10816140]
jne 0x1000105d
repz ret
jmp fcn.100012df

Function at 0x10005feb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10816140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10001a36
and dword [ebp - 0x14], 0
cmp dword [0x10819acc], 0
mov dword [ebp - 0x18], eax
jne 0x1000609e
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10006146
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10006146
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10819acc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10819ad0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10819ad4], eax
call edi
push eax
call esi
mov dword [0x10819adc], eax
test eax, eax
je 0x1000609e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10819ad8], eax
mov eax, dword [0x10819ad8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x100060f7
cmp dword [0x10819adc], ecx
je 0x100060f7
push eax
call esi
push dword [0x10819adc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100060f7
test ebx, ebx
je 0x100060f7
call edi
test eax, eax
je 0x100060ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100060ee
test byte [ebp - 8], 1
jne 0x100060f7
or dword [ebp + 0x10], 0x200000
jmp 0x1000612a
mov eax, dword [0x10819ad0]
cmp eax, dword [ebp - 0x18]
je 0x1000612a
push eax
call esi
test eax, eax
je 0x1000612a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000612a
mov eax, dword [0x10819ad4]
cmp eax, dword [ebp - 0x18]
je 0x1000612a
push eax
call esi
test eax, eax
je 0x1000612a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10819acc]
call esi
test eax, eax
je 0x10006146
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10006148
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001053
leave
ret

Function at 0x100302e0
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0x20
popal
salc
inc esi
mov edi, 0x65d8d349
ja 0x10030289
mov bl, 0x34
sub dword [ecx], ebp
sub dword [ebx - 0x3b], ebp
sbb ch, byte [edi]
lodsb al, byte [esi]
adc byte [edx], 0xc9
enter 0x2609, 0x5b
Function at 0x10031370
Capabilities:
Encode data using xor

Disassembly:
inc edi
adc byte [edi + eax + 0x74], ah
cmp cl, dh
mov eax, dword [0xa3cf05f8]
leave
xor dh, al
salc
das
call 0xd96ce5de
mov bl, 0x4e
xchg dword [edx], edi
lea ebp, [ebp - 0x13b191b]
cmp eax, 0xa5108a05
adc bl, byte [edi + edx]
loope 0x10031358
add al, 0x5f
push ss
cmp byte [edi + 0x40835feb], 0x72
jae 0x100313ac
or byte [ecx + 0x1b], al
invalid
mov eax, dword [ebp + 0x3730435e]
dec ebp
pushal
adc al, 0x43
movsd dword es:[edi], dword [esi]
add eax, 0xe7993390
arpl word [ebx - 0x26ef2033], bx
cld
add eax, 0x817cb76d
jne 0x1003141d
pop edi
pop es
shr dword [eax - 0xa], cl
invalid

Function at 0x10031760
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xa7
push ds
adc dword [eax], edx
mov cl, 0xc4
push eax
mov bl, 0x2a
push esi
imul eax, ebx, 0x888afffd
das
push esi
out 0x45, eax
in eax, dx
or ecx, dword [ecx - 0x4f]
push esi
dec ebp
cli
add bl, byte [edx - 0x3d]
wait
out 0x29, eax
xor edx, dword [edi + 0x4e]
fcmovnb st(0), st(7)
xchg ebx, eax
add ebp, dword [edi + 0x75]
loope 0x10031772
dec esi
mov ecx, 0xd754d164
push eax
mov eax, 0x7f0ec4f8
mov al, byte [esp + ebx + 0xc]
invalid

Function at 0x10031960
Capabilities:
Get number of processors

Disassembly:
mov al, 0x36
outsb dx, byte [esi]
shr byte [ecx + 0x45542297], 0xda
mov bh, 0xe5
mov dword [ebx + 0x3b7ccae2], ebp
std
or byte [esi + 0x5f], dl
fst dword [esi]
fcomp dword [eax + 0x3d]
les esp, [ebx + 0x2e2adc54]
lea edi, [esi - 0x797b8b49]
movsb byte es:[edi], byte [esi]
cmp ebp, dword [edi]
inc eax
add eax, 0xd4b92350

Function at 0x10031990
Capabilities:
Get number of processors

Disassembly:
adc ah, byte gs:[edx + edi*2]
movsd dword es:[edi], dword [esi]
cmc
stosb byte es:[edi], al
scasd eax, dword es:[edi]
mov ebp, ecx
dec ebx
jae 0x10031a16
jo 0x1003195c
int 0x90
pop edx
push esp
movsd dword es:[edi], dword [esi]
jb 0x10031a04
push esp
dec eax
shl dword [ebp + 0x11], cl
lahf
arpl ax, bp
inc edi
pop ebp
test ebp, ecx
retf 0x976e
pop edx
sub edx, dword [eax - 0x53]
adc al, byte [ecx]
outsb dx, byte [esi]
test eax, 0x93dfd0d6
push edi
xchg ebx, eax
push es
adc dword [edi - 0x6f], edx
sbb al, dl
jmp 0x10031a25
fsubr dword [edx]
insd dword es:[edi], dx
pop es
or dword [ebx], esi
pop esp
push esp
inc ecx
or eax, esp
push ebp
sbb dl, byte [ecx + edx*2]
dec ebx
mov dword [esi + 0x57], ecx
out dx, al
jge 0x10031a63
push eax
inc eax
mov byte [ebx + 0x2500818b], bh
sub dh, cl
xchg ah, al
pop esp
pop ebx
sub al, 0x4e
push edi
mov esp, edi
push 0xd
pop ecx
clc
lds edx, [edi]
add eax, 0x53b56656
cmp byte [eax - 0x7f28f4f5], 8
mov ebp, 0x6eb37b19
sbb dword [ebx - 0x4d], edi
outsb dx, byte [esi]
rcl byte [ecx - 0x7d], cl
add byte [esi], 0x6f
xchg ebp, eax
les ecx, [edx + ebp*8 - 0x311a0658]
push ebp
cdq
adc dword [edi - 0x159b312d], esi
lodsb al, byte fs:[esi]
adc eax, 0x94845f45
fidiv dword [ecx - 0x44]
invalid
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a1fa
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esi], 0x4404ac
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x10], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov byte [esp + 0x10], 3
call fcn.00410650
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ebx
mov byte [esp + 0x10], 4
call fcn.00410650
mov ecx, dword [esp + 8]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4

Function at 0x403020
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x44a588]
xor eax, esp
push ebx
push edi
mov dword [esp + 0x48], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xf
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.E4B7DE84_758F_4229_8447_FF218CBB90BA
push str.Global_s_1
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x40
push eax
call fcn.0041ed9d
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0
push 0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0xdc], eax
je 0x403086
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403099
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041fb44
add esp, 0x44
ret
mov ecx, dword [esp + 0x48]
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0041fb44
add esp, 0x44
ret
Function at 0x405060
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x584
mov eax, dword [0x44a588]
xor eax, ebp
push edi
mov dword [esp + 0x584], eax
xor eax, eax
mov byte [esp + 0x168], 0
mov ecx, 0x40
lea edi, [esp + 0x169]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x168]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0041f5b0
add esp, 0xc
push str.game.exe
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x278]
push edx
call fcn.0041f5b0
add esp, 0xc
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x60]
push ecx
push str._s__fl
lea edx, [esp + 0x380]
push 0x208
push edx
call fcn.0041ed9d
lea eax, [esp + 0x70]
push eax
call fcn.00404fc0
add esp, 0x14
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x278]
push ecx
push 0
push 0x4000000
push 0
push 0
push 0
lea edx, [esp + 0x398]
push edx
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x584]
xor ecx, ebp
pop edi
call fcn.0041fb44
mov esp, ebp
pop ebp
ret

Function at 0x405970
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x44a588]
xor eax, esp
push ebx
push edi
mov dword [esp + 0x74], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push esi
lea edi, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004059e0
mov ecx, edi
call fcn.00405a90
lea ebx, [esp + 0x60]
call fcn.004058c0
mov ecx, dword [esp + 0x74]
pop edi
pop ebx
xor ecx, esp
call fcn.0041fb44
add esp, 0x70
ret

Function at 0x407420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407439
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40744d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40746e
cmp esi, eax
jae 0x407447
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407460
cmp esi, eax
jae 0x407447
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40aa80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x44a588]
xor eax, ebp
mov dword [esp + 0x110], eax
xor eax, eax
test esi, esi
push edi
je 0x40ab52
mov byte [esp + 8], al
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aad0
sub eax, edx
mov cl, byte [esp + eax + 7]
cmp cl, 0x5c
lea eax, [esp + eax + 7]
jne 0x40aae9
mov byte [eax], 0
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aaf0
sub eax, edx
dec eax
js 0x40ab11
lea esp, [esp]
cmp byte [esp + eax + 8], 0x5c
je 0x40ab0c
dec eax
jns 0x40ab00
jmp 0x40ab11
mov byte [esp + eax + 8], 0
test eax, eax
jg 0x40ab2a
xor eax, eax
pop edi
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041fb44
mov esp, ebp
pop ebp
ret
push 0x104
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0041f5b0
push 0x104
push str.LaunchSkin
push esi
call fcn.0041f7c0
add esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, ebp
pop edi
call fcn.0041fb44
mov esp, ebp
pop ebp
ret
Function at 0x40c9e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x34]
push edi
mov edi, eax
mov al, byte [esi + 0x38]
test al, al
mov eax, 0x10
je 0x40cafb
cmp ecx, eax
jb 0x40ca05
mov ecx, dword [esi + 0x20]
jmp 0x40ca08
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], eax
jb 0x40ca12
mov eax, dword [esi + 4]
jmp 0x40ca15
lea eax, [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push ecx
push eax
push edi
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebp
call fcn.0041edf4
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ca30
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, dword [esi + 0x14]
push ebx
lea ebx, [ecx + eax + 0x3c]
cmp dword [esi + 0x34], 0x10
mov dword [esp + 0x18], ebx
jb 0x40ca53
mov esi, dword [esi + 0x20]
jmp 0x40ca56
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40cb4d
cmp edi, 0xffffffff
je 0x40cb4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edx, [esp + 0x14]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x40cad7
nop
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40cad7
cmp esi, dword [esp + 0x14]
ja 0x40cad7
push 0
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x40cab0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esi, edx
push edi
mov word [esi + eax], 0xa0d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 0xc
ret 4
cmp ecx, eax
jb 0x40cb04
mov ecx, dword [esi + 0x20]
jmp 0x40cb07
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], eax
jb 0x40cb11
mov eax, dword [esi + 4]
jmp 0x40cb14
lea eax, [esi + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push edi
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push ecx
call fcn.0041edf4
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cb30
mov ecx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0x30]
add edx, ecx
pop edi
lea eax, [edx + eax + 0x31]
pop esi
add esp, 0xc
ret 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40d9d0
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x90]
xor edx, edx
test eax, eax
mov dword [esp], edx
jbe 0x40da7a
mov eax, dword [ecx + 0x8c]
push ebx
mov ebx, dword [eax]
cmp ebx, eax
je 0x40da73
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov eax, dword [ebx + 8]
cmp byte [eax + 0x38], 0
je 0x40da52
cmp dword [eax + 0x34], 0x10
jb 0x40da16
mov eax, dword [eax + 0x20]
jmp 0x40da19
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
jmp 0x40da57
mov esi, 0x2000
mov ebx, dword [ebx]
mov eax, dword [ecx + 0x8c]
add edx, esi
cmp ebx, eax
mov dword [esp + 0x10], edx
jne 0x40da02
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret 4
mov eax, edx
pop ebx
pop ecx
ret 4
mov eax, edx
pop ecx
ret 4

Function at 0x40df80
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a0e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
cmp eax, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
jne 0x40dfc8
push 0x445f84
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.connection_failed...
call fcn.0041fb9d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40e028
push 0x445f84
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x441cc8
call fcn.0041fb9d
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, 0x40e028
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ef90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a238
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x40f0c2
lea ecx, [esp + 8]
call fcn.004332c1
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x50], 0
je 0x40efd1
mov eax, dword [eax + 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.004336d1
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
sub ebx, ecx
lea ecx, [esp + 0x3c]
push ecx
push 0x18
sub esi, edi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x24]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp edi, esi
mov ebp, dword [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x68], eax
jge 0x40f0a3
jmp 0x40f040
mov esi, dword [esp + 0x10]
lea esp, [esp]
lea ecx, [eax + ebp]
cmp ecx, esi
jle 0x40f04b
mov ebp, esi
sub ebp, eax
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x40]
mov ecx, esi
cmp ecx, ebx
jge 0x40f095
lea esp, [esp]
lea edx, [esi + edi]
cmp edx, ebx
jle 0x40f06b
mov edi, ebx
sub edi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push edi
push eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x68]
add esi, edi
cmp esi, ebx
jl 0x40f060
mov ecx, dword [esp + 0x10]
add eax, ebp
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x40f035
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0043374f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18

Function at 0x40fc20
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40fc3f
push 0x4404a8
push 0xa
call fcn.00413420
add esp, 8
xor al, al
pop esi
pop ecx
ret
mov cl, byte [esi + 0x20]
test cl, cl
je 0x40fc5a
push str.Const_Mode
push 3
call fcn.00413420
add esp, 8
xor al, al
pop esi
pop ecx
ret
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fc80
push str.point0
push 6
call fcn.00413420
add esp, 8
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 8]
push eax
push 0x28
lea ecx, [esi + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fca7
cmp dword [esp + 4], 0x28
jne 0x40fca7
mov al, 1
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00413420
add esp, 0xc
xor al, al
pop esi
pop ecx
ret
Function at 0x40fcd0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
cmp ecx, 0x8000
jae 0x40fd91
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40fd91
mov dl, byte [edi + 0x20]
test dl, dl
je 0x40fd0a
push str.Const_Mode
push 3
call fcn.00413420
add esp, 8
xor al, al
pop edi
ret 4
push esi
lea esi, [ecx + ecx*2]
mov ecx, dword [edi + 0x34]
push 0
shl esi, 2
push 0
add ecx, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fd4a
mov edx, dword [edi + 0x34]
add edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d__point_d
push 6
call fcn.00413420
add esp, 0x10
pop esi
xor al, al
pop edi
ret 4
mov edx, dword [edi + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea ecx, [esi + edi + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fd74
cmp dword [esp + 0xc], 0xc
jne 0x40fd74
pop esi
mov al, 1
pop edi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00413420
add esp, 0xc
pop esi
xor al, al
pop edi
ret 4
push 0x4404a8
push 0xa
call fcn.00413420
add esp, 8
xor al, al
pop edi
ret 4
Function at 0x410020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x44a588]
xor eax, ebp
push ebx
push esi
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
je 0x410055
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x410069
push 0x4404a8
push 0xa
call fcn.00413420
add esp, 8
jmp 0x410147
mov cl, byte [edi + 0x20]
test cl, cl
je 0x410084
push str.Const_Mode
push 3
call fcn.00413420
add esp, 8
jmp 0x410147
mov esi, dword [ebp + 8]
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4100b4
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d__point_d
push 6
call fcn.00413420
add esp, 0x10
jmp 0x410147
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jbe 0x4100c0
mov ebx, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410131
cmp dword [esp + 0x10], ebx
jne 0x410131
cmp ebx, esi
jae 0x410118
mov edx, dword [esp + 0xc]
xor eax, eax
push eax
mov ecx, 0x40
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0x24]
sub esi, ebx
push esi
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410131
cmp esi, dword [esp + 0xc]
jne 0x410131
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041fb44
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00413420
add esp, 0xc
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0041fb44
mov esp, ebp
pop ebp
ret 0x10