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

Disassembly:
push 0xffffffffffffffff
push 0x5dec38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
lea esi, [edi + 0xc]
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00414e70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], 0x5e4190
mov dword [esi + 0x30], 0x5e2f88
mov dword [edi], 0x5e2f80
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x56eab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df1b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x18]
mov dword [esi], 0x60c99c
mov dword [esi + 4], 0x60c994
mov dword [esi + 8], 0x60c98c
mov dword [esi + 0xc], 0x60c984
mov dword [esi + 0x10], 0x60b03c
mov dword [esi + 0x14], 0x5e49b4
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x20], ecx
mov dl, byte [eax + 0x20]
mov byte [esi + 0x24], dl
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x2c], edx
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x10], 0
mov dword [esi + 0x34], edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 1
mov dword [esi + 0x38], eax
call fcn.00557d10
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x56eb80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df1b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x18]
mov dword [esi], 0x60c99c
mov dword [esi + 4], 0x60c994
mov dword [esi + 8], 0x60c98c
mov dword [esi + 0xc], 0x60c984
mov dword [esi + 0x10], 0x60b03c
mov dword [esi + 0x14], 0x5e49b4
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x20], ecx
mov dl, byte [eax + 0x24]
mov byte [esi + 0x24], dl
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x2c], edx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x10], 0
mov dword [esi + 0x34], edx
mov ecx, dword [eax + 0x38]
add eax, 0x3c
mov dword [esi + 0x38], ecx
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 1
call fcn.00557d10
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x56fae0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x18]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x18]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x18]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x18]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x571780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0x1d
mov esi, ecx
push str.FileStore:_error_reading_file
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.00403040
lea eax, [esp + 4]
push eax
push 5
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a6a0
cmp dword [esp + 0x1c], 0x10
mov dword [esi], 0x60b050
jb 0x5717f0
mov ecx, dword [esp + 8]
push ecx
call fcn.005abee6
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x60ce48
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x5718a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0x1c
mov esi, ecx
push str.FileSink:_error_writing_file
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.00403040
lea eax, [esp + 4]
push eax
push 5
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a6a0
cmp dword [esp + 0x1c], 0x10
mov dword [esi], 0x60b050
jb 0x571910
mov ecx, dword [esp + 8]
push ecx
call fcn.005abee6
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x60ce48
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x572760
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df3a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.00563480
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x5e49d8
mov dword [esp + 8], 0x5e603c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push 1
mov dword [esp + 0x2c], eax
push 0x6462a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x572b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x572b60
shr edx, 2
test edx, edx
jbe 0x572b79
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x572b53
pop esi
ret
test edx, edx
jbe 0x572b79
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x572b70
pop esi
ret
Function at 0x572ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df4a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x7c]
push edi
push esi
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x18], 0
call fcn.0055e920
mov ecx, dword [esp + 0x84]
push esi
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x84], 1
call fcn.00572d80
add esp, 0x1c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 4
call fcn.00556400
mov edi, dword [esp + 0x84]
push edi
lea edx, [esp + 0x3c]
push ebx
push edx
mov byte [esp + 0x74], 3
mov dword [esp + 0x30], 0x5e2f88
call fcn.0055e920
mov ecx, dword [esp + 0x88]
push edi
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x84], 5
call fcn.00572d80
add esp, 0x1c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 8
call fcn.00556400
mov edx, dword [esp + 0x88]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push esi
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x5c]
push ecx
push esi
mov byte [esp + 0x80], 7
mov dword [esp + 0x50], 0x5e2f88
call fcn.00572db0
add esp, 0x18
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
mov byte [esp + 0x6c], 9
push eax
lea ecx, [esp + 0x1c]
call fcn.00556400
mov dword [esp + 0x10], 0x5e2f88
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xa
call fcn.00556400
mov ecx, dword [esp + 0x60]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x57961a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x6137a8
call fcn.0057ea4c
mov edi, 0x94
mov eax, edi
call fcn.0057a710
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 [0x694fe0], ecx
mov eax, dword [esi + 4]
mov dword [0x694fec], eax
mov edx, dword [esi + 8]
mov dword [0x694ff0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x694fe4], esi
cmp ecx, 2
je 0x57967a
or esi, 0x8000
mov dword [0x694fe4], esi
shl eax, 8
add eax, edx
mov dword [0x694fe8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5796b5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5796b5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5796cd
cmp eax, 0x20b
je 0x5796ba
mov dword [ebp - 0x1c], esi
jmp 0x5796e1
cmp dword [ecx + 0x84], 0xe
jbe 0x5796b5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5796db
cmp dword [ecx + 0x74], 0xe
jbe 0x5796b5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0058014a
pop ecx
test eax, eax
jne 0x5796f5
push 0x1c
call fcn.005795f6
pop ecx
call fcn.00580041
test eax, eax
jne 0x579706
push 0x10
call fcn.005795f6
pop ecx
call fcn.0057fd99
mov dword [ebp - 4], esi
call fcn.0057fb9b
test eax, eax
jge 0x57971f
push 0x1b
call fcn.005795d1
pop ecx
call fcn.0057fafc
mov dword [0x696e04], eax
call fcn.0057f992
mov dword [0x694fa0], eax
call fcn.0057f8fc
test eax, eax
jge 0x579744
push 8
call fcn.005795d1
pop ecx
call fcn.0057f6c9
test eax, eax
jge 0x579755
push 9
call fcn.005795d1
pop ecx
push 1
call fcn.0057db56
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x57976b
push eax
call fcn.005795d1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x652bf8]
call fcn.0057f683
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x57978c
movzx eax, word [ebp - 0x40]
jmp 0x57978f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.005a8473
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5797ad
push edi
call fcn.0057dc83
call fcn.0057dca5
jmp 0x5797df
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0057ea87
ret
Function at 0x57c9ce
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 0x57c9eb
call fcn.0057de1e
mov dword [eax], 0x16
xor eax, eax
jmp 0x57ca55
push esi
push 0x8c
push 1
call fcn.0057c704
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x57ca40
push esi
call fcn.0057fe47
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 0x57ca1e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x57c939
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x57ca54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0057aa32
test ebx, ebx
pop ecx
je 0x57ca52
push ebx
call fcn.0057de30
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x57dbc0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x613a10
call fcn.0057ea4c
push 8
call fcn.00580f7b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x695020], esi
jne 0x57dbf4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x69501c], esi
mov al, byte [ebp + 0x10]
mov byte [0x695018], al
cmp dword [ebp + 0xc], edi
jne 0x57dc3e
cmp dword [0x695de8], edi
je 0x57dc2e
mov eax, dword [0x695de4]
sub eax, 4
mov dword [0x695de4], eax
cmp eax, dword [0x695de8]
jb 0x57dc2e
mov eax, dword [eax]
cmp eax, edi
je 0x57dc0f
call eax
jmp 0x57dc0f
push 0x642188
mov eax, 0x642180
call fcn.0057db3e
pop ecx
push 0x642194
mov eax, 0x64218c
call fcn.0057db3e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x57dc6f
cmp dword [ebp + 0x10], edi
jne 0x57dc7d
mov dword [0x695020], esi
push dword [ebp + 8]
call fcn.0057dafc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x57dc7c
push 8
call fcn.00580ec6
pop ecx
ret
call fcn.0057ea87
ret
Function at 0x57e968
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.0057a710
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57ea03
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 [0x694fe0]
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 0x57ea03
cmp eax, 1
je 0x57ea24
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 0x57ea03
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x57e9d0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x57e9ff
xor eax, eax
inc eax
jmp 0x57ea43
cmp edi, eax
jae 0x57ea07
xor eax, eax
jmp 0x57ea43
cmp eax, esi
jae 0x57ea0e
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 [0x694fe0]
jmp 0x57ea27
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 0x57f36f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x64aa84]
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 + 0x64aee0]
je 0x57f3a4
inc eax
cmp eax, 0x13
jb 0x57f395
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x64aee0]
jne 0x57f4ca
mov eax, dword [0x694fa4]
cmp eax, 1
je 0x57f4a2
cmp eax, edx
jne 0x57f3d4
cmp dword [0x64aa80], 1
je 0x57f4a2
cmp ecx, 0xfc
je 0x57f4ca
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 0x57f40a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00580d30
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0057e820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x57f43e
mov eax, edi
push eax
call fcn.0057e820
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x613ea0
push edi
call fcn.0057c5e0
add esp, 0x10
push edi
call fcn.0057e820
push dword [esi + 0x64aee4]
mov ebx, eax
call fcn.0057e820
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0057a710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00580d30
push edi
push ebx
call fcn.00580d40
push 0x613e80
push ebx
call fcn.00580d40
push dword [esi + 0x64aee4]
push ebx
call fcn.00580d40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0058fa01
add esp, 0x2c
jmp 0x57f4ca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x64aee4]
push dword [esi]
call fcn.0057e820
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.0057981f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x57f992
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x695234]
push ebx
push ebp
mov ebp, dword [0x652bc8]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x57f9db
call ebp
mov esi, eax
cmp esi, ebx
je 0x57f9c1
mov dword [0x695234], 1
jmp 0x57f9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x57f9d6
push 2
pop eax
mov dword [0x695234], eax
jmp 0x57f9db
mov eax, dword [0x695234]
cmp eax, 1
jne 0x57fa38
cmp esi, ebx
jne 0x57f9f3
call ebp
mov esi, eax
cmp esi, ebx
jne 0x57f9f3
xor eax, eax
jmp 0x57fadf
cmp word [esi], bx
mov eax, esi
je 0x57fa08
inc eax
inc eax
cmp word [eax], bx
jne 0x57f9fa
inc eax
inc eax
cmp word [eax], bx
jne 0x57f9fa
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0057aa20
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x57fa2b
xor edi, edi
push esi
call dword [0x652bb0]
mov eax, edi
jmp 0x57fadf
push ebp
push esi
push edi
call fcn.0057e4e0
add esp, 0xc
jmp 0x57fa1d
cmp eax, 2
je 0x57fa41
cmp eax, ebx
jne 0x57f9ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x57f9ec
cmp byte [ebp], bl
mov esi, ebp
je 0x57fa77
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [0x652c34]
cmp eax, ebx
je 0x57f9ec
push esi
add edi, eax
call fcn.0057e820
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x57fa54
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0057aa20
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x57faf0
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x57fad1
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [0x652c34]
test eax, eax
je 0x57fae6
push edi
call fcn.0057e820
push esi
lea edi, [edi + eax + 1]
call fcn.0057a0fd
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x57fa97
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0057aa32
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x57f9ec
Function at 0x57fafc
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x695238]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x57fb3c
call esi
test eax, eax
je 0x57fb21
mov dword [0x695238], 1
jmp 0x57fb41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x57fb38
mov dword [0x695238], 2
jmp 0x57fb4a
xor eax, eax
jmp 0x57fb98
cmp eax, 1
jne 0x57fb45
call esi
jmp 0x57fb98
cmp eax, 2
jne 0x57fb38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [0x652c34]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x57fb90
lea eax, [esi + esi]
push eax
call fcn.0057aa20
mov ebp, eax
test ebp, ebp
pop ecx
je 0x57fb90
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x57fb94
push ebp
call fcn.0057aa32
pop ecx
xor eax, eax
jmp 0x57fb96
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x584eb5
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 0x584ee3
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 0x584eea
cmp ebx, dword [eax + 4]
jae 0x584eea
xor eax, eax
jmp 0x5850da
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x584efb
xor eax, eax
inc eax
jmp 0x5850d9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x584f11
cmp ecx, edx
jae 0x585056
cmp dword [eax + 4], 0
je 0x584f1a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x584f02
cmp dword [ebp + 8], 0
je 0x584f3c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x585056
cmp eax, esi
jae 0x585056
mov eax, dword [0x6953b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x584f61
cmp dword [esi*4 + 0x6953c0], edi
je 0x58505a
inc esi
cmp esi, eax
jl 0x584f4f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5850d6
cmp dword [ebp - 8], 0x1000000
jne 0x5850d6
test byte [ebp - 0xc], 0xcc
je 0x584fdf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5850d6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5850d6
cmp word [eax + 0x18], 0x10b
jne 0x5850d6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5850d6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x584fdf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x584fdf
test byte [ecx + 0x27], 0x80
jne 0x585056
push 1
push 0x695400
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x584ef3
mov ecx, dword [0x6953b8]
test ecx, ecx
mov edx, ecx
jle 0x585013
lea eax, [ecx*4 + 0x6953bc]
cmp dword [eax], edi
je 0x585013
dec edx
sub eax, 4
test edx, edx
jg 0x585007
test edx, edx
jne 0x585044
push 0xf
pop ebx
cmp ecx, ebx
jg 0x585020
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x585038
lea eax, [edx*4 + 0x6953c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x585026
cmp ecx, 0x10
jge 0x585044
inc ecx
mov dword [0x6953b8], ecx
push 0
push 0x695400
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x584ef3
xor eax, eax
jmp 0x5850d9
test esi, esi
jle 0x584ef3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x695400
call ebx
test eax, eax
jne 0x584ef3
cmp dword [esi*4 + 0x6953c0], edi
je 0x5850b0
mov eax, dword [0x6953b8]
lea esi, [eax - 1]
test esi, esi
jl 0x58509e
cmp dword [esi*4 + 0x6953c0], edi
je 0x58509a
dec esi
jns 0x58508e
test esi, esi
jge 0x5850ae
cmp eax, 0x10
jge 0x5850a9
inc eax
mov dword [0x6953b8], eax
lea esi, [eax - 1]
jmp 0x5850b0
je 0x5850c8
xor ecx, ecx
test esi, esi
jl 0x5850c8
lea eax, [ecx*4 + 0x6953c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5850b6
push 0
push 0x695400
call ebx
jmp 0x584ef3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret