joyce8/EMBER2024-capa huggingface dataset:
Function at 0x555dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
mov ebp, dword [edx + 0x1050]
push edi
mov edi, dword [edx + 0x105c]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x555f14
push ebx
push esi
mov esi, 0xff00
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1058]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x555eee
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xff
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 2]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x200]
shr eax, 2
and edx, 0xffff00ff
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x555e39
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1050]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1050]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x555e10
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x555f1c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x556052
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x55602d
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x555f7b
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x555f57
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x55e98c
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x55e9b9
push esi
call fcn.0056e499
cmp byte [esi + 0x40], 0
pop ecx
je 0x55e9b2
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x55ea28
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x55ea1d
mov eax, dword [esi + 8]
test eax, eax
je 0x55e9da
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x55ea19
cmp eax, 2
je 0x55ea1d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x55e9cf
cmp eax, 3
je 0x55e9fe
cmp eax, 1
jne 0x55e9cf
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x55e9cf
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x55e9cf
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x55ea46
cmp eax, 0xcc
je 0x55ea46
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0055e85f
pop esi
ret
Function at 0x56fda3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x56fdb1
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x56fe85
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d7858]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d7858]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d7858]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d7858]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d7858]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d7858]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d7858]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d7858]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x56fdce
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x56fea5
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x5d7858]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x56fe8b
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x57beb9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x57bed9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00582496
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x57befc
test byte [esp + 8], 2
je 0x57befc
call fcn.00582484
mov dword [eax], 0xd
call fcn.0058248d
mov dword [eax], 5
jmp 0x57bed5
xor eax, eax
ret

Function at 0x57d1dc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5d87e0
call fcn.00580870
mov edi, 0x94
mov eax, edi
call fcn.0057caf0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x66573c], ecx
mov eax, dword [esi + 4]
mov dword [0x665748], eax
mov edx, dword [esi + 8]
mov dword [0x66574c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x665740], esi
cmp ecx, 2
je 0x57d23c
or esi, 0x8000
mov dword [0x665740], esi
shl eax, 8
add eax, edx
mov dword [0x665744], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x57d277
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57d277
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x57d28f
cmp eax, 0x20b
je 0x57d27c
mov dword [ebp - 0x1c], esi
jmp 0x57d2a3
cmp dword [ecx + 0x84], 0xe
jbe 0x57d277
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x57d29d
cmp dword [ecx + 0x74], 0xe
jbe 0x57d277
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00585512
pop ecx
test eax, eax
jne 0x57d2b7
push 0x1c
call fcn.0057d1b8
pop ecx
call fcn.00580c36
test eax, eax
jne 0x57d2c8
push 0x10
call fcn.0057d1b8
pop ecx
call fcn.00586a50
mov dword [ebp - 4], esi
call fcn.0058346b
test eax, eax
jge 0x57d2e1
push 0x1b
call fcn.0057d193
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x668264], eax
call fcn.0058692e
mov dword [0x665728], eax
call fcn.0058688c
test eax, eax
jge 0x57d307
push 8
call fcn.0057d193
pop ecx
call fcn.00586659
test eax, eax
jge 0x57d318
push 9
call fcn.0057d193
pop ecx
push 1
call fcn.0057dd8c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x57d32e
push eax
call fcn.0057d193
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.005865fc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x57d34f
movzx eax, word [ebp - 0x40]
jmp 0x57d352
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0047a120
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x57d370
push edi
call fcn.0057deb9
call fcn.0057dedb
jmp 0x57d3a2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005808ab
ret
Function at 0x57ddf6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5d8838
call fcn.00580870
push 8
call fcn.0058083e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x66577c], esi
jne 0x57de2a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x665778], esi
mov al, byte [ebp + 0x10]
mov byte [0x665774], al
cmp dword [ebp + 0xc], edi
jne 0x57de74
cmp dword [0x667250], edi
je 0x57de64
mov eax, dword [0x66724c]
sub eax, 4
mov dword [0x66724c], eax
cmp eax, dword [0x667250]
jb 0x57de64
mov eax, dword [eax]
cmp eax, edi
je 0x57de45
call eax
jmp 0x57de45
push 0x6006f0
mov eax, 0x6006e8
call fcn.0057dd74
pop ecx
push 0x6006fc
mov eax, 0x6006f4
call fcn.0057dd74
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x57dea5
cmp dword [ebp + 0x10], edi
jne 0x57deb3
mov dword [0x66577c], esi
push dword [ebp + 8]
call fcn.0057dd32
call fcn.005808ab
ret
Function at 0x582c38
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x620368]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x582c74
xor eax, eax
jmp 0x582dde
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x667140]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x582cb2
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0058f25c
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x582d4c
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x582daf
jmp 0x582cd6
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x582d11
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x582d02
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x582ce2
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x582d70
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x582d79
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x582cd4
jmp 0x582d79
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x582d70
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x582d79
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x582dd9
cmp dword [ebp - 0x68], eax
je 0x582dac
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x582da1
call fcn.00582484
mov dword [eax], 9
call fcn.0058248d
mov dword [eax], esi
jmp 0x582dd4
push dword [ebp - 0x68]
call fcn.00582496
pop ecx
jmp 0x582dd4
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x582dc1
cmp byte [edi], 0x1a
jne 0x582dc1
xor eax, eax
jmp 0x582ddc
call fcn.00582484
mov dword [eax], 0x1c
call fcn.0058248d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x582ddc
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0057b3d4
add ebp, 0x3a4
leave
ret
Function at 0x5831e3
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 0x5833b9
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x667140]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5833b9
test cl, 0x48
je 0x58324e
cmp byte [eax + 5], 0xa
je 0x58324e
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 0x5832a0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x583288
call fcn.00582484
mov dword [eax], 9
call fcn.0058248d
mov dword [eax], esi
jmp 0x583298
cmp eax, 0x6d
je 0x5833b9
push eax
call fcn.00582496
pop ecx
or eax, 0xffffffff
jmp 0x5833bb
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5833b4
test eax, eax
je 0x5832c7
cmp byte [ebx], 0xa
jne 0x5832c7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5832d0
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 0x5833ae
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x58339e
cmp al, 0xd
je 0x583302
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x583390
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x58331c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x583317
add dword [ebp + 0x10], 2
jmp 0x583370
mov dword [ebp + 0x10], eax
jmp 0x58338c
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 0x583344
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x58338c
cmp dword [ebp - 0xc], 0
je 0x58338c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x583365
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x583370
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x58338f
cmp ebx, dword [ebp + 0xc]
jne 0x583375
cmp byte [ebp - 1], 0xa
jne 0x583375
mov byte [ebx], 0xa
jmp 0x58338f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0058f25c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x583390
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5832e6
jmp 0x5833ae
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5833ae
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 0x5833bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58644b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x620368]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x620dd0]
je 0x586482
inc eax
cmp eax, 0x13
jb 0x586473
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x620dd0]
jne 0x5865a5
mov eax, dword [0x665730]
cmp eax, 1
je 0x586580
cmp eax, edx
jne 0x5864b2
cmp dword [0x620400], 1
je 0x586580
cmp ecx, 0xfc
je 0x5865a5
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x5864e8
lea eax, [ebp - 0x7c]
push 0x5d8b90
push eax
call fcn.00581230
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0057e3f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x58651c
mov eax, edi
push eax
call fcn.0057e3f0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x5d8b8c
push edi
call fcn.0057b960
add esp, 0x10
push edi
call fcn.0057e3f0
push dword [esi + 0x620dd4]
mov ebx, eax
call fcn.0057e3f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0057caf0
mov ebx, esp
push 0x5dcc60
push ebx
call fcn.00581230
push edi
push ebx
call fcn.00581240
push 0x5d8b88
push ebx
call fcn.00581240
push dword [esi + 0x620dd4]
push ebx
call fcn.00581240
push 0x12010
push 0x5d8b54
push ebx
call fcn.0058e4c5
add esp, 0x2c
jmp 0x5865a5
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x620dd4]
push dword [esi]
call fcn.0057e3f0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0057b3d4
add ebp, 0x90
leave
ret
Function at 0x58dd20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x58dd4e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x58dd55
cmp ebx, dword [eax + 4]
jae 0x58dd55
xor eax, eax
jmp 0x58df45
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x58dd66
xor eax, eax
inc eax
jmp 0x58df44
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x58dd7c
cmp ecx, edx
jae 0x58dec1
cmp dword [eax + 4], 0
je 0x58dd85
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x58dd6d
cmp dword [ebp + 8], 0
je 0x58dda7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x58dec1
cmp eax, esi
jae 0x58dec1
mov eax, dword [0x665be0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x58ddcc
cmp dword [esi*4 + 0x665be8], edi
je 0x58dec5
inc esi
cmp esi, eax
jl 0x58ddba
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x58df41
cmp dword [ebp - 8], 0x1000000
jne 0x58df41
test byte [ebp - 0xc], 0xcc
je 0x58de4a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x58df41
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x58df41
cmp word [eax + 0x18], 0x10b
jne 0x58df41
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x58df41
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x58de4a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x58de4a
test byte [ecx + 0x27], 0x80
jne 0x58dec1
push 1
push 0x665c28
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x58dd5e
mov ecx, dword [0x665be0]
test ecx, ecx
mov edx, ecx
jle 0x58de7e
lea eax, [ecx*4 + 0x665be4]
cmp dword [eax], edi
je 0x58de7e
dec edx
sub eax, 4
test edx, edx
jg 0x58de72
test edx, edx
jne 0x58deaf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x58de8b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x58dea3
lea eax, [edx*4 + 0x665be8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x58de91
cmp ecx, 0x10
jge 0x58deaf
inc ecx
mov dword [0x665be0], ecx
push 0
push 0x665c28
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x58dd5e
xor eax, eax
jmp 0x58df44
test esi, esi
jle 0x58dd5e
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x665c28
call ebx
test eax, eax
jne 0x58dd5e
cmp dword [esi*4 + 0x665be8], edi
je 0x58df1b
mov eax, dword [0x665be0]
lea esi, [eax - 1]
test esi, esi
jl 0x58df09
cmp dword [esi*4 + 0x665be8], edi
je 0x58df05
dec esi
jns 0x58def9
test esi, esi
jge 0x58df19
cmp eax, 0x10
jge 0x58df14
inc eax
mov dword [0x665be0], eax
lea esi, [eax - 1]
jmp 0x58df1b
je 0x58df33
xor ecx, ecx
test esi, esi
jl 0x58df33
lea eax, [ecx*4 + 0x665be8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x58df21
push 0
push 0x665c28
call ebx
jmp 0x58dd5e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret