joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407140
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407154
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40716f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
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 0x6d3ce1a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x6d3ce1b0
pop dword [ebp - 0x30]
mov eax, 0x6d3ce1b0
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xa175f0eb
sub dword [ebp - 0x40], 0x5323aba0
mov dword [ebp - 0x3c], 0xc997d334
add dword [ebp - 0x3c], 0x689b7911
mov dword [ebp - 0x38], 0x81bcd797
add dword [ebp - 0x38], 0xca8f6c97
mov dword [ebp - 0x34], 0x9b6d9cc7
add dword [ebp - 0x34], 0x64926339
lea eax, [ebp - 0x40]
push eax
mov eax, 0x5b9efc67
add eax, 0x119ee3e1
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xcc4b673c
sub dword [ebp - 0x40], 0x57d8fde6
mov dword [ebp - 0x3c], 0xf3d9ed3e
sub dword [ebp - 0x3c], 0xb26d8bc9
mov dword [ebp - 0x38], 0x1274d537
add dword [ebp - 0x38], 0x50fa9735
mov dword [ebp - 0x34], 0xd075cac5
sub dword [ebp - 0x34], 0xd075cac5
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3ee04
push 0
call eax
mov ecx, 0xc6f21839
add ecx, 0x390e3125
mov esi, eax
mov edi, 0x251bca8f
add edi, 0x4822d171
add edi, dword [ebp - 0x30]
mov edx, 0x2e246452
sub edx, 0xcae390b7
sub dword [ebp - 0x24], ebx
mov ebx, dword [edi]
sub dword [ebp - 0x14], edx
xor ebx, edx
xor dword [ebp - 4], eax
mov dword [esi], ebx
xor dword [ebp - 0x14], edx
add esi, 0xc9aa5c0a
sub esi, 0xc9aa5c06
add edi, 0x6ac5b36d
add edi, 0x953a4c97
loop 0x6d3ce2c8
add eax, 0xde02a666
add eax, 0x21fe71e5
mov ebx, eax
add eax, 0xc4dbd6f
sub eax, 0xc4dbd6a
mov ecx, 0x73e13538
add ecx, 0xf95acac8
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x6d3dd4ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d3e5200]
jne 0x6d3dd4f6
repz ret
jmp fcn.6d3dd963
Function at 0x10001b7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b078]
jne 0x10001b86
repz ret
jmp fcn.10002880

Function at 0x100054bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000b078]
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.10003156
and dword [ebp - 0x14], 0
cmp dword [0x1000c8d0], 0
mov dword [ebp - 0x18], eax
jne 0x1000556f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10005617
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10005617
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000c8d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000c8d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000c8d8], eax
call edi
push eax
call esi
mov dword [0x1000c8e0], eax
test eax, eax
je 0x1000556f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000c8dc], eax
mov eax, dword [0x1000c8dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100055c8
cmp dword [0x1000c8e0], ecx
je 0x100055c8
push eax
call esi
push dword [0x1000c8e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100055c8
test ebx, ebx
je 0x100055c8
call edi
test eax, eax
je 0x100055bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100055bf
test byte [ebp - 8], 1
jne 0x100055c8
or dword [ebp + 0x10], 0x200000
jmp 0x100055fb
mov eax, dword [0x1000c8d4]
cmp eax, dword [ebp - 0x18]
je 0x100055fb
push eax
call esi
test eax, eax
je 0x100055fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100055fb
mov eax, dword [0x1000c8d8]
cmp eax, dword [ebp - 0x18]
je 0x100055fb
push eax
call esi
test eax, eax
je 0x100055fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000c8d0]
call esi
test eax, eax
je 0x10005617
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10005619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001b7c
leave
ret
Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4360b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4360d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4360cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
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 0x48da22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x505080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405d80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48da64
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48dbc0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405eca
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x508978]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x508978]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x48dbb9
cmp eax, dword [edi + ecx + 0x24]
jne 0x48dbb9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48dbb9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x48dbb9
jg 0x48db2f
test eax, eax
jb 0x48dbb9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48dbb9
jl 0x48db49
cmp dword [ebp - 0x1008], eax
ja 0x48dbb9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48db67
test ebx, ebx
je 0x48dba0
cmp ecx, edi
jae 0x48dba0
mov al, byte [ecx]
cmp al, 0xd
jne 0x48db81
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48db8d
cmp byte [ecx + 1], 0xa
jne 0x48db8d
inc ecx
jmp 0x48db8d
movzx eax, al
movsx eax, byte [eax + 0x5053d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48db67
cmp edx, ebx
jne 0x48db67
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48dbbe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403021
leave
ret
Function at 0x48e2ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x508978]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e33f
cmp byte [ebx], 0xa
jne 0x48e33f
or byte [eax + edi + 0x28], 4
jmp 0x48e344
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48e442
mov al, byte [edx]
cmp al, 0x1a
je 0x48e424
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48e373
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48e398
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48e3a2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x48e355
jmp 0x48e442
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e41f
cmp dword [ebp - 0xc], 0
je 0x48e41f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x508978]
test byte [eax + edi + 0x28], 0x48
je 0x48e3f9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48e3e4
mov byte [esi], dl
jmp 0x48e3f5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x508978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48e442
cmp byte [ebp - 1], 0xa
jne 0x48e408
cmp esi, ebx
jne 0x48e408
mov byte [esi], 0xa
jmp 0x48e441
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48e442
mov byte [esi], 0xd
jmp 0x48e441
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x508978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e43e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e442
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e49e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x508978]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e4e1
cmp word [esi], dx
jne 0x48e4e1
or byte [edi + eax + 0x28], 4
jmp 0x48e4e6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x48e639
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x48e619
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48e528
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48e55e
cmp eax, edx
jae 0x48e56a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x48e500
jmp 0x48e639
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e615
cmp dword [ebp - 0x14], 0
je 0x48e615
mov eax, dword [ebx*4 + 0x508978]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48e5ed
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48e5b6
mov word [esi], cx
jmp 0x48e5e9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x508978]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x508978]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x508978]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48e639
pop ebx
cmp word [ebp - 4], bx
jne 0x48e5fe
cmp esi, dword [ebp + 0xc]
jne 0x48e5fe
mov word [esi], bx
jmp 0x48e636
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48e639
push 0xd
jmp 0x48e632
mov ecx, dword [ebx*4 + 0x508978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e630
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e639
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49602f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x505080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49607a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004964f1
test al, al
jne 0x496074
sub edx, 2
cmp edx, edi
jne 0x49605a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49609c
lea eax, [edi + 2]
cmp edx, eax
je 0x49609c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00495c28
add esp, 0x10
jmp 0x496196
push esi
lea ecx, [ebp - 0x255]
call fcn.004964f1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4960df
push dword [ebp - 0x25c]
jmp 0x49608c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49611c
cmp word [ebp - 0x226], 0
je 0x49613d
cmp word [ebp - 0x226], ax
jne 0x49611c
cmp word [ebp - 0x224], 0
je 0x49613d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00495c28
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x496189
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4960f6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496171
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x496196
push 0x495610
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054a7
add esp, 0x10
jmp 0x496166
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403021
leave
ret
Function at 0x10002211
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 0x10002242
call fcn.1000213b
mov dword [eax], esi
call fcn.10002128
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10001ae0
add esp, 0x14
push 0x16
pop eax
jmp 0x10002297
test dword [ebp + 0xc], 0xfffffff9
jne 0x1000221e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000226f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000214e
pop ecx
call fcn.10002128
mov eax, dword [eax]
jmp 0x10002297
test al, 0x10
jne 0x10002295
test al, 1
je 0x10002295
test byte [ebp + 0xc], 2
je 0x10002295
call fcn.1000213b
mov dword [eax], 5
call fcn.10002128
mov dword [eax], 0xd
jmp 0x10002266
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10002860
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029130]
jne 0x1000286a
repz ret
jmp fcn.100054c6

Function at 0x1000f7e8
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.100028fb
and dword [ebp - 4], 0
cmp dword [0x1002b4b0], 0
mov ebx, eax
jne 0x1000f899
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000f94a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000f94a
push eax
call fcn.10002889
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002b4b0], eax
call esi
push eax
call fcn.10002889
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002b4b4], eax
call esi
push eax
call fcn.10002889
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002b4b8], eax
call esi
push eax
call fcn.10002889
pop ecx
mov dword [0x1002b4c0], eax
test eax, eax
je 0x1000f899
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10002889
pop ecx
mov dword [0x1002b4bc], eax
mov eax, dword [0x1002b4bc]
cmp eax, ebx
je 0x1000f8f1
cmp dword [0x1002b4c0], ebx
je 0x1000f8f1
push eax
call fcn.10002904
push dword [0x1002b4c0]
mov esi, eax
call fcn.10002904
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000f8f1
test edi, edi
je 0x1000f8f1
call esi
test eax, eax
je 0x1000f8e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f8e8
test byte [ebp - 0xc], 1
jne 0x1000f8f1
or dword [ebp + 0x10], 0x200000
jmp 0x1000f92a
mov eax, dword [0x1002b4b4]
cmp eax, ebx
je 0x1000f92a
push eax
call fcn.10002904
pop ecx
test eax, eax
je 0x1000f92a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f92a
mov eax, dword [0x1002b4b8]
cmp eax, ebx
je 0x1000f92a
push eax
call fcn.10002904
pop ecx
test eax, eax
je 0x1000f92a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002b4b0]
call fcn.10002904
pop ecx
test eax, eax
je 0x1000f94a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000f94c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001327b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x10028f80]
add esi, 0x1ff0
mov dword [0x10028f80], esi
mov dword [0x10028f84], 0x2369
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 + 0x10015466]
mov dh, byte [eax + 0x10015437]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100132af
lea eax, [ebp - 0x24]
mov dword [0x10028f80], 0x2213
mov dword [ebp - 0x34], eax
call fcn.10013b4f
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10013004
xor ecx, ecx
mov dword [0x10028f80], 0x1b06
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x100133ce
mov eax, dword [ebp - 0x38]
mov dword [0x10028f80], 0x8b
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 [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10013875
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10028f84], 0x1162
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x10028f80], 0x1ca3
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x34], ecx
mov ecx, dword [0x10028f80]
mov esi, dword [ebp - 0x40]
mov dword [edx + 0x28], esi
add ecx, 0xfffff50a
mov dword [0x10028f80], ecx
cmp esi, 0
mov dword [ebp - 0x3c], eax
je 0x100133ce
mov dword [0x10028f80], 0x236c
mov eax, dword [ebp - 0x40]
add eax, 0x1e24
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x100136da
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 [0x10028f80], 0x18f8
mov dword [0x10028f84], 0x716
mov dword [ebp - 0x10], eax
call fcn.1001435a
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x10028f80], 0x84
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 0x10013734
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 [0x10028f84], 0x1f6e
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
je 0x1001386a
jmp 0x100137ce
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
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 - 0x3d], bh
mov byte [ebp - 0x3e], cl
jne 0x10013809
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1001383b
jmp 0x100137a5
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x48]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x30], eax
jb 0x100137e0
jmp 0x1001386a
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x10028f80], 0x18f8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1001376f
mov al, byte [ebp - 0x3d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x3c]
add edx, 1
mov ah, byte [ebp - 0x3e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x34], edx
jne 0x1001376f
jmp 0x10013798
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10028f80], 0x1919
mov ecx, dword [edx + ecx*4]
mov dword [0x10028f84], 0x2305
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret