joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 8], 1
push eax
mov eax, dword [ebp - 4]
dec eax
push ebx
neg eax
sbb eax, eax
push ebx
and al, 0xeb
mov word [ebp - 0x264], bx
add eax, 0x17
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4025b3
lea ecx, [ebp - 0x264]
call fcn.00401448
mov edx, dword [0x408150]
lea ecx, [ebp - 0x264]
call fcn.004013af
cmp dword [ebp - 4], ebx
je 0x402516
lea ecx, [ebp - 0x264]
call fcn.004020e0
lea ecx, [ebp - 0x264]
call fcn.00401448
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
lea esi, [ebp + eax*2 - 0x264]
cmp edi, ebx
mov edx, str.7_Zip_File_Manager.lnk
je 0x402545
mov edx, str.7_Zip_Help.lnk
mov ecx, esi
call fcn.00401312
lea eax, [ebp - 0x4bc]
push 0x40a44c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
mov edx, str.7zFM.exe
je 0x40256c
mov edx, str.7_zip.chm
lea ecx, [ebp - 0x4bc]
call fcn.004013af
cmp dword [ebp - 4], ebx
jne 0x40258b
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4025a3
lea edx, [ebp - 0x4bc]
lea ecx, [ebp - 0x264]
call fcn.004025c5
test eax, eax
je 0x4025a3
mov dword [ebp - 8], ebx
inc edi
cmp edi, 2
jb 0x402537
cmp dword [ebp - 4], ebx
je 0x4025b3
cmp dword [ebp - 8], ebx
jne 0x4025c0
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x4024b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405503
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add al, byte [eax]
add byte [ebx - 0x6fb43], al
inc dword [ebx]
jne 0x4055a7
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
invalid
test dword [edx - 8], ebx

Function at 0x407179
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edx, 0x40a8e0
mov ecx, 0x40ace0
push 8
mov eax, esi
pop edi
mov ebx, eax
and ebx, 1
neg ebx
and ebx, 0xedb88320
shr eax, 1
xor eax, ebx
dec edi
jne 0x40718d
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, ecx
jb 0x407188
pop edi
pop esi
pop ebx
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x40a8e0]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40d8e0
jb 0x4071ae
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x352e2771
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
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
pop eax
nop
nop
nop
nop
mov esi, 0x2dbe7787
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1016e9df
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x101b30b0]
add edi, 0x2307
mov dword [0x101b30ac], edi
mov dword [0x101b30b8], 0
mov byte [0x101b30bc], 0
mov dword [0x101b30b0], 0x1492
mov dword [0x101b30b4], 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 dword [0x101b30b0], 0x11fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b30ac], 0xfffff39e
mov eax, dword [0x101b30b4]
add eax, 1
mov dword [0x101b30b4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1016ea36
mov dword [0x101b30b4], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1016ea81
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101b30c0], 0
mov dword [0x101b30ac], 0x113b
mov edi, dword [0x101b30b8]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b30c0], esi
mov dword [0x101b30b0], 0x977
mov eax, esi
cdq
idiv ecx
mov dword [0x101b30b8], edx
mov dword [0x101b30ac], 0x182
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b30bc], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b30bc]
mov esi, dword [0x101b30b8]
mov byte [ebx + esi], cl
mov dword [0x101b30b0], 0x1ee0
mov esi, dword [0x101b30b4]
add esi, 1
mov dword [0x101b30b4], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1016ea81
mov dword [0x101b30b0], 0x5b8
mov eax, dword [0x101b30ac]
add eax, 0x1964
mov dword [0x101b30ac], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016eb62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101b30ac], 0x1498
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x10c
mov edi, edx
add edi, esi
add edi, 0xbc
mov esi, dword [edi]
imul edi, eax, 0x10c
add edx, edi
add edx, 0x60
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x3e2
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1016eb91
lea eax, [0x10171595]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x101b30ac], 0x3528
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.1016f819
mov dword [0x101b30ac], 0xee1
call fcn.1016fb7e
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1016e6f4
mov ecx, eax
mov dword [0x101b30cc], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x10c
mov edi, edx
add edi, esi
add edi, 0xbc
mov esi, dword [edi]
imul edi, eax, 0x10c
mov ebx, edx
add ebx, edi
add ebx, 0x5c
mov edi, dword [ebx]
imul ebx, eax, 0x10c
add edx, ebx
add edx, 0x60
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1016eef2
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x3e2
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1016ec87
lea eax, [0x101715a3]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101b30ac], 0xb3f
mov dword [0x101b30b0], 0x16e8
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1016e9df
mov dword [0x101b30ac], 0x1454
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1016f5b8
mov eax, dword [ebp - 0x148]
add eax, 0x49317
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [0x101b30ac], 0x1719
mov dword [ecx + 4], 0x11e600
mov eax, dword [ebp - 0x148]
add eax, 0x3de6c
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x2000
mov eax, dword [0x101b30ac]
add eax, 0xffffe743
mov dword [ebp - 0x168], eax
xor eax, eax
mov ecx, dword [ebp - 0x168]
mov dword [0x101b30ac], ecx
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016ef90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x101b30ac], 0x2289
mov dword [ebp - 0x10], eax
call fcn.1016e57b
xor ecx, ecx
mov edx, eax
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 0x1016efd6
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 [0x101b30ac], 0x5d8
mov esi, dword [edx + eax + 0x24]
mov dword [0x101b30b0], 0xa39
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1016f0fe
jmp 0x1016f04d
mov al, byte [ebp - 0x35]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x3c]
add edx, 1
mov ah, byte [ebp - 0x3d]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x44], edx
jne 0x1016f07f
jmp 0x1016f0ac
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x48], eax
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
jmp 0x1016f065
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x5c]
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 - 0x3c], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x3d], cl
jne 0x1016f022
mov al, byte [ebp - 0x3d]
test al, 1
jne 0x1016f0db
jmp 0x1016f0b5
xor eax, eax
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x58]
add edx, 2
mov esi, dword [ebp - 0x30]
cmp ecx, esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x34], eax
jb 0x1016f065
jmp 0x1016f0fe
mov eax, dword [ebp - 0x58]
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 [0x101b30ac], 0xf
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016f16b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [0x101b30b0], 0x4f5
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101b30ac], 0x650
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov dword [ebp - 0x14], eax
je 0x1016f217
jmp 0x1016f227
mov eax, dword [ebp - 0x18]
add esp, 0x30
pop ebp
ret
xor eax, eax
mov dword [0x101b30b0], 0x1280
mov dword [ebp - 0x18], eax
jmp 0x1016f1bc
mov eax, 1
mov dword [0x101b30b0], 0x7a0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x1016f1bc
jmp 0x1016f1c4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x6f
je 0x1016f285
jmp 0x1016f1c4
mov eax, dword [0x101b30b0]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1016f256
mov dword [0x101b30b0], 0xab6
mov eax, 0xab6
mov ecx, dword [ebp - 0x14]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jl 0x1016f1a9
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
add edx, 0xffffde47
mov dword [0x101b30b0], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
je 0x1016f1f8
jmp 0x1016f1c4
mov eax, dword [ebp - 0x2c]
add eax, 0xffffff23
mov dword [0x101b30ac], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1016f1c4
mov dword [0x101b30ac], 0xe50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1016f1c4
mov dword [0x101b30ac], 0x1419
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1016f1c4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x6c
je 0x1016f1d5
jmp 0x1016f1c4
Function at 0x1016f301
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x101b30ac], 0x117a
mov dword [0x101b30b0], 0x2413
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
lea eax, [0x10171595]
mov ecx, 0xe
lea edx, [ebp - 0x20]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call fcn.1016f819
mov dword [0x101b30b0], 0x182b
mov dword [0x101b30ac], 0xee1
call fcn.1016fb7e
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
call fcn.1016e6f4
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1016f441
jmp 0x1016f3a6
mov eax, dword [ebp - 0x3c]
add eax, 0x1539
mov dword [0x101b30ac], 0x13f8
mov dword [ebp - 0x38], eax
jmp 0x1016f441
mov eax, dword [ebp - 0x34]
mov dword [0x101b30b0], 0x686
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 dword [0x101b30b0], 0x1c5a
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1016e87c
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 dword [0x101b30b0], 0x145
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x20], ecx
mov dword [0x101b30ac], 0x640
cmp ecx, 0
mov dword [ebp - 0x38], eax
jne 0x1016f38c
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x1016f5b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x101b30ac]
add edi, 0x510
mov dword [0x101b30b0], edi
mov dword [0x101b30b4], 0
mov dword [0x101b30b8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x101b30c4], 0
mov dword [0x101b30ac], 0x16c5
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1016f768
jmp 0x1016f64f
mov eax, dword [0x101b30b4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101b30b8]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101b30b0], 0x47c
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b30b4], edx
mov dword [0x101b30ac], 0xd85
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x101b30b8], edx
mov dword [0x101b30ac], 0x237c
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x101b30bc], cl
mov dword [0x101b30b0], 0x46d
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101b30b0], 0x7f8
mov cl, byte [0x101b30bc]
mov edx, dword [0x101b30b8]
mov byte [edi + edx], cl
mov dword [0x101b30ac], 0x14d6
mov edx, dword [0x101b30b4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101b30b8]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x101b30b0], 0x16e2
and ebx, 0xff
mov dword [0x101b30c4], ebx
mov dword [0x101b30ac], 0xaf
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
mov ch, byte [edx + ebx]
mov byte [0x101b30c9], ch
mov byte [0x101b30ca], cl
xor ch, cl
mov byte [0x101b30c8], ch
mov dword [0x101b30ac], 0xa4e
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x1016f633
mov dword [0x101b30ac], 0xb72
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016f8dd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x101b30ac]
add eax, 0xffffddc7
mov dword [0x101b30ac], eax
call fcn.1000107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x1016fa8a
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov edx, dword [0x101b30b0]
add edx, 0xffffd0b8
mov dword [0x101b30ac], edx
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call fcn.1016eb62
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 0x11e600
mov dword [0x101b30b0], 0x1eb7
mov edx, dword [0x101b3098]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101b309c]
add ecx, 0x38
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
lea eax, [0x1016f109]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov esi, dword [0x101b30a0]
mov dword [esp + 0x70], esi
mov esi, dword [0x101b30a4]
mov dword [esp + 0x68], esi
mov esi, dword [0x101b30a8]
mov dword [esp + 0x7c], esi
mov dword [0x101b30ac], 0x19e4
mov dword [esp + 0x18], eax
jmp 0x1016f9c0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
jmp 0x1016fa8a
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1016f9f2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0xc], ecx
mov byte [esp + 0xb], dl
mov al, byte [esp + 0xb]
test al, 1
jne 0x1016fa10
jmp 0x1016f9f2
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x101b30b0], 0x773
mov dword [esp + 0x18], eax
jmp 0x1016f9c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x74], edx
mov dword [0x101b30ac], 0xebf
call fcn.1016f16b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x1016f9b3
lea eax, [esp + 0x40]
mov dword [0x101b30ac], 0x1b81
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1016f301
mov dword [0x101b30b0], 0xecc
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x1016f9b3
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1021b840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1023c310]
jne 0x1021b84a
repz ret
jmp fcn.1021d6bc

Function at 0x1021ec83
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.1021a7ab
and dword [ebp - 4], 0
cmp dword [0x1023d87c], 0
mov ebx, eax
jne 0x1021ed34
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1021ede5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1021ede5
push eax
call fcn.1021a739
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1023d87c], eax
call esi
push eax
call fcn.1021a739
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1023d880], eax
call esi
push eax
call fcn.1021a739
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1023d884], eax
call esi
push eax
call fcn.1021a739
pop ecx
mov dword [0x1023d88c], eax
test eax, eax
je 0x1021ed34
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1021a739
pop ecx
mov dword [0x1023d888], eax
mov eax, dword [0x1023d888]
cmp eax, ebx
je 0x1021ed8c
cmp dword [0x1023d88c], ebx
je 0x1021ed8c
push eax
call fcn.1021a7b4
push dword [0x1023d88c]
mov esi, eax
call fcn.1021a7b4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1021ed8c
test edi, edi
je 0x1021ed8c
call esi
test eax, eax
je 0x1021ed83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1021ed83
test byte [ebp - 0xc], 1
jne 0x1021ed8c
or dword [ebp + 0x10], 0x200000
jmp 0x1021edc5
mov eax, dword [0x1023d880]
cmp eax, ebx
je 0x1021edc5
push eax
call fcn.1021a7b4
pop ecx
test eax, eax
je 0x1021edc5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1021edc5
mov eax, dword [0x1023d884]
cmp eax, ebx
je 0x1021edc5
push eax
call fcn.1021a7b4
pop ecx
test eax, eax
je 0x1021edc5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1023d87c]
call fcn.1021a7b4
pop ecx
test eax, eax
je 0x1021ede5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1021ede7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret