joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d1f
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4394a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ecx], ebx
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
add ecx, 0x10
call fcn.004182ac
mov edi, dword [ebp + 0x1c]
mov edx, ebx
movzx eax, byte [edi + 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x10]
lea ecx, [esi + 0x18]
call fcn.00422fa4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x24]
push dword [ebp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [edi]
mov dword [esi + 0x24], eax
mov ax, word [edi + 4]
mov word [esi + 0x28], ax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x2c]
mov ax, word [eax]
mov word [esi + 0x38], ax
mov eax, dword [ecx]
mov dword [esi + 0x3a], eax
mov ax, word [ecx + 4]
lea ecx, [esi + 0x48]
mov word [esi + 0x3e], ax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x40], eax
call fcn.00417e15
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x30

Function at 0x41f22b
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439767
mov eax, dword fs:[0]
push eax
mov eax, dword [0x468080]
push ecx
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
lea eax, [ecx + 0x100]
lea edx, [ecx + 0x10]
push eax
lea eax, [ecx + 0xe0]
push eax
lea eax, [ecx + 0xc4]
push eax
push ecx
push ecx
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0x98]
push eax
lea eax, [ecx + 0x78]
push eax
lea eax, [ecx + 0x68]
push eax
lea eax, [ecx + 0x60]
push eax
lea eax, [ecx + 0x48]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041edda
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x42ce31
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push esi
push edi
push eax
mov edi, ecx
mov dword [ebp - 0x18], 1
push ecx
mov ecx, 0x20019
mov dword [ebp - 0x1c], vtable.Mso::Registry::Key.0
mov esi, edx
mov byte [ebp - 0x10], 1
call fcn.004128c8
pop ecx
push eax
push 0
push esi
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cec1
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push ecx
push str.SendTelemetry
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cec1
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 4], 1
jmp 0x42cec8
and dword [edi], 0
mov byte [edi + 4], 0
cmp byte [ebp - 0x10], 0
mov dword [ebp - 0x1c], vtable.Mso::Registry::Key.0
je 0x42cee4
cmp dword [ebp - 0x14], 0
je 0x42cee4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x437cde
Capabilities:
Parse pe header

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

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40a004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40a008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40a00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40a008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40a004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x403824
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x403894
cmp word [eax], 8
jb 0x403849
push eax
push edx
cmp word [eax], 0x100
je 0x40383f
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x403847
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x403860
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x403880
mov edx, dword [edx + 8]
or edx, edx
je 0x403877
mov ecx, dword [edx - 8]
inc ecx
jle 0x403877
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x4037e8
ret

Function at 0x4051c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405201
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40520a
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405214
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov al, byte [esp]
jmp 0x405237
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40682c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406874
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004067c8
mov eax, dword [ebp - 4]
call fcn.004034b8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40687b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x406b24
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d9c
add esp, 0x104
pop ebx
ret

Function at 0x406c6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406d8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406d77
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406cc5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d77
cmp dword [ebp - 0xc], 0
jne 0x406cda
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406d77
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004034c4
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406c91
test eax, eax
jne 0x406d77
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406d21
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d77
jmp 0x406d21
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406d34
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406d1e
cmp dword [ebp - 8], 7
jne 0x406d43
cmp dword [ebp - 0xc], 0
je 0x406d43
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403594
cmp dword [ebp - 8], 7
jne 0x406d6a
cmp dword [ebp - 0xc], 0
je 0x406d6a
lea eax, [ebp - 0x10]
call fcn.004034c4
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d94
lea eax, [ebp - 0x10]
call fcn.00403198
ret

Function at 0x407564
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407580
shr eax, 1
xor eax, 0xedb88320
jmp 0x407582
shr eax, 1
dec edx
jne 0x407573
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40756c
pop esi
ret

Function at 0x4075af
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4075bb
call fcn.00407564
push 1
push 0x40b558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4075e6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4075c1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408a34
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x408a55
mov eax, esi
mov edx, 0x40a1c8
mov ecx, 0x40
call fcn.0040270c
je 0x408a5a
call fcn.004089cc
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x408a79
cmp edi, eax
jne 0x408a79
cmp dword [ebx], 0xcc
je 0x408a7e
call fcn.004089cc
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.004075ec
cmp eax, dword [ebx + 0xc]
jne 0x408aa5
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x408aaa
call fcn.004089cc
mov bl, 0xcc
mov esi, 0x40b95c
cmp ebp, dword [esp]
jb 0x408abb
call fcn.004089cc
mov eax, ebp
call fcn.00404cd0
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.00403278
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x408ab1
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408c98
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x408d84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406b50
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x408d9c
call fcn.00408b94
push 0
mov eax, dword [ebp - 4]
call fcn.004034b8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408d52
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x408cb8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040898c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c50
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407018
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.0040895c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40461c
call fcn.0040584c
call fcn.00402eb4
jmp 0x408cb8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d8b
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x408e64
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, eax
mov esi, edx
dec esi
test esi, esi
jl 0x408ec1
inc esi
xor ebx, ebx
cmp ebx, 1
jne 0x408e8a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_Sleep
jmp 0x408e98
cmp ebx, 1
jle 0x408e98
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.004034b8
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x408ec1
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x408ec1
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x408ec1
inc ebx
dec esi
jne 0x408e7a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x409280
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x409370
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409388
push esi
push 0x409394
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004034b8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409304
mov al, 0x62
call fcn.00408ecc
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40931b
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40930f
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40931b
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409377
lea eax, [ebp - 8]
call fcn.00403198
ret

Function at 0x409428
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4094dc
jmp 0x4094d1
cmp dword [esi + 0x10], 0x1000
jne 0x4094bd
test byte [esi + 0x15], 1
jne 0x4094bd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40947c
cmp eax, 2
je 0x40947c
cmp eax, 0x10
je 0x40947c
cmp eax, 0x20
jne 0x409491
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409491
mov bl, 1
xor ebp, ebp
jmp 0x4094a2
mov eax, dword [esi]
add eax, ebp
call fcn.00409420
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409495
test bl, bl
je 0x4094bd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4094dc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409454
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5f02c6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f02e1
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b5506]
pop edx
test eax, eax
je 0x5f03b3
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f03a2
test dword [ebp - 0x2a8], 1
jne 0x5f03a2
and dword [ebp - 0x2a8], 0x100
jne 0x5f03a2
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2aa3]
pop edx
pop esi
test eax, eax
je 0x5f0345
jmp 0x5f03a2
cmp word [esi], 0x5a4d
jne 0x5f03a2
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f03a2
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b77]
pop edx
test eax, eax
je 0x5f03a2
lea eax, [ebp - 0x28c]
push eax
call fcn.005f0222
test eax, eax
jne 0x5f039b
jmp 0x5f03a2
mov eax, esi
jmp 0x5f03b3
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f02e1
pop esi
leave
ret 4
Function at 0x408942
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
dec edi
call fcn.00408968
xor dword [ebx], esi
sub edi, 0x257c40cd
inc ebx
or edi, edi
cmp ebx, edx
jne fcn.00408942
and edi, edi
or edi, ecx
ret
Function at 0x401530
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], str.Usage:_n_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 4], str.__s_FILENAME___with_no_options._n_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 0
call sym._exit
mov esi, esi
lea edi, [edi]

Function at 0x401aa0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401bf3
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401bec
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401b20
mov dword [esp], eax
mov esi, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401c30
mov esi, dword [0x4053a4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c10
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401be5
sub eax, 4
and eax, 0xfffffffb
je 0x401be5
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401bfa
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x401b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
Function at 0x402070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020c5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020be
test esi, esi
je 0x4020be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020a0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
pushal
mov ecx, 0x412
mov esi, section..data
mov edi, 0x4042d4
cld
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, 0x48
test ecx, ecx
je 0x4010b0
cmp ecx, 0x38
jb 0x401030
mov ecx, 0x38
mov edx, 0x48
mov esi, dword [ebp + 8]
sub edx, ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov esi, 0x40531c
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x48
mov eax, dword [ecx + 0x405318]
mov edx, eax
rol edx, 8
and edx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, edx
xor dword [ecx + 0x4042d0], eax
sub ecx, 4
jne 0x40104a
xor eax, eax
mov edi, 0x4042d4
mov dword [0x40531c], eax
mov dword [0x405320], eax
mov ecx, 9
push 0x40531c
jmp 0x40108e
push eax
push edi
call fcn.004010b5
mov eax, edi
add edi, 8
dec ecx
jne 0x40108d
mov ecx, 0x200
push eax
push edi
call fcn.004010b5
mov eax, edi
add edi, 8
dec ecx
jne 0x4010a1
popal
leave
ret 8

Function at 0x4010b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [edi + 4]
xor ebx, ebx
xor ecx, ecx
xor edi, edi
xor eax, dword [edi*4 + 0x4042d4]
rol eax, 0x10
mov cl, al
mov bl, ah
mov esi, dword [ecx*4 + 0x40471c]
rol eax, 0x10
add esi, dword [ebx*4 + 0x40431c]
mov cl, ah
mov bl, al
xor esi, dword [ecx*4 + 0x404b1c]
add esi, dword [ebx*4 + 0x404f1c]
xor edx, esi
inc edi
xchg edx, eax
cmp edi, 0x10
jne 0x4010c7
mov esi, dword [ebp + 8]
xor eax, dword [0x404314]
xor edx, dword [0x404318]
mov dword [esi + 4], eax
mov dword [esi], edx
popal
leave
ret 8
Function at 0x47a49c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x47a518
test esi, esi
je 0x47a4c9
cmp word [esi], 0
jne 0x47a518
mov eax, dword [0x550480]
cmp dword [eax], 2
je 0x47a518
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x47a506
cmp edi, 0xea
jne 0x47a518
test edi, edi
jne 0x47a515
cmp word [esp], 0
jne 0x47a515
mov bl, 1
jmp 0x47a518
inc esi
jmp 0x47a4d7
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47a584
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x47a598
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x5560d0], 0
jne 0x47a5bb
push 0x47a5e0
push 0x47a600
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409820
mov dword [0x5560d0], eax
cmp dword [0x5560d0], 0
je 0x47a5d5
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x5560d0]
jmp 0x47a5da
mov eax, 0x7f
pop esi
pop ebx
ret