joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e0f8]
jne 0x402a3a
repz ret
jmp fcn.00406ece

Function at 0x406af7
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.004051f1
and dword [ebp - 4], 0
cmp dword [0x4438d4], 0
mov ebx, eax
jne 0x406ba8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406c59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406c59
push eax
call fcn.0040517f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4438d4], eax
call esi
push eax
call fcn.0040517f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4438d8], eax
call esi
push eax
call fcn.0040517f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4438dc], eax
call esi
push eax
call fcn.0040517f
pop ecx
mov dword [0x4438e4], eax
test eax, eax
je 0x406ba8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040517f
pop ecx
mov dword [0x4438e0], eax
mov eax, dword [0x4438e0]
cmp eax, ebx
je 0x406c00
cmp dword [0x4438e4], ebx
je 0x406c00
push eax
call fcn.004051fa
push dword [0x4438e4]
mov esi, eax
call fcn.004051fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c00
test edi, edi
je 0x406c00
call esi
test eax, eax
je 0x406bf7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406bf7
test byte [ebp - 0xc], 1
jne 0x406c00
or dword [ebp + 0x10], 0x200000
jmp 0x406c39
mov eax, dword [0x4438d8]
cmp eax, ebx
je 0x406c39
push eax
call fcn.004051fa
pop ecx
test eax, eax
je 0x406c39
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406c39
mov eax, dword [0x4438dc]
cmp eax, ebx
je 0x406c39
push eax
call fcn.004051fa
pop ecx
test eax, eax
je 0x406c39
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4438d4]
call fcn.004051fa
pop ecx
test eax, eax
je 0x406c59
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406c5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5f4c2886
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4e124ec9
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10164fee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101c86d0]
jne 0x10164ff8
repz ret
jmp fcn.1016691b

Function at 0x10167c0f
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.101650ec
and dword [ebp - 4], 0
cmp dword [0x101ca028], 0
mov ebx, eax
jne 0x10167cc0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10167d71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10167d71
push eax
call fcn.1016507a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101ca028], eax
call esi
push eax
call fcn.1016507a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101ca02c], eax
call esi
push eax
call fcn.1016507a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101ca030], eax
call esi
push eax
call fcn.1016507a
pop ecx
mov dword [0x101ca038], eax
test eax, eax
je 0x10167cc0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1016507a
pop ecx
mov dword [0x101ca034], eax
mov eax, dword [0x101ca034]
cmp eax, ebx
je 0x10167d18
cmp dword [0x101ca038], ebx
je 0x10167d18
push eax
call fcn.101650f5
push dword [0x101ca038]
mov esi, eax
call fcn.101650f5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10167d18
test edi, edi
je 0x10167d18
call esi
test eax, eax
je 0x10167d0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10167d0f
test byte [ebp - 0xc], 1
jne 0x10167d18
or dword [ebp + 0x10], 0x200000
jmp 0x10167d51
mov eax, dword [0x101ca02c]
cmp eax, ebx
je 0x10167d51
push eax
call fcn.101650f5
pop ecx
test eax, eax
je 0x10167d51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10167d51
mov eax, dword [0x101ca030]
cmp eax, ebx
je 0x10167d51
push eax
call fcn.101650f5
pop ecx
test eax, eax
je 0x10167d51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101ca028]
call fcn.101650f5
pop ecx
test eax, eax
je 0x10167d71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10167d73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10169af6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101c8158]
add esi, 0x647
mov dword [0x101c8154], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019f1f2]
mov dh, byte [eax + 0x1019f1c3]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x10169b20
lea eax, [ebp - 0x24]
mov dword [0x101c8154], 0x16fa
mov dword [0x101c8158], 0xec7
mov dword [ebp - 0x34], eax
call fcn.1016995e
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101694d0
mov dword [0x101c8154], 0x632
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10169c36
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101c8154]
add ecx, 0xffffe677
mov dword [0x101c8154], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10169f74
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x50], ecx
mov dword [0x101c8154], 0x828
add ecx, 0x21e9
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10169c2d
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10169c53
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov edx, dword [0x101c8154]
add edx, 0xffffda67
mov dword [0x101c8158], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101c8154], 0x2653
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x10169d03
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
jl 0x10169d03
jmp 0x10169d19
mov eax, 0x198e
mov ecx, 0x1f4c
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x10169cea
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x101c8154], eax
mov cl, byte [ebp - 0x29]
and cl, 1
movzx eax, cl
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jne 0x10169c9e
mov eax, dword [ebp - 0x24]
mov dword [0x101c8158], 0x2ce7
mov dword [0x101c8154], 0x711
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x10169db6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10169db6
mov dword [0x101c8154], 0x1a80
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10169db6
mov dword [0x101c8154], 0x59b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10169db6
mov dword [0x101c8154], 0x15f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10169db6
mov dword [0x101c8158], 0xfffff470
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10169cb7
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10169dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x101c8154], 0x77
mov dword [ebp - 0x10], eax
call fcn.1016a701
xor ecx, ecx
mov edx, eax
mov dword [0x101c8158], 0x265c
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10169e10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x101c8154], 0x16b1
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
jne 0x10169e50
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10169ecd
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10169e7c
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10169f03
jmp 0x10169ed6
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
jb 0x10169e62
jmp 0x10169e45
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
jmp 0x10169e45
Function at 0x1016a4d2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101c8158], 0x102f
mov dword [0x101c8160], 0
mov byte [0x101c8164], 0
mov dword [0x101c8154], 0x194
mov dword [0x101c815c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101c8154], 0x540
mov eax, dword [0x101c815c]
add eax, 1
mov dword [0x101c815c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1016a521
xor eax, eax
mov ecx, 0x225b
mov dword [0x101c8158], 0x225b
mov dword [0x101c815c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov esi, eax
add esi, 0xffffeb81
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x101c8168], 0
mov ebx, dword [ebp - 0x28]
add ebx, 0x8b2
mov dword [0x101c8158], esi
mov esi, dword [0x101c8160]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101c8168], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x2c]
idiv edi
mov dword [0x101c8160], edx
mov dword [0x101c8154], ebx
mov ebx, dword [ebp - 0x18]
mov bl, byte [ebx + ecx]
mov byte [0x101c8164], bl
mov dword [0x101c8158], 0xf5e
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x101c8154]
add ecx, 0xffffe36b
mov dword [0x101c8154], ecx
mov bl, byte [0x101c8164]
mov ecx, dword [0x101c8160]
mov byte [esi + ecx], bl
mov ecx, dword [0x101c815c]
add ecx, 1
mov dword [0x101c815c], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x1016a651
mov eax, dword [0x101c8158]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1016a572
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016a87d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x2d17
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xb8c
mov dword [0x101c815c], 0
mov dword [0x101c8160], 0
mov dword [0x101c816c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x101c8154]
add eax, 0xffffdbca
mov dword [0x101c8158], eax
mov dword [0x101c8154], 0xb8c
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, ebx
mov dword [ebp - 0x18], eax
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
je 0x1016aa32
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, 0x100
add ecx, 1
mov ebx, edx
add ebx, 1
add eax, 0xffffe6cf
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x101c815c], edx
mov dword [0x101c8158], 0x2089
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x101c8160], edx
mov ecx, dword [ebp - 0x38]
mov dword [0x101c8158], ecx
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov cl, byte [ecx + esi]
mov byte [0x101c8164], cl
mov dword [0x101c8154], 0x136f
mov edi, dword [ebp - 0x2c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101c8158], 0xf56
mov cl, byte [0x101c8164]
mov edx, dword [0x101c8160]
mov byte [edi + edx], cl
mov dword [0x101c8154], 0x2311
mov edx, dword [0x101c815c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101c8160]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x101c8158], 0xa5a
and ecx, 0xff
mov dword [0x101c816c], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov ch, byte [edx + esi]
mov dword [0x101c8154], 0x6f8
xor ch, cl
mov edx, dword [ebp - 0x28]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x44], ebx
je 0x1016aa25
mov eax, dword [0x101c8154]
mov ecx, dword [0x101c815c]
mov edx, dword [0x101c8160]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
jmp 0x1016a908
mov eax, dword [0x101c8154]
add eax, 0x218b
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x101c8158], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016aa42
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101c8154], 0x1c0e
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1016a085
lea ecx, [0x1016a390]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], 0x173800
mov edx, dword [0x101c8140]
mov dword [esp + 0x58], edx
mov edx, dword [0x101c8144]
mov dword [esp + 0x64], edx
mov edx, dword [0x101c8148]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101c814c]
mov dword [esp + 0x40], edx
mov edx, dword [0x101c8150]
mov dword [esp + 0x78], edx
mov dword [0x101c8154], 0x1fcb
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1016ab04
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov dword [0x101c8154], 0xe25
mov dword [0x101c8158], 0x265c
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x74], edx
call fcn.10169c53
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1016ab45
jmp 0x1016ab15
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1016ab1d
jmp 0x1016ab31
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1016aac8
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1016ab04
lea eax, [esp + 0x30]
mov dword [0x101c8154], 0x1c67
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10169af6
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101c8154], 0x1592
mov dword [esp + 8], eax
jmp 0x1016ab15
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x401116
repz ret
jmp fcn.004014b6

Function at 0x4041bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428004]
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.004029e8
and dword [ebp - 0x14], 0
cmp dword [0x42a9d0], 0
mov dword [ebp - 0x18], eax
jne 0x40426e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42a9d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42a9d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42a9d8], eax
call edi
push eax
call esi
mov dword [0x42a9e0], eax
test eax, eax
je 0x40426e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42a9dc], eax
mov eax, dword [0x42a9dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042c7
cmp dword [0x42a9e0], ecx
je 0x4042c7
push eax
call esi
push dword [0x42a9e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042c7
test ebx, ebx
je 0x4042c7
call edi
test eax, eax
je 0x4042be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042be
test byte [ebp - 8], 1
jne 0x4042c7
or dword [ebp + 0x10], 0x200000
jmp 0x4042fa
mov eax, dword [0x42a9d4]
cmp eax, dword [ebp - 0x18]
je 0x4042fa
push eax
call esi
test eax, eax
je 0x4042fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4042fa
mov eax, dword [0x42a9d8]
cmp eax, dword [ebp - 0x18]
je 0x4042fa
push eax
call esi
test eax, eax
je 0x4042fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42a9d0]
call esi
test eax, eax
je 0x404316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040110c
leave
ret
Function at 0x416ef0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x428b20]
sub esp, 0x14
push ebx
mov ebx, dword [0x2bcdf9c]
push edi
mov edi, dword [0x2bd041c]
call fcn.00416e70
cmp dword [0x2bd041c], 0x2f
jne 0x416f52
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00416ea0
pop edi
pop ebx
add esp, 0x14
ret