joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476d40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x476d87
mov edi, dword [esp + 0x10]
push edi
call fcn.004aeb3a
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.00496815
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x476dbb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x476dbb
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x476da5
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x476dbb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00476e80
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x476dee
cmp edi, 0x5a
jle 0x476dee
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x476dee
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x476e1d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x476e63
cmp ebx, 1
jge 0x476e63
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x476e63
mov al, byte [esi + 0x1d]
test al, al
jne 0x476e63
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x476e63
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x476e63
mov al, byte [esi + 0x1d]
test al, al
je 0x476e43
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00476e80
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x478010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x478037
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.00496815
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00496ae7
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.00496815
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x47806b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.004781c0
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x478080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x513ff4]
xor edx, edx
cmp eax, edx
jne 0x4780a6
xor eax, eax
mov byte [eax + 0x513ef4], al
inc eax
cmp eax, 0x100
jl 0x47808e
mov dword [0x513ff4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x513ef4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x478137
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47810a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4780d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x478140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x478193
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47817a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47eb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4beaae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047f460
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4d27ac
call fcn.004aeb3a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47ebd3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004aeb3a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47ebcc
push 0
mov ecx, eax
call fcn.00475ce0
mov dword [esi + 0xc], eax
jmp 0x47ebd5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47ebd5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4a095a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x502aec]
jne 0x4a0964
repz ret
jmp fcn.004a9022
Function at 0x4a80a4
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.0049aedd
and dword [ebp - 4], 0
cmp dword [0x526500], 0
mov ebx, eax
jne 0x4a8155
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a8206
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4dac20
push edi
call esi
test eax, eax
je 0x4a8206
push eax
call fcn.0049ae6b
mov dword [esp], 0x4dac10
push edi
mov dword [0x526500], eax
call esi
push eax
call fcn.0049ae6b
mov dword [esp], 0x4dabfc
push edi
mov dword [0x526504], eax
call esi
push eax
call fcn.0049ae6b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x526508], eax
call esi
push eax
call fcn.0049ae6b
pop ecx
mov dword [0x526510], eax
test eax, eax
je 0x4a8155
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049ae6b
pop ecx
mov dword [0x52650c], eax
mov eax, dword [0x52650c]
cmp eax, ebx
je 0x4a81ad
cmp dword [0x526510], ebx
je 0x4a81ad
push eax
call fcn.0049aee6
push dword [0x526510]
mov esi, eax
call fcn.0049aee6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a81ad
test edi, edi
je 0x4a81ad
call esi
test eax, eax
je 0x4a81a4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a81a4
test byte [ebp - 0xc], 1
jne 0x4a81ad
or dword [ebp + 0x10], 0x200000
jmp 0x4a81e6
mov eax, dword [0x526504]
cmp eax, ebx
je 0x4a81e6
push eax
call fcn.0049aee6
pop ecx
test eax, eax
je 0x4a81e6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a81e6
mov eax, dword [0x526508]
cmp eax, ebx
je 0x4a81e6
push eax
call fcn.0049aee6
pop ecx
test eax, eax
je 0x4a81e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x526500]
call fcn.0049aee6
pop ecx
test eax, eax
je 0x4a8206
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a8208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b11e9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b1221
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004af2a0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004af278
jmp 0x4b122d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b28da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b291c
call fcn.004b85fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b291c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b2913
xor eax, eax
jmp 0x4b2924
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b292a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b8b2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b8b5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b8b78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b8a92
jmp 0x4b8b78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b8b78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b8a92
test edi, edi
mov eax, edi
jne 0x4b8b62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
xor esi, esi
mov dword [esp + 0x3c], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, 0xffffffff
je 0x401d3e
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401d37
lea esi, [esp + 0x64]
mov edx, 0xa
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401ba2
sub esi, ecx
mov dword [esp + 0x20], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x24], 7
add eax, esi
lea ecx, [esp + 0x64]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
cmp ecx, eax
jne 0x401be1
xor eax, eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
jmp 0x401cd5
cmp esi, 0x7ffffffe
ja 0x401d60
mov edi, 7
cmp esi, edi
jbe 0x401c86
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x401c15
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x401c32
cmp edi, 0xa
cmovb edi, edx
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x401d65
add eax, eax
cmp eax, 0x1000
jb 0x401c63
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401d65
push ecx
call fcn.004055d2
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401d54
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
jmp 0x401c8a
test eax, eax
je 0x401c7a
push eax
call fcn.004055d2
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
jmp 0x401c8a
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
jmp 0x401c8a
mov eax, dword [esp + 0x10]
cmp edi, 7
lea ecx, [esp + 0x10]
mov edi, esi
lea edx, [esp + 0x64]
cmova ecx, eax
mov dword [esp + 0x34], ecx
test esi, esi
je 0x401cb5
movsx ax, byte [edx]
lea ecx, [ecx + 2]
lea edx, [edx + 1]
mov word [ecx - 2], ax
sub edi, 1
jne 0x401ca2
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], esi
mov word [eax + esi*2], cx
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 7
cmova eax, dword [esp + 0x10]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
cmp ecx, 7
jbe 0x401d1d
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401d13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d54
push ecx
push edx
call fcn.00405717
add esp, 8
test esi, esi
je 0x401d5a
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401b96
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x16c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004055c4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [esp + 0x48]
jmp 0x401d37
call fcn.00401170
call fcn.004010d0
int3
Function at 0x402f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
mov esi, ecx
cmp di, bx
jne 0x402f37
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402f71
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x402f71
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403044
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x402f9e
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402fd1
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x403010
sub eax, 1
je 0x403010
sub eax, 2
jne 0x403044
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x402fa9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x403034
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x403044
lea ecx, [ebp - 0x28]
movzx eax, bx
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004055c4
mov esp, ebp
pop ebp
ret 4
Function at 0x403cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403d84
cmp byte [esi + 0x3e], 0
je 0x403d84
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x403d72
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403d39
sub eax, 1
je 0x403d3d
sub eax, 2
jne 0x403d72
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403d5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403d72
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004055c4
mov esp, ebp
pop ebp
ret

Function at 0x405ffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40603b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40603b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40603b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40603b
cmp dword [ecx + 0x74], 0xe
jbe 0x40603b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10003c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10012588
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10018100]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.10004220
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x38]
cmp edi, 1
je 0x10003c9f
cmp edi, ebx
je 0x10003c9f
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100044b0
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x40]
sub eax, 1
neg eax
push 0x20019
sbb eax, eax
add eax, 0x80000002
push str.SoftwareIntelMediaSDKDispatch
push eax
mov ecx, esi
mov dword [esi + 4], 2
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x7fffffff
call fcn.10004090
cmp al, bl
jne 0x10003d05
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100044b0
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
mov dword [esi + 4], edi
call fcn.100044c0
test al, al
je 0x10003c74
lea ecx, [esp + 0x10]
call fcn.10004230
lea ecx, [esp + 0x10]
mov dword [esi + 8], eax
call fcn.10004240
mov dword [esi + 0xc], eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100044b0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x100041a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete al
ret 0xc

Function at 0x10004689
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10018100]
jne 0x10004693
repz ret
jmp fcn.10007177
Function at 0x1000d189
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10018100]
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.1000afc3
and dword [ebp - 0x14], 0
cmp dword [0x1001a134], 0
mov dword [ebp - 0x18], eax
jne 0x1000d23c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000d2e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000d2e4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001a134], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001a138], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001a13c], eax
call edi
push eax
call esi
mov dword [0x1001a144], eax
test eax, eax
je 0x1000d23c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001a140], eax
mov eax, dword [0x1001a140]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000d295
cmp dword [0x1001a144], ecx
je 0x1000d295
push eax
call esi
push dword [0x1001a144]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000d295
test ebx, ebx
je 0x1000d295
call edi
test eax, eax
je 0x1000d28c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000d28c
test byte [ebp - 8], 1
jne 0x1000d295
or dword [ebp + 0x10], 0x200000
jmp 0x1000d2c8
mov eax, dword [0x1001a138]
cmp eax, dword [ebp - 0x18]
je 0x1000d2c8
push eax
call esi
test eax, eax
je 0x1000d2c8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000d2c8
mov eax, dword [0x1001a13c]
cmp eax, dword [ebp - 0x18]
je 0x1000d2c8
push eax
call esi
test eax, eax
je 0x1000d2c8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001a134]
call esi
test eax, eax
je 0x1000d2e4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000d2e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004689
leave
ret