joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4735b4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4735e2
mov eax, ebx
call fcn.00474068
cmp dword [ebx + 0x40], 0
je 0x4735db
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x473653
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x473645
cmp dword [ebx + 8], 0
je 0x473604
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x473616
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x473645
cmp dword [ebx + 8], 0
je 0x4735f7
cmp eax, 3
je 0x473629
dec eax
jne 0x4735f7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4735f7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4735f7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x473671
cmp dword [ebx + 0x14], 0xcc
je 0x473671
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047367c
pop ebx
ret

Function at 0x4856e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x485717
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x485796
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00483fa4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x485764
mov cx, word [esp]
sub cx, si
jmp 0x485766
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x48574d
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48578c
mov cx, word [esp]
sub cx, si
jmp 0x48578e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x485775
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4857f3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004853bc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4857de
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4857f3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4856f2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48bd9c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x48bdcb
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x48bdce
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x48bdb2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x4b9fec], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x48bda7
mov byte [0x4ba3ec], 1
mov esp, ebp
pop ebp
ret

Function at 0x48bdfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x4ba3ec], 0
jne 0x48be1f
call fcn.0048bd9c
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x48be5e
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x4b9fec]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x48be32
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x49537c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404fc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4953d4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b8fbc]
mov dl, 1
mov eax, dword [0x494e88]
call fcn.0040d180
call fcn.00404478
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00494ffc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4965cc
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4965e0
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x496635
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x4b8d28]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x496635
mov edx, dword [0x4b8d28]
mov dl, 1
call fcn.00451b4c
ret
Function at 0x49f908
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x49f910
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49faac
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x49fac4
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404b5c
lea ecx, [ebp - 0xc]
mov edx, 0x49fad8
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.00404b5c
lea ecx, [ebp - 0x10]
mov edx, 0x49faf0
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.00404b5c
lea ecx, [ebp - 0x14]
mov edx, 0x49fb0c
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.00404b5c
lea ecx, [ebp - 0x18]
mov edx, 0x49fb28
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00404b5c
lea ecx, [ebp - 0x20]
mov edx, 0x49fb40
mov eax, esi
call fcn.0049d694
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409030
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00409424
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x49fb58
mov eax, esi
call fcn.0049d694
mov eax, dword [ebp - 0x24]
call fcn.0049c784
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x49fb68
mov eax, esi
call fcn.0049d694
mov eax, dword [ebp - 0x28]
call fcn.0049c784
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x49fb80
mov eax, esi
call fcn.0049d694
mov eax, dword [ebp - 4]
call fcn.0049c338
test al, al
je 0x49fa63
mov eax, dword [ebp - 4]
call fcn.004093e8
mov edi, eax
test edi, edi
jl 0x49fa59
call fcn.0040b0e0
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x49fb88]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x49fa6f
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x49fa6f
mov eax, dword [ebp - 4]
call fcn.0049c784
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x49fb94
mov eax, esi
call fcn.0049d694
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.00404b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fab3
lea eax, [ebp - 0x30]
call fcn.00404b08
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404b2c
ret

Function at 0x4ac598
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4ac5f2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004ac588
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0049b150
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0049ad50
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac5f9
lea eax, [ebp - 4]
call fcn.00404b08
ret
Function at 0x4b00d0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00409b70
mov esi, eax
inc esi
push ebp
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x4b0153
push 4
push 0x1000
push esi
push 0
push ebp
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4b0153
push esp
push esi
push edi
mov eax, dword [esp + 0x10]
push eax
push ebp
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
mov eax, dword [esp + 0xc]
push eax
push 0x4b015c
push 0x4b016c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebp
call sub.kernel32.dll_CreateRemoteThread
push ebp
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b20dc
Capabilities:
Read file via mapping

Disassembly:
push 0x4b217c
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4ba778], eax
cmp dword [0x4ba778], 0
jne 0x4b214c
push 0x4b217c
push 8
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4ba778], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4ba778]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4ba77c], eax
cmp dword [0x4ba77c], 0
jne 0x4b2141
mov eax, dword [0x4ba778]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [0x4ba77c]
xor edx, edx
mov dword [eax], edx
jmp 0x4b2178
push 0
push 0
push 0
push 6
mov eax, dword [0x4ba778]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4ba77c], eax
cmp dword [0x4ba77c], 0
jne 0x4b2178
mov eax, dword [0x4ba778]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x401040
Capabilities:
Execute command

Disassembly:
push str.Hello__World__r_n
call fcn.00401010
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 8
xor eax, eax
ret

Function at 0x40185b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40189a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40189a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40189a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40189a
cmp dword [ecx + 0x74], 0xe
jbe 0x40189a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e004]
jne 0x40100a
repz ret
jmp fcn.00401912

Function at 0x4077ae
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.0040263b
and dword [ebp - 4], 0
cmp dword [0x470284], 0
mov ebx, eax
jne 0x40785f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407910
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407910
push eax
call fcn.004025c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x470284], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470288], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47028c], eax
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x470294], eax
test eax, eax
je 0x40785f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x470290], eax
mov eax, dword [0x470290]
cmp eax, ebx
je 0x4078b7
cmp dword [0x470294], ebx
je 0x4078b7
push eax
call fcn.00402644
push dword [0x470294]
mov esi, eax
call fcn.00402644
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078b7
test edi, edi
je 0x4078b7
call esi
test eax, eax
je 0x4078ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078ae
test byte [ebp - 0xc], 1
jne 0x4078b7
or dword [ebp + 0x10], 0x200000
jmp 0x4078f0
mov eax, dword [0x470288]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f0
mov eax, dword [0x47028c]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470284]
call fcn.00402644
pop ecx
test eax, eax
je 0x407910
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x469ee3
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x46e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x469f40
and dword [ebp - 0x408], 0
lea ecx, [ebp - 0x408]
call fcn.00469edb
mov al, byte [ebp - 0x408]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x469f3b
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x469efd
pop esi
cmp ebx, 0x2d
jne 0x469f57
or dword [0x27583bc], 0xffffffff
mov dword [0x27583b8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x51dea0
Capabilities:
Terminate process

Disassembly:
test byte [0x5cc2e8], 0x20
jne 0x51debe
vmovq xmm0, xmm0
vcvttpd2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
mov ecx, esp
add esp, 0xfffffff8
and esp, 0xfffffff8
movsd qword [esp], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ecx
btr edx, 0x1f
sbb ecx, ecx
cmp edx, 0x41e00000
jae 0x51df1e
cvttsd2si eax, xmm0
cdq
ret
mov ecx, edx
bts edx, 0x14
shr ecx, 0x14
and edx, 0x1fffff
sub ecx, 0x433
jge 0x51df18
neg ecx
push ebx
xor ebx, ebx
shrd ebx, eax, cl
je 0x51df11
cvttss2si ebx, dword [0x532bec]
pop ebx
shrd eax, edx, cl
shr edx, cl
ret
shld edx, eax, cl
shl eax, cl
ret
cmp edx, 0x43e00000
jae 0x51df37
test ecx, ecx
je 0x51dee8
call 0x51dee8
neg eax
adc edx, 0
neg edx
ret
jecxz 0x51df3f
ja 0x51df3f
test eax, eax
je 0x51df47
cvttss2si ecx, dword [0x532be8]
mov edx, SysReAllocStringLen
xor eax, eax
ret

Function at 0x51e623
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51e662
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51e662
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51e662
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51e662
cmp dword [ecx + 0x74], 0xe
jbe 0x51e662
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x52adc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52aded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52aded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b66a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
push ecx
pop ecx
or ecx, edi
call fcn.0043b6ae
push ecx
pop ecx
mov edi, 0x4646d2e9
sub esp, 4
mov dword [esp], edi
pop edi
xor dword [ebx], eax
sub ecx, ecx
add ebx, 1
push 0x82e4ae30
pop edi
sub ecx, 1
cmp ebx, esi
jne fcn.0043b66a
and edi, edi
sub ecx, 0xbfcdafd8
ret
Function at 0x406a10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406acf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c3d0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA_1
test eax, eax
jne 0x406ab9
cmp dword [ebp - 8], 0
jbe 0x406ab7
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402888
mov ebx, eax
xor esi, esi
jmp 0x406a95
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403ce8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c3c0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA_1
cmp eax, 0x103
jne 0x406a78
mov eax, ebx
call fcn.004028b8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ad6
lea eax, [ebp - 0x10]
call fcn.00403b0c
ret

Function at 0x406af0
Capabilities:
Create thread

Disassembly:
push ebx
mov byte [0x447045], 1
mov edx, dword [0x405808]
xor eax, eax
call fcn.0040a2f8
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x406ae0
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x406c08
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x406c23
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x406c32
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x406c34
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 1
cmp word [ebx + 0x24], 0
je 0x406c4f
push dword [ebx + 0x26]
push dword [ebx + 0x22]
mov eax, ebx
call fcn.00406c5c
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_SuspendThread
pop ebx
ret

Function at 0x406c90
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret