joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x430b08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f910
cmp byte [ebx], 0xa
jne 0x41f910
or byte [edi + eax + 0x28], 4
jmp 0x41f915
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41fa14
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f9f7
inc eax
cmp dl, 0xd
je 0x41f941
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f967
cmp eax, ecx
jae 0x41f975
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41f929
jmp 0x41fa14
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f9f2
cmp dword [ebp - 0x10], 0
je 0x41f9f2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x430b08]
test byte [eax + edi + 0x28], 0x48
je 0x41f9cc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f9b7
mov byte [esi], dl
jmp 0x41f9c8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430b08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fa14
cmp byte [ebp - 1], 0xa
jne 0x41f9db
cmp esi, ebx
jne 0x41f9db
mov byte [esi], 0xa
jmp 0x41fa13
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041909f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fa14
mov byte [esi], 0xd
jmp 0x41fa13
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x430b08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fa11
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fa14
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fa1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x430b08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fa63
cmp word [ebx], dx
jne 0x41fa63
or byte [eax + edi + 0x28], 4
jmp 0x41fa68
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41fbcb
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41fbab
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41faa9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fadf
cmp eax, edx
jae 0x41faed
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41fa84
jmp 0x41fbcb
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fba6
cmp dword [ebp - 0x18], 0
je 0x41fba6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x430b08]
test byte [eax + edi + 0x28], 0x48
je 0x41fb7c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41fb40
mov word [esi], cx
jmp 0x41fb77
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x430b08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x430b08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x430b08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41fbcb
pop eax
cmp word [ebp - 4], ax
jne 0x41fb8c
cmp esi, ebx
jne 0x41fb8c
mov word [esi], ax
jmp 0x41fbc8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041909f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41fbcb
push 0xd
pop eax
jmp 0x41fb87
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x430b08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41fbc5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41fbcb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42246d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42246d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402e4e
jmp 0x402e40
cmp esi, eax
jae 0x402e52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e40
cmp esi, eax
jb 0x402e59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004088cd
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407f7d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00407b86
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x407fdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x407fff
cmp dword [edi + 0x74], 0
jne 0x407fff
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004088cd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00407f9c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40ea12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ea59
call fcn.004088cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ea59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ea75
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e517
mov esi, eax
test edi, edi
je 0x40ea73
test ebx, ebx
je 0x40ea73
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ee54
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50fde3
call fcn.004f7916
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40ee79
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40eecb
call fcn.0040f98d
push eax
lea ecx, [ebp - 0x10]
call fcn.00403570
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f99b0
push eax
call fcn.00402cb0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402eb0
mov eax, esi
call fcn.004f79ee
ret 8

Function at 0x44ead2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d1edd
call fcn.004082fe
cmp dword [eax + 0x14], 0
jne 0x44eaef
mov ecx, esi
pop esi
jmp fcn.0044e5d7
pop esi
ret

Function at 0x4520d3
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dde9b
call fcn.004082fe
cmp dword [eax + 0x14], 0
jne 0x4520f0
mov ecx, esi
pop esi
jmp fcn.00451aa6
pop esi
ret

Function at 0x45f792
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045f451
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45f7dc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ca78
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405ad3
jmp 0x45f7e7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00419af1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45f7ed
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040eb1e
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45f82a
call fcn.0045f451
mov dword [esi + 0xc], 1
jmp 0x45f82f
call fcn.0045f451
cmp dword [esi], 0
je 0x45f878
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x45f850
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ca78
jmp 0x45f862
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403690
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405ad3
jmp 0x45f89c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x45f89c
push dword [esi]
push dword [ebp + 8]
call fcn.00419af1
pop esi
pop ebp
ret 0xc
Function at 0x48949b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4894b5
call fcn.004088cd
mov esi, dword [eax + 0xc]
push dword [0x564788]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4894d3
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4894cb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x489500
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4894cd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004893c9
mov esi, eax
jmp 0x4894f2

Function at 0x4db219
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4db231
mov edi, dword [esi + 0xc]
jmp 0x4db271
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4db24a
call fcn.00411f95
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4db25f
call fcn.00411f95
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4db271
call fcn.00411f95
call fcn.004088cd
cmp dword [eax + 0x3c], 0
je 0x4db286
push edi
mov ecx, ebx
call fcn.004da0d7
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004db133
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4db2a4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4db2b0
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f6105
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55f350]
jne 0x4f610f
repz ret
jmp fcn.004fccf4
Function at 0x508b49
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55f350]
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.004fd63e
and dword [ebp - 0x14], 0
cmp dword [0x566ca8], 0
mov dword [ebp - 0x18], eax
jne 0x508bfc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x508ca4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x508ca4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x540c14
push ebx
mov dword [0x566ca8], eax
call edi
push eax
call esi
push 0x540c00
push ebx
mov dword [0x566cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x566cb0], eax
call edi
push eax
call esi
mov dword [0x566cb8], eax
test eax, eax
je 0x508bfc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x566cb4], eax
mov eax, dword [0x566cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x508c55
cmp dword [0x566cb8], ecx
je 0x508c55
push eax
call esi
push dword [0x566cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x508c55
test ebx, ebx
je 0x508c55
call edi
test eax, eax
je 0x508c4c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x508c4c
test byte [ebp - 8], 1
jne 0x508c55
or dword [ebp + 0x10], 0x200000
jmp 0x508c88
mov eax, dword [0x566cac]
cmp eax, dword [ebp - 0x18]
je 0x508c88
push eax
call esi
test eax, eax
je 0x508c88
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x508c88
mov eax, dword [0x566cb0]
cmp eax, dword [ebp - 0x18]
je 0x508c88
push eax
call esi
test eax, eax
je 0x508c88
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x566ca8]
call esi
test eax, eax
je 0x508ca4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x508ca6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6105
leave
ret
Function at 0x402828
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x402856
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x40285e
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x40288d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x4028b3
mov eax, 0x4031b4
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x4028dc
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4028dc
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4028dc
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00402601
leave
ret
Function at 0x402450
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c1368
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4f2720]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.004018a0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4024b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402130
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.004018a0
cmp dword [esp + 0x28], 8
jb 0x4024fb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00402ac9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x40316f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x10000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4031a3
xor al, al
jmp 0x403281
push ebx
push 0x86470
push 0x50910
mov ecx, esi
mov dword [ebp - 0xc], 0x400
call fcn.004091be
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.00442ee2
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.0045fa70
add esp, 0x10
push edi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x40326a
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], 4
jne 0x40326a
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push 0x24
add eax, 4
push eax
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], 0x24
jne 0x40326a
push edi
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], 4
jne 0x40326a
push edi
mov edi, dword [ebp - 8]
lea eax, [ebp + 8]
push eax
add ebx, 0xffffffd8
push ebx
lea eax, [edi + 0x28]
push eax
push dword [ebp - 4]
call esi
cmp ebx, dword [ebp + 8]
je 0x40326e
xor al, al
jmp 0x403280
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00402ac9
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x403287
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov ebx, 0x80
push ebx
push 4
push 0
push 3
mov edi, 0x10000000
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4032be
xor al, al
jmp 0x4033ab
push 0
push eax
mov dword [ebp - 0x14], 0x4643534d
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.00442ee2
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0
push dword [ebp - 8]
call fcn.0045fa70
add esp, 0x10
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x4032b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
push 2
push 0
push 3
push edi
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40333e
push dword [ebp - 8]
call fcn.00402ac9
xor al, al
jmp 0x4033aa
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
cmp dword [ebp - 4], 4
jne 0x4032b7
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0x24
add eax, 4
push eax
push ebx
call esi
cmp dword [ebp - 4], 0x24
jne 0x4032b7
mov edi, dword [ebp - 0xc]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add edi, 0xffffffd4
push edi
add eax, 0x2c
push eax
push ebx
call esi
cmp edi, dword [ebp - 4]
jne 0x4032b7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.00402ac9
mov al, 1
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4033b2
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0x10000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4033de
xor al, al
pop esi
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4033f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4033d9
mov bl, 1
jmp 0x4033ea