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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 1
push 0
mov edi, ecx
mov dword [ebp - 0x14], edx
push 0
push edi
mov dword [ebp - 0xc], edi
mov ebx, 0x43a7f0
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, 0x1fff
cmp esi, eax
jb 0x424632
mov dword [ebp + 8], eax
mov esi, eax
push 0x448e04
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x448e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x424790
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
test edi, edi
je 0x424790
cmp dword [0x4325a0], 0xfde9
mov ecx, edi
mov dword [ebp - 4], edi
jne 0x4246b7
cmp dword [ebp - 8], 0
jne 0x4246b7
cmp dword [ebp + 8], 3
jbe 0x4246b7
push 3
push 0x4034f8
push ebx
call fcn.00417fb7
add esp, 0xc
mov ecx, edi
test eax, eax
jne 0x4246b7
add edi, 0xfffffffd
mov dword [ebp - 8], 3
mov ebx, 0x43a7f3
mov dword [esi], edi
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x424703
cmp ecx, 3
jl 0x4246d9
mov al, byte [ebx]
cmp al, 0xa
jne 0x4246cf
cmp byte [ebx + 1], 0xd
je 0x42472a
cmp al, 0xd
jne 0x4246d9
cmp byte [ebx + 1], 0xa
je 0x42472a
movzx eax, byte [ebx]
cmp byte [eax + 0x448af0], 0
je 0x4246f2
cmp ecx, 1
je 0x42474a
push 2
pop eax
push 0xfffffffffffffffe
pop edx
jmp 0x4246f8
xor eax, eax
inc eax
or edx, 0xffffffff
add ecx, edx
add ebx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x4246be
push dword [ebp + 8]
mov ecx, dword [0x4325a0]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.0040e248
neg eax
sbb eax, eax
neg eax
push eax
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [esi], eax
jmp 0x424792
xor eax, eax
mov edi, ebx
sub edi, dword [ebp - 0x10]
push eax
push eax
mov byte [ebx + 2], al
add edi, 2
mov eax, dword [ebp - 8]
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
jmp 0x424703
push 0x448e04
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x448e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x42478a
cmp dword [ebp - 4], 0
je 0x42478a
mov esi, dword [ebp + 0xc]
inc edi
jmp 0x424703
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425303
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x42531f
call fcn.0040ab7f
movzx eax, word [eax]
jmp 0x425321
mov eax, ebx
test ax, ax
je 0x42532c
cmp ax, 0xa
jne 0x425356
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.0040a62f
test eax, eax
je 0x425356
mov ecx, 0x402500
test esi, esi
jne 0x425349
mov ecx, 0x403674
mov edx, 0x4020b8
pop edi
pop esi
pop ebx
jmp fcn.0040a976
mov ecx, dword [edi + 0x3c]
mov edx, 0x40242c
push 5
call fcn.0040bc30
cmp word [eax], bx
je 0x42537c
mov ecx, 0x402500
test esi, esi
jne 0x425378
mov ecx, 0x403674
mov edx, eax
jmp 0x42534e
mov edi, 0x402500
mov eax, 0x403674
mov ecx, edi
test esi, esi
jne 0x425390
mov ecx, eax
mov edi, eax
call fcn.0040ec2e
push eax
push edi
push 0x403b6c
call fcn.00409950
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4257a8
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x210], esi
push edi
test edx, edx
jne 0x4258af
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x214], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x42589c
cmp word [ebp - 0x20c], 0x2e
jne 0x425863
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004262b3
mov ebx, eax
test ebx, ebx
je 0x425885
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42582e
sub ecx, edx
sar ecx, 1
je 0x425856
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x403b6c
call fcn.00409950
add esp, 0xc
mov esi, eax
mov ecx, ebx
call fcn.0040dc60
mov ebx, dword [ebp - 0x214]
cmp dword [0x43259c], edi
jne 0x425894
inc ebx
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x425937
mov esi, dword [ebp - 0x210]
jmp 0x4257da
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004078e4
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x425939
cmp esi, 0x103
jne 0x425937
mov esi, edi
jmp 0x425937
mov ecx, edx
call fcn.0040ab7f
mov ecx, eax
call fcn.0040acb0
mov ebx, eax
test ebx, ebx
je 0x425894
push 0x20
pop edx
mov ecx, ebx
call fcn.004101f5
test eax, eax
je 0x4258d6
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, esi
call fcn.004262b3
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x425913
mov ecx, edx
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4258f2
sub ecx, esi
sar ecx, 1
je 0x425913
push edx
push ebx
push 0x403b6c
call fcn.00409950
mov esi, eax
jmp 0x425922
xor esi, esi
push ebx
inc esi
push esi
push 0x400023a3
call fcn.004078e4
mov ecx, dword [ebp - 0x210]
add esp, 0xc
call fcn.0040dc60
mov ecx, ebx
call fcn.0040dc60
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
Function at 0x428b6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
push ecx
xor edx, edx
mov ecx, edi
call fcn.0041654b
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x428c36
mov ebx, dword [ebp + 8]
mov eax, ebx
push 2
push 0
neg eax
push eax
push ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x428c2c
cmp dword [ebp - 4], ebx
jne 0x428c2c
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00417fb7
add esp, 0xc
test eax, eax
jne 0x428c2c
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
xor edx, edx
push ecx
inc edx
mov ecx, edi
call fcn.0041654b
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x428c36
push 2
push 0
push 0
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
xor eax, eax
jmp 0x428c49
mov ecx, dword [esi]
call fcn.0040a16c
or dword [esi], 0xffffffff
push edi
push 1
push 0x4000271f
call fcn.004078e4
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42c535
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x220]
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push 0
inc ebx
mov dword [ebp - 0x10], edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call fcn.00417fbd
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c5ce
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c5a0
lea eax, [ebp - 0x220]
push dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x42c5cc
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c5bc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
test eax, eax
je 0x42c5cc
cmp eax, 4
jne 0x42c5ce
xor ebx, ebx
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test eax, eax
je 0x42c5e1
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
Function at 0x42c5f2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x439], dl
push eax
xor edi, edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x220]
inc ebx
push edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call fcn.00417fbd
add esp, 0xc
mov dword [ebp - 0x230], edi
mov eax, 0x104
mov byte [ebp - 0x22c], bl
mov dword [ebp - 0x228], eax
push eax
lea eax, [ebp - 0x438]
push edi
push eax
call fcn.00417fbd
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c7a2
xor eax, eax
lea ecx, [ebp - 0x438]
cmp byte [ebp - 0x22c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c7a2
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x42c6bf
lea eax, [ebp - 0x438]
push dword [ebp - 0x228]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x42c7a2
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x42c6e5
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
test eax, eax
je 0x42c7a0
cmp eax, 4
je 0x42c7a0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c70a
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x230]
test ecx, ecx
jne 0x42c71a
lea ecx, [ebp - 0x438]
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x440]
push eax
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x42c7a2
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c741
lea eax, [ebp - 0x220]
push 0x40413c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c7a2
cmp byte [ebp + 8], 0
je 0x42c778
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c766
lea eax, [ebp - 0x220]
push 0x404148
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c7a2
cmp byte [ebp - 0x439], 0
je 0x42c7a0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c78e
lea eax, [ebp - 0x220]
push 0x404154
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c7a2
mov ebx, edi
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x230], edi
test eax, eax
je 0x42c7ba
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x42c7cc
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1a02018
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1a02022
pushal
call 0x1a02028
pop ebp
sub ebp, 0x10
sub ebp, 0x1602018
jmp 0x1a0203e
mov eax, 0x1602018
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0x6baa4c67
xor byte [eax], dl
inc eax
dec ecx
jne 0x1a02055
jmp 0x1a02068
in al, dx
stosb byte es:[edi], al
in al, dx
out dx, al
pop ebx
out 0xa6, al
lahf
stosb byte es:[di], al
fbld tbyte [edx + 0x67]
fisttp qword [bx + 0x67]
nop
test dword [edi + ebp*4 - 0x14], esp
out 0x6b, al
mov byte fs:[0x3737], al
invalid
Function at 0x4122a0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.004121e0
mov esi, eax
test esi, esi
je 0x412390
push ebx
push ebp
push edi
mov edi, dword [0x4552d4]
push esi
call edi
push eax
call fcn.00411db0
mov ebp, dword [0x4552d8]
push esi
mov dword [esp + 0x18], eax
call ebp
push esi
call edi
test eax, eax
jne 0x4122e4
mov dword [esp + 0x10], eax
jmp 0x4122f9
cmp dword [eax], 0x28
jne 0x4122ee
mov ebx, dword [eax + 4]
jmp 0x4122f2
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x412304
xor ebx, ebx
jmp 0x412315
cmp dword [eax], 0x28
jne 0x41230e
mov ebx, dword [eax + 8]
jmp 0x412312
movzx ebx, word [eax + 6]
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ebp, dword [0x4550d4]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
push 0
mov dword [eax], ebx
mov edx, dword [edi + 4]
push ecx
push edx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call dword [0x4550d8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ebx
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00412140
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 1
push edx
push eax
call ebp
push esi
call dword [0x4552d0]
mov eax, dword [esp + 0x14]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x412390
push eax
call dword [0x4550d0]
pop esi
add esp, 0xc
ret
Function at 0x413be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4519d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402730
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004024d0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x413c72
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x418d20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x452405
push eax
mov dword fs:[0], esp
lea eax, [esp + 0x10]
push eax
add ecx, 0x30
mov dword [esp + 0xc], 0
call fcn.004216a0
lea ecx, [esp + 0x10]
mov dword [esp + 8], 0xffffffff
call fcn.004214a0
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 0xc

Function at 0x419020
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x452457
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x18]
mov dword [esp + 0x34], 0
call fcn.004216a0
push str..TempFile
lea ecx, [esp + 8]
call fcn.004216d0
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 1
call fcn.00418b70
lea ecx, [esp + 4]
mov byte [esp + 0x30], 3
call fcn.004214a0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00421630
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x24]
mov byte [esp + 0x34], 4
call fcn.004216a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.004214a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.004214a0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.004214a0
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x434ffa
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x45bcd0
call fcn.00435c74
mov edi, 0x94
mov eax, edi
call fcn.00434160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x455350]
mov ecx, dword [esi + 0x10]
mov dword [0x4788e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4788f4], eax
mov edx, dword [esi + 8]
mov dword [0x4788f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4788ec], esi
cmp ecx, 2
je 0x43505a
or esi, 0x8000
mov dword [0x4788ec], esi
shl eax, 8
add eax, edx
mov dword [0x4788f0], eax
xor esi, esi
push esi
mov edi, dword [0x455238]
call edi
cmp word [eax], 0x5a4d
jne 0x435095
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435095
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4350ad
cmp eax, 0x20b
je 0x43509a
mov dword [ebp - 0x1c], esi
jmp 0x4350c1
cmp dword [ecx + 0x84], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4350bb
cmp dword [ecx + 0x74], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00438760
pop ecx
test eax, eax
jne 0x4350d5
push 0x1c
call fcn.00434fd6
pop ecx
call fcn.0043794c
test eax, eax
jne 0x4350e6
push 0x10
call fcn.00434fd6
pop ecx
call fcn.0043b83a
mov dword [ebp - 4], esi
call fcn.0043aed4
test eax, eax
jge 0x4350ff
push 0x1b
call fcn.00434fb1
pop ecx
call dword [0x455120]
mov dword [0x47a1b0], eax
call fcn.0043b718
mov dword [0x4788d4], eax
call fcn.0043b676
test eax, eax
jge 0x435125
push 8
call fcn.00434fb1
pop ecx
call fcn.0043b443
test eax, eax
jge 0x435136
push 9
call fcn.00434fb1
pop ecx
push 1
call fcn.00435adb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43514c
push eax
call fcn.00434fb1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x45511c]
call fcn.0043b3e6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43516d
movzx eax, word [ebp - 0x40]
jmp 0x435170
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00440f2a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43518e
push edi
call fcn.00435c08
call fcn.00435c2a
jmp 0x4351c0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435caf
ret
Function at 0x43a6c1
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 0x43a6ef
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 0x43a6f6
cmp ebx, dword [eax + 4]
jae 0x43a6f6
xor eax, eax
jmp 0x43a8e6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43a707
xor eax, eax
inc eax
jmp 0x43a8e5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43a71d
cmp ecx, edx
jae 0x43a862
cmp dword [eax + 4], 0
je 0x43a726
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43a70e
cmp dword [ebp + 8], 0
je 0x43a748
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43a862
cmp eax, esi
jae 0x43a862
mov eax, dword [0x478ab0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43a76d
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a866
inc esi
cmp esi, eax
jl 0x43a75b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x455118]
test eax, eax
je 0x43a8e2
cmp dword [ebp - 8], 0x1000000
jne 0x43a8e2
test byte [ebp - 0xc], 0xcc
je 0x43a7eb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43a8e2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43a8e2
cmp word [eax + 0x18], 0x10b
jne 0x43a8e2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43a8e2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43a7eb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43a7eb
test byte [ecx + 0x27], 0x80
jne 0x43a862
push 1
push 0x478af8
call dword [0x455364]
test eax, eax
jne 0x43a6ff
mov ecx, dword [0x478ab0]
test ecx, ecx
mov edx, ecx
jle 0x43a81f
lea eax, [ecx*4 + 0x478ab4]
cmp dword [eax], edi
je 0x43a81f
dec edx
sub eax, 4
test edx, edx
jg 0x43a813
test edx, edx
jne 0x43a850
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43a82c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43a844
lea eax, [edx*4 + 0x478ab8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43a832
cmp ecx, 0x10
jge 0x43a850
inc ecx
mov dword [0x478ab0], ecx
push 0
push 0x478af8
call dword [0x455364]
jmp 0x43a6ff
xor eax, eax
jmp 0x43a8e5
test esi, esi
jle 0x43a6ff
mov ebx, dword [0x455364]
push 1
push 0x478af8
call ebx
test eax, eax
jne 0x43a6ff
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a8bc
mov eax, dword [0x478ab0]
lea esi, [eax - 1]
test esi, esi
jl 0x43a8aa
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a8a6
dec esi
jns 0x43a89a
test esi, esi
jge 0x43a8ba
cmp eax, 0x10
jge 0x43a8b5
inc eax
mov dword [0x478ab0], eax
lea esi, [eax - 1]
jmp 0x43a8bc
je 0x43a8d4
xor ecx, ecx
test esi, esi
jl 0x43a8d4
lea eax, [ecx*4 + 0x478ab8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43a8c2
push 0
push 0x478af8
call ebx
jmp 0x43a6ff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret