joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008cb0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10023960
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10009b20
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.10009b20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x100325b8]
test eax, eax
je 0x10008d68
cmp ebp, eax
jne 0x10008d68
mov eax, dword [0x100325bc]
test eax, eax
je 0x10008d68
cmp ebx, eax
jb 0x10008d68
add eax, 0x493e0
cmp eax, ebx
jb 0x10008d68
mov ebp, dword [0x100325c0]
push 1
inc ebp
push 0x100324d8
lea ecx, [esp + 0x18]
mov dword [0x100325c0], ebp
call fcn.10001120
push 0x10032508
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10009d00
push 0x100324f8
mov ecx, edi
call fcn.10009d00
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x10008dde
push edi
push esi
mov dword [0x100325c0], 0
call fcn.10008e00
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x100324d8
call fcn.10001120
push 0xffffffffffffffff
push 0
mov ecx, 0x10032508
mov dword [esp + 0x38], 1
mov dword [0x100325b8], ebp
mov dword [0x100325bc], ebx
call fcn.10009b20
push esi
mov ecx, 0x10032508
call fcn.10009d00
push 0xffffffffffffffff
push 0
mov ecx, 0x100324f8
call fcn.10009b20
push edi
mov ecx, 0x100324f8
call fcn.10009d00
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.10001150
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10008e00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10023986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.10009b20
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.10009b20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x10008f39
mov edx, dword [0x10031078]
mov cx, word [0x1003107c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.100091d0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10009f30
mov edx, dword [0x10029b8c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.10009620
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10009f30
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10009430
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10009430
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x10008e5b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x100099d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10009a20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10009a20
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10009a25
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10009a0b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10009a32
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1000a5d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1000a611
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1000a613
mov esi, edi
test esi, esi
je 0x1000a688
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1000a67d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1000a67d
cmp dword [esp + 0x1c], eax
jbe 0x1000a64e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1000a67d
cmp esi, edi
je 0x1000a66f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x1000a688
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x1000a6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x1000a6ff
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1000a6ff
cmp dword [esp + 0xc], 3
jne 0x1000a6ff
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x1000a6ff
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1000a6ff
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x1000a710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100239af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x10029b8c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1000a77b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1000a77d
mov esi, edi
test esi, esi
je 0x1000a847
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a83c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1000a7bf
cmp eax, 2
je 0x1000a7bf
cmp eax, 6
je 0x1000a7bf
cmp eax, 7
jne 0x1000a83c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1000c04a
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x1000a822
lea ecx, [esp + 0x14]
call fcn.10009620
cmp esi, dword [esp + 0x14]
je 0x1000a817
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1000c040
add esp, 4
jmp 0x1000a859
call fcn.1000c040
add esp, 4
lea ecx, [esp + 0x10]
push 0x10031854
call fcn.10009620
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1000a847
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1000a859
push eax
lea ecx, [esp + 0x14]
call fcn.10009620
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10008f70
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10009430
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x1000b1f0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
test esi, esi
je 0x1000b2a5
push edi
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000b207
sub edi, ecx
sar edi, 1
je 0x1000b2a4
add edi, 4
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c3bb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000b2a3
lea ecx, [edi + edi]
push ecx
push 0
push ebx
call fcn.1000e420
mov ecx, ebx
add esp, 0xc
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1000b254
xorps xmm0, xmm0
mov word [ebp - 4], ax
movups xmmword [ebp - 0x1c], xmm0
mov eax, 0x614
mov dword [ebp - 0x20], 0
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 2
push ebx
call fcn.1000c3ad
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b380
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1002e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
call fcn.1000af20
test eax, eax
je 0x1000b448
push esi
push 0x60
call fcn.1000c04a
add esp, 4
mov esi, eax
mov ecx, esi
call fcn.10001180
lea ecx, [esi + 0x28]
mov dword [esi], vtable.CThreadEx_class_CCloseInstallDriverWindows_.0
call fcn.10001080
lea eax, [ebp - 0x21c]
mov dword [esi + 0x54], 0x1000ab40
mov dword [esi + 0x48], eax
mov ecx, esi
mov dword [esi + 0x4c], 0x3e8
mov dword [esi + 0x50], 1
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x18], 0xa
call fcn.10001350
mov dword [ebp - 0x210], edi
call fcn.100024c0
test eax, eax
je 0x1000b41a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov ecx, ebx
call fcn.1000b4a0
test eax, eax
je 0x1000b43f
call fcn.100024c0
test eax, eax
je 0x1000b43a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov edi, 1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1000e420
push 0x1002b370
lea eax, [ebp - 0x20c]
push str._s
push eax
call fcn.1000a950
add esp, 0x18
lea ecx, [ebp - 0x20c]
call fcn.1000b1f0
push 0x1002b370
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.1000c02f
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b9d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
push 0
push 0
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x1000ba17
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.TNFCAP
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1000ba3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
jmp 0x1000ba9c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1000ba65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1000ba93
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x1000ba93
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x1000ba90
cmp dword [ebp - 0x1c], 4
je 0x1000ba90
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x1000ba76
mov ebx, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
Function at 0x1000bac0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xf003f
push 0
push 0
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1000bb03
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.TNFCAP
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1000bb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
jmp 0x1000bb95
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
cmp dword [ebp - 0x1c], ebx
je 0x1000bb8b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000bb59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x1000bb8b
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
je 0x1000bb8b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x1c], 1
je 0x1000bb86
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x1000bb70
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
pop edi
push dword [ebp - 0x24]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
Function at 0x1000bef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1002e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x418], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], ecx
push esi
push edi
test ebx, ebx
je 0x1000bfda
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.1000fc49
add esp, 0x14
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x216], ax
test ax, ax
jne 0x1000bf40
lea edx, [ebp - 0x414]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000bf60
lea edi, [ebp - 0x214]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1000bf76
mov ecx, edx
lea eax, [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0
push 0
push 1
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [0x100325e8]
test eax, eax
jne 0x1000bfda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x214]
push ecx
push ebx
push str.SetupCopyOEMInfW_fail__lpszInfFullPath__s__DirWithDrive__s__Error__d__n
call fcn.1000a8f0
add esp, 0x10
test eax, eax
jle 0x1000bfd8
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x1000c01e
push dword [ebp - 0x418]
mov edi, dword [ebp - 0x41c]
mov edx, edi
mov ebx, dword [ebp - 0x420]
mov ecx, ebx
call fcn.1000bd60
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c015
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c02f
mov esp, ebp
pop ebp
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b090]
jne 0x401abf
repz ret
jmp fcn.00402998

Function at 0x4092ae
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.00407679
and dword [ebp - 4], 0
cmp dword [0x440e74], 0
mov ebx, eax
jne 0x40935f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409410
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409410
push eax
call fcn.00407607
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x440e74], eax
call esi
push eax
call fcn.00407607
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x440e78], eax
call esi
push eax
call fcn.00407607
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x440e7c], eax
call esi
push eax
call fcn.00407607
pop ecx
mov dword [0x440e84], eax
test eax, eax
je 0x40935f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407607
pop ecx
mov dword [0x440e80], eax
mov eax, dword [0x440e80]
cmp eax, ebx
je 0x4093b7
cmp dword [0x440e84], ebx
je 0x4093b7
push eax
call fcn.00407682
push dword [0x440e84]
mov esi, eax
call fcn.00407682
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4093b7
test edi, edi
je 0x4093b7
call esi
test eax, eax
je 0x4093ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4093ae
test byte [ebp - 0xc], 1
jne 0x4093b7
or dword [ebp + 0x10], 0x200000
jmp 0x4093f0
mov eax, dword [0x440e78]
cmp eax, ebx
je 0x4093f0
push eax
call fcn.00407682
pop ecx
test eax, eax
je 0x4093f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4093f0
mov eax, dword [0x440e7c]
cmp eax, ebx
je 0x4093f0
push eax
call fcn.00407682
pop ecx
test eax, eax
je 0x4093f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440e74]
call fcn.00407682
pop ecx
test eax, eax
je 0x409410
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409412
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d7ab
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bb7524], 0x930
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
jne 0x40d7d5
push str.hixijagijunajidomirupejixaxudolimilacofodik
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bb7524], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bb7240], eax
jne 0x40d809
push str.pasesibuhapijibitemamobumofaceco_bamenolunalazoxeduceh_zijetezudihedavacagobowavawe
push 0
call esi
lea eax, [ebp - 0x1c]
push eax
push str.gijuluzibuxomavifakulaxofaxutirerijasocazitixewecetanazisofosufexejacikicoyaxahowuburokujasulununucexikowuvulanavi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x504008], 0x8088405
inc edx
mov dword [ebx + 0x504008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x504024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
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 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x504024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x504024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x508054], 0
je 0x405055
cmp word [0x508330], 0xd7b2
jne 0x40501d
cmp dword [0x508338], 0
jbe 0x40501d
mov eax, 0x50832c
call dword [0x508348]
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x504030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
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 [0x504034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x504034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x508055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
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 0x406f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406640
add esp, 0x41c
pop esi
pop ebx
ret