joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40229a
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push edi
push dword [0x403716]
call dword [sym.imp.pdh.dll_PdhCloseLog]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x4022c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x40164f], eax
ret
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror eax, 0x67
sbb esi, 0xf
rcl ebx, 0xc
bswap edx
dec esi
not edi
and ebx, 0x3f
bswap eax
neg edx
or edx, 0x14
not edi
mov ebx, 0x50
or esi, 0x67
ror ebx, 0x55
dec edi
not eax
and esi, 0x90
bswap ebx
neg edi
and esi, 0x17
add esi, 0xb
and ebx, 0xeb
bswap edi
imul edx
mov esi, 0x6c
not ebx
imul esi
mov ebx, 0x82
rcr ebx, 0xd3
imul edx
mov edi, 4
bswap esi
not ebx
not ebx
mov edi, 0x1f
bswap eax
imul edx
rcl edi, 0xd7
or esi, 0x58
neg edi
inc esi
bswap ebx
ror eax, 0x83
not edi
bswap eax
bswap edx
rol edx, 0x79
mov esi, 0xe8
neg esi
not eax
xor ecx, ecx
xor edi, edi
and esi, 0xde
dec esi
bswap eax
rol edx, 0xe8
ror eax, 0x5d
imul edx
rol esi, 0xfa
inc edi
dec edi
dec edx
ror esi, 0xbd
bswap ebx
dec edx
not edx
sub eax, 0xba
imul edx
rcl edi, 0xd1
sub edx, 0x6a
imul edi
not edi
bswap edx
imul edi
rol edx, 0x2a
mov esi, 0xb1
sbb esi, 0x8a
rcl edx, 0x3c
inc edx
sub ebx, 0xb0
dec esi
neg eax
or ebx, 0x69
not edx
imul edi
not esi
ror edx, 0x68
and esi, 0x65
bswap ebx
dec ebx
or eax, 0x99
ror eax, 0x68
inc ebx
dec eax
neg eax
ror esi, 0xdf
neg edi
rcl eax, 0x59
rcr ebx, 0xf1
mov ebx, 0xf1
inc eax
inc edi
mov ecx, dword [ebp + 0xc]
bswap edx
sub ebx, 0x8f
rcr ebx, 0x6b
mov eax, 0xfd
imul edi
sbb eax, 0x69
and ebx, 0x8b
sub edi, 0x95
bswap eax
rcr esi, 0x42
ror ebx, 0xcf
and ebx, 0x87
bswap ebx
sbb eax, 0x28
dec esi
imul edi
mov edx, 0xeb
mov edi, 0x1d
dec ebx
ror esi, 0xdc
inc eax
and eax, 0x48
not ebx
rol ebx, 0xef
not esi
rol eax, 0xf9
or ebx, 0xea
ror ebx, 0x11
neg edx
add esi, 0x81
sub esi, 0x33
rcr edx, 0xbe
imul eax
and eax, 0x8a
bswap eax
sub ebx, 0x9c
not esi
mov edx, 0x77
neg edi
bswap ebx
rcr esi, 0x19
imul edx
not eax
inc esi
rol esi, 0x18
ror eax, 0xef
sbb edx, 0xbb
neg eax
sbb esi, 0xf3
imul eax
mov edi, dword [ebp + 8]
xor ebx, eax
xor ebx, ebx
xor eax, eax
not byte [edi]
xor esi, esi
mov esi, esi
xor esi, esi
mov eax, ebx
mov esi, eax
xor esi, eax
xor eax, eax
mov ebx, esi
xor ebx, ebx
add byte [edi], 0x26
xor eax, ebx
mov eax, eax
xor eax, esi
xor ebx, ebx
xor esi, eax
mov esi, eax
mov esi, esi
mov esi, ebx
mov eax, esi
sub byte [edi], 0x87
xor ebx, ebx
mov ebx, esi
xor eax, esi
xor esi, eax
xor eax, ebx
mov esi, eax
mov ebx, esi
xor eax, eax
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4013e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406224
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446e5c]
jne 0x40622e
repz ret
jmp fcn.00407f25
Function at 0x409763
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004062a5
and dword [ebp - 4], 0
cmp dword [0x44844c], 0
mov ebx, eax
jne 0x409814
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4098c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4098c5
push eax
call fcn.00406233
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44844c], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448450], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x448454], eax
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x44845c], eax
test eax, eax
je 0x409814
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x448458], eax
mov eax, dword [0x448458]
cmp eax, ebx
je 0x40986c
cmp dword [0x44845c], ebx
je 0x40986c
push eax
call fcn.004062ae
push dword [0x44845c]
mov esi, eax
call fcn.004062ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40986c
test edi, edi
je 0x40986c
call esi
test eax, eax
je 0x409863
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409863
test byte [ebp - 0xc], 1
jne 0x40986c
or dword [ebp + 0x10], 0x200000
jmp 0x4098a5
mov eax, dword [0x448450]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098a5
mov eax, dword [0x448454]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44844c]
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4098c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42d9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.004075cb
push 4
mov dword [esp + 0x18], 0
call fcn.004085b8
mov edi, eax
add esp, 4
test edi, edi
je 0x406454
push ebx
call fcn.004073c6
mov dword [edi], eax
call fcn.00407185
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040758c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406448
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004075b4
pop ebx
jmp 0x406456
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40918b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431354]
jne 0x409195
repz ret
jmp fcn.0040d41c
Function at 0x411732
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b98f
and dword [ebp - 0x14], 0
cmp dword [0x436aa0], 0
mov dword [ebp - 0x18], eax
jne 0x4117e5
push 0x403e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41188d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e5c
push ebx
call edi
test eax, eax
je 0x41188d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x436aa0], eax
call edi
push eax
call esi
push 0x403e38
push ebx
mov dword [0x436aa4], eax
call edi
push eax
call esi
push 0x403e1c
push ebx
mov dword [0x436aa8], eax
call edi
push eax
call esi
mov dword [0x436ab0], eax
test eax, eax
je 0x4117e5
push 0x403e04
push ebx
call edi
push eax
call esi
mov dword [0x436aac], eax
mov eax, dword [0x436aac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41183e
cmp dword [0x436ab0], ecx
je 0x41183e
push eax
call esi
push dword [0x436ab0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41183e
test ebx, ebx
je 0x41183e
call edi
test eax, eax
je 0x411835
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411835
test byte [ebp - 8], 1
jne 0x41183e
or dword [ebp + 0x10], 0x200000
jmp 0x411871
mov eax, dword [0x436aa4]
cmp eax, dword [ebp - 0x18]
je 0x411871
push eax
call esi
test eax, eax
je 0x411871
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411871
mov eax, dword [0x436aa8]
cmp eax, dword [ebp - 0x18]
je 0x411871
push eax
call esi
test eax, eax
je 0x411871
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436aa0]
call esi
test eax, eax
je 0x41188d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41188f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040918b
leave
ret
Function at 0x4286c0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7ba804]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x7ba76c]
cmp eax, ebx
jbe 0x4288be
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x4286f6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7ba804], 0x1c
jne 0x42870d
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x4322d0]
mov eax, dword [str.jJR]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4322d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x4322dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x428752
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x7ba770], ebx
mov eax, dword [esp + 0x18]
add dword [0x7ba770], eax
mov eax, dword [0x7ba770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x7ba804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x428827
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f08
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x7ba778], 0xff6b3619
mov dword [0x7ba77c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x428750
cmp dword [0x7ba804], 0x8d4
jne 0x428877
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x7ba804], 0x17
jne 0x4288ad
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x48]
push eax
push 0x403f68
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x4286f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x403afd
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31148
call fcn.0040c020
push ebx
push esi
lea eax, [ebp - 0x408]
push edi
push eax
mov esi, ecx
push dword [ebp + 8]
call fcn.00403acd
test eax, eax
je 0x403c6a
xor ebx, ebx
lea eax, [ebp - 0x408]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403b8e
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41ac28
push 0x31
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
jmp 0x403c6a
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x31148]
push 0x30d40
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x403bf4
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41abe4
push 0x40
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x403c6a
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 4]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x31148]
push eax
push dword [edi]
call fcn.00408851
add esp, 0xc
mov dword [edi], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x31148]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x403c6e
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41abb0
push 0x33
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x14
xor eax, eax
jmp 0x403c71
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403d9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31150
call fcn.0040c020
push ebx
push esi
lea eax, [ebp - 0x410]
push edi
push eax
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call fcn.00403acd
test eax, eax
jne 0x403df2
cmp dword [ebp + 0x14], ebx
je 0x403f52
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x41ae78
push 0x23
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0xc
jmp 0x403f52
push ebx
push 0x80
push 3
push ebx
push ebx
lea eax, [ebp - 0x410]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x403e65
cmp dword [ebp + 0x14], ebx
je 0x403f52
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41ae4c
push 0x2b
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
jmp 0x403f52
lea ecx, [ebp - 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x30d40
push ecx
lea ecx, [ebp - 0x31150]
push edi
push ecx
mov esi, edi
push eax
call ebx
test eax, eax
je 0x403eac
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
jne 0x403f01
mov esi, edi
lea ecx, [ebp - 0x10]
sub esi, eax
push 0
push ecx
lea eax, [ebp + eax - 0x31150]
push esi
push eax
push dword [ebp - 0xc]
jmp 0x403e80
cmp dword [ebp + 0x14], 0
je 0x403ef6
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
movzx ecx, word [eax + 0x20]
push ecx
push eax
push 0x41ae18
push 0x30
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x403f52
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x10]
lea eax, [ebp - 0x31150]
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
call fcn.00407054
add esp, 0x10
test al, al
jne 0x403f56
cmp dword [ebp + 0x14], 0
je 0x403f52
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
movzx ecx, word [eax + 0x20]
push dword [ebp - 4]
push ecx
push eax
push 0x41ade4
push 0x30
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x14
xor eax, eax
jmp 0x403f79
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
push 0x41adac
push 0x35
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4065be
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4408
call fcn.0040c020
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov byte [ebp - 0x4408], bl
call fcn.00406990
push 1
push ebx
lea eax, [ebp - 0x4408]
push 0x4000
push eax
push 1
push 0x41a44c
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
call fcn.00408323
add esp, 0x14
test eax, eax
jge 0x406625
push 0x41b33c
push 0x10
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
pop ecx
jmp 0x406652
lea eax, [ebp - 0x4408]
push eax
push 0x41b320
push 0x18
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
lea eax, [ebp - 0x4408]
push eax
call fcn.00406777
add esp, 0xc
push 1
pop edi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x41b30c
push 0x12
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406713
push esi
push 0x400
lea eax, [ebp - 0x408]
push ebx
push eax
mov dword [ebp - 8], 0x3ff
call fcn.0040bc80
add esp, 0xc
lea eax, [ebp - 8]
mov esi, 0x41b304
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
push esi
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406709
lea eax, [ebp - 0x408]
push eax
push 0x41b2e8
push 0x1b
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
lea eax, [ebp - 0x408]
push eax
call fcn.00406777
push esi
push 6
call fcn.00408cb1
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call fcn.00406719
or edi, 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x407054
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push dword [0x41f1d4]
call fcn.0040c050
mov edi, eax
xor ebx, ebx
xor esi, esi
cmp edi, ebx
pop ecx
mov byte [ebp - 1], bl
jle 0x4070ad
lea eax, [ebp - 0x10]
push eax
push 0x41b4b8
push 4
call fcn.00408cb1
pop ecx
pop ecx
push eax
mov eax, dword [str.0602000000240000525341310002000001000100a9959a031b5ae483402a81a758afd66183db74517df889e42099f84cfc8096e783923134ca536e2671208da3e411983dcf92d850deb6be982715ffc845e133a9]
add eax, esi
push eax
call fcn.0040d011
mov eax, esi
mov cl, byte [ebp - 0x10]
cdq
sub eax, edx
add esp, 0xc
sar eax, 1
inc esi
inc esi
mov byte [ebp + eax - 0x78], cl
cmp esi, edi
jl 0x407076
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cdq
sub eax, edx
push ebx
mov esi, eax
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
sar esi, 1
call edi
test eax, eax
jne 0x4070f7
push 8
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
call edi
test eax, eax
jne 0x4070f7
push 0x41b4a4
push 0x13
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
xor al, al
jmp 0x4071b7
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x407126
push 0x41b494
push 0xe
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
jmp 0x4071a5
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407147
push 0x41b484
push 0xf
jmp 0x407116
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x407164
push 0x41b474
push 0xd
jmp 0x407189
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x407182
mov byte [ebp - 1], 1
jmp 0x407197
push 0x41b45c
push 0x14
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
cmp dword [ebp - 0xc], ebx
je 0x4071a5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x4071b4
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret