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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x1769
mov dword [0x101f3f10], 0
mov byte [0x101f3f14], 0
mov dword [0x101f3f04], 0x1769
mov dword [0x101f3f0c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x101dc66f
mov eax, dword [ebp - 0x24]
add eax, 0xffffe7c2
mov dword [0x101f3f04], eax
mov dword [0x101f3f0c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x101dc6c4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, 0xffffe280
mov dword [0x101f3f04], eax
mov eax, ecx
mov dl, al
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], dl
mov ecx, dword [0x101f3f04]
mov esi, ecx
add esi, 0xfffff237
mov dword [0x101f3f08], esi
mov esi, dword [0x101f3f0c]
add esi, 1
mov dword [0x101f3f0c], esi
cmp esi, 0x100
mov edi, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jl 0x101dc66f
jmp 0x101dc651
mov eax, dword [ebp - 0x28]
mov ecx, 0x100
mov dword [0x101f3f18], 0
mov dword [0x101f3f08], 0x2161
mov edx, dword [0x101f3f10]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x2c], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101f3f18], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101f3f10], edx
mov dword [0x101f3f04], 0x2438
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov cl, byte [ecx + edi]
mov byte [0x101f3f14], cl
mov dword [0x101f3f04], 0x1cf5
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x101f3f14]
mov edx, dword [0x101f3f10]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x101f3f04], 0x1799
mov edx, dword [0x101f3f0c]
add edx, 1
mov dword [0x101f3f0c], edx
cmp edx, 0x100
mov dword [ebp - 0x28], edx
jl 0x101dc6c4
mov dword [0x101f3f04], 0x27cb
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101dcefd
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 [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [0x101f3f04], 0x13
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101df662]
mov dh, byte [eax + 0x101df633]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
jne 0x101dcf1e
lea eax, [ebp - 0x20]
mov dword [0x101f3f08], 0x1499
mov dword [0x101f3f04], 0x11f8
mov dword [ebp - 0x30], eax
call fcn.101dc538
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.101dc022
xor ecx, ecx
mov dword [0x101f3f04], 0x23c5
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x101dd053
mov eax, dword [ebp - 0x34]
mov dword [0x101f3f08], 0x185a
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 [0x101f3f04]
add ecx, 0xfffff955
mov dword [0x101f3f04], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.101dcdda
mov eax, dword [ebp - 0x3c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x1c], eax
mov dword [0x101f3f04], 0xfffff3db
xor eax, eax
mov dword [0x101f3f08], 0x9c
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x101dd053
mov dword [0x101f3f08], 0x1744
mov eax, dword [ebp - 0x3c]
add eax, 0x1e8a
mov dword [0x101f3f04], 0x1b4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x101dd39d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x101f3f08]
mov dword [0x101f3f0c], 0
mov dword [0x101f3f10], 0
mov dword [0x101f3f1c], 0
mov dword [0x101f3f04], 0xa9f
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x101dd533
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov dword [0x101f3f04], 0x1b0a
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101f3f0c], edx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101f3f10], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101f3f14], cl
mov dword [0x101f3f04], 0x1ba7
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101f3f14]
mov edx, dword [0x101f3f10]
mov byte [ebx + edx], cl
mov dword [0x101f3f04], 0x25da
mov edx, dword [0x101f3f0c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101f3f10]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101f3f1c], ecx
mov dword [0x101f3f04], 0x4df
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov byte [0x101f3f21], ch
mov byte [0x101f3f22], cl
xor ch, cl
mov byte [0x101f3f20], ch
mov dword [0x101f3f08], 0xd0
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [0x101f3f08]
mov esi, edx
add esi, 0xffffe557
mov dword [0x101f3f04], esi
mov esi, dword [ebp - 0x10]
cmp edi, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edx
je 0x101dd533
mov eax, dword [0x101f3f0c]
mov dword [ebp - 0x40], eax
mov eax, dword [0x101f3f10]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
jmp 0x101dd409
mov eax, dword [ebp - 0x2c]
add eax, 0xffffe56e
mov dword [0x101f3f04], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101dd548
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x101f3f08]
add eax, 0x1601
mov dword [0x101f3f08], eax
call fcn.10001092
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x101dd6c3
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x101f3f04], 0x3bb
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.101dcb09
lea ecx, [0x101dc43b]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x70], 0x129600
mov edx, dword [0x101f3ef0]
mov dword [esp + 0x8c], edx
mov edx, dword [0x101f3ef4]
mov dword [esp + 0x44], edx
mov edx, dword [0x101f3ef8]
mov dword [esp + 0x88], edx
mov edx, dword [0x101f3efc]
mov dword [esp + 0x90], edx
mov edx, dword [0x101f3f00]
mov dword [esp + 0x4c], edx
mov dword [0x101f3f08], 0xc9d
mov dword [0x101f3f04], 0xc7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x101dd627
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x101dd63b
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x101dd604
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov dword [0x101f3f08], 0x83d
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
mov dword [0x101f3f04], 0x5f1
call fcn.101dbe95
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x101dd6bb
lea eax, [esp + 0x38]
mov dword [0x101f3f08], 0x17ac
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101dcefd
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x101f3f04]
add ecx, 0x122d
mov dword [0x101f3f04], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x18094208
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.18093e82
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.18093ebd
lodsd eax, dword [esi]
dec eax
wait
adc byte [ebp + 0x5d88e845], cl
call 0x166ca7e
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
invalid

Function at 0x1809429d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6

Function at 0x18094dbb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.18093e9b
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
invalid
invalid
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4b431bdb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x12527ea7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401800
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x41d474]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x472]
push ecx
mov word [esp + 0x474], ax
call fcn.0040a830
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push edi
lea edx, [esp + 0x46c]
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41a030
lea eax, [esp + 0x46c]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x401948
push 0x41a038
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x41a038
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40191e
push 0x41a03c
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40191e
test byte [esp + 0x10], 0x10
je 0x40191e
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26a]
push ecx
mov word [esp + 0x26c], ax
call fcn.0040a830
add esp, 0xc
push edi
lea edx, [esp + 0x264]
push edx
call ebx
push 0x41a044
lea eax, [esp + 0x264]
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x264]
push edx
call esi
lea eax, [esp + 0x260]
push eax
call fcn.00401800
add esp, 4
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401886
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406aec
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x41d474]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4019b9
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4019f7
cmp eax, 2
jne 0x4019d3
push str.Key_not_found._n
call fcn.004075fb
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00406aec
mov esp, ebp
pop ebp
ret
push str.Error_opening_key._n
call fcn.004075fb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00406aec
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea edi, [esi + eax*2]
je 0x401a19
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
xor edx, edx
mov word [edi], dx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x401a8f
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push ebx
call fcn.00401960
add esp, 8
test eax, eax
je 0x401a8f
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x401a47
xor eax, eax
mov word [edi - 2], ax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x22c]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00406aec
mov esp, ebp
pop ebp
ret
Function at 0x405300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41d474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405491
cmp byte [ebx + 0x49], 0
je 0x405491
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405485
lea esi, [ebp - 0x2c]
call fcn.00404b90
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405373
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4053ac
dec eax
je 0x4053b0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40548c
call fcn.004039a0
xor al, al
jmp 0x405493
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4053c0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4053ed
cmp edi, 0x10
jae 0x4053cf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00407c76
add esp, 0x10
cmp esi, eax
jne 0x40547d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x405489
test esi, esi
jne 0x405367
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4054ae
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4054ae
cmp edi, esi
jae 0x405466
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405820
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405367
mov ecx, eax
cmp edi, 0x10
jae 0x405442
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40545d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405361
test esi, esi
jne 0x405438
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405475
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405361
lea ecx, [ebp - 0x2c]
call fcn.004039a0
xor al, al
jmp 0x405493
lea ecx, [ebp - 0x2c]
call fcn.004039a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406aec
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040687f
int3
Function at 0x405990
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4169cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41d474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040693a
push 4
mov dword [ebp - 4], 0
call fcn.004071a8
mov edi, eax
add esp, 4
test edi, edi
je 0x405a0c
call fcn.004063a3
mov dword [edi], eax
call fcn.00406162
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406097
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405a02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004060bf
jmp 0x405a0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406aec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d474]
jne 0x406af6
repz ret
jmp fcn.0040a5af

Function at 0x407564
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 0x40758b
call fcn.0040aa99
mov dword [eax], esi
call fcn.0040aa86
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040aa34
mov eax, esi
jmp 0x4075e0
test dword [ebp + 0xc], 0xfffffff9
jne 0x407571
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4075b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040aaac
pop ecx
call fcn.0040aa86
mov eax, dword [eax]
jmp 0x4075e0
test al, 0x10
jne 0x4075de
test al, 1
je 0x4075de
test byte [ebp + 0xc], 2
je 0x4075de
call fcn.0040aa99
mov dword [eax], 5
call fcn.0040aa86
mov dword [eax], 0xd
jmp 0x4075af
xor eax, eax
pop esi
pop ebp
ret
Function at 0x414cbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d474]
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.0040cad6
and dword [ebp - 0x14], 0
cmp dword [0x41f30c], 0
mov dword [ebp - 0x18], eax
jne 0x414d6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414e16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419fa4
push ebx
call edi
test eax, eax
je 0x414e16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f30c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f310], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f314], eax
call edi
push eax
call esi
mov dword [0x41f31c], eax
test eax, eax
je 0x414d6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f318], eax
mov eax, dword [0x41f318]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414dc7
cmp dword [0x41f31c], ecx
je 0x414dc7
push eax
call esi
push dword [0x41f31c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414dc7
test ebx, ebx
je 0x414dc7
call edi
test eax, eax
je 0x414dbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414dbe
test byte [ebp - 8], 1
jne 0x414dc7
or dword [ebp + 0x10], 0x200000
jmp 0x414dfa
mov eax, dword [0x41f310]
cmp eax, dword [ebp - 0x18]
je 0x414dfa
push eax
call esi
test eax, eax
je 0x414dfa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414dfa
mov eax, dword [0x41f314]
cmp eax, dword [ebp - 0x18]
je 0x414dfa
push eax
call esi
test eax, eax
je 0x414dfa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f30c]
call esi
test eax, eax
je 0x414e16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414e18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406aec
leave
ret