joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ed0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ebf
cmp dword [ebp + 0x14], 1
je 0x405ec1
cmp dword [ebp + 0x14], 2
je 0x405ec1
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40627f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062a4
mov eax, dword [0x40a8b8]
cmp eax, 0xffffffff
je 0x40629b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8b8], 0xffffffff
jmp 0x406318
cmp dword [0x446680], ebx
je 0x406318
cmp byte [0x446280], bl
je 0x4062e3
cmp dword [0x40a8b8], 0xffffffff
jne 0x4062ec
push 4
push 0x40000000
push 0x446280
call fcn.00405c3d
cmp eax, 0xffffffff
mov dword [0x40a8b8], eax
je 0x406318
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8b8], 0xffffffff
je 0x406318
push esi
mov esi, 0x44a6c0
push 0x40aa8c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f8a
push eax
push esi
push dword [0x40a8b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406377
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x444cdc], esi
push edi
jne 0x4063b1
mov ecx, 0x444cd8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40638d
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x4450d8
jl 0x406388
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4063e6
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x444cd8]
xor eax, esi
inc ecx
dec edx
jne 0x4063c9
pop edi
pop esi
not eax
ret 0xc
Function at 0x402afe
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x80000005
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x402b1c
mov eax, 0x428208
push eax
push 1
mov ebx, 0x194
call fcn.00425280
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402b75
push 0x20
push 0x40100e8
push 6
call fcn.004234de
add esp, 0xc
push 0x80000005
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x402b8a
mov eax, 0x428208
push eax
push 1
mov ebx, 0x194
call fcn.00425280
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x402bbe
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402beb
push 0x86
push 0x40100e8
push 6
call fcn.004234de
add esp, 0xc
jmp 0x402bf0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404b4e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x404b9c
push 0
push 0x40100ea
push 6
call fcn.004234de
add esp, 0xc
push 0x80000101
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x404bd9
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404c06
push 0x6e
push 0x40100ea
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404c19
push ebx
call fcn.004234ea
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x404c21
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4218bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x42190a
push 0
push 0x40100eb
push 6
call fcn.004234de
add esp, 0xc
push 0x80000301
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x421947
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x421974
push 0x6e
push 0x40100eb
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x421987
push ebx
call fcn.004234ea
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x42198f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421995
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4219e3
push 0
push 0x40108ce
push 6
call fcn.004234de
add esp, 0xc
push 0x80000501
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x421a20
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x421a4d
push 0x6e
push 0x40108ce
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x421a60
push ebx
call fcn.004234ea
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x421a68
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423ad0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x423b39
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00423780
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x423de0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x423e72
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x423e64
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x423e5c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x423e25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x423e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x423ec1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x423ec1.2
jmp dword [eax*4 + 0x423f4c]
mov word [esp + 0x48], di
jmp 0x423efa
mov word [esp + 0x48], 2
jmp 0x423efa
mov word [esp + 0x48], 3
jmp 0x423efa
mov word [esp + 0x48], 4
jmp 0x423efa
mov word [esp + 0x48], 7
jmp 0x423efa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x423f44
cmp dword [esp + 0x70], edi
je 0x423f30
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push 0x40d040
call fcn.0040573e
add esp, 4
test eax, eax
jne 0x401252
push str.TEMP
call fcn.0040573e
add esp, 4
test eax, eax
jne 0x401252
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004055f7
mov ecx, dword [esp + 0x120]
push 0
push 0
lea eax, [esp + 0x1c]
push 0x40d030
push eax
push ecx
call fcn.00405566
add esp, 0x28
add esp, 0x108
ret
mov edx, dword [esp + 0x10c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x108
ret

Function at 0x4013c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov edi, dword [esp + 0x258]
lea eax, [esp + 0x10]
push edi
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str..
push ecx
call esi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4014d2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x144]
push 0x40d088
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4014ab
lea edx, [esp + 0x144]
push 0x40d084
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4014ab
mov al, byte [esp + 0x118]
push edi
test al, 0x10
je 0x401482
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push 0x40d080
push ecx
call esi
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004013c0
add esp, 4
jmp 0x4014ab
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x14]
push 0x40d080
push eax
call esi
lea ecx, [esp + 0x144]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
lea eax, [esp + 0x14]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401417
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
add esp, 0x248
ret
Function at 0x401540
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x44c
lea eax, [esp]
push eax
call fcn.004011e0
add esp, 4
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax - 1], 0x5c
je 0x401575
lea edx, [esp]
push 0x40d080
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x354]
push str._svis
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x10c]
lea eax, [esp + 0x350]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401619
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x401602
lea ecx, [esp + 0x13c]
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x258]
push str._s_s
push eax
call edi
lea ecx, [esp + 0x260]
push ecx
call fcn.004014f0
add esp, 0x14
test eax, eax
je 0x401602
lea edx, [esp + 0x250]
push edx
call fcn.004013c0
add esp, 4
lea eax, [esp + 0x110]
push eax
push esi
call ebp
test eax, eax
jne 0x4015b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
add esp, 0x44c
ret

Function at 0x401650
Capabilities:
Delete directory

Disassembly:
push 0x40dde4
call fcn.00401100
add esp, 4
test eax, eax
je 0x40166e
push 0x40dde4
call fcn.004013c0
add esp, 4
push 0x40deec
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x401688
push 0x40deec
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
ret
Function at 0x401690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x270
mov eax, 1
push 0
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 2
push eax
call fcn.00401d40
add esp, 8
test ax, ax
je 0x4016c8
xor eax, eax
add esp, 0x270
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x280]
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x12]
push 2
push ecx
push esi
call edi
cmp word [esp + 0x12], 0
mov dword [esp + 0x1c], 0
jle 0x401888
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x18]
push 1
push edx
push esi
call edi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x180]
and eax, 0xff
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
and edx, 0xff
push 2
push eax
push esi
mov byte [esp + edx + 0x18c], 0
call edi
lea ecx, [esp + 0x28]
push 2
push ecx
push esi
call edi
lea edx, [esp + 0x70]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x6c]
push 4
push eax
push esi
call edi
lea ecx, [esp + 0x7c]
push 0x40dde4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x7c]
push 0x40d080
push edx
call ebx
lea eax, [esp + 0x180]
lea ecx, [esp + 0x7c]
push eax
push ecx
call ebx
lea edx, [esp + 0x24]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401880
mov ecx, dword [esp + 0x24]
xor eax, eax
lea edx, [esp + 0x2c]
push eax
push edx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov word [esp + 0x48], si
mov word [esp + 0x4a], bp
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x10000
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.00401d40
add esp, 8
test ax, ax
jne 0x40186f
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.00401000
mov ebp, dword [esp + 0x34]
add esp, 0x18
test ebp, ebp
jne 0x40185b
lea ecx, [esp + 0x7c]
push ecx
push 0x40dff0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx edx, word [esp + 0x12]
inc ebp
cmp ebp, edx
mov dword [esp + 0x1c], ebp
jl 0x4016fd
jmp 0x401888
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x401888
mov dword [esp + 0x14], 0
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x34], 4
call fcn.00401d40
add esp, 8
test ax, ax
pop edi
pop esi
pop ebp
pop ebx
je 0x4018b0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
add esp, 0x270
ret
Function at 0x401990
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
call fcn.00401950
test eax, eax
je 0x4019fa
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401a09
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401a09
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push esi
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401a09
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x4032d0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov word [0x40e404], dx
mov dword [0x40e3fc], edx
mov dword [0x40e4b8], edx
movsx eax, dx
inc dx
mov ecx, dword [0x40e540]
movzx ax, byte [eax + ecx]
mov cx, word [0x40e404]
shl cx, 5
xor ax, cx
and ax, 0x7fff
mov word [0x40e404], ax
cmp dx, 2
jl 0x4032e5
jmp fcn.004046c0
Function at 0x407e41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d708
cmp edx, dword [eax]
je 0x407e63
add eax, 8
inc ecx
cmp eax, 0x40d798
jl 0x407e54
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d708]
jne 0x407f91
mov eax, dword [0x40e120]
cmp eax, 1
je 0x407f6b
test eax, eax
jne 0x407e94
cmp dword [0x40d3d4], 1
je 0x407f6b
cmp edx, 0xfc
je 0x407f91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407ecb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004098d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406810
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407f0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406810
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c4ac
push edi
call fcn.00408410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004098d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004098e0
lea eax, [ebp - 0xa0]
push 0x40c48c
push eax
call fcn.004098e0
push dword [esi + 0x40d70c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004098e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040aa84
add esp, 0x2c
pop edi
jmp 0x407f91
lea eax, [ebp + 8]
lea esi, [esi + 0x40d70c]
push 0
push eax
push dword [esi]
call fcn.00406810
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 0x432feb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], ecx
xor ebx, ebx
push 0x428
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00432ec8
mov esi, eax
cmp esi, ebx
jne 0x432f9a
lea ecx, [ebp - 4]
call fcn.00403aa6
xor eax, eax
pop esi
pop ebx
leave
ret 0x18
push edi
push 0x28
pop edi
push edi
push ebx
push esi
call fcn.004f6b30
mov eax, dword [ebp + 8]
or dword [ebp + 0x14], 0xffffff89
inc esi
add al, 0x8b
inc ebp
or al, 0x89
inc esi
or byte [ebx], dh
rol byte [eax + 0x76], 0x89
inc esi
or al, 0x8b
lds edx, [eax]
add esp, 0xc
cmp eax, 8
mov dword [esi], edi
mov word [esi + 0xe], ax
mov dword [esi + 0x10], ecx
jg 0x432fe4
push 0x400
add byte [eax], al
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.004f6b30
add esp, 0xc
jmp 0x432ffc
cmp ecx, 3
jne 0x432ffc
push 0xc
push dword [ebp + 0x18]
lea eax, [esi + 0x28]
push 0xc
push eax
call fcn.00402d8b
add esp, 0x10
mov edi, dword [ebp - 8]
push ebx
push ebx
lea eax, [edi + 8]
push eax
push ebx
push esi
push ebx
call dword [0x51f094]
jnp 0x432fd3
jne 0x433022
lea ecx, [ebp - 4]
call fcn.00403aa6
mov eax, ebx
pop edi
jmp 0x432f94
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
setge cl
inc ecx
push ecx
push eax
mov ecx, edi
call fcn.00432f4f
test byte [ebp + 0x1c], 1
je 0x43303e
mov byte [edi + 0x1d], 1
xor ebx, ebx
inc ebx
jmp 0x433012
Function at 0x4939c1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.CEnumFormatEtc.0
cmp dword [esi + 0x24], ebx
jne 0x4939c0
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x30], ebx
jbe 0x4939c0
push edi
lea edi, [eax + 4]
push dword [edi]
call dword [0x51e8ac]
inc ebx
add edi, 0x14
cmp ebx, dword [esi + 0x30]
jb 0x4939ae
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.004e4a35
Function at 0x401910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
mov esi, eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00433f80
add esp, 0xc
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x54], 0x44
jb 0x40193b
mov esi, dword [esi + 4]
jmp 0x40193e
add esi, 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
mov esp, ebp
pop ebp
ret