joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401048
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax - 1]
cmp ecx, 0x100
mov dword [ebp - 8], eax
ja 0x4011c9
cmp byte [eax + edi - 1], 0x5c
je 0x40107f
mov byte [eax + edi], 0x5c
inc eax
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [eax + edi]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40111c
test byte [ebp - 0x148], 0x10
je 0x4010ff
push 0x405114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
push 0x405118
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401048
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4010a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4011a9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x148], 0x10
jne 0x40118c
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call ebx
test eax, eax
jne 0x401175
cmp dword [ebp + 8], eax
jne 0x401175
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
je 0x40118c
cmp eax, ecx
jne 0x40118c
cmp dword [ebp + 0xc], ecx
je 0x40118c
push 4
push ecx
push edi
call dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40113b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov byte [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011c9
cmp dword [ebp + 0x14], eax
je 0x4011c9
cmp dword [ebp + 0xc], eax
je 0x4011c9
push 4
push eax
push edi
call dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011ce
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push str.MoveFileExA
push 0x405128
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ebx, eax
call esi
test eax, eax
jne 0x401212
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
jne 0x401212
test ebx, ebx
je 0x401212
push 4
push eax
push edi
call ebx
pop esi
pop ebx
ret
Function at 0x401396
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x405138
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4013d0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
mov ebx, 0x100
and eax, ebx
mov edi, 0x20019
or eax, edi
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call esi
test eax, eax
jne 0x40147b
push 0x3ff
push eax
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x413]
push eax
mov dword [ebp - 0x14], 7
call fcn.00403610
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x40147b
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push dword [ebp - 0xc]
call fcn.00401215
test eax, eax
pop ecx
pop ecx
je 0x40147b
xor eax, eax
inc eax
jmp 0x4014fd
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, ebx
or eax, edi
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x4014bf
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401257
test eax, eax
pop ecx
pop ecx
push dword [ebp - 4]
je 0x4014b9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401473
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, ebx
or eax, edi
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4014fb
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401257
test eax, eax
pop ecx
pop ecx
push dword [ebp - 4]
jne 0x4014b1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40162b
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x110
cmp dword [esi], 2
push ebp
push edi
jge 0x401710
mov ebp, 0x104
cmp dword [esi], 0
mov eax, dword [esp + 0x11c]
mov byte [ebx], 0
mov byte [eax], 0
jne 0x401679
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40166f
push eax
mov edi, ebx
call fcn.004015b8
test eax, eax
pop ecx
jne 0x401685
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401681
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4016fc
cmp eax, 0x103
ja 0x4016fc
push dword [esp + 0x11c]
mov eax, ebx
call fcn.00401502
test eax, eax
pop ecx
jne 0x4016a4
push 2
pop eax
jmp 0x4016ff
push dword [esp + 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
test eax, eax
jne 0x40170c
push ebx
call edi
push str.MoveFileExA
push 0x405128
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push dword [esp + 0x120]
mov edi, eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
lea eax, [esp + 0x14]
push eax
push 1
push 0
call fcn.00401048
add esp, 0x10
push 3
jmp 0x4016a1
xor eax, eax
inc eax
inc dword [esi]
cmp dword [esi], 2
jl 0x401641
jmp 0x401714
xor eax, eax
jmp 0x401714
mov eax, dword [esp + 0xc]
pop edi
pop ebp
add esp, 0x110
ret
Function at 0xcd2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cd21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcd207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd206a
add dl, dl
jne 0xcd2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd20dc
xor eax, eax
add dl, dl
jne 0xcd2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd217d
add dl, dl
jne 0xcd20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcd20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcd2075
mov eax, 1
add dl, dl
jne 0xcd20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd20e1
sub eax, ebx
mov ebx, 1
jne 0xcd2128
mov ecx, 1
add dl, dl
jne 0xcd210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcd213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd2136
cmp eax, 0x7d00
jae 0xcd216d
cmp eax, 0x500
jb 0xcd2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
cmp eax, 0x7f
ja 0xcd2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcd219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcd2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1b01f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b023190
cmp edx, dword [eax]
je 0x1b01f78b
add eax, 8
inc ecx
cmp eax, 0x1b023220
jl 0x1b01f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b023190]
jne 0x1b01f8b9
mov eax, dword [0x1b023bb0]
cmp eax, 1
je 0x1b01f893
test eax, eax
jne 0x1b01f7bc
cmp dword [0x1b0230e4], 1
je 0x1b01f893
cmp edx, 0xfc
je 0x1b01f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b01f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b020670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b020490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b01f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b020490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b02245c
push edi
call fcn.1b020f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b020670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b020680
lea eax, [ebp - 0xa0]
push 0x1b02243c
push eax
call fcn.1b020680
push dword [esi + 0x1b023194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b020680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b020e75
add esp, 0x2c
pop edi
jmp 0x1b01f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b023194]
push 0
push eax
push dword [esi]
call fcn.1b020490
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 0x68e942
Capabilities:
Encode data using xor

Disassembly:
jno 0x68e94b
or esp, dword [ecx]
invalid
jp 0x68e9bb
iretd
mov al, 0x36
mov ah, 0xf5
xor byte [0x1961f814], dh
xor al, 0x51
enter 0x54b5, 0x65
inc esp
and byte [ebp + eax*2 - 0x3c], dh
mov esp, 0xc9c4b511
mul byte [ebx - 0x26]
mov bh, byte [eax + 0x4354a6b9]
invalid

Function at 0x401c2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401670
xor eax, eax
push ebp
push 0x401cc8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x401ce0
call fcn.0040150c
mov eax, dword [ebp - 4]
call fcn.004015a0
mov esi, eax
test esi, esi
jle 0x401c9f
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004016c0
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
lea eax, [ebp - 0xc]
mov edx, 0x401cf0
call fcn.0040150c
inc ebx
dec esi
jne 0x401c78
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004014c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ccf
lea eax, [ebp - 0xc]
call fcn.00401474
lea eax, [ebp - 4]
call fcn.00401474
ret
Function at 0x401000
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push 0x40ca80
call fcn.00401490
add esp, 8
push 0x40b020
push 0x40ca80
call fcn.00401883
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x40103e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
je 0x4010da
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x401057
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x401118]
push str.test
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401590
add esp, 8
test eax, eax
jne 0x40107f
mov dword [0x40bde4], 1
jmp 0x401090
mov edx, dword [ebp - 4]
push edx
call fcn.00401948
add esp, 4
mov dword [0x40bde8], eax
jmp case.default.0x401057
mov eax, dword [ebp - 4]
push eax
call fcn.00401948
add esp, 4
mov dword [section..data], eax
jmp case.default.0x401057
mov ecx, dword [ebp - 4]
mov dword [str.Microsoft], ecx
mov dword [str.Edge], 0
jmp case.default.0x401057
mov edx, dword [ebp - 4]
mov dword [str.Edge], edx
push 0x40b02c
push 0
call fcn.00401883
add esp, 8
mov dword [ebp - 4], eax
jmp 0x401035
cmp dword [0x40bde8], 0
je 0x4010f5
mov eax, dword [0x40bde8]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x401130
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x40bde0], 0
je 0x401110
call fcn.004011e0
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4011e0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x40b030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
cmp dword [0x40bde0], 0
je 0x4013eb
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [0x40bde0]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x4013eb
mov eax, dword [ebp - 0xa0]
add eax, dword [ebp - 0x98]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xac], eax
mov edx, dword [section..data]
mov dword [ebp - 0xa8], edx
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [0x40bde0]
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0x8c
push 0
lea edx, [ebp - 0x90]
push edx
call fcn.00401400
add esp, 0xc
mov eax, 0x1c
imul eax, eax, 0
mov dword [ebp + eax - 0x90], 0
mov esi, dword [ebp - 0xac]
shl esi, 0x10
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov edx, 0x1c
imul edx, edx, 0
mov dword [ebp + edx - 0x8c], eax
mov esi, dword [ebp - 0xa8]
shl esi, 0x10
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov edx, 0x1c
imul edx, edx, 0
mov dword [ebp + edx - 0x88], eax
mov eax, 0x1c
imul eax, eax, 0
mov dword [ebp + eax - 0x80], 0x8001
mov ecx, 0x1c
shl ecx, 0
mov dword [ebp + ecx - 0x90], 0
mov edx, 0x1c
shl edx, 0
mov dword [ebp + edx - 0x80], 2
mov eax, 0x1c
shl eax, 1
mov dword [ebp + eax - 0x90], 0
mov ecx, 0x1c
shl ecx, 1
mov dword [ebp + ecx - 0x80], 4
mov edx, 0x1c
imul edx, edx, 3
mov dword [ebp + edx - 0x90], 1
mov eax, 0x1c
imul eax, eax, 3
mov ecx, 0x7a
mov word [ebp + eax - 0x8c], cx
push 0
push 0x7a
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, 0x1c
imul edx, edx, 3
mov word [ebp + edx - 0x8a], ax
mov eax, 0x1c
shl eax, 2
mov dword [ebp + eax - 0x90], 1
mov ecx, 0x1c
shl ecx, 2
mov edx, 0x7a
mov word [ebp + ecx - 0x8c], dx
push 0
push 0x7a
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, 0x1c
shl ecx, 2
mov word [ebp + ecx - 0x8a], ax
mov edx, 0x1c
shl edx, 2
mov dword [ebp + edx - 0x88], 2
cmp dword [0x40bde4], 0
je 0x4013cb
mov dword [ebp - 0xa4], 3
jmp 0x4013d5
mov dword [ebp - 0xa4], 5
push 0x1c
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.USER32.dll_SendInput]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401965
mov esp, ebp
pop ebp
ret
Function at 0x40502a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004034ea
mov dword [ebp - 0x14], eax
cmp dword [0x40ca44], edi
jne 0x40511b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4050a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4051fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4051fb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4051fb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40ca44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40ca48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40ca4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40ca54], eax
test eax, eax
je 0x405118
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40ca50], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405140
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405133
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x405155
push 4
pop eax
jmp 0x4051fd
cmp dword [ebp - 0x14], edi
je 0x405155
push dword [0x40ca44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40513a
mov eax, dword [0x40ca50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4051b3
cmp dword [0x40ca54], esi
je 0x4051b3
push eax
call ebx
push dword [0x40ca54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4051b3
test eax, eax
je 0x4051b3
call ecx
test eax, eax
je 0x4051a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4051a8
test byte [ebp - 8], 1
jne 0x4051b3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4051e3
mov eax, dword [0x40ca48]
cmp eax, esi
je 0x4051e0
push eax
call ebx
test eax, eax
je 0x4051e0
call eax
mov edi, eax
test edi, edi
je 0x4051e0
mov eax, dword [0x40ca4c]
cmp eax, esi
je 0x4051e0
push eax
call ebx
test eax, eax
je 0x4051e0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40ca44]
call ebx
test eax, eax
je 0x4051fb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4051fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401965
leave
ret
Function at 0x403464
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004061c0
test esi, esi
jne 0x40349c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004062fc
jmp 0x4034ba
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403348
mov edi, eax
test esi, esi
je 0x4034ba
cmp dword [ebx], 0
je 0x4034ba
dec esi
jmp 0x4034a3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x521020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x404028
xor eax, eax
push ebp
push 0x404021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x521020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x521020], ax
mov esp, ebp
pop ebp
ret

Function at 0x405284
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52b04c], 0
je 0x4052e5
cmp word [0x52b328], 0xd7b2
jne 0x4052ad
cmp dword [0x52b330], 0
jbe 0x4052ad
mov eax, 0x52b324
call dword [0x52b340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405310
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52102c], 0
jne 0x405301
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405484
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x521034], 0
je 0x4054aa
mov edx, esi
mov eax, ebx
call dword [0x521034]
jmp 0x4054b9
mov eax, 8
call fcn.00403060
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40544c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408650
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40c3c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40c468
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.00405d5c
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00405c34
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40c3f2
cmp byte [esp], 0
je 0x40c437
mov eax, edi
call fcn.00405c34
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40c474
mov eax, edi
call fcn.00405c34
push eax
mov eax, edi
call fcn.00405c34
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403248
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.00405d5c
jmp 0x40c474
mov eax, edi
mov edx, 0x40c488
call fcn.00405554
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c48c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40c52f
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040647c
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00406b38
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40c4b4
cmp byte [esp], 0
je 0x40c4fd
mov eax, edi
call fcn.00406b38
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40c53b
mov eax, edi
call fcn.00406b38
push eax
mov eax, edi
call fcn.00406b38
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.00403248
mov edx, ebx
mov eax, edi
call fcn.0040647c
jmp 0x40c53b
mov eax, edi
mov edx, 0x40c550
call fcn.004061c0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d6a8
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x521aa8], 0
jne 0x40d6e0
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40d6d7
movzx eax, word [esp]
mov word [0x521aa8], ax
jmp 0x40d6e0
mov word [0x521aa8], 0x2c
movzx eax, word [0x521aa8]
pop edx
ret