joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50fbf1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5635bc]
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.00402390
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.00404090
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.00402390
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4042a3
mov edx, dword [esp + 0x14]
push edx
call fcn.004dfc96
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 0x4042c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x50fbf1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5635bc]
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.00402390
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 0x404320
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403f60
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.00402390
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404377
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004dfc96
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 0x404cd0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x404d0f
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 0x404d0f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x4050a0
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 0x4050d3
or eax, 0xffffffff
jmp 0x4051e3
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 0x405117
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4051e3
cmp dword [ebp - 0xc], 0
je 0x40512f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x4051e3
cmp dword [ebp - 0x14], 1
je 0x405146
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4051e3
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.004592dc
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.00462540
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 0x4051b9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004dfc96
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x4051e3
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00408d50
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004dfc96
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 0x4095b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5635bc]
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.00462540
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.00403a80
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x4c
call fcn.00403a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046252a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5635bc]
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.00462540
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.00403a80
push 0x511e5c
mov ecx, dword [ebp - 0x214]
add ecx, 0x274
call fcn.00403ab0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046252a
mov esp, ebp
pop ebp
ret

Function at 0x409f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5635bc]
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.00462540
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.0046252a
mov esp, ebp
pop ebp
ret 4
Function at 0x409fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5083a1
mov eax, dword fs:[0]
push eax
mov eax, 0x1344
call fcn.004641e0
mov eax, dword [0x5635bc]
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.00411a70
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1340]
call fcn.00409f40
mov dword [ebp - 4], 0
push 0x511e68
push 0x511e80
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1308]
push edx
call fcn.004042c0
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.004042c0
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.00403a60
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.00401cf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a179
mov dword [ebp - 0x12e8], 0
mov dword [ebp - 0x12ec], 0
push 1
push 0x40
push 0x60
lea ecx, [ebp - 0x2c]
call fcn.00401cf0
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040ca70
mov byte [ebp - 4], 3
push 2
push 0
lea ecx, [ebp - 0x12e4]
call fcn.0040c620
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x12e4]
call fcn.0040c6a0
mov ecx, eax
call fcn.0040c740
mov dword [ebp - 0x12e8], eax
push 0
mov eax, dword [ebp - 0x12e8]
sub eax, 0x1224
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040c620
push 0x1224
mov ecx, dword [ebp - 0x1340]
add ecx, 0x2b4
push ecx
lea ecx, [ebp - 0x12e4]
call fcn.0040c600
lea ecx, [ebp - 0x12e4]
call fcn.0040cbd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12e4]
call fcn.0040c550
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.0046252a
mov esp, ebp
pop ebp
ret
Function at 0x40c020
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5086dd
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5635bc]
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.00462540
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.00403ab0
lea ecx, [ebp - 0x238]
call fcn.00401cf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c0e3
mov byte [ebp - 0x239], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401cc0
mov al, byte [ebp - 0x239]
jmp 0x40c102
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.0046252a
mov esp, ebp
pop ebp
ret

Function at 0x40c260
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50871b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5635bc]
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.00401cf0
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.00462540
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 0x40c39c
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00401c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00401cf0
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004109d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40c375
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 0x40c307
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.0046252a
mov esp, ebp
pop ebp
ret 4
Function at 0x40e680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5088e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5635bc]
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 0x40e6c0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40e6cc
mov al, 1
jmp 0x40e86f
mov dword [ebp - 0x10], 8
call fcn.00410f30
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.00410f30
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00410f10
add esp, 8
movzx eax, al
test eax, eax
je 0x40e70f
xor al, al
jmp 0x40e86f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d8f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040d9a0
mov ecx, eax
call fcn.0040dd40
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d9a0
mov ecx, eax
call fcn.0040dd40
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.0040f540
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40e78a
cmp dword [ebp - 0x6c], 1
je 0x40e791
cmp dword [ebp - 0x6c], 3
je 0x40e82b
jmp 0x40e843
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040d9a0
mov ecx, eax
call fcn.0040dd40
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40e7f4
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.0040d9a0
mov ecx, eax
call fcn.0040dd40
push eax
call fcn.004644eb
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40e7f4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x61]
jmp 0x40e86f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40e817
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x62]
jmp 0x40e86f
cmp dword [ebp - 0x38], 0
jne 0x40e829
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d930
jmp 0x40e85b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x63]
jmp 0x40e86f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov al, byte [ebp - 0x64]
jmp 0x40e86f
jmp 0x40e722
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046252a
mov esp, ebp
pop ebp
ret
Function at 0x412ed0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508beb
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5635bc]
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 0x412f0e
xor eax, eax
jmp 0x4130c8
mov byte [ebp - 0x214], 0
push 0xff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00462540
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.004640e0
add esp, 8
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00462950
add esp, 4
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x470]
call fcn.00413b40
mov dword [ebp - 4], 0
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.00462540
add esp, 0xc
mov edx, dword [ebp - 0x474]
movsx eax, byte [ebp + edx - 0x215]
cmp eax, 0x5c
je 0x412faa
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 0x4130a6
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x3a
jne 0x412fe4
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x218], eax
jmp 0x412faa
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x5c
jne 0x413092
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.00465010
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.00413b80
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x470]
call fcn.00449870
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x413092
push 0
lea ecx, [ebp - 0x470]
call fcn.00449870
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413092
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00413b60
mov eax, dword [ebp - 0x478]
jmp 0x4130c8
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x412faa
mov dword [ebp - 0x47c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00413b60
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.0046252a
mov esp, ebp
pop ebp
ret 4
Function at 0x416bd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x5125ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x416bf6
xor eax, eax
jmp 0x416cbc
push str.GetNativeSystemInfo
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.IsWow64Process
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.Wow64DisableWow64FsRedirection
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x51264c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str.GetSystemWow64DirectoryW
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x416c87
xor eax, eax
jmp 0x416cbc
push 0x5126a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
push str.Wow64RevertWow64FsRedirection
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x418d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509158
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5635bc]
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.00462540
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.00410940
mov ecx, eax
call fcn.00409c30
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.00403a60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00401cc0
push 0x1034
call fcn.004592b1
add esp, 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x280], 0
je 0x418ede
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.00403a30
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.00420b00
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
jmp 0x418ee8
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 0x418f70
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.0046252a
mov esp, ebp
pop ebp
ret 0x10