joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb77d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb77d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb77d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb77d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb77d94
push eax
push esi
call fcn.00b7a20b
add esp, 8
pop esi
ret 0x10

Function at 0xb77da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb77e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb77e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb90320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b79dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb77dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb77e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb77ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb77eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb90320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b79dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb77eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb77e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb78000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb78131
push esi
call fcn.00b7b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b6a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb78131
push 0
push ebp
call fcn.00b6a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b6a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb7808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b6a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb78121
push 0xb90918
push edi
call fcn.00b793f0
push eax
push ebx
push esi
call fcn.00b77f60
push 0xb908f8
push edi
call fcn.00b793f0
push eax
push ebx
push esi
call fcn.00b77f60
push 0xb908d8
push edi
call fcn.00b793f0
push eax
push ebx
push esi
call fcn.00b77f60
push 0xb908c0
push edi
call fcn.00b793f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b77f60
push 0xb908a0
push edi
call fcn.00b793f0
push eax
push ebx
push esi
call fcn.00b77f60
push 0xb90888
push edi
call fcn.00b793f0
push eax
push ebx
push esi
call fcn.00b77f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb791b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b79140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b79140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b79140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b79140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb79bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb79c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb8b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb79c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb79c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401949
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40195d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40197e
cmp esi, eax
jae 0x401957
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401970
cmp esi, eax
jae 0x401957
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4088c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44ade8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cbcc]
push ebx
push esi
mov esi, dword [0x45cbd4]
mov eax, 0x315a5211
imul esi
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0x315a5211
imul ecx
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbdc]
mov ebx, eax
imul edx, edx, 0x3575d9d
mov eax, dword [0x45cbe8]
imul eax, eax, 0x5335ef4
sub ebx, edi
add ebx, edx
add ebx, eax
mov eax, 0x680c7cd1
imul esi
sar edx, 0x19
mov esi, edx
add ebx, edx
mov edx, ecx
imul edx, edx, 0x4e899b9
shr esi, 0x1f
add esi, ebx
add esi, edx
mov eax, 0x83740ec5
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x572f4c]
sub esi, eax
mov ecx, 0x572f4c
mov dword [str._r_____r____], esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x45cbdc]
mov ecx, dword [0x45cbd8]
mov eax, 0x315a5211
imul edx
sar edx, 0x18
mov esi, ecx
imul esi, esi, 0x52fe876
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbc8]
sub esi, eax
imul edx, edx, 0x3575d9d
mov eax, dword [0x45cbe8]
imul eax, eax, 0x5335ef4
add esi, edx
mov edx, dword [0x45cbd0]
add esi, eax
mov eax, 0x3b012ec7
imul edx
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x206151bf
imul ecx
sar edx, 0x15
mov dword [esp + 0x18], 0
mov ecx, edx
mov ebx, dword [0x45cbe4]
mov eax, dword [esp + 0x20]
shr ecx, 0x1f
add esi, edx
add ecx, esi
sub ecx, ebx
sub ecx, 0xfcfe96
lea edx, [esp + 0x24]
push edx
mov dword [0x45cbd0], ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00408630
mov ecx, dword [0x45cbcc]
mov edx, dword [0x45cbd0]
mov esi, dword [0x45cbe4]
lea edi, [edx + ecx]
mov eax, 0x315a5211
imul edi, edi, 0x3e51956
imul esi
sar edx, 0x18
mov ebx, edx
add edi, edx
mov eax, 0x993c2c11
imul ecx
add edx, ecx
mov ecx, dword [0x45cbe0]
sar edx, 0x19
imul ecx, ecx, 0x222559d
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebx, 0x1f
add ebx, edi
sub ebx, eax
mov eax, 0x680c7cd1
imul esi
mov esi, dword [esp + 0xc]
add ebx, ecx
mov ecx, dword [0x45cbdc]
imul ecx, ecx, 0xfcfe96
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
add eax, ecx
push esi
mov dword [0x45cbdc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebx
jg 0x408ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b780
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45e540]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b882
lea ecx, [esp + 0xc]
call fcn.0041b660
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41b886
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b85e
jmp 0x41b820
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b780
mov edi, eax
test edi, edi
jne 0x41b8ad
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b820
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b875
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b891
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043016d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b8bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b893
Function at 0x41bda0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41bdb2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42725a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4272ad
call fcn.004482a3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4272ad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4272a3
xor eax, eax
jmp 0x4273c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4272dd
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4272dd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4273c3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42730a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004279ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4273c3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427353
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x427353
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42734d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004279ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4273b3
and dword [ebp + 0xc], 0
jmp 0x4273b3
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4273b3
push 0xc
call fcn.00441ea9
mov esi, eax
test esi, esi
pop ecx
je 0x427395
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x427397
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4273ae
push dword [ebp - 8]
call fcn.0043d8f4
jmp 0x4273b3
call fcn.0043d8cb
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427318
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4306dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4306fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043294c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430720
test byte [esp + 8], 2
je 0x430720
call fcn.0043293a
mov dword [eax], 0xd
call fcn.00432943
mov dword [eax], 5
jmp 0x4306f9
xor eax, eax
ret
Function at 0x4307e7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4506d0
call fcn.004327bc
push 8
call fcn.004349d6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x572a3c], esi
jne 0x43081b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x572a38], esi
mov al, byte [ebp + 0x10]
mov byte [0x572a34], al
cmp dword [ebp + 0xc], edi
jne 0x430865
cmp dword [0x57432c], edi
je 0x430855
mov eax, dword [0x574328]
sub eax, 4
mov dword [0x574328], eax
cmp eax, dword [0x57432c]
jb 0x430855
mov eax, dword [eax]
cmp eax, edi
je 0x430836
call eax
jmp 0x430836
push 0x4590cc
mov eax, 0x4590c4
call fcn.00430765
pop ecx
push 0x4590d8
mov eax, 0x4590d0
call fcn.00430765
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430896
cmp dword [ebp + 0x10], edi
jne 0x4308a4
mov dword [0x572a3c], esi
push dword [ebp + 8]
call fcn.00430723
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4308a3
push 8
call fcn.00434921
pop ecx
ret
call fcn.004327f7
ret

Function at 0x430b17
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.004309b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430bb2
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 [0x5729fc]
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 0x430bb2
cmp eax, 1
je 0x430bd3
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 0x430bb2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430b7f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430bae
xor eax, eax
inc eax
jmp 0x430bf2
cmp edi, eax
jae 0x430bb6
xor eax, eax
jmp 0x430bf2
cmp eax, esi
jae 0x430bbd
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 [0x5729fc]
jmp 0x430bd6
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 0x431562
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x450788
call fcn.004327bc
mov edi, 0x94
mov eax, edi
call fcn.004309b0
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 [0x5729fc], ecx
mov eax, dword [esi + 4]
mov dword [0x572a08], eax
mov edx, dword [esi + 8]
mov dword [0x572a0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x572a00], esi
cmp ecx, 2
je 0x4315c2
or esi, 0x8000
mov dword [0x572a00], esi
shl eax, 8
add eax, edx
mov dword [0x572a04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4315fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4315fd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431615
cmp eax, 0x20b
je 0x431602
mov dword [ebp - 0x1c], esi
jmp 0x431629
cmp dword [ecx + 0x84], 0xe
jbe 0x4315fd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431623
cmp dword [ecx + 0x74], 0xe
jbe 0x4315fd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434b12
pop ecx
test eax, eax
jne 0x43163d
push 0x1c
call fcn.0043153e
pop ecx
call fcn.00433989
test eax, eax
jne 0x43164e
push 0x10
call fcn.0043153e
pop ecx
call fcn.00434a07
mov dword [ebp - 4], esi
call fcn.004376b0
test eax, eax
jge 0x431667
push 0x1b
call fcn.00431519
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x574320], eax
call fcn.0043758e
mov dword [0x572a48], eax
call fcn.004374ec
test eax, eax
jge 0x43168d
push 8
call fcn.00431519
pop ecx
call fcn.004372b9
test eax, eax
jge 0x43169e
push 9
call fcn.00431519
pop ecx
push 1
call fcn.0043077d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4316b4
push eax
call fcn.00431519
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043725c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4316d5
movzx eax, word [ebp - 0x40]
jmp 0x4316d8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043cf94
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4316f6
push edi
call fcn.004308aa
call fcn.004308cc
jmp 0x431728
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004327f7
ret
Function at 0x4356a1
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 0x4356cf
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 0x4356d6
cmp ebx, dword [eax + 4]
jae 0x4356d6
xor eax, eax
jmp 0x4358c6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4356e7
xor eax, eax
inc eax
jmp 0x4358c5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4356fd
cmp ecx, edx
jae 0x435842
cmp dword [eax + 4], 0
je 0x435706
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4356ee
cmp dword [ebp + 8], 0
je 0x435728
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435842
cmp eax, esi
jae 0x435842
mov eax, dword [0x572bd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43574d
cmp dword [esi*4 + 0x572be0], edi
je 0x435846
inc esi
cmp esi, eax
jl 0x43573b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4358c2
cmp dword [ebp - 8], 0x1000000
jne 0x4358c2
test byte [ebp - 0xc], 0xcc
je 0x4357cb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4358c2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4358c2
cmp word [eax + 0x18], 0x10b
jne 0x4358c2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4358c2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4357cb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4357cb
test byte [ecx + 0x27], 0x80
jne 0x435842
push 1
push 0x572c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4356df
mov ecx, dword [0x572bd8]
test ecx, ecx
mov edx, ecx
jle 0x4357ff
lea eax, [ecx*4 + 0x572bdc]
cmp dword [eax], edi
je 0x4357ff
dec edx
sub eax, 4
test edx, edx
jg 0x4357f3
test edx, edx
jne 0x435830
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43580c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435824
lea eax, [edx*4 + 0x572be0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435812
cmp ecx, 0x10
jge 0x435830
inc ecx
mov dword [0x572bd8], ecx
push 0
push 0x572c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4356df
xor eax, eax
jmp 0x4358c5
test esi, esi
jle 0x4356df
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x572c20
call ebx
test eax, eax
jne 0x4356df
cmp dword [esi*4 + 0x572be0], edi
je 0x43589c
mov eax, dword [0x572bd8]
lea esi, [eax - 1]
test esi, esi
jl 0x43588a
cmp dword [esi*4 + 0x572be0], edi
je 0x435886
dec esi
jns 0x43587a
test esi, esi
jge 0x43589a
cmp eax, 0x10
jge 0x435895
inc eax
mov dword [0x572bd8], eax
lea esi, [eax - 1]
jmp 0x43589c
je 0x4358b4
xor ecx, ecx
test esi, esi
jl 0x4358b4
lea eax, [ecx*4 + 0x572be0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4358a2
push 0
push 0x572c20
call ebx
jmp 0x4356df
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret