joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b2e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c1dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x5a15e4
mov dword [esi + 4], 0x5a1558
mov eax, dword [esi + 0x3e24]
mov ecx, dword [eax]
lea edi, [esi + 0x3e20]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov dword [ebp - 4], 7
call fcn.004059e0
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x3dc0]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x3dbc]
push eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0040a0e0
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x3db4]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x3db0]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040a0e0
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x3da8]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x3da4]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040a0e0
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x3d9c]
mov ecx, dword [eax]
lea edi, [esi + 0x3d98]
push eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.0043ab80
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x30]
add esp, 4
cmp eax, 0x10
jb 0x43b41e
mov eax, dword [esi + 0x1c]
push eax
call fcn.004796fd
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
lea edi, [esi + 0xc]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004059e0
mov eax, dword [edi + 4]
push eax
call fcn.004796fd
mov ecx, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [esi + 4], 0x5a10c4
add esp, 4
mov dword [0x5ef6f4], ebx
mov dword [esi], 0x5a10c8
pop edi
pop esi
mov dword [0x5ef6f8], ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x44a370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c93e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
xor ebx, ebx
mov eax, 0xf
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x14], esi
mov byte [edi + 4], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], 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 dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xd8], eax
mov dword [esi + 0xd4], ebx
mov byte [esi + 0xc4], bl
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf0], ebx
mov byte [esi + 0xe0], bl
mov dword [esi + 0x110], eax
mov dword [esi + 0x10c], ebx
mov byte [esi + 0xfc], bl
mov dword [esi + 0x12c], eax
mov dword [esi + 0x128], ebx
mov byte [esi + 0x118], bl
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], ebx
mov byte [esi + 0x134], bl
mov dword [esi + 0x164], eax
mov dword [esi + 0x160], ebx
mov byte [esi + 0x150], bl
mov dword [esi + 0x194], eax
mov dword [esi + 0x190], ebx
mov byte [esi + 0x180], bl
push fcn.004e5320
push fcn.00403ab0
push 4
push 0x24
lea eax, [esi + 0x19c]
push eax
mov byte [ebp - 4], 0xe
call fcn.0047a04b
mov byte [ebp - 4], 0xf
mov byte [esi], 1
mov byte [esi + 8], 0x14
push ebx
push 0x599956
lea ecx, [esi + 0xc0]
mov byte [esi + 9], 1
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
call fcn.00404250
push ebx
push 0x599956
lea ecx, [esi + 0xf8]
call fcn.00404250
push ebx
push 0x599956
lea ecx, [esi + 0x114]
call fcn.00404250
push ebx
push 0x599956
lea ecx, [esi + 0x130]
call fcn.00404250
push ebx
push 0x599956
lea ecx, [esi + 0x17c]
mov dword [esi + 0x178], ebx
call fcn.00404250
push ebx
push 0x599956
lea ecx, [esi + 0x14c]
mov byte [esi + 0x198], bl
call fcn.00404250
push ebx
push 0x599956
mov ecx, edi
mov byte [esi + 0xa], bl
mov dword [esi + 0xc], ebx
call fcn.00404250
mov dword [esi + 0x22c], ebx
lea edi, [esi + 0x1bc]
mov dword [ebp - 0x10], 3
push ebx
push 0x599956
lea ecx, [edi - 0x20]
call fcn.00404250
mov eax, dword [ebp - 0x10]
mov dword [edi - 4], ebx
mov word [edi], bx
add edi, 0x24
dec eax
mov dword [ebp - 0x10], eax
jne 0x44a561
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x453cb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d586
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x18]
mov dword [ebp - 0x10], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ebx
call fcn.004e5260
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], 0x3f800000
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0xf
mov eax, dword [edi + 4]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x453d1d
push eax
call fcn.004796fd
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [0x5d4998]
push 1
push eax
mov ecx, edi
call fcn.004539f0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46b6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x58edadb9
mov cl, byte [ebp - 4]
xor eax, eax
test cl, cl
jbe 0x46b70f
mov ecx, dword [ebp - 4]
xor ecx, 0x80164043
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 0x29e08a43
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x5f23b0], ecx
movzx edx, byte [ebp - 4]
inc eax
cmp eax, edx
jb 0x46b6e4
mov eax, 0x5f23b0
mov esp, ebp
pop ebp
ret
Function at 0x46e490
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0046e400
mov edi, dword [ebp + 8]
push 0x5a3594
push edi
call fcn.0047abf4
add esp, 8
push 0x80
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
fld dword [ebp - 0x1c]
sub esp, 0x18
fstp qword [esp + 0x10]
fld dword [ebp - 0x20]
fstp qword [esp + 8]
fld dword [ebp - 0x24]
fstp qword [esp]
push str.CenterPos__f__f__f_n
push 0
push esi
call fcn.004d45d0
fld dword [ebp - 0xc]
add esp, 0xc
fstp qword [esp + 0x10]
fld dword [ebp - 8]
fstp qword [esp + 8]
fld dword [ebp - 4]
fstp qword [esp]
push str.CameraSetting__f__f__f_n
push 0
push esi
call fcn.004d45d0
fld dword [ebp - 0x10]
add esp, 0xc
fstp qword [esp + 0x10]
fld dword [ebp - 0x14]
fstp qword [esp + 8]
fld dword [ebp - 0x18]
fstp qword [esp]
push str.CmrPos__f__f__f_n
push 0
push esi
call fcn.004d45d0
fld dword [ebp - 0x10]
call fcn.00479bdc
fld dword [ebp - 0x14]
push eax
call fcn.00479bdc
fld dword [ebp - 0x18]
push eax
call fcn.00479bdc
fld dword [ebp - 0xc]
push eax
call fcn.00479bdc
fld dword [ebp - 8]
push eax
call fcn.00479bdc
fld dword [ebp - 4]
push eax
call fcn.00479bdc
fld dword [ebp - 0x1c]
push eax
call fcn.00479bdc
fld dword [ebp - 0x20]
push eax
call fcn.00479bdc
fld dword [ebp - 0x24]
push eax
call fcn.00479bdc
push eax
push str.Line__x__dy__dz__ddistance__dpitch__drot__dup__dview__dcross__d__n
push 0
push esi
call fcn.004d45d0
add esp, 0x54
push esi
call fcn.0047aae9
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x471dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
call dword [sym.imp.user32.dll_ChangeDisplaySettingsA]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x40
push eax
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.user32.dll_SetWindowPos]
push 6
push esi
call dword [sym.imp.user32.dll_ShowWindow]
pop esi
pop ebp
ret 0xc
Function at 0x477540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [str.UserDict.pyc]
cmp byte [eax], 0xa
push ebx
push esi
push edi
je 0x477623
mov esi, 0x5d63c0
mov edi, esi
xor ebx, ebx
push 4
push str.lib_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00404250
mov ecx, dword [esi]
mov eax, ecx
mov dword [ebp - 4], ebx
lea esi, [eax + 1]
jmp 0x4775a0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4775a0
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404050
mov eax, dword [ebp - 0x10]
mov esi, 0x10
cmp eax, esi
mov eax, dword [ebp - 0x24]
jae 0x4775c5
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0047a86e
add esp, 8
test eax, eax
jne 0x477636
mov edx, dword [ebp - 0x10]
cmp edx, esi
mov eax, dword [ebp - 0x24]
mov ecx, eax
jae 0x4775e4
lea ecx, [ebp - 0x24]
mov eax, ecx
push ecx
push eax
call dword [sym.imp.kernel32.dll_MoveFileA]
cmp dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
jb 0x477604
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004796fd
add esp, 4
mov edx, dword [edi + 4]
mov al, byte [edx]
add edi, 4
cmp al, 0xa
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
mov esi, edi
jne 0x477575
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], esi
jb 0x477647
mov eax, dword [ebp - 0x24]
push eax
call fcn.004796fd
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47a86e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47a88e
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004804b6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x47a8b1
test byte [esp + 8], 2
je 0x47a8b1
call fcn.004804a4
mov dword [eax], 0xd
call fcn.004804ad
mov dword [eax], 5
jmp 0x47a88a
xor eax, eax
ret

Function at 0x47e02d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5a7f80
call fcn.0047e1a8
push 8
call fcn.0047efef
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5f4328], esi
jne 0x47e061
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x5f4324], esi
mov al, byte [ebp + 0x10]
mov byte [0x5f4320], al
cmp dword [ebp + 0xc], edi
jne 0x47e0ab
cmp dword [0x630ac0], edi
je 0x47e09b
mov eax, dword [0x630abc]
sub eax, 4
mov dword [0x630abc], eax
cmp eax, dword [0x630ac0]
jb 0x47e09b
mov eax, dword [eax]
cmp eax, edi
je 0x47e07c
call eax
jmp 0x47e07c
push 0x5d2650
mov eax, 0x5d2648
call fcn.0047dfab
pop ecx
push 0x5d265c
mov eax, 0x5d2654
call fcn.0047dfab
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x47e0dc
cmp dword [ebp + 0x10], edi
jne 0x47e0ea
mov dword [0x5f4328], esi
push dword [ebp + 8]
call fcn.0047df69
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x47e0e9
push 8
call fcn.0047ef3a
pop ecx
ret
call fcn.0047e1e3
ret
Function at 0x4819f8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5d66b4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x481a29
xor eax, eax
jmp 0x481bb2
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x62f960]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x481a65
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004881e5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x481b40
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x481b7e
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x481ac9
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x481aba
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x481a9a
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x481b09
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x481b12
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x481a8b
jmp 0x481b14
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x481bad
cmp dword [ebp - 0x6c], edi
je 0x481b7e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x481b73
call fcn.004804a4
mov dword [eax], 9
call fcn.004804ad
mov dword [eax], esi
jmp 0x481ba8
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x481b68
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x481b14
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x481b14
push dword [ebp - 0x6c]
call fcn.004804b6
pop ecx
jmp 0x481ba8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x481b96
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x481b96
xor eax, eax
jmp 0x481bb0
call fcn.004804a4
mov dword [eax], 0x1c
call fcn.004804ad
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x481bb0
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004845e7
add ebp, 0x3a0
leave
ret
Function at 0x482d47
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 0x482f1b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x62f960]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x482f1b
test cl, 0x48
je 0x482db2
cmp byte [eax + 5], 0xa
je 0x482db2
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 0x482e04
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x482dec
call fcn.004804a4
mov dword [eax], 9
call fcn.004804ad
mov dword [eax], esi
jmp 0x482dfc
cmp eax, 0x6d
je 0x482f1b
push eax
call fcn.004804b6
pop ecx
or eax, 0xffffffff
jmp 0x482f1d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x482f16
test eax, eax
je 0x482e2b
cmp byte [ebx], 0xa
jne 0x482e2b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x482e34
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 0x482f10
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x482f00
cmp al, 0xd
je 0x482e66
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x482ef2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x482e80
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x482e7b
add dword [ebp + 0x10], 2
jmp 0x482ed4
mov dword [ebp + 0x10], eax
jmp 0x482eee
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 0x482ea8
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x482eee
cmp dword [ebp - 0xc], 0
je 0x482eee
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x482ec9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x482ed4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x482ef1
cmp ebx, dword [ebp + 0xc]
jne 0x482ed9
cmp byte [ebp - 1], 0xa
jne 0x482ed9
mov byte [ebx], 0xa
jmp 0x482ef1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048350b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x482ef2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x482e4a
jmp 0x482f10
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x482f10
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 0x482f1d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4839ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5d66b4]
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 + 0x5d6e98]
je 0x483a24
inc eax
cmp eax, 0x13
jb 0x483a15
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5d6e98]
jne 0x483b4a
mov eax, dword [0x5f42d0]
cmp eax, 1
je 0x483b22
cmp eax, edx
jne 0x483a54
cmp dword [0x5d6504], 1
je 0x483b22
cmp ecx, 0xfc
je 0x483b4a
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 0x483a8a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0047e370
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0047e470
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x483abe
mov eax, edi
push eax
call fcn.0047e470
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5a8800
push edi
call fcn.0047a2a0
add esp, 0x10
push edi
call fcn.0047e470
push dword [esi + 0x5d6e9c]
mov ebx, eax
call fcn.0047e470
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0047b4d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047e370
push edi
push ebx
call fcn.0047e380
push 0x5a87e0
push ebx
call fcn.0047e380
push dword [esi + 0x5d6e9c]
push ebx
call fcn.0047e380
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00488aaa
add esp, 0x2c
jmp 0x483b4a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5d6e9c]
push dword [esi]
call fcn.0047e470
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.004845e7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x484d35
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 0x484d63
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 0x484d6a
cmp ebx, dword [eax + 4]
jae 0x484d6a
xor eax, eax
jmp 0x484f5a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x484d7b
xor eax, eax
inc eax
jmp 0x484f59
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x484d91
cmp ecx, edx
jae 0x484ed6
cmp dword [eax + 4], 0
je 0x484d9a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x484d82
cmp dword [ebp + 8], 0
je 0x484dbc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x484ed6
cmp eax, esi
jae 0x484ed6
mov eax, dword [0x5f45c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x484de1
cmp dword [esi*4 + 0x5f45d0], edi
je 0x484eda
inc esi
cmp esi, eax
jl 0x484dcf
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x484f56
cmp dword [ebp - 8], 0x1000000
jne 0x484f56
test byte [ebp - 0xc], 0xcc
je 0x484e5f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x484f56
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x484f56
cmp word [eax + 0x18], 0x10b
jne 0x484f56
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x484f56
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x484e5f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x484e5f
test byte [ecx + 0x27], 0x80
jne 0x484ed6
push 1
push 0x5f4610
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x484d73
mov ecx, dword [0x5f45c8]
test ecx, ecx
mov edx, ecx
jle 0x484e93
lea eax, [ecx*4 + 0x5f45cc]
cmp dword [eax], edi
je 0x484e93
dec edx
sub eax, 4
test edx, edx
jg 0x484e87
test edx, edx
jne 0x484ec4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x484ea0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x484eb8
lea eax, [edx*4 + 0x5f45d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x484ea6
cmp ecx, 0x10
jge 0x484ec4
inc ecx
mov dword [0x5f45c8], ecx
push 0
push 0x5f4610
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x484d73
xor eax, eax
jmp 0x484f59
test esi, esi
jle 0x484d73
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x5f4610
call ebx
test eax, eax
jne 0x484d73
cmp dword [esi*4 + 0x5f45d0], edi
je 0x484f30
mov eax, dword [0x5f45c8]
lea esi, [eax - 1]
test esi, esi
jl 0x484f1e
cmp dword [esi*4 + 0x5f45d0], edi
je 0x484f1a
dec esi
jns 0x484f0e
test esi, esi
jge 0x484f2e
cmp eax, 0x10
jge 0x484f29
inc eax
mov dword [0x5f45c8], eax
lea esi, [eax - 1]
jmp 0x484f30
je 0x484f48
xor ecx, ecx
test esi, esi
jl 0x484f48
lea eax, [ecx*4 + 0x5f45d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x484f36
push 0
push 0x5f4610
call ebx
jmp 0x484d73
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret