joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5db58d
Capabilities:
Encode data using xor

Disassembly:
push eax
int 0xf7
jmp 0xb850900a
inc edx
fbstp tbyte [esi + 0x2594999e]
and ebp, ebx
jp 0x5db5b1
xor byte [ebx - 0x5c], al
cmp al, 0xa5
xchg esp, eax
stosb byte es:[edi], al
ja 0x5db522
retf
jns 0x5db548
xchg esp, eax
pop ss
sal byte [ebp + 0x25679a46], cl
outsd dx, dword [esi]
sbb byte [ebp + 0x44], ah
mov byte [0x298a7003], al
inc ecx
and al, 0x63
xor eax, 0x98bf8674
sti
mov bh, 5
int1
and al, 0xa6
xchg ebp, eax
or al, 0x8f
outsd dx, dword [esi]
insb byte es:[edi], dx
imul esi, dword [ebx + ecx*4 - 0x54c38eef], 0x32
sub dword [ebx], edi
insb byte es:[edi], dx
mov dword [eax - 0x39e3743], edx
xchg ebx, ebp
test eax, 0xb0d33e21
cwde
adc al, 0xfb
sub al, 0x24
mov ah, 0xed
arpl sp, dx
or edi, dword [0x9d176c72]
sub al, 0xf3
xor al, 0x1b
in al, 0xf7
shl dword [edx - 0x1c], 0xb9
xor edi, dword [ecx - 0x6628cc8d]
xchg edi, eax
mov ebx, 0x1b008005
pop eax
adc dword [edx + 0x2f], eax
inc ebp
xchg ebx, eax
or al, 0x1a
in al, dx
pop edx
push es
push 0xe3e2fb00
mul dword [eax]
cmp dh, byte [edx]
shr dword [esi + 0xc], 1
sub eax, 0xdab525a8
push 0x709b9b17
sub eax, 0xa76665cc
adc al, 0xdb
xchg edi, eax
pop dword [esi]
push ecx
add eax, 0x1bc0f4f5
je 0x5db5ce
lodsb al, byte [esi]
nop
retf

Function at 0x6062ed
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.006397dd
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x606410
push ecx
lea ecx, [esi + 0x18]
call fcn.00625b0d
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x606427
push ecx
lea ecx, [esi + 0x24]
call fcn.00625a1d
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64d5ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x655338
cmp edx, dword [eax]
je 0x64d60f
add eax, 8
inc ecx
cmp eax, 0x6553c8
jl 0x64d600
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x655338]
jne 0x64d73d
mov eax, dword [0xa58c90]
cmp eax, 1
je 0x64d717
test eax, eax
jne 0x64d640
cmp dword [0x655264], 1
je 0x64d717
cmp edx, 0xfc
je 0x64d73d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d677
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064dfd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064e460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d6ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064e460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6528ac
push edi
call fcn.00650330
add esp, 0x10
invalid
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064dfd0
add eax, 0x8d000009
test dword [eax - 1], esp
invalid
call dword [edi + 0x50]
call fcn.0064dfe0
or dword [eax], eax
add byte [ebp - 0x9f7b], cl
jmp [eax - 0x74]
sub byte [ebp], ah
push eax
call fcn.0064dfe0
push dword [esi + 0x65533c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064dfe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.006502a4
add esp, 0x2c
pop edi
jmp 0x64d73d
lea eax, [ebp + 8]
lea esi, [esi + 0x65533c]
push 0
push eax
push dword [esi]
call fcn.0064e460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42ac20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4929b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00425460
test eax, eax
je 0x42ad28
lea ecx, [esp + 0xc]
call fcn.00401830
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00425460
mov ecx, eax
call fcn.00422b70
test eax, eax
je 0x42ad0f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42ad0f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42ad0f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
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]
lea ecx, [esp + 0x10]
call fcn.00401a30
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42acf1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42ad0f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4ccbc0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4990c8
call fcn.00401a30
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42dc20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492c48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42dc59
inc eax
mov dword [esi + 0x10], eax
jmp 0x42dd6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42dc6d
mov eax, 0xffffffc7
jmp 0x42dd6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42dc7e
cmp dword [esi + 8], eax
jne 0x42dc6d
cmp dword [esi + 8], eax
jne 0x42dc97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42dc97
mov eax, 0xffffffc7
jmp 0x42dd6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42dcab
push eax
mov ecx, ebx
call fcn.0042d450
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401830
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42dcdc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401850
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042cbc0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42dd0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4990f8
call fcn.00401a30
mov eax, dword [esp + 0x38]
jmp 0x42dd6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042da80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42dd53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042daa0
mov esi, eax
test esi, esi
jne 0x42dd83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042da80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42dd25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4990f8
call fcn.00401a30
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4990f8
call fcn.00401a30
mov eax, esi
jmp 0x42dd6e

Function at 0x432760
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4327c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4327c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4327c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4327c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x432800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x460cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x460d03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x460cea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4676b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493aee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00467fd0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x49cc8c
call fcn.00485750
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x467743
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00485750
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46773c
push 0
mov ecx, eax
call fcn.0045e7b0
mov dword [esi + 0xc], eax
jmp 0x467745
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x467745
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x487db3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x487deb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00485e6a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00485e42
jmp 0x487df7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4894a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4894e8
call fcn.0048ef5d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4894e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4894df
xor eax, eax
jmp 0x4894f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004894f6
pop edi
pop esi
pop ebx
ret 4
Function at 0x401fb1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401420
push 0x80000001
call ebx
mov esi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x402011
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4020b8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401420
push 0x80000002
call ebx
test eax, eax
jne 0x402050
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4020b8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000001
call ebx
test eax, eax
je 0x402ff6
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000002
call ebx
test eax, eax
jne 0x4020ae
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4020b8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call esi
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4020b8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call esi
push dword [ebp - 4]
call edi
jmp 0x40206f

Function at 0x403360
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x4031dc
call fcn.00401c38
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x4033e2
push esi
mov esi, dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
push edi
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
lea edi, [edi*2 + 4]
push edi
push 0x40
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4033e0
mov edx, dword [ebp + 8]
shr edi, 1
push ebx
mov eax, edi
call fcn.004020e3
push 0x4033e8
mov eax, edi
mov ebx, esi
call fcn.00403251
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, edi
call fcn.00403251
push esi
push 0x4031dc
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x403729
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401420
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x403780
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4037d0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4037cb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4037d0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x403803
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and dword [ebx], 0
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x401420
push 0x80000002
call edi
mov esi, eax
test esi, esi
jne 0x4038d9
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x403900
push 0x80000002
call edi
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4038d4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0x401410
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4038cf
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4038e4
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4038cf
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x4038cf
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 4]
jne 0x4038cf
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4038cf
mov dword [ebx], 1
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call edi
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x403991
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4050b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], ecx
mov ebx, esi
mov edi, esi
push esi
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [eax + 4]
mov dword [ebp - 0x28], 7
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x403a38
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
cmp eax, ebx
jle 0x403a48
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24]
push 7
lea ebx, [ebp - 0x14]
mov edx, eax
pop ecx
sub ebx, edx
test ecx, ecx
je 0x403a1e
movzx edx, word [ebx + eax]
test dx, dx
je 0x403a1a
mov word [eax], dx
add eax, 2
dec ecx
jne 0x403a04
test ecx, ecx
jne 0x403a28
sub eax, 2
mov ecx, 0x8007007a
jmp 0x403a2a
mov ecx, esi
xor edx, edx
mov word [eax], dx
test ecx, ecx
js 0x403a56
mov ebx, dword [ebp - 0x38]
jmp 0x403a48
mov ecx, 0x103
cmp eax, ecx
je 0x403a5d
cmp eax, 0xea
jne 0x403a7b
inc edi
cmp edi, reloc.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError
jae 0x403a81
mov eax, dword [ebp - 0x2c]
jmp 0x4039c1
mov esi, 0x10a
jmp 0x403a81
test ebx, ebx
je 0x403a7f
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
jmp 0x403a81
mov esi, ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013ef
leave
ret 0xc

Function at 0x403b94
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403baa
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError
jne 0x403bc5
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x403bcc
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x403c0a
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403c02
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403c0c
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403bf2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x430718]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43071c]
push edi
mov edi, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x430720]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x430724]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x40105d
xor ecx, ecx
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43f974], 0xc
mov dword [ebp - 4], eax
jne 0x401087
push ecx
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x43f974]
cmp eax, 0xfa9
jne 0x4010a3
mov dword [0x43f970], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c8
push str.xuzujamasahigomurefexob
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x43f8c8], 0
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x43f96c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x43f974], 0xb03
jne 0x401147
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x40105b
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x4029a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
mov dword [edx], 0
mov edi, edx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 4], edx
movups xmmword [edx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [edx + 0x14], 0x10
mov ebx, dword [edx + 0x10]
jb 0x4029f1
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x402a11
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x402a00
pop edi
mov dword [edx + 0x18], esi
mov eax, edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4