joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4318a0
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 0x4318cb
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 0x4318ef
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 0x43190a
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 0x448c18
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x448c50
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.0044c06e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044c046
jmp 0x448c5c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x44aa1a
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 0x44aa5c
call fcn.004600f2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44aa5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44aa53
xor eax, eax
jmp 0x44aa64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044aa6a
pop edi
pop esi
pop ebx
ret 4
Function at 0x100036f0
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 0x10003709
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000371d
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 0x1000373e
cmp esi, eax
jae 0x10003717
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003730
cmp esi, eax
jae 0x10003717
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x100051e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x100052d0
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x10005263
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x100052b2
mov eax, dword [esi - 4]
push 4
push 0x1000
push ebx
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100052e7
mov edi, dword [esi - 4]
add edi, ebp
test ebx, ebx
mov dword [esi - 8], edi
je 0x100052b2
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100052b2
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
add ecx, eax
cmp edx, ecx
jb 0x100052df
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100052e7
mov eax, dword [esi - 4]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi]
add eax, ebp
add ecx, ebx
test edi, edi
jbe 0x100052af
mov ebp, ecx
mov edx, eax
sub ebp, eax
mov cl, byte [edx + ebp]
mov byte [edx], cl
inc edx
dec edi
jne 0x100052a2
mov ebp, dword [esp + 0x14]
mov dword [esi - 8], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10005212
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x100053a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x30]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [esp + 0x18], edx
jne 0x100053e4
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x100053dd
mov esi, dword [eax + 0x20]
jmp 0x100053e4
test bl, bl
jns 0x100053e4
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], esi
mov esi, 1
add ecx, 0x28
cmp word [eax + 6], si
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
jbe 0x100054c9
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x30]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ebp
test edi, edi
jne 0x10005435
mov ecx, dword [ebx]
test cl, 0x40
je 0x1000542e
mov edi, dword [eax + 0x20]
jmp 0x10005435
test cl, cl
jns 0x10005435
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x1000546e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x1000546e
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
call fcn.10005300
test eax, eax
je 0x100054e8
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x1000549e
mov eax, dword [ebx]
test eax, 0x2000000
je 0x1000548b
mov ecx, dword [esp + 0x20]
test ecx, 0x2000000
je 0x1000548b
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x10005498
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
jl 0x10005410
mov esi, 1
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x24], esi
call fcn.10005300
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x10006e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10031178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
call fcn.10002f50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.100032a0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10006f12
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000cda9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1000cdfc
call fcn.1002e181
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1000cdfc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1000cdf2
xor eax, eax
jmp 0x1000cf15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x1000ce2c
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x1000ce2c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1000cf12
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x1000ce59
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.1000be23
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x1000cf12
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000cea2
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x1000cea2
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x1000ce9c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.1000be23
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x1000cf02
and dword [ebp + 0xc], 0
jmp 0x1000cf02
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x1000cf02
push 0xc
call fcn.10023af7
mov esi, eax
test esi, esi
pop ecx
je 0x1000cee4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x1000cee6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x1000cefd
push dword [ebp - 8]
call fcn.100235ca
jmp 0x1000cf02
call fcn.100235a1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x1000ce67
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10016bc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10017c30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10016c5b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10088708]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10016c5b
cmp eax, 1
je 0x10016c7c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10016c5b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10016c28
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10016c57
xor eax, eax
inc eax
jmp 0x10016c9b
cmp edi, eax
jae 0x10016c5f
xor eax, eax
jmp 0x10016c9b
cmp eax, esi
jae 0x10016c66
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10088708]
jmp 0x10016c7f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016cbf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10016daf
mov eax, 0x94
call fcn.10017c30
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10016e24
mov ecx, dword [esi + 0x10]
mov dword [0x10088708], ecx
mov eax, dword [esi + 4]
mov dword [0x10088714], eax
mov edx, dword [esi + 8]
mov dword [0x10088718], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1008870c], esi
je 0x10016d2a
or esi, 0x8000
mov dword [0x1008870c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10088710], eax
call fcn.1001b8a2
test eax, eax
pop ecx
je 0x10016e24
call fcn.10019d09
test eax, eax
jne 0x10016d57
call fcn.1001b8f3
jmp 0x10016e24
call fcn.1001cf71
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1008a0b0], eax
call fcn.1001ce4f
mov dword [0x100886f0], eax
call fcn.1001c930
test eax, eax
jl 0x10016da8
call fcn.1001cdad
test eax, eax
jl 0x10016da3
call fcn.1001cb7a
test eax, eax
jl 0x10016da3
push 0
call fcn.10017d1e
test eax, eax
pop ecx
jne 0x10016da3
inc dword [0x100886ec]
jmp 0x10016e35
call fcn.1001cb2e
call fcn.10019af2
jmp 0x10016d4d
test eax, eax
jne 0x10016ddf
cmp dword [0x100886ec], eax
jle 0x10016e24
dec dword [0x100886ec]
cmp dword [0x10088744], eax
jne 0x10016dce
call fcn.10017e5c
call fcn.1001cb2e
call fcn.10019af2
call fcn.1001b8f3
jmp 0x10016e35
cmp eax, 2
jne 0x10016e28
push 0x8c
push 1
call fcn.100197eb
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10016e24
push esi
push dword [0x10041644]
call dword [0x1008876c]
test eax, eax
push esi
je 0x10016e1e
call fcn.10019b0f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10016e35
call fcn.1001678a
pop ecx
xor eax, eax
jmp 0x10016e38
cmp eax, 3
jne 0x10016e35
push 0
call fcn.10019cda
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10017d88
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100363d0
call fcn.10018d24
push 8
call fcn.1001b857
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10088748], esi
jne 0x10017dbc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10088744], esi
mov al, byte [ebp + 0x10]
mov byte [0x10088740], al
cmp dword [ebp + 0xc], edi
jne 0x10017e06
cmp dword [0x1008a0a8], edi
je 0x10017df6
mov eax, dword [0x1008a0a4]
sub eax, 4
mov dword [0x1008a0a4], eax
cmp eax, dword [0x1008a0a8]
jb 0x10017df6
mov eax, dword [eax]
cmp eax, edi
je 0x10017dd7
call eax
jmp 0x10017dd7
push 0x10040090
mov eax, 0x10040088
call fcn.10017d06
pop ecx
push 0x1004009c
mov eax, 0x10040094
call fcn.10017d06
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10017e37
cmp dword [ebp + 0x10], edi
jne 0x10017e45
mov dword [0x10088748], esi
push dword [ebp + 8]
call fcn.10017cc4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10017e44
push 8
call fcn.1001b7a2
pop ecx
ret
call fcn.10018d5f
ret
Function at 0x1001d178
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004120c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10041bd0]
je 0x1001d1ad
inc eax
cmp eax, 0x13
jb 0x1001d19e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10041bd0]
jne 0x1001d2d3
mov eax, dword [0x100886f8]
cmp eax, 1
je 0x1001d2ab
cmp eax, edx
jne 0x1001d1dd
cmp dword [0x100886fc], 1
je 0x1001d2ab
cmp ecx, 0xfc
je 0x1001d2d3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001d213
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10019e70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100178b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001d247
mov eax, edi
push eax
call fcn.100178b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10037138
push edi
call fcn.10020340
add esp, 0x10
push edi
call fcn.100178b0
push dword [esi + 0x10041bd4]
mov ebx, eax
call fcn.100178b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10017c30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10019e70
push edi
push ebx
call fcn.10019e80
push 0x10037118
push ebx
call fcn.10019e80
push dword [esi + 0x10041bd4]
push ebx
call fcn.10019e80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10020881
add esp, 0x2c
jmp 0x1001d2d3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10041bd4]
push dword [esi]
call fcn.100178b0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10016f88
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1001f0f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1001f2c9
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10088d20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1001f2c9
test cl, 0x48
je 0x1001f160
cmp byte [eax + 5], 0xa
je 0x1001f160
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001f1b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1001f19a
call fcn.100182e2
mov dword [eax], 9
call fcn.100182eb
mov dword [eax], esi
jmp 0x1001f1aa
cmp eax, 0x6d
je 0x1001f2c9
push eax
call fcn.100182f4
pop ecx
or eax, 0xffffffff
jmp 0x1001f2cb
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1001f2c4
test eax, eax
je 0x1001f1d9
cmp byte [ebx], 0xa
jne 0x1001f1d9
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1001f1e2
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001f2be
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001f2ae
cmp al, 0xd
je 0x1001f214
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001f2a0
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001f22e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1001f229
add dword [ebp + 0x10], 2
jmp 0x1001f282
mov dword [ebp + 0x10], eax
jmp 0x1001f29c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001f256
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001f29c
cmp dword [ebp - 0xc], 0
je 0x1001f29c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1001f277
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001f282
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001f29f
cmp ebx, dword [ebp + 0xc]
jne 0x1001f287
cmp byte [ebp - 1], 0xa
jne 0x1001f287
mov byte [ebx], 0xa
jmp 0x1001f29f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f5f4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001f2a0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1001f1f8
jmp 0x1001f2be
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001f2be
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1001f2cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret