joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416dd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x416e66
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 2
call fcn.00405b7c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
mov eax, dword [0x418e28]
mov eax, dword [eax]
mov edx, 2
call fcn.00405134
mov edx, dword [ebp - 8]
pop eax
call fcn.00403cfc
mov eax, dword [ebp - 4]
call fcn.00403eec
push eax
push 1
push 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov ebx, eax
test ebx, ebx
je 0x416e4b
call sub.KERNEL32.DLL_OpenMutexW
cmp eax, 0xb7
jne 0x416e4b
push ebx
call sub.KERNEL32.DLL_FormatMessageA
push 0
call sub.KERNEL32.DLL_GetTempPathW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416e6d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b94
ret
Function at 0x40b1b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b1d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b1d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b1c8
mov eax, 1
add ebx, ebx
jne 0x40b1eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b1e0
jne 0x40b1fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b1e0
xor ecx, ecx
sub eax, 3
jb 0x40b210
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b282
mov ebp, eax
add ebx, ebx
jne 0x40b21b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b24c
inc ecx
add ebx, ebx
jne 0x40b238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b22d
jne 0x40b249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b22d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b26c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b25d
jmp 0x40b1ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b26c
add edi, ecx
jmp 0x40b1ce
pop esi
mov edi, esi
mov ecx, 0x2d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b28a
cmp byte [edi], 5
jne 0x40b28a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40b28f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b307
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc1b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc1ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b2bc
mov ecx, edi
jns 0x40b2eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc1f0]
or eax, eax
je 0x40b301
mov dword [ebx], eax
add ebx, 4
jmp 0x40b2d9
call dword [esi + 0xc200]
mov ebp, dword [esi + 0xc1f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b33b
sub esp, 0xffffff80
jmp 0x4013e8
Function at 0x599890
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5998aa
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5999ba
push ebp
jmp 0x5998c0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x5998cf
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x59997b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x5998f0
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x5998f0
test eax, eax
je 0x59998d
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x599980
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x5998c0
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x41ecfd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413ea2
and dword [ebp - 4], 0
cmp dword [0x43ca8c], 0
mov ebx, eax
jne 0x41edae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ee5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431bd4
push edi
call esi
test eax, eax
je 0x41ee5f
push eax
call fcn.00413e30
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ca8c], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], 0x431bb0
push edi
mov dword [0x43ca90], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ca94], eax
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca9c], eax
test eax, eax
je 0x41edae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca98], eax
mov eax, dword [0x43ca98]
cmp eax, ebx
je 0x41ee06
cmp dword [0x43ca9c], ebx
je 0x41ee06
push eax
call fcn.00413eab
push dword [0x43ca9c]
mov esi, eax
call fcn.00413eab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ee06
test edi, edi
je 0x41ee06
call esi
test eax, eax
je 0x41edfd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41edfd
test byte [ebp - 0xc], 1
jne 0x41ee06
or dword [ebp + 0x10], 0x200000
jmp 0x41ee3f
mov eax, dword [0x43ca90]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ee3f
mov eax, dword [0x43ca94]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ca8c]
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ee61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0042475f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00424714
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
invalid
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40325b
pop dword [ebp - 0x14]
mov eax, 0x9c39a6dd
sub eax, 0x9bf97482
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xf422fff9
add dword [ebp - 0x24], 0x5a2f4552
mov dword [ebp - 0x20], 0x777a875b
add dword [ebp - 0x20], 0xbab8c4ea
mov dword [ebp - 0x1c], 0xa3ded449
add dword [ebp - 0x1c], 0xa86d6fe5
mov dword [ebp - 0x18], 0x6fb42c6f
sub dword [ebp - 0x18], 0x6fb42c6f
lea eax, [ebp - 0x24]
push eax
mov eax, 0x210e5d0d
sub eax, 0x20cddc95
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xd972bb52
add dword [ebp - 0x24], 0x9affae04
mov dword [ebp - 0x20], 0x37a9e902
add dword [ebp - 0x20], 0x9c27873
mov dword [ebp - 0x1c], 0x14645eb
add dword [ebp - 0x1c], 0x62292681
mov dword [ebp - 0x18], 0xfb9b9922
sub dword [ebp - 0x18], 0xfb9b9922
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38dc8
push 0
call eax
mov ecx, 0x96248d0d
sub ecx, 0x96243dbb
mov ebx, eax
mov edx, 0xab4e1591
sub edx, 0xab090191
add edx, dword [ebp - 0x14]
mov edi, 0x4d2161b8
sub edi, 0x2bf0827b
sub dword [ebp - 0xc], 0x5aa2eab4
mov esi, dword [edx]
add dword [ebp - 0xc], 0x2075dedb
sub esi, edi
sub dword [ebp - 0x10], eax
mov dword [ebx], esi
xor dword [ebp - 0xc], ebx
add ebx, 0x3a16810b
add ebx, 0xc5e97ef9
add edx, 4
loop 0x403378
add eax, 0x1301b
mov ebx, eax
add eax, 0x24f3050
add eax, 0xfdb0cfb5
mov ecx, 0x4c94dce9
sub ecx, 0x4c54dce9
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4245d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c0908], 0
jne 0x4245fa
call fcn.0042459c
mov dword [esp], 0x4c0908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x424624
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c090c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x424600
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x67a1b4]
mov dword [ebp - 4], eax
jmp 0x4018f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401916
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4018f0
mov esp, ebp
pop ebp
ret

Function at 0x401920
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x67a1c4], eax
je 0x40193e
mov eax, 0x10dd
jmp 0x401a1f
mov eax, dword [0x67a1d4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019bc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x40199a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x40199a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00401a90
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0059f9cc
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401946
mov dword [0x67a1d4], 0
call fcn.00401a30
mov ecx, dword [0x67a1d0]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x401a09
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0059f9cc
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x4019d4
mov dword [0x67a1d0], 0
mov dword [0x67a1c4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x401fa5
xor eax, eax
jmp 0x40201a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x401fd2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x402015
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x402013
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x40200f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x402013
xor eax, eax
jmp 0x40201a
jmp 0x401fc9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4020c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x67a1c8], 0
je 0x4020d9
mov eax, dword [0x67a1c8]
jmp 0x402179
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4020eb
xor eax, eax
jmp 0x402179
push 8
call fcn.0059ebbe
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402141
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x40212a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059f9cc
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x67a1c8], eax
mov dword [0x67a1cc], 0
mov eax, dword [ebp - 4]
jmp 0x402179
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40215b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40210b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x67a1d0]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x67a1d0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4029a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00402a70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x402a5c
cmp dword [ebp - 4], 0x50000000
jb 0x4029dc
cmp dword [ebp - 4], 0x80000000
ja 0x4029dc
mov dword [ebp - 4], 0x80010000
jmp 0x4029b5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005a41c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402a02
jmp 0x402a5c
cmp dword [ebp - 0x10], 0x10000
jne 0x402a45
cmp dword [ebp - 0x14], 0x10000
jb 0x402a45
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402a38
mov eax, dword [ebp - 0x24]
jmp 0x402a5e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402a57
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00402a70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4029b5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00402b70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x402b64
cmp dword [ebp - 4], 0x50000000
jb 0x402ae1
cmp dword [ebp - 4], 0x80000000
ja 0x402ae1
mov dword [ebp - 4], 0x4fff0000
jmp 0x402aba
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005a41c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402b07
jmp 0x402b64
cmp dword [ebp - 0x10], 0x10000
jne 0x402b4a
cmp dword [ebp - 0x14], 0x10000
jb 0x402b4a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402b3d
mov eax, dword [ebp - 0x24]
jmp 0x402b66
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402b5f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00402b70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402aba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40acf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67b05f
call fcn.0059f048
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40ad27
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x40ad2e
mov al, 1
jmp 0x40ae1e
call fcn.0040e9e0
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x7c], eax
call fcn.0040e9e0
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0040ea30
add esp, 8
movzx eax, al
test eax, eax
je 0x40ad6a
xor al, al
jmp 0x40ae1e
mov dword [ebp - 0xc], 0x20
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x38]
call fcn.00410ab0
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x40adb2
cmp dword [ebp - 0x84], 1
je 0x40adb9
cmp dword [ebp - 0x84], 3
je 0x40ae11
jmp 0x40ae1c
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x40ade8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.005ad1aa
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40ade8
xor al, al
jmp 0x40ae1e
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x40adff
mov dword [ebp - 0x84], 1
jmp 0x40ae09
mov dword [ebp - 0x84], 0
mov al, byte [ebp - 0x84]
jmp 0x40ae1e
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x40ae1e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x40f760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67b05f
call fcn.0059f048
call fcn.0040e9e0
mov dword [ebp - 0x84], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040ea30
add esp, 8
movzx edx, al
test edx, edx
je 0x40f7b9
lea eax, [ebp + 8]
push eax
call fcn.0040f5e0
add esp, 4
jmp 0x40f95b
mov ecx, dword [ebp - 8]
call fcn.0040fb50
test eax, eax
je 0x40f7fb
mov ecx, dword [ebp - 8]
call fcn.0040fb50
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.0040ea00
cmp esi, eax
jae 0x40f7fb
lea eax, [ebp + 8]
push eax
call fcn.004105e0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 8]
call fcn.0040cb00
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40f95b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x40f80e
call fcn.0040e9e0
jmp 0x40f95b
mov ecx, dword [ebp - 8]
call fcn.0040cc30
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x40f866
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004105e0
add esp, 4
movzx eax, al
push eax
call fcn.00406af0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40f850
mov edx, dword [ebp + 8]
mov dword [ebp - 0x88], edx
jmp 0x40f85b
call fcn.0040e9e0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
jmp 0x40f95b
mov dword [ebp - 0xc], 0x20
lea eax, [ebp + 8]
push eax
call fcn.004105e0
add esp, 4
mov byte [ebp - 0x32], al
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x31]
push ecx
lea edx, [ebp - 0x32]
push edx
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x38]
call fcn.0040f710
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jl 0x40f956
cmp dword [ebp - 0x88], 1
jle 0x40f8d0
cmp dword [ebp - 0x88], 3
je 0x40f91d
jmp 0x40f956
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x40f902
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.005ad1aa
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40f902
call fcn.0040e9e0
jmp 0x40f95b
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x32]
cmp dword [ebp - 0x38], eax
je 0x40f916
mov eax, dword [ebp + 8]
jmp 0x40f95b
call fcn.0040e9e0
jmp 0x40f95b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x32]
push edx
call fcn.00406af0
add esp, 8
movzx eax, al
test eax, eax
je 0x40f943
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x88], ecx
jmp 0x40f94e
call fcn.0040e9e0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
jmp 0x40f95b
call fcn.0040e9e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret 4
Function at 0x410cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67b05f
call fcn.0059f048
cmp dword [ebp + 0x10], 0
jg 0x410d27
jl 0x410d1e
cmp dword [ebp + 0xc], 0
ja 0x410d27
xor eax, eax
xor edx, edx
jmp 0x410e5e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x410d49
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00410e80
jmp 0x410e5e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
call fcn.0040bc00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x410db8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00404950
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040efd0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406010
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040ee10
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x410e4f
mov ecx, dword [ebp - 8]
call fcn.0040cc30
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 0xc], 0xfff
jbe 0x410e28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
push 0xfff
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.005acb23
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x24], 0xfff
je 0x410e26
xor eax, eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, eax
mov eax, ecx
jmp 0x410e5e
jmp 0x410dd4
cmp dword [ebp - 0xc], 0
jbe 0x410e4f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.005acb23
add esp, 0x10
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret 0xc