joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408460
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x41dad8
push 1
push 0
push 0x41dae8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40848e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41dac8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4084c2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x41a664
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a692
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41a6b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a5ca
jmp 0x41a6b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a6b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a5ca
test edi, edi
mov eax, edi
jne 0x41a69a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x1004c243
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0x664b79e4
jmp 0x1006d531
lea esp, [esp + 0x10]
jne 0x100467ed
add cx, 0xe692
mov dword [ebp - 0x1c], edi
xadd dl, ch
movzx dx, cl

Function at 0x408921
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ebx
call fcn.00408949
sub eax, 1
xor dword [edi], ebx
or eax, eax
dec esi
inc edi
cmp edi, edx
jne fcn.00408921
add esi, 0xf52a95db
dec esi
ret

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

Disassembly:
pushal
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403388
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, ecx
push 0x25
mov ecx, esi
call fcn.00401f47
push esi
cmp eax, 0xffffffff
jne 0x4033bb
mov ecx, edi
call fcn.00402436
jmp 0x403452
lea ecx, [ebp - 0x1c]
call fcn.00402436
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4033cd
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4033e9
push esi
mov ecx, edi
call fcn.00402436
jmp 0x40344a
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b7c1
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x40340b
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
inc ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x403438
cmp eax, dword [ebp - 0x20]
ja 0x403438
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.0043f51e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040206a
push ebx
call fcn.0043b583
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00402372
lea ecx, [ebp - 0x1c]
call fcn.0040203f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
leave
ret
Function at 0x405155
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0xc35
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4051ca
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0043d260
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4051ca
lea eax, [ebp - 0x804]
push eax
call fcn.0043f51e
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
lea ecx, [edi + 0x10]
call fcn.0040206a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b572
leave
ret 4

Function at 0x4051da
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
push 0x4597f0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [edi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x405279
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call esi
push str.RegQueryValueW
push dword [edi + 0x1c]
mov dword [edi], eax
call esi
push str.RegSetValueW
push dword [edi + 0x1c]
mov dword [edi + 4], eax
call esi
push str.RegQueryValueExW
push dword [edi + 0x1c]
mov dword [edi + 8], eax
call esi
push str.RegSetValueExW
push dword [edi + 0x1c]
mov dword [edi + 0xc], eax
call esi
push str.RegCloseKey
push dword [edi + 0x1c]
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], eax
pop esi
cmp dword [edi], ebx
je 0x405279
cmp dword [edi + 4], ebx
je 0x405279
cmp dword [edi + 8], ebx
je 0x405279
cmp dword [edi + 0xc], ebx
je 0x405279
cmp dword [edi + 0x10], ebx
je 0x405279
test eax, eax
je 0x405279
mov byte [edi + 0x18], 1
mov eax, edi
pop edi
pop ebx
ret

Function at 0x406098
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0043d260
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push edi
push eax
call fcn.0043d260
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ebp - 0x2c], 1
cmp dword [ecx + 0x14], 8
push 5
pop eax
mov word [ebp - 0x28], ax
jb 0x4060dc
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4060e7
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x58]
push edx
push ecx
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406113
cmp dword [ebp - 0x10], edi
je 0x40610f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x406115
xor al, al
pop edi
leave
ret 8
Function at 0x406d7b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
jb 0x406da1
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
jne 0x406db6
xor al, al
jmp 0x406df4
cmp dword [ebp - 0x20], esi
jle 0x406de5
push dword [ebx + esi*4]
lea ecx, [ebp - 0x1c]
call fcn.00401fbc
cmp dword [ebp - 0xc], 0
je 0x406dd7
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004047f6
lea ecx, [ebp - 0x1c]
call fcn.0040203f
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x406dbb
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
leave
ret 8

Function at 0x408b27
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [eax + 0x14], 8
jb 0x408b48
mov eax, dword [eax]
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x408b6f
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b572
leave
ret 4
Function at 0x4095a1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x260]
mov esi, ecx
push 0x27f4
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043d260
add esp, 0xc
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
test edi, edi
je 0x409665
push edi
call ebx
test eax, eax
je 0x409665
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409665
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.0043f51e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x240]
call fcn.0040206a
jmp 0x409685
push edi
call ebx
test eax, eax
je 0x409685
cmp dword [esi + 0x254], 8
lea eax, [esi + 0x240]
jb 0x40967d
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x240]
mov edx, edi
lea ecx, [ebp - 0x230]
call fcn.00403388
push eax
mov ecx, edi
call fcn.004023ff
lea ecx, [ebp - 0x230]
call fcn.0040203f
mov edx, str.__DSPT
mov ecx, edi
call fcn.0040c220
cmp byte [esi + 0x80], 0
je 0x4097a5
cmp dword [esi + 0x78], 0
je 0x4097a5
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040bfe0
test al, al
jne 0x4097a5
lea ecx, [ebp - 0x280]
call fcn.004051da
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402436
lea ecx, [ebp - 0x248]
call fcn.0040c2e0
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040c150
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040c150
add esp, 4
lea ecx, [ebp - 0x230]
mov esi, 0x45a570
push esi
call fcn.00401fbc
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040528e
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.0040203f
test bl, bl
je 0x40978f
push esi
lea ecx, [ebp - 0x230]
call fcn.00401fbc
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.004053e3
lea ecx, [ebp - 0x230]
call fcn.0040203f
lea ecx, [ebp - 0x248]
call fcn.0040203f
lea ecx, [ebp - 0x280]
call fcn.0040527e
lea ecx, [ebp - 0x260]
call fcn.0040203f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
leave
ret
Function at 0x414e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x414ec2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x414ec2
test ecx, ecx
je 0x414ebe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x414e80
xor eax, eax
jmp 0x414ec7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x414ed1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b572
add esp, 0xc
ret 0xc
Function at 0x417510
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x20c
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.0043d260
add esp, 0xc
lea eax, [esp + 8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4176b2
push ebx
xor eax, eax
push ebp
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0043f51e
mov ecx, dword [edi + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x4175ab
mov ebx, edi
cmp ecx, 8
jb 0x417587
mov ebx, dword [edi]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0043c760
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x417697
cmp ebp, 0x7ffffffe
ja 0x4176ca
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4175cb
mov esi, 0x7ffffffe
jmp 0x4175e9
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4175e1
mov esi, 0x7ffffffe
jmp 0x4175e9
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4175fb
or ecx, 0xffffffff
jmp 0x417603
cmp ecx, 0x1000
jb 0x41762a
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
test eax, eax
je 0x4176cf
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x41763d
test ecx, ecx
je 0x41763b
push ecx
call fcn.0043b783
add esp, 4
mov ebx, eax
jmp 0x41763d
xor ebx, ebx
mov dword [edi + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
push eax
push ebx
call fcn.0043cce0
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x417695
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x41768b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176cf
mov eax, edx
push ecx
push eax
call fcn.0043b7b3
add esp, 8
mov dword [edi], ebx
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043b572
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
xor al, al
pop edi
xor ecx, esp
call fcn.0043b572
add esp, 0x214
ret
call fcn.00402330
call fcn.0043f744
int3
Function at 0x4176e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f668
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x41771b
xor al, al
jmp 0x4177df
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41772b
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x417740
mov al, 1
jmp 0x4177df
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00419a90
test al, al
je 0x41778a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x41778a
mov bl, 1
jmp 0x41778c
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4177c9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4177bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177fb
push edx
push ecx
call fcn.0043b7b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
call fcn.0043f744
int3

Function at 0x417810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x417846
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4178f0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00419a90
test al, al
je 0x41789f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4178dc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4178d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41790d
push edx
push ecx
call fcn.0043b7b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.0043b572
mov esp, ebp
pop ebp
ret
call fcn.0043f744
int3
Function at 0x417e70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x417ea6
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x417eba
mov al, 1
jmp 0x417f5e
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00419a90
test al, al
je 0x417f09
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x417f09
mov bl, 1
jmp 0x417f0b
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x417f48
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417f3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417f79
push edx
push ecx
call fcn.0043b7b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
call fcn.0043f744
int3
Function at 0x418970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
lea eax, [esp + 8]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0043d260
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4189ae
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4189b6
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418b26
xor eax, eax
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0043f51e
mov ecx, dword [ebx + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x418a1f
mov edi, ebx
cmp ecx, 8
jb 0x4189fb
mov edi, dword [ebx]
lea esi, [ebp*2]
mov dword [ebx + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0043c760
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x418b0b
cmp ebp, 0x7ffffffe
ja 0x418b40
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x418a3f
mov esi, 0x7ffffffe
jmp 0x418a5d
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x418a55
mov esi, 0x7ffffffe
jmp 0x418a5d
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x418a6f
or ecx, 0xffffffff
jmp 0x418a77
cmp ecx, 0x1000
jb 0x418a9e
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
test eax, eax
je 0x418b45
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x418ab1
test ecx, ecx
je 0x418aaf
push ecx
call fcn.0043b783
add esp, 4
mov edi, eax
jmp 0x418ab1
xor edi, edi
mov dword [ebx + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [ebx + 0x10], ebp
push esi
push eax
push edi
call fcn.0043cce0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x418b09
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x418aff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418b45
mov eax, edx
push ecx
push eax
call fcn.0043b7b3
add esp, 8
mov dword [ebx], edi
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043b572
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b572
add esp, 0x214
ret
call fcn.00402330
call fcn.0043f744
int3