joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4479e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49af13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048e731
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00493dc7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004952e3
test eax, eax
je 0x447afc
mov ecx, dword [esp + 0x3c]
call fcn.00493df4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x447ac0
push edi
mov ecx, esi
call fcn.0049145c
mov ecx, esi
call fcn.00447ca0
cmp dword [esp + 0x38], 1
jne 0x447af5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00491597
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x449ce0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449d13
push esi
call fcn.00458090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x449d0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449d99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449d82
mov eax, dword [esi + 8]
test eax, eax
je 0x449d37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x449d7e
cmp eax, 2
je 0x449d82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x449d2a
cmp eax, 3
je 0x449d5d
cmp eax, 1
jne 0x449d2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x449d2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x449d2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00449dc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449da8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00449dc0
add esp, 4
pop esi
ret

Function at 0x44a640
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44a661
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44a661
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44a661
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x467a00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d4d44]
xor edx, edx
cmp eax, edx
jne 0x467a26
xor eax, eax
mov byte [eax + 0x4d4c44], al
inc eax
cmp eax, 0x100
jl 0x467a0e
mov dword [0x4d4d44], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d4c44
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x467ab7
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 0x467a8a
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 0x467a58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x467b30
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 0x467b83
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 0x467b6a
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 0x46e510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b3fe
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.0046ee30
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a4bdc
call fcn.0048cec1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46e5a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048cec1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46e59c
push 0
mov ecx, eax
call fcn.00465640
mov dword [esi + 0xc], eax
jmp 0x46e5a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46e5a5
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 0x48f527
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f55f
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.0048d5db
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d5b3
jmp 0x48f56b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490c19
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 0x490c5b
call fcn.004966c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x490c5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x490c52
xor eax, eax
jmp 0x490c63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00490c69
pop edi
pop esi
pop ebx
ret 4
Function at 0x496bf9
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 0x496c27
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496c45
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496b5f
jmp 0x496c45
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496c45
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496b5f
test edi, edi
mov eax, edi
jne 0x496c2f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43b64c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
sub ebx, 0xe5d97ea6
sub edi, 0x59e922fe
add ebx, ebx
call fcn.0043b67d
sub edi, ebx
xor dword [eax], esi
or edi, ebx
dec edi
inc ebx
inc eax
add ebx, ebx
cmp eax, ecx
jne fcn.0043b64c
mov edi, 0x36bdc871
ret
Function at 0x100a8740
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100a892d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x82000]
push edi
or ebp, 0xffffffff
jmp 0x100a876a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100a8771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a8760
mov eax, 1
add ebx, ebx
jne 0x100a8783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100a8794
jne 0x100a87b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a87b3
dec eax
add ebx, ebx
jne 0x100a87a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100a8778
add ebx, ebx
jne 0x100a87af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100a8805
xor ecx, ecx
sub eax, 3
jb 0x100a87cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100a883a
sar eax, 1
mov ebp, eax
jmp 0x100a87d6
add ebx, ebx
jne 0x100a87d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a87a4
inc ecx
add ebx, ebx
jne 0x100a87e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a87a4
add ebx, ebx
jne 0x100a87f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100a87e6
jne 0x100a8802
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100a87e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100a8824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100a8816
jmp 0x100a8766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100a8824
add edi, ecx
jmp 0x100a8766
pop esi
mov edi, esi
mov ecx, 0x43d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100a8842
cmp byte [edi], 0xb
jne 0x100a8842
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100a8847
lea edi, [esi + 0xa4000]
mov eax, dword [edi]
or eax, eax
je 0x100a88bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa87a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa88a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100a8874
mov ecx, edi
jns 0x100a88a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa88ac]
or eax, eax
je 0x100a88b9
mov dword [ebx], eax
add ebx, 4
jmp 0x100a8891
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100a88f0
cmp al, 0xef
ja 0x100a88e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100a88c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100a88d2
mov ebp, dword [esi + 0xa88b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100a8924
sub esp, 0xffffff80
jmp 0x10082370
Function at 0x4012bc
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and esp, 0xfffffff0
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.004029f0
call sym.___main
mov dword [ebp - 8], 1
mov dword [ebp - 4], 5
sub esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40129a
call sym._printf
add esp, 0x10
sub esp, 0xc
push 0x4012ab
call sym._printf
add esp, 0x10
sub esp, 8
push dword [ebp - 4]
push dword [ebp - 8]
call sym.swap_int__int_
add esp, 0x10
sub esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40129a
call sym._printf
add esp, 0x10
sub esp, 0xc
push 0x4012b5
call sub.msvcrt.dll_system
add esp, 0x10
call sym._getchar
mov eax, 0
leave
ret

Function at 0x402830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x403070]
test eax, eax
je 0x40284d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x61616161
push eax
mov dword [ebp - 0x44], 0x61616161
mov dword [ebp - 0x40], 0x61616161
mov dword [ebp - 0x3c], 0x61616161
mov dword [ebp - 0x38], 0x61616161
mov dword [ebp - 0x34], 0x61616161
mov dword [ebp - 0x30], 0x61616161
mov dword [ebp - 0x2c], 0x61616161
mov byte [ebp - 0x28], 0
call sub.KERNEL32.dll_FindAtomA
add esp, 0xc
test ax, ax
jne 0x4029a4
sub esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x78]
push 0x14
call sym._malloc
lea ecx, [ebp - 0xa8]
mov dword [0x403070], eax
add esp, 0x10
mov dword [eax], 0
mov edx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], sym._abort
mov dword [eax + 8], sym._abort
mov edi, ecx
test eax, eax
jne 0x402990
lea ecx, [ebp - 0xa7]
mov byte [ebp - 0xa8], 0x30
cmp ecx, edi
jbe 0x40290b
lea esi, [esi]
dec ecx
inc esi
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
cmp ecx, edi
ja 0x402900
mov eax, 0x20
mov byte [ebx], 0
sub eax, esi
push edi
lea edx, [ebp - 0x48]
push eax
push 0x61
push edx
call sym._memset
add esp, 0x10
xor edx, edx
cmp edx, esi
jae 0x402946
nop
lea esi, [esi]
mov eax, edx
sub eax, esi
cmp byte [ebp + edx - 0x78], 0x30
je 0x402985
mov cl, 0x41
inc edx
mov byte [ebp + eax - 0x28], cl
cmp edx, esi
jb 0x402930
sub esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x28], 0
push eax
call sub.KERNEL32.dll_AddAtomA
add esp, 0xc
mov edx, dword [0x403070]
lea eax, [edx + 4]
mov dword [0x403074], eax
lea eax, [edx + 8]
mov dword [0x403078], eax
lea eax, [edx + 0xc]
add edx, 0x10
mov dword [0x40307c], eax
mov dword [0x403080], edx
jmp 0x402845
mov cl, 0x61
jmp 0x40293d
mov eax, edx
and eax, 1
add eax, 0x30
mov byte [ecx], al
inc ecx
shr edx, 1
jne 0x402990
jmp 0x4028f9
lea edx, [ebp - 0x48]
push ebx
and eax, 0xffff
push 0x21
push edx
push eax
call sub.KERNEL32.dll_GetAtomNameA
xor edx, edx
pop ecx
lea esi, [esi]
cmp byte [ebp + edx - 0x48], 0x61
setne al
add eax, 0x30
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1f
jbe 0x4029c0
push eax
lea eax, [ebp - 0x48]
push 2
push 0
push eax
call sym._strtoul
add esp, 0x10
mov dword [0x403070], eax
jmp 0x402959
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x41a084]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
xor eax, eax
push esi
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push edi
xor esi, esi
push eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
call fcn.0040121a
pop ecx
test eax, eax
je 0x40106b
lea ecx, [esp + 0x10]
call fcn.004017b1
test eax, eax
je 0x40106b
push 1
xor edi, edi
lea esi, [esp + 0x14]
call fcn.004010d3
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404fc1
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
call fcn.0040136d
pop ecx
test eax, eax
je 0x40109a
lea ecx, [esp + 0x10]
call fcn.004017b1
test eax, eax
je 0x40109a
xor ebx, ebx
push 1
xor edi, edi
lea esi, [esp + 0x14]
call fcn.004010d3
mov eax, ebx
jmp 0x401057
push 0x40
push 0x417214
push 0x41721c
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 5
push esi
push esi
push str.http:__www.51dzt.com_
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or ebx, 0xffffffff
jmp 0x401089
Function at 0x4017b1
Capabilities:
Create process on windows

Disassembly:
push 0x3c
mov eax, 0x414525
call fcn.004134b7
lea esi, [ebp - 0x2c]
mov edi, ecx
call fcn.0040174c
mov esi, 0x4171e8
push esi
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401883
cmp dword [edi + 0x14], 8
jb 0x4017e3
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00401883
xor eax, eax
push 0xffffffffffffffff
mov word [ebp - 0x48], ax
push ebx
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.004019e1
push esi
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00401883
push 0x4171ec
lea eax, [ebp - 0x2c]
push eax
call fcn.00401883
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x401832
mov ecx, edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40183e
lea eax, [ebp - 0x2c]
push 1
push ecx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401872
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.004010d3
push 1
lea esi, [ebp - 0x2c]
call fcn.004010d3
mov eax, ebx
call fcn.00413501
ret
xor ebx, ebx
inc ebx
jmp 0x401854

Function at 0x403317
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, eax
cmp esi, ebx
jne 0x40333c
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00404314
xor al, al
jmp 0x4033e1
call fcn.00402e34
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.004060f7
push esi
call fcn.00406008
push ebx
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.004060f7
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jg 0x403373
push ebx
push ebx
push 0xc
jmp 0x40332d
inc eax
push eax
call fcn.00405707
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.00405d21
add esp, 0x14
cmp eax, 1
je 0x40339d
push esi
call fcn.00404fd0
pop ecx
jmp 0x403329
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x4033c6
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x4033be
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x4033c2
jmp 0x4033c1
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x4033ab
push ebx
push ebx
mov byte [eax], bl
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.00404fd0
xor eax, eax
cmp byte [edi + 0x2c], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x404fc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a084]
jne 0x404fcb
repz ret
jmp fcn.0040691b
Function at 0x4054a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4054c8
call fcn.00407b36
mov dword [eax], esi
call fcn.00407b23
push 0x16
pop esi
mov dword [eax], esi
call fcn.00407ad1
mov eax, esi
jmp 0x40551d
test dword [ebp + 0xc], 0xfffffff9
jne 0x4054ae
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4054f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b49
pop ecx
call fcn.00407b23
mov eax, dword [eax]
jmp 0x40551d
test al, 0x10
jne 0x40551b
test al, 1
je 0x40551b
test byte [ebp + 0xc], 2
je 0x40551b
call fcn.00407b36
mov dword [eax], 5
call fcn.00407b23
mov dword [eax], 0xd
jmp 0x4054ec
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4111a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a084]
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.0040869c
and dword [ebp - 0x14], 0
cmp dword [0x41c0dc], 0
mov dword [ebp - 0x18], eax
jne 0x41125b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411303
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417164
push ebx
call edi
test eax, eax
je 0x411303
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c0dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c0e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c0e4], eax
call edi
push eax
call esi
mov dword [0x41c0ec], eax
test eax, eax
je 0x41125b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c0e8], eax
mov eax, dword [0x41c0e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4112b4
cmp dword [0x41c0ec], ecx
je 0x4112b4
push eax
call esi
push dword [0x41c0ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4112b4
test ebx, ebx
je 0x4112b4
call edi
test eax, eax
je 0x4112ab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4112ab
test byte [ebp - 8], 1
jne 0x4112b4
or dword [ebp + 0x10], 0x200000
jmp 0x4112e7
mov eax, dword [0x41c0e0]
cmp eax, dword [ebp - 0x18]
je 0x4112e7
push eax
call esi
test eax, eax
je 0x4112e7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4112e7
mov eax, dword [0x41c0e4]
cmp eax, dword [ebp - 0x18]
je 0x4112e7
push eax
call esi
test eax, eax
je 0x4112e7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c0dc]
call esi
test eax, eax
je 0x411303
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411305
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404fc1
leave
ret