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

Disassembly:
push 0xffffffffffffffff
push 0x5116b8
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5655bc]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x53ae58
mov byte [ecx + 4], bl
call fcn.00401e80
push ebx
mov byte [esp + 0x644], 3
call fcn.00467ddd
push eax
call fcn.004684b5
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00463a20
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x402b11
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00463a20
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x402aee
cmp eax, ebx
je 0x402aee
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00403bc0
jmp 0x402b11
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402af5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004020d0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x402b48
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x402b25
call fcn.00463c0e
cmp dword [edi + 0x18], 8
jb 0x402b30
mov eax, dword [edi + 4]
jmp 0x402b33
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x402b48
push 1
push 0x53ae5c
mov ecx, edi
call fcn.004040c0
cmp dword [esi + 0x38], ebx
jne 0x402b5b
push 3
push 0x53ae60
mov ecx, edi
call fcn.004020d0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00463a0b
add esp, 0x634
ret
Function at 0x402b90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x511611
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], 2
cmp dword [esi + 0x54], ebx
mov ebp, 8
je 0x402bdf
cmp dword [esi + 0x58], ebp
jb 0x402bd5
mov eax, dword [esi + 0x44]
jmp 0x402bd8
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x402bf1
mov eax, dword [esi + 0x60]
push eax
call fcn.0045a60c
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov byte [esp + 0x18], 1
cmp dword [esi + 0x58], ebp
jb 0x402c14
mov eax, dword [esi + 0x44]
push eax
call fcn.0045a60c
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
mov byte [esp + 0x18], bl
cmp dword [esi + 0x3c], ebp
jb 0x402c37
mov eax, dword [esi + 0x28]
push eax
call fcn.0045a60c
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x20], ebp
jb 0x402c5e
mov eax, dword [esi + 0xc]
push eax
call fcn.0045a60c
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], bx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x404360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x511771
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004023c0
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.00404250
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.004023c0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404403
mov edx, dword [esp + 0x14]
push edx
call fcn.0045a60c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404420
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x511771
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004023c0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404480
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004040c0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.004023c0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4044d7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045a60c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404ac0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x404aff
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404aff
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x405800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405833
or eax, 0xffffffff
jmp 0x405943
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x405877
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405943
cmp dword [ebp - 0xc], 0
je 0x40588f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x405943
cmp dword [ebp - 0x14], 1
je 0x4058a6
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405943
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.0045a611
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00463a20
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405919
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0045a60c
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x405943
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00409460
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0045a60c
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463a20
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x30
call fcn.00403bc0
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x4c
call fcn.00403bc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret

Function at 0x40a3c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463a20
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x274
call fcn.00403bc0
push 0x513e5c
mov ecx, dword [ebp - 0x214]
add ecx, 0x274
call fcn.00403bf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret

Function at 0x40a650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463a20
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c80
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x40a6e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509e41
mov eax, dword fs:[0]
push eax
mov eax, 0x1344
call fcn.004656c0
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1340], ecx
lea ecx, [ebp - 0x1254]
call fcn.004122a0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1340]
call fcn.0040a650
mov dword [ebp - 4], 0
push 0x513e68
push 0x513e80
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1308]
push edx
call fcn.00404420
add esp, 0xc
mov dword [ebp - 0x1344], eax
mov eax, dword [ebp - 0x1344]
mov dword [ebp - 0x1348], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1348]
push ecx
lea edx, [ebp - 0x1324]
push edx
call fcn.00404420
add esp, 0xc
mov dword [ebp - 0x134c], eax
mov eax, dword [ebp - 0x134c]
mov dword [ebp - 0x1350], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1350]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403ba0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1324]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1308]
call fcn.00401cc0
lea ecx, [ebp - 0x2c]
call fcn.00401e70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a889
mov dword [ebp - 0x12e8], 0
mov dword [ebp - 0x12ec], 0
push 1
push 0x40
push 0x60
lea ecx, [ebp - 0x2c]
call fcn.00401e70
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040d160
mov byte [ebp - 4], 3
push 2
push 0
lea ecx, [ebp - 0x12e4]
call fcn.0040cd10
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x12e4]
call fcn.0040cd90
mov ecx, eax
call fcn.0040ce30
mov dword [ebp - 0x12e8], eax
push 0
mov eax, dword [ebp - 0x12e8]
sub eax, 0x1224
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040cd10
push 0x1224
mov ecx, dword [ebp - 0x1340]
add ecx, 0x2b4
push ecx
lea ecx, [ebp - 0x12e4]
call fcn.0040ccf0
lea ecx, [ebp - 0x12e4]
call fcn.0040d2c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12e4]
call fcn.0040cc40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret
Function at 0x40c730
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a17d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00463a20
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401c80
mov dword [ebp - 4], 0
push str.7654.debug
lea ecx, [ebp - 0x238]
call fcn.00403bf0
lea ecx, [ebp - 0x238]
call fcn.00401e70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c7f3
mov byte [ebp - 0x239], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401cc0
mov al, byte [ebp - 0x239]
jmp 0x40c812
mov byte [ebp - 0x23a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401cc0
mov al, byte [ebp - 0x23a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret

Function at 0x40c970
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a1bb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x260]
call fcn.00401c80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00401e70
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x244], 0x22c
mov dword [ebp - 0x240], 0
push 0x224
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00463a20
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40caac
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00401c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00401e70
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00411150
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40ca85
mov edx, dword [ebp - 0x23c]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x280], eax
push 0
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.00401cc0
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ca17
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a358
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x40eda0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40edac
mov al, 1
jmp 0x40ef4f
mov dword [ebp - 0x10], 8
call fcn.00411760
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00411760
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00411740
add esp, 8
movzx eax, al
test eax, eax
je 0x40edef
xor al, al
jmp 0x40ef4f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040dfe0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040e090
mov ecx, eax
call fcn.0040e430
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00403cc0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e090
mov ecx, eax
call fcn.0040e430
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.0040fc50
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40ee6a
cmp dword [ebp - 0x6c], 1
je 0x40ee71
cmp dword [ebp - 0x6c], 3
je 0x40ef0b
jmp 0x40ef23
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e090
mov ecx, eax
call fcn.0040e430
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40eed4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e090
mov ecx, eax
call fcn.0040e430
push eax
call fcn.00465a10
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40eed4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x61]
jmp 0x40ef4f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40eef7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x62]
jmp 0x40ef4f
cmp dword [ebp - 0x38], 0
jne 0x40ef09
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040e020
jmp 0x40ef3b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x63]
jmp 0x40ef4f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x64]
jmp 0x40ef4f
jmp 0x40ee02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret
Function at 0x413700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a6bb
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], ecx
cmp dword [ebp + 8], 0
jne 0x41373e
xor eax, eax
jmp 0x4138f8
mov byte [ebp - 0x214], 0
push 0xff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00463a20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.004655c0
add esp, 8
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00463e30
add esp, 4
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x470]
call fcn.00414370
mov dword [ebp - 4], 0
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.00463a20
add esp, 0xc
mov edx, dword [ebp - 0x474]
movsx eax, byte [ebp + edx - 0x215]
cmp eax, 0x5c
je 0x4137da
mov ecx, dword [ebp - 0x474]
mov byte [ebp + ecx - 0x214], 0x5c
mov edx, dword [ebp - 0x218]
movsx eax, byte [ebp + edx - 0x214]
test eax, eax
je 0x4138d6
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x3a
jne 0x413814
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x218], eax
jmp 0x4137da
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x5c
jne 0x4138c2
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.00466530
add esp, 0xc
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x114], 0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x470]
call fcn.004143b0
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x470]
call fcn.00423260
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4138c2
push 0
lea ecx, [ebp - 0x470]
call fcn.00423260
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4138c2
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00414390
mov eax, dword [ebp - 0x478]
jmp 0x4138f8
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x4137da
mov dword [ebp - 0x47c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00414390
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x4193f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50abc8
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp - 0x288]
mov cl, byte [eax + 0x25]
mov byte [ebp - 0x23e], cl
mov edx, dword [ebp - 0x288]
mov al, byte [edx + 0x24]
mov byte [ebp - 0x23d], al
push str.0025
lea ecx, [ebp - 0x30]
call fcn.00401c80
mov dword [ebp - 4], 0
mov word [ebp - 0x23c], 0
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.00463a20
add esp, 0xc
push 0x104
lea edx, [ebp - 0x23c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00401c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
push ecx
call fcn.00411050
mov ecx, eax
call fcn.0040a340
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403ba0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00401cc0
push 0x1034
call fcn.0045a5e1
add esp, 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x280], 0
je 0x41956e
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x288]
mov al, byte [edx + 0x27]
push eax
mov ecx, dword [ebp - 0x288]
mov dl, byte [ecx + 0x26]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x284], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00403b70
mov dword [ebp - 0x294], eax
mov cl, byte [ebp - 0x23e]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x288]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.004218d0
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
jmp 0x419578
mov dword [ebp - 0x29c], 0
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x288]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x419600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x288]
mov dword [edx + 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret 0x10