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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e1ae
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1005b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x60], 0x1006efb8
mov dword [0x1006efb8], 0
mov dword [0x1006efc8], 0
mov dword [0x1006efcc], 0xf
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
jne 0x10049768
test eax, eax
jne 0x10049768
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049750
sub ecx, edx
push ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, 0x1006efb8
call fcn.10009050
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x1006efb8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004c44e
mov esp, ebp
pop ebp
ret

Function at 0x10049790
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e1ed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1005b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x10], edi
push 0
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.1004b9a0
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
je 0x10049828
mov edx, dword [esi + 0x10]
mov edi, dword [ebp - 0x14]
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100497fa
mov eax, dword [esi]
push edx
push eax
push dword [edi + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.1004bb80
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 8]
add eax, dword [esi + 0x10]
push eax
push edi
call fcn.1004b9a0
mov edx, dword [esi + 0x10]
mov ecx, eax
mov dword [ebp - 0x10], eax
cmp ecx, 0xffffffff
jne 0x100497f0
mov edi, dword [ebp - 0x18]
vmovdqu xmm0, xmmword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
vmovdqu xmmword [edi], xmm0
vmovq xmm0, qword [ebp + 0x18]
vmovq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004b940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1004b96b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1004ae60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1004b96f
test eax, eax
je 0x1004b981
cmp byte [0x1006f086], 0
jne 0x1004b981
mov eax, 1
pop ebp
ret 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]

Function at 0x1004c210
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x1004c26e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x1004c230
mov eax, dword [edi]
jmp 0x1004c359
cmp eax, 0x4e0
jb 0x1004c359
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1004c290
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1004c2e0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401b22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x401b30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push esi
push edi
push 1
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x401c12
lea eax, [esp + 0xc]
push eax
push str..htm
push SysReAllocString
call fcn.00401ac0
add esp, 0xc
test eax, eax
jne 0x401c12
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push eax
push SysReAllocString
call fcn.00401ac0
add esp, 0xc
test eax, eax
jne 0x401c12
lea ecx, [esp + 0xc]
push str.__1_
push ecx
call fcn.0046b490
mov esi, eax
add esp, 8
test esi, esi
jne 0x401bec
lea edx, [esp + 0xc]
push 0x49d25c
push edx
call fcn.0046b410
mov esi, eax
add esp, 8
test esi, esi
jne 0x401bec
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x401bef
mov byte [esi], 0
push 0x49d258
push esi
call edi
push ebx
push esi
call edi
lea ecx, [esp + 0xc]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x401ce0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48a0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x434]
xor esi, esi
cmp eax, esi
ja 0x401d38
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
lea eax, [esp + 0x20]
push ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [esp + 0x43c]
lea ecx, [esp + 0x24]
push ebx
push esi
push 0x49d28c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x440]
cmp edi, esi
je 0x401dbb
cmp byte [edi], 0
je 0x401dbb
lea edx, [esp + 0x328]
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x22c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
call fcn.0046b2c2
lea eax, [esp + 0x13c]
push edi
lea ecx, [esp + 0x240]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push ebx
call fcn.0046b231
add esp, 0x28
mov al, byte [esp + 0xf]
mov edi, ebx
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00406050
test al, al
je 0x401e12
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
xor esi, esi
mov byte [eax + ebp], 0
mov edx, dword [0x52b308]
lea ecx, [esp + 0x18]
push ecx
push 1
push edx
mov ecx, 0x52b300
mov dword [esp + 0x440], esi
call fcn.00406170
mov eax, dword [esp + 0x1c]
pop ebp
cmp eax, esi
je 0x401e57
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401e4e
cmp al, 0xff
je 0x401e4e
dec al
mov byte [ecx], al
jmp 0x401e57
push ecx
call fcn.0047f3fb
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
pop ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x420]
pop esi
mov dword fs:[0], ecx
add esp, 0x428
ret
Function at 0x401e80
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [0x52b304]
mov esi, dword [0x52b308]
test eax, eax
je 0x401ebe
mov ecx, esi
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x401ebe
mov eax, dword [edi + eax + 4]
test eax, eax
jne 0x401eb5
mov eax, 0x48e914
push eax
call ebx
inc ebp
add edi, 0x10
jmp 0x401e8e
cmp esi, esi
mov edi, esi
mov ebp, eax
je 0x401ee2
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebp
call fcn.00405cf0
add esi, 0x10
add ebp, 0x10
cmp esi, edi
jne 0x401ec6
mov esi, dword [0x52b308]
cmp ebp, esi
mov ebx, esi
je 0x401f46
lea esi, [ebp + 4]
xor ecx, ecx
mov eax, dword [esi]
cmp eax, ecx
je 0x401f32
lea edi, [esi - 4]
push eax
mov ecx, edi
call fcn.004013e0
cmp byte [eax], 0
je 0x401f20
mov edx, dword [esi]
mov ecx, edi
push edx
call fcn.004013e0
cmp byte [eax], 0xff
je 0x401f20
mov eax, dword [esi]
mov ecx, edi
push eax
call fcn.004013e0
dec byte [eax]
jmp 0x401f32
mov ecx, dword [esi + 8]
mov edx, dword [esi]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, edi
call fcn.004013f0
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
add esi, 0x10
lea eax, [esi - 4]
cmp eax, ebx
jne 0x401eed
pop edi
mov dword [0x52b308], ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x402ef4
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test eax, eax
mov dword [esi], ecx
mov dword [esi + 4], eax
jle 0x402f1d
cmp eax, ecx
jg 0x402f1d
shl eax, 2
push eax
call fcn.0047f3d2
add esp, 4
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret 8
push str.Wrong_round_for_MultiIndex._n
call fcn.0046b7f5
add esp, 4
push 0xffffffffffffffff
call fcn.0046b702
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x403f21
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x758]
test eax, eax
je 0x403f99
lea ecx, [esp + 4]
mov dword [esi + 0x198], 1
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x403f99
cmp dword [esp + 4], 0x103
jne 0x403f82
mov edx, dword [esi + 0x758]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403f82
mov eax, dword [esi + 0x758]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x758]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x758], 0
pop esi
pop ecx
ret
Function at 0x405550
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48a652
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x529178]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x75c]
xor ebx, ebx
push eax
mov dword [esp + 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or esi, 0xffffffff
cmp eax, esi
jne 0x40559d
push str.Cant_locate_this_PDF_file__please_load_another_PDF_file_to_try_again.
jmp 0x4055fc
mov eax, dword [ebp + 0x75c]
lea edx, [esp + 0x14]
push edx
push ebx
push 0x52b310
push 0x52b310
push eax
mov dword [esp + 0x28], ebx
call fcn.00409de5
cmp eax, esi
jne 0x4055e7
push str.This_PDF_file_was_protected_by_non_standard_security_handler__it_cant_be_cracked_by_our_product.
lea ecx, [esp + 0x10]
call fcn.00480069
mov eax, dword [esp + 0xc]
push ebx
push ebx
push eax
call fcn.0048597a
mov dword [esp + 0x230], esi
jmp 0x405787
cmp dword [ebp + 0x760], 2
jne 0x40561d
cmp dword [esp + 0x14], 0x10
jne 0x40561d
push str.Key_search_attack_is_not_applicable_for_128_bit_key_protected_PDF_file.
lea ecx, [esp + 0x10]
call fcn.00480069
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push ecx
call fcn.0048597a
mov dword [esp + 0x230], esi
jmp 0x405787
cmp eax, 0xfffffffe
jne 0x405639
lea ecx, [esp + 0xc]
mov dword [esp + 0x230], esi
call fcn.0047ff24
mov eax, esi
jmp 0x405792
push edi
lea edx, [esp + 0x1c]
push ebp
mov ecx, 6
mov esi, str.PDF_File_.pdf_.pdf
lea edi, [esp + 0x20]
push edx
push 6
rep movsd dword es:[edi], dword [esi]
push 0x52b310
push 0x52b310
push ebx
lea ecx, [esp + 0x4c]
call fcn.0047d44d
lea ecx, [esp + 0x34]
mov byte [esp + 0x234], 1
call fcn.0047d5af
cmp eax, 1
pop edi
je 0x40568a
mov byte [esp + 0x230], 2
jmp 0x405760
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
call fcn.0047d68a
mov esi, dword [0x52b3fc]
mov edx, dword [esp + 0x10]
mov ebp, dword [ebp + 0x75c]
xor ecx, ecx
cmp esi, ebx
mov byte [esp + 0x230], 3
sete cl
push ecx
push ebx
push 0x52b310
push 0x52b310
push edx
push ebp
call fcn.00409960
test eax, eax
je 0x405747
mov eax, dword [esp + 0x10]
push eax
call fcn.00405a40
mov ecx, dword [0x52b3fc]
mov eax, dword [esp + 0x14]
push ecx
push eax
push eax
call fcn.00401a90
mov edx, dword [esp + 0x20]
push edx
call fcn.00401b30
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0047ff24
lea ecx, [esp + 0xdc]
mov byte [esp + 0x230], 4
call fcn.0047ff24
lea ecx, [esp + 0x30]
mov byte [esp + 0x230], bl
call fcn.0047f580
lea ecx, [esp + 0xc]
mov dword [esp + 0x230], 0xffffffff
call fcn.0047ff24
mov eax, 1
jmp 0x405792
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0047ff24
mov byte [esp + 0x230], 5
lea ecx, [esp + 0xdc]
call fcn.0047ff24
lea ecx, [esp + 0x30]
mov byte [esp + 0x230], bl
call fcn.0047f580
mov dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0047ff24
xor eax, eax
mov ecx, dword [esp + 0x228]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x406b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push str.crackpdf.dll
push eax
call fcn.00401430
add esp, 8
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406b84
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x52b330], eax
jne 0x406b63
add esp, 0x104
ret
push str.CrackPDF
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [0x52b318], eax
test eax, eax
setne cl
mov eax, ecx
add esp, 0x104
ret
call fcn.00406af0
test eax, eax
mov dword [0x52b330], eax
jne 0x406b99
add esp, 0x104
ret
push str.CrackPDF
push eax
call fcn.00408250
add esp, 8
xor edx, edx
test eax, eax
setne dl
mov dword [0x52b318], eax
mov eax, edx
add esp, 0x104
ret
Function at 0x407940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48a818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x407973
push 0x7f89
push 0
call ebx
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x407a00
mov eax, dword [0x529178]
push esi
mov dword [esp + 0xc], eax
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00480209
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00480258
push str.winhlp32.exe
lea ecx, [esp + 0x10]
call fcn.004801e2
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4079e7
push 0x6a
push esi
call ebx
test eax, eax
je 0x4079e7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0047ff24
pop esi
mov ecx, dword [esp + 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407a20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407a82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x407c90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x407d82
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00407a20
test eax, eax
jne 0x407d82
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00407a20
test eax, eax
jne 0x407d82
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.0046b490
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d53
lea eax, [esp + 0x10]
push 0x49d25c
push eax
call fcn.0046b410
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d53
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x407d56
mov byte [esi], 0
push 0x49d258
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x407dd0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x407de8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x407e01
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x407e38
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x407e38
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00407f20
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x407ec1
push eax
push ebx
call fcn.004080b0
add esp, 8
push ebx
call fcn.00408130
add esp, 4
test eax, eax
je 0x407ef1
push ebx
call fcn.00407ff0
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x407f09
add eax, ebp
test eax, eax
je 0x407ef1
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x407f02
push ebx
call fcn.00408380
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x407f20
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x407fe1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x407f8b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x407fbf
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x407fbf
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x407f4e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x407ff0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x4080a9
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x408047
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40808f
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x4ef8b4]
je 0x408061
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40807c
test al, 0x40
je 0x408073
mov ecx, dword [ebx + 0x20]
jmp 0x40807a
test al, 0x80
je 0x40808f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40808f
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x408014
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret