joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476e60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x48219c]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x476ec7
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
dec dword [ebp - 4]
jne 0x476e8d
cmp dword [ebp - 8], 0
je 0x476f17
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x476f02
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x476f11
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x4770c0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d00
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x4770ff
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x477114
mov eax, ebx
mov edx, 0x477124
call fcn.00404d5c
add esp, 0x10c
pop ebx
ret

Function at 0x477128
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d00
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x477167
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x47717c
mov eax, ebx
mov edx, 0x47718c
call fcn.00404d5c
add esp, 0x10c
pop ebx
ret
Function at 0x477ad4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x477add
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f10
mov eax, dword [ebp - 8]
call fcn.00404f10
xor eax, eax
push ebp
push 0x477c95
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
call fcn.00408fe0
test al, al
jne 0x477b51
mov eax, dword [ebp - 8]
call fcn.00408fe0
test al, al
je 0x477b48
push 0
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x477b51
mov byte [ebp - 0xd], 0
jmp 0x477c6d
mov dl, 1
mov eax, dword [0x412d98]
call fcn.00403b80
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x477c66
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x477bb4
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00476df8
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x477b8b
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, 0x477cb0
call fcn.0040506c
dec eax
je 0x477c3a
mov eax, dword [ebp - 8]
call fcn.00408fe0
test al, al
je 0x477c3a
push 0
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x477c3a
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00476df8
mov ecx, dword [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x477c11
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00404ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477c6d
mov eax, dword [ebp - 0x14]
call fcn.00403bb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477c9c
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret
Function at 0x477f5c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404d00
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x477f9b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x477fb0
mov eax, ebx
mov edx, 0x477fc0
call fcn.00404d5c
add esp, 0x10c
pop ebx
ret

Function at 0x4791e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push ecx
push esp
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x479218
mov eax, dword [esp]
call fcn.00479148
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x47ba14
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x47bb95
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov ecx, 0x47bbb0
mov edx, dword [0x488ce4]
call fcn.00404da8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004086b0
mov dl, 1
mov eax, dword [0x41f788]
call fcn.0041f888
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47bb59
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041f928
mov cl, 1
mov edx, 0x47bbc4
mov eax, dword [ebp - 0xc]
call fcn.0041f98c
lea ecx, [ebp - 0x14]
mov edx, 0x47bc04
mov eax, dword [ebp - 0xc]
call fcn.0041fd28
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.004086b0
mov edx, 0x47bc1c
mov eax, dword [ebp - 0xc]
call fcn.0041fec0
test al, al
je 0x47bad7
mov edx, 0x47bc1c
mov eax, dword [ebp - 0xc]
call fcn.0041fdb4
dec eax
je 0x47bae9
mov ecx, 1
mov edx, 0x47bc1c
mov eax, dword [ebp - 0xc]
call fcn.0041fda0
jmp 0x47bae9
mov ecx, 1
mov edx, 0x47bc1c
mov eax, dword [ebp - 0xc]
call fcn.0041fda0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040506c
test eax, eax
jne 0x47bb38
cmp dword [ebp - 4], 0
je 0x47bb28
push dword [ebp - 4]
push 0x47bc38
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404e24
mov ecx, dword [ebp - 0x18]
mov edx, 0x47bc04
mov eax, dword [ebp - 0xc]
call fcn.0041fcf8
jmp 0x47bb38
mov ecx, dword [ebp - 8]
mov edx, 0x47bc04
mov eax, dword [ebp - 0xc]
call fcn.0041fcf8
mov eax, dword [ebp - 0xc]
call fcn.0041f8f8
mov eax, dword [ebp - 0xc]
call fcn.00403bb0
call fcn.0047b860
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47bb6d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bb9c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret

Function at 0x47bc3c
Capabilities:
Copy file
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x47bced
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x47bcd2
push 0xf01ff
push 0x47bcfc
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x47bccc
push 0
lea eax, [ebp - 4]
call fcn.004770c0
lea eax, [ebp - 4]
mov edx, 0x47bd10
call fcn.00404d5c
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
lea eax, [ebp - 8]
call fcn.004770c0
lea eax, [ebp - 8]
mov edx, 0x47bd28
call fcn.00404d5c
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
push esi
call sub.advapi32.dll_DeleteService
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bcf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret
Function at 0x47bd3c
Capabilities:
Copy file
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x47bded
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x47bdd2
push 0xf01ff
push 0x47bdfc
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x47bdcc
push 0
lea eax, [ebp - 4]
call fcn.004770c0
lea eax, [ebp - 4]
mov edx, 0x47be14
call fcn.00404d5c
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
lea eax, [ebp - 8]
call fcn.004770c0
lea eax, [ebp - 8]
mov edx, 0x47be2c
call fcn.00404d5c
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
call sub.kernel32.dll_CopyFileA
push esi
call sub.advapi32.dll_DeleteService
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bdf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret

Function at 0x47be48
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 8]
call fcn.00404f10
xor eax, eax
push ebp
push 0x47bfca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 2
call fcn.004761c4
mov esi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.004761e4
mov edi, eax
jmp 0x47bf96
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d00
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040908c
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408628
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp + 8]
call fcn.00408628
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00404eb8
je 0x47bf69
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d00
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408628
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp + 8]
call fcn.00408628
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00404eb8
jne 0x47bf87
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.00476204
mov edi, eax
test edi, edi
jne 0x47bec4
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bfd1
lea eax, [ebp - 0x144]
mov edx, 7
call fcn.00404ab4
lea eax, [ebp + 8]
call fcn.00404a90
ret
Function at 0x47c4ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f10
xor eax, eax
push ebp
push 0x47c583
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.0040927c
lea eax, [ebp - 0x250]
xor ecx, ecx
mov edx, 0x44
call fcn.004034ec
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x224], 1
mov word [ebp - 0x220], 0
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x47c56d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x25c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c58a
lea eax, [ebp - 4]
call fcn.00404a90
ret

Function at 0x47c590
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 8]
call fcn.00402e60
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c5ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c5f6
mov eax, dword [ebp - 4]
call fcn.00402e7c
ret
Function at 0x10076163
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.1004b091
mov esi, dword [eax + 0x3c]
sete dh
add esi, eax
not dl
mov edx, dword [esi + 0x78]
bt si, 4
stc
push 0xc647c43
test edx, edx
pushal
lea esp, [esp + 0x24]
je 0x1004a0a6
movsx ecx, cl
rcl cx, 0xc
and ch, 0x89
rcr cx, 0xc
add edx, eax
lea ecx, [esp - 0x8d5b51e]
rcl cl, cl
bswap cx
xor cx, dx
mov ecx, dword [esi + 0x7c]
pushfd
cmp dl, 0x2e
jmp 0x1004a4f3
pushal
pushfd
lea esp, [esp + 0x30]
je 0x1004a0a6
xchg dx, si
jmp 0x100759a1

Function at 0x100771e5
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jb 0x100714b1
stc
test dh, 0xb9
call fcn.100780d2
test dh, 0x41
clc
add al, 0x1c
test ah, bh
xor al, 0x55
test edx, 0xfd1df321
bt ecx, esp
sub al, 0x44
mov byte [esp + 4], dh
push 0x63915b7d
neg al
pushfd
cmp dl, dh
clc
sub al, 0x9d
test bl, 0x82
lea esp, [esp + 0x38]
jb 0x1004a500
stc
bt dx, 0xf
cmp al, byte [edi]
movsx ax, cl
lea edi, [edi + 1]
push 0x9931f066
mov eax, dword [esp + 4]
mov word [esp], bp
mov byte [esp + 4], dh
lea esp, [esp + 8]
ja 0x1004a5d4
jmp 0x100761ed
Function at 0x40124d
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, esp
sub esp, 0x424
lea eax, str.open
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp + 0x14]
push eax
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x4012f3
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00401072
add esp, 8
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
cmp eax, 0
je 0x4012f3
mov eax, dword [ebp - 0x408]
inc dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
mov edx, ecx
add edx, eax
mov byte [edx], 0x20
mov ebx, ecx
add ebx, dword [ebp - 0x408]
mov esi, 0x3fc
sub esi, dword [ebp - 0x408]
push esi
push dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x418], ecx
call fcn.00402cf0
add esp, 0xc
mov byte [ebp - 8], 0
push dword [ebp + 0x18]
push dword [ebp - 0x418]
call sub.KERNEL32.dll_WinExec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401d48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
je 0x401d70
mov eax, 0
jmp 0x401dad
lea eax, [ebp - 4]
lea ecx, [ebp + 0x24]
push ecx
push dword [ebp + 0x20]
push eax
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp eax, 0
je 0x401d94
mov eax, 0
jmp 0x401dad
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
cmp eax, 0
je 0x401da8
mov eax, 0
jmp 0x401dad
mov eax, 1
mov esp, ebp
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409abd
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, esp
push dword [ebp + 0x14]
call fcn.00409b02
add esp, 4
mov esp, ebp
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a5dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e728
cmp edx, dword [eax]
je 0x40a5ff
add eax, 8
inc ecx
cmp eax, 0x41e7b8
jl 0x40a5f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e728]
jne 0x40a72d
mov eax, dword [0x41fa50]
cmp eax, 1
je 0x40a707
test eax, eax
jne 0x40a630
cmp dword [0x41e108], 1
je 0x40a707
cmp edx, 0xfc
je 0x40a72d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a667
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402b80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a6aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c6f4
push edi
call fcn.00402cf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402b80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b90
lea eax, [ebp - 0xa0]
push 0x41c6d4
push eax
call fcn.00402b90
push dword [esi + 0x41e72c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004106ea
add esp, 0x2c
pop edi
jmp 0x40a72d
lea eax, [ebp + 8]
lea esi, [esi + 0x41e72c]
push 0
push eax
push dword [esi]
call fcn.00402c70
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 0x412bc2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411457
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412c03
test byte [esp + 8], 2
je 0x412c03
mov dword [0x41fa68], 0xd
mov dword [0x41fa6c], 5
jmp 0x412bde
xor eax, eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x40100a
repz ret
jmp fcn.00401653

Function at 0x4041db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402c7c
and dword [ebp - 0x14], 0
cmp dword [0x436270], 0
mov dword [ebp - 0x18], eax
jne 0x40428e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404336
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404336
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436278], eax
call edi
push eax
call esi
mov dword [0x436280], eax
test eax, eax
je 0x40428e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43627c], eax
mov eax, dword [0x43627c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042e7
cmp dword [0x436280], ecx
je 0x4042e7
push eax
call esi
push dword [0x436280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042e7
test ebx, ebx
je 0x4042e7
call edi
test eax, eax
je 0x4042de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042de
test byte [ebp - 8], 1
jne 0x4042e7
or dword [ebp + 0x10], 0x200000
jmp 0x40431a
mov eax, dword [0x436274]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40431a
mov eax, dword [0x436278]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436270]
call esi
test eax, eax
je 0x404336
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404338
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x42d0ea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x437b1c]
push dword [0x437968]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x42d1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x42d204
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x42d227
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0042d1e5
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
xor byte [eax + edi], cl
inc edi
cmp edi, ebx
jl 0x42d20c
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42d23e
or dword [0x437c54], 0xffffffff
mov dword [0x437c50], 0xa62e7790
leave
ret
Function at 0x452cd0
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x452cd6
pop ebx
sub ebx, 0x1a2
mov ecx, 0x14b34
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3d000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.00452b85
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x452d08
sub ebp, 9
mov edx, ebx
sub edx, 0x400000
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x201ab
call fcn.00452ca6
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x452d95
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x452d90
pushal
test eax, 0x80000000
je 0x452d7a
and eax, 0x7fffffff
jmp 0x452d7e
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x452d65
add esi, 0x14
jmp 0x452d4b
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x452ddf
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x452dde
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x452dd6
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x452dc5
jmp 0x452da8
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x452dec
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc