joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a64b
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4435b5
call fcn.00420410
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043fa1c
xor ebx, ebx
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ebx
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.004014ed
lea ecx, [esi + 0x28]
call fcn.004014ed
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.004014ed
lea ecx, [esi + 0x30]
call fcn.004014ed
lea ecx, [esi + 0x34]
call fcn.004014ed
lea ecx, [esi + 0x38]
call fcn.004014ed
lea ecx, [esi + 0x3c]
call fcn.004014ed
lea ecx, [esi + 0x40]
call fcn.004014ed
lea ecx, [esi + 0x44]
call fcn.004014ed
lea ecx, [esi + 0x48]
call fcn.004014ed
lea ecx, [esi + 0x4c]
call fcn.004014ed
lea ecx, [esi + 0x50]
call fcn.004014ed
lea ecx, [esi + 0x54]
call fcn.004014ed
lea ecx, [esi + 0x58]
call fcn.004014ed
lea ecx, [esi + 0x5c]
call fcn.004014ed
lea ecx, [esi + 0x60]
call fcn.004014ed
lea ecx, [esi + 0x64]
call fcn.004014ed
push 0x445802
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.00401e25
mov edi, str.Customer_Error_Report
push edi
lea ecx, [esi + 0x30]
call fcn.00401e25
push edi
lea ecx, [esi + 0x34]
call fcn.00401e25
push 0x446ed8
lea ecx, [esi + 0x3c]
call fcn.00401e25
mov byte [esi + 0x70], 1
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x71], 1
mov byte [esi + 0x72], bl
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x73], bl
mov dword [esi + 0x78], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40d027
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45b790]
push esi
mov dword [ebp + 0x8c], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [ebp + 0x9c]
push dword [ebp + 0x98]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d093
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xa0]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
mov eax, esi
pop esi
call fcn.00420db1
add ebp, 0x90
leave
ret

Function at 0x40d0a9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40d109
cmp dword [ebp + 0x10], esi
je 0x40d109
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d109
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x40d10b
xor eax, eax
pop esi
leave
ret
Function at 0x40d2a5
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x45b790]
mov ecx, dword [ebp + 0x1ec]
push ebx
push esi
push edi
mov dword [ebp + 0x1e0], eax
call fcn.00401c06
push 5
xor ebx, ebx
push ebx
push ebx
push eax
push str.open
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40d3bd
lea eax, [ebp - 0x28]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0040d027
add esp, 0xc
test eax, eax
jne 0x40d3b9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
push eax
push edi
call fcn.0040d027
add esp, 0xc
test eax, eax
jne 0x40d3b9
lea eax, [ebp - 0x28]
push str.__1_
push eax
call fcn.00420c6d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d36d
lea eax, [ebp - 0x28]
push 0x447888
push eax
call fcn.00420c6d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d36d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x29]
jmp 0x40d36f
mov byte [edi], bl
push 0x44650c
push edi
call esi
push dword [ebp - 0x2c]
push edi
call esi
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00420d20
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
mov word [ebp - 0x50], 5
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
jmp 0x40d3bf
xor al, al
jmp 0x40d3bf
mov al, 1
mov ecx, dword [ebp + 0x1e0]
pop edi
pop esi
pop ebx
call fcn.00420db1
add ebp, 0x1e4
leave
ret
Function at 0x40df38
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x443a9a
call fcn.00420410
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x18], edi
jne 0x40df61
mov ecx, dword [ebp + 8]
push 0x445802
call fcn.00402027
jmp 0x40e004
push ebx
push esi
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dddc
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x40dff7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x14]
push ebx
call esi
cmp eax, edi
jne 0x40dff0
call fcn.0043939a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], edi
call fcn.0040151f
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x14]
push ebx
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0x18]
call fcn.004029dd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x18]
push eax
call fcn.00401501
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00401139
jmp 0x40e002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00402027
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40e014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040dddc
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e063
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e05c
mov eax, dword [ebp - 8]
jmp 0x40e066
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop esi
leave
ret
Function at 0x40e069
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, 0x443acc
call fcn.00420410
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x40e085
xor eax, eax
jmp 0x40e234
push esi
push edi
call fcn.0043939a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
call fcn.0043939a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 1
jne 0x40e189
lea ecx, [ebp - 0x38]
call fcn.00433a9e
mov ebx, 0x446ed4
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402027
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00402027
push 0xb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.0040d976
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401139
mov eax, dword [ebp - 0x30]
cmp eax, 2
lea ecx, [ebp - 0x38]
jge 0x40e131
mov byte [ebp - 4], 1
call fcn.00433af0
jmp 0x40e1b9
dec eax
push eax
call fcn.0040322a
push eax
lea ecx, [ebp - 0x20]
call fcn.00401703
mov eax, dword [ebp - 0x30]
xor esi, esi
dec eax
test eax, eax
jle 0x40e176
test esi, esi
jle 0x40e158
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f38
push esi
lea ecx, [ebp - 0x38]
call fcn.0040322a
push eax
lea ecx, [ebp - 0x10]
call fcn.004017e4
mov eax, dword [ebp - 0x30]
inc esi
dec eax
cmp esi, eax
jl 0x40e14b
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00433af0
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x40e197
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401e25
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e1cd
lea ecx, [edi - 0x10]
call fcn.00401139
lea ecx, [esi - 0x10]
call fcn.00401139
xor eax, eax
jmp 0x40e232
cmp dword [ebp + 0x10], ebx
jne 0x40e1de
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40e20e
cmp dword [ebp + 0x14], ebx
jne 0x40e1f1
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40e20e
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.00401139
lea ecx, [esi - 0x10]
call fcn.00401139
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esp + 0xc], ebp
jbe 0x4144ce
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, dword [esp + 0x14]
mov bl, byte [eax + ebp]
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov al, bl
mov edx, ecx
and edx, 0xfffd
or edx, 2
add ebp, 1
xor eax, edi
and eax, 0xff
mov eax, dword [eax*4 + 0x448c38]
shr edi, 8
xor eax, edi
mov dword [esi], eax
and eax, 0xff
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x448c38]
mov dword [esi + 8], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, dword [esp + 0x14]
sar ecx, 8
xor cl, bl
cmp ebp, dword [esp + 0x18]
mov byte [edx + ebp - 1], cl
jb 0x414454
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4144d0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
xor esi, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4144f6
sub eax, ebx
mov dword [esp + 0x14], eax
je 0x414566
mov al, byte [esi + edi]
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x448c38]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
and eax, 0xff
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x448c38]
mov eax, edi
mov dword [edx + 8], ecx
add esi, 1
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414557
sub eax, ebx
cmp esi, eax
jb 0x414507
pop edi
pop esi
pop ebx
ret
Function at 0x414570
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call fcn.0042314b
push eax
call fcn.00423483
mov esi, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
lea ebx, [ebx]
call fcn.00423490
mov ebx, eax
sar ebx, 6
test bl, bl
jne 0x4145a0
mov bl, al
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov al, bl
mov edx, ecx
and edx, 0xfffd
or edx, 2
add ebp, 1
xor eax, edi
and eax, 0xff
mov eax, dword [eax*4 + 0x448c38]
shr edi, 8
xor eax, edi
mov dword [esi], eax
and eax, 0xff
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x448c38]
mov dword [esi + 8], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, dword [esp + 0x18]
sar ecx, 8
xor cl, bl
cmp ebp, 0xa
mov byte [edx + ebp - 1], cl
jl 0x414590
mov ebx, dword [esp + 0x14]
mov edi, dword [esi]
sar ebx, 0x10
mov ecx, dword [esi + 8]
mov al, bl
mov edx, ecx
mov ebp, dword [esp + 0x18]
and edx, 0xfffd
or edx, 2
xor eax, edi
and eax, 0xff
mov eax, dword [eax*4 + 0x448c38]
shr edi, 8
xor eax, edi
mov dword [esi], eax
and eax, 0xff
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x448c38]
mov dword [esi + 8], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
sar ecx, 8
xor cl, bl
mov ebx, dword [esp + 0x14]
mov byte [ebp + 0xa], cl
mov edi, dword [esi]
sar ebx, 0x18
mov ecx, dword [esi + 8]
mov al, bl
mov edx, ecx
and edx, 0xfffd
or edx, 2
xor eax, edi
and eax, 0xff
mov eax, dword [eax*4 + 0x448c38]
shr edi, 8
xor eax, edi
mov dword [esi], eax
and eax, 0xff
add eax, dword [esi + 4]
pop edi
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x448c38]
mov dword [esi + 8], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
sar ecx, 8
xor cl, bl
pop esi
mov byte [ebp + 0xb], cl
pop ebp
pop ebx
ret
Function at 0x4146f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea ecx, [ebp + 1]
mov edi, edi
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x414700
mov ebx, dword [esp + 0x20]
sub ebp, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x414713
sub ebx, ecx
lea eax, [ebx + ebp]
cmp eax, 0x20
jbe 0x414730
mov dword [esp + 0x10], 0
jmp 0x414744
mov eax, 0x20
sub eax, ebx
sub eax, ebp
xor edx, edx
div ebx
add eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add eax, 1
imul eax, ebx
lea esi, [eax + ebp + 1]
push esi
mov dword [esp + 0x1c], esi
call fcn.0043928d
mov edx, eax
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
lea eax, [edx + ebp]
mov ecx, ebx
mov dword [esp + 0x18], edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, ebx
test ecx, ecx
jbe 0x41480f
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, ebx
sub dword [esp + 0x10], 1
rep movsb byte es:[edi], byte [esi]
jne 0x4147b4
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
sub ecx, ebx
sub ecx, ebp
lea eax, [ebx + ebp]
add ecx, 0xffffffff
add eax, edi
cmp ebp, ecx
jb 0x4147ed
mov ebp, ecx
test ebp, ebp
jbe 0x414813
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov esi, ebp
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x414800
jmp 0x414813
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push eax
push edi
call fcn.004144d0
push edi
call fcn.004392bd
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x417bcb
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 0x417c1e
call fcn.0043f01d
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x417c1e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x417c14
xor eax, eax
jmp 0x417d37
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 0x417c4e
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 0x417c4e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x417d34
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x417c7b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00401bd6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x417d34
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x417cc4
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x417cc4
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x417cbe
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00401bd6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x417d24
and dword [ebp + 0xc], 0
jmp 0x417d24
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x417d24
push 0xc
call fcn.0043928d
mov esi, eax
test esi, esi
pop ecx
je 0x417d06
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 0x417d08
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x417d1f
push dword [ebp - 8]
call fcn.00433f5c
jmp 0x417d24
call fcn.00433f33
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x417c89
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4219c7
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.00420dc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421a62
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 [0x45ea20]
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 0x421a62
cmp eax, 1
je 0x421a83
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 0x421a62
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x421a2f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x421a5e
xor eax, eax
inc eax
jmp 0x421aa2
cmp edi, eax
jae 0x421a66
xor eax, eax
jmp 0x421aa2
cmp eax, esi
jae 0x421a6d
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 [0x45ea20]
jmp 0x421a86
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 0x421ca5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44d4c0
call fcn.00421aac
mov edi, 0x94
mov eax, edi
call fcn.00420dc0
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 [0x45ea20], ecx
mov eax, dword [esi + 4]
mov dword [0x45ea2c], eax
mov edx, dword [esi + 8]
mov dword [0x45ea30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45ea24], esi
cmp ecx, 2
je 0x421d05
or esi, 0x8000
mov dword [0x45ea24], esi
shl eax, 8
add eax, edx
mov dword [0x45ea28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x421d40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421d40
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x421d58
cmp eax, 0x20b
je 0x421d45
mov dword [ebp - 0x1c], esi
jmp 0x421d6c
cmp dword [ecx + 0x84], 0xe
jbe 0x421d40
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x421d66
cmp dword [ecx + 0x74], 0xe
jbe 0x421d40
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00426cc7
pop ecx
test eax, eax
jne 0x421d80
push 0x1c
call fcn.00421c81
pop ecx
call fcn.00425e67
test eax, eax
jne 0x421d91
push 0x10
call fcn.00421c81
pop ecx
call fcn.0042a148
mov dword [ebp - 4], esi
call fcn.00429f4a
test eax, eax
jge 0x421daa
push 0x1b
call fcn.00421c5c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x460450], eax
call fcn.00429e28
mov dword [0x45ea0c], eax
call fcn.00429d86
test eax, eax
jge 0x421dd0
push 8
call fcn.00421c5c
pop ecx
call fcn.00429b53
test eax, eax
jge 0x421de1
push 9
call fcn.00421c5c
pop ecx
push 1
call fcn.00423b91
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x421df7
push eax
call fcn.00421c5c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00429af6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x421e18
movzx eax, word [ebp - 0x40]
jmp 0x421e1b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00432db3
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x421e39
push edi
call fcn.00423cbe
call fcn.00423ce0
jmp 0x421e6b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421ae7
ret