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

Disassembly:
push 0xffffffffffffffff
push 0x4d23e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov edx, dword [esp + 0x30]
push esi
mov eax, edx
push edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6a48
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00403aa0
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004abd00
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov edi, eax
call fcn.004abc40
mov esi, eax
cmp dword [esp + 0x20], 0x10
jb 0x4a6a98
mov edx, dword [esp + 0xc]
push edx
call fcn.004be8db
add esp, 4
cmp esi, edi
je 0x4a6afe
mov ecx, dword [esp + 0x3c]
and ecx, 0xfffffff
mov eax, dword [esi + 0x28]
and eax, 0xfffffff
cmp eax, ecx
je 0x4a6b11
mov al, byte [esi + 0x31]
test al, al
jne 0x4a6afa
mov eax, dword [esi + 8]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x4a6add
mov esi, eax
mov eax, dword [esi]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x4a6afa
mov edi, edi
mov esi, eax
mov eax, dword [esi]
mov dl, byte [eax + 0x31]
test dl, dl
je 0x4a6ad0
jmp 0x4a6afa
mov eax, dword [esi + 4]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x4a6af8
cmp esi, dword [eax + 8]
jne 0x4a6af8
mov esi, eax
mov eax, dword [eax + 4]
mov dl, byte [eax + 0x31]
test dl, dl
je 0x4a6ae7
mov esi, eax
cmp esi, edi
jne 0x4a6aa6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4a7d80
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4d24eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov esi, dword [esp + 0xc8]
push edi
push 1
push 0x1b6
push 0x21
mov ebx, ecx
push esi
lea ecx, [esp + 0x34]
call fcn.004a6d10
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0xc4], 0
jne 0x4a7dde
push esi
push 0x4f7f18
call fcn.004a8140
add esp, 8
push 2
push 0
lea ecx, [esp + 0x2c]
call fcn.004a6230
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x2c], 6
jne 0x4a7e0f
mov ecx, dword [esp + eax + 0x4c]
mov edx, dword [ecx]
push 1
push 1
push 0
lea eax, [esp + 0x18]
push eax
call dword [edx + 0x20]
jmp 0x4a7e36
mov ecx, dword [0x4fc8ec]
mov edx, dword [0x53d258]
mov eax, dword [0x53d25c]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x523c4c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x2c]
lea edi, [edx + eax]
call fcn.004a6230
push edi
call fcn.004bd9e8
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.004a6470
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
jle 0x4a7e7c
nop
xor dword [esi + eax*4], 0x425529ac
inc eax
cmp eax, ecx
jl 0x4a7e70
push edi
push esi
mov ecx, ebx
call fcn.004a7870
push esi
call fcn.004beb06
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00436f50
test eax, eax
pop edi
pop esi
pop ebx
jne 0x4a7ec3
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x20]
mov edx, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x18]
or eax, 2
test edx, edx
jne 0x4a7ebb
or eax, 4
push 0
push eax
call fcn.004bdb8c
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004a6e50
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.004bdaa2
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
add esp, 0xbc
ret 4

Function at 0x4a80d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
push str.Error__line__d__:__s
call fcn.004a8080
add esp, 0xc
push 0
call fcn.004bf550
int3

Function at 0x4a80f0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1000
call fcn.004c0220
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.004c1d84
mov ecx, dword [esp + 0x1010]
lea eax, [esp + 0xc]
push eax
push ecx
push str.Error__line__d__:__s
call fcn.004a8080
add esp, 0x18
push 0
call fcn.004bf550
int3

Function at 0x4a8140
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1000
call fcn.004c0220
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.004c1d84
lea eax, [esp + 0xc]
push eax
push str.Error_:__s
call fcn.004a8080
add esp, 0x14
push 0
call fcn.004bf550
int3
Function at 0x4aaaa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4aaaab
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x4aaba3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4f86c0]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x4aaac6
test edi, edi
je 0x4aabc2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x4f86c0]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x4aaba7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x4affe0
Capabilities:
Terminate process

Disassembly:
push esi
push 0x28
call fcn.004c0d29
mov esi, eax
add esp, 4
test esi, esi
jne 0x4afffb
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4aff70
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
add eax, 2
push eax
call fcn.004c0d29
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x4b001f
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4aff70
mov eax, dword [esp + 8]
push eax
push esi
mov dword [esi + 0x14], 1
call fcn.004aff90
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x4bf48d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4fcb88
call fcn.004c46d4
push 8
call fcn.004c3b9d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x53d464], esi
jne 0x4bf4c1
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x53d460], esi
mov al, byte [ebp + 0x10]
mov byte [0x53d45c], al
cmp dword [ebp + 0xc], edi
jne 0x4bf50b
cmp dword [0x53f770], edi
je 0x4bf4fb
mov eax, dword [0x53f76c]
sub eax, 4
mov dword [0x53f76c], eax
cmp eax, dword [0x53f770]
jb 0x4bf4fb
mov eax, dword [eax]
cmp eax, edi
je 0x4bf4dc
call eax
jmp 0x4bf4dc
push 0x5090f4
mov eax, 0x5090ec
call fcn.004bf40b
pop ecx
push 0x509100
mov eax, 0x5090f8
call fcn.004bf40b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4bf53c
cmp dword [ebp + 0x10], edi
jne 0x4bf54a
mov dword [0x53d464], esi
push dword [ebp + 8]
call fcn.004bf3c9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4bf549
push 8
call fcn.004c3ae8
pop ecx
ret
call fcn.004c470f
ret
Function at 0x4bf88a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4fcdc0
call fcn.004c46d4
mov edi, 0x94
mov eax, edi
call fcn.004c0220
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 [0x53d424], ecx
mov eax, dword [esi + 4]
mov dword [0x53d430], eax
mov edx, dword [esi + 8]
mov dword [0x53d434], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x53d428], esi
cmp ecx, 2
je 0x4bf8ea
or esi, 0x8000
mov dword [0x53d428], esi
shl eax, 8
add eax, edx
mov dword [0x53d42c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4bf925
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bf925
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4bf93d
cmp eax, 0x20b
je 0x4bf92a
mov dword [ebp - 0x1c], esi
jmp 0x4bf951
cmp dword [ecx + 0x84], 0xe
jbe 0x4bf925
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4bf94b
cmp dword [ecx + 0x74], 0xe
jbe 0x4bf925
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004c6728
pop ecx
test eax, eax
jne 0x4bf965
push 0x1c
call fcn.004bf866
pop ecx
call fcn.004c5419
test eax, eax
jne 0x4bf976
push 0x10
call fcn.004bf866
pop ecx
call fcn.004c5b5b
mov dword [ebp - 4], esi
call fcn.004c6510
test eax, eax
jge 0x4bf98f
push 0x1b
call fcn.004bf841
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x53f764], eax
call fcn.004c63ee
mov dword [0x53d46c], eax
call fcn.004c634c
test eax, eax
jge 0x4bf9b5
push 8
call fcn.004bf841
pop ecx
call fcn.004c6119
test eax, eax
jge 0x4bf9c6
push 9
call fcn.004bf841
pop ecx
push 1
call fcn.004bf423
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4bf9dc
push eax
call fcn.004bf841
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004c60bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4bf9fd
movzx eax, word [ebp - 0x40]
jmp 0x4bfa00
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406800
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4bfa1e
push edi
call fcn.004bf550
call fcn.004bf572
jmp 0x4bfa50
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004c470f
ret
Function at 0x4c0be6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4c0c03
call fcn.004c1cff
mov dword [eax], 0x16
xor eax, eax
jmp 0x4c0c6d
push esi
push 0x8c
push 1
call fcn.004c21d5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c0c58
push esi
call fcn.004c521f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4c0c36
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4c0b51
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x4c0c6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004c0d3b
test ebx, ebx
pop ecx
je 0x4c0c6a
push ebx
call fcn.004c1d11
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c0dac
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.004c0220
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4c0e47
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 [0x53d424]
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 0x4c0e47
cmp eax, 1
je 0x4c0e68
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 0x4c0e47
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4c0e14
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4c0e43
xor eax, eax
inc eax
jmp 0x4c0e87
cmp edi, eax
jae 0x4c0e4b
xor eax, eax
jmp 0x4c0e87
cmp eax, esi
jae 0x4c0e52
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 [0x53d424]
jmp 0x4c0e6b
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 0x4c5be3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x53d60c], ebx
push esi
push edi
jne 0x4c5c63
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c5c9e
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4fd84c
push edi
call esi
test eax, eax
mov dword [0x53d60c], eax
je 0x4c5c9e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x53d610], eax
call esi
cmp dword [0x53d424], 2
mov dword [0x53d614], eax
jne 0x4c5c63
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x53d61c], eax
je 0x4c5c63
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x53d618], eax
mov eax, dword [0x53d618]
test eax, eax
je 0x4c5ca8
call eax
test eax, eax
je 0x4c5c8f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x53d61c]
test eax, eax
je 0x4c5c8f
test byte [ebp - 8], 1
jne 0x4c5ca8
cmp dword [0x53d430], 4
jb 0x4c5ca2
or byte [ebp + 0x12], 0x20
jmp 0x4c5cc7
xor eax, eax
jmp 0x4c5cd7
or byte [ebp + 0x12], 4
jmp 0x4c5cc7
mov eax, dword [0x53d610]
test eax, eax
je 0x4c5cc7
call eax
mov ebx, eax
test ebx, ebx
je 0x4c5cc7
mov eax, dword [0x53d614]
test eax, eax
je 0x4c5cc7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x53d60c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5da8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x50db60]
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 + 0x50e2e0]
je 0x4c5ddd
inc eax
cmp eax, 0x13
jb 0x4c5dce
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x50e2e0]
jne 0x4c5f03
mov eax, dword [0x53d474]
cmp eax, 1
je 0x4c5edb
cmp eax, edx
jne 0x4c5e0d
cmp dword [0x50db4c], 1
je 0x4c5edb
cmp ecx, 0xfc
je 0x4c5f03
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 0x4c5e43
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004c23b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004c2290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c5e77
mov eax, edi
push eax
call fcn.004c2290
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4fcbcc
push edi
call fcn.004bf010
add esp, 0x10
push edi
call fcn.004c2290
push dword [esi + 0x50e2e4]
mov ebx, eax
call fcn.004c2290
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004c0220
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004c23b0
push edi
push ebx
call fcn.004c23c0
push 0x4fcbc8
push ebx
call fcn.004c23c0
push dword [esi + 0x50e2e4]
push ebx
call fcn.004c23c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004c5be3
add esp, 0x2c
jmp 0x4c5f03
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x50e2e4]
push dword [esi]
call fcn.004c2290
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.004bff5b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4c6510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004c0d29
test eax, eax
pop ecx
jne 0x4c652c
or eax, 0xffffffff
jmp 0x4c6709
mov dword [0x53e640], eax
mov dword [0x53e628], 0x20
lea ecx, [eax + 0x480]
jmp 0x4c6561
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x53e640]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x4c6543
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x4c6668
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c6668
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x4c65a2
mov edi, eax
cmp dword [0x53e628], edi
jge 0x4c65f8
mov esi, 0x53e644
push ebx
call fcn.004c0d29
test eax, eax
pop ecx
je 0x4c65f2
add dword [0x53e628], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4c65e1
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4c65cb
add esi, 4
cmp dword [0x53e628], edi
jl 0x4c65af
jmp 0x4c65f8
mov edi, dword [0x53e628]
xor ebx, ebx
test edi, edi
jle 0x4c6668
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c665d
mov cl, byte [ebp]
test cl, 1
je 0x4c665d
test cl, 8
jne 0x4c6621
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4c665d
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x53e640]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004caad4
test eax, eax
pop ecx
pop ecx
je 0x4c6688
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x4c65fe
xor ebx, ebx
mov ecx, dword [0x53e640]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4c66ea
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4c668d
push 0xfffffffffffffff6
pop eax
jmp 0x4c6697
or eax, 0xffffffff
jmp 0x4c6706
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c66e4
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4c66e4
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x4c66c2
or byte [esi + 4], 0x40
jmp 0x4c66cb
cmp eax, 3
jne 0x4c66cb
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004caad4
test eax, eax
pop ecx
pop ecx
je 0x4c6688
inc dword [esi + 8]
jmp 0x4c66ee
or byte [esi + 4], 0x40
jmp 0x4c66ee
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4c666a
push dword [0x53e628]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4c6832
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x50db60]
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 0x4c6863
xor eax, eax
jmp 0x4c69ec
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 + 0x53e640]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4c689f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004cc882
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4c697a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4c69b8
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 0x4c6903
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4c68f4
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 0x4c68d4
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 0x4c6943
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4c694c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4c68c5
jmp 0x4c694e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4c69e7
cmp dword [ebp - 0x6c], edi
je 0x4c69b8
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4c69ad
call fcn.004c1cff
mov dword [eax], 9
call fcn.004c1d08
mov dword [eax], esi
jmp 0x4c69e2
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 0x4c69a2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4c694e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4c694e
push dword [ebp - 0x6c]
call fcn.004c1d11
pop ecx
jmp 0x4c69e2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4c69d0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4c69d0
xor eax, eax
jmp 0x4c69ea
call fcn.004c1cff
mov dword [eax], 0x1c
call fcn.004c1d08
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4c69ea
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004bff5b
add ebp, 0x3a0
leave
ret