joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x40822e
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x408208
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x4081f0
mov eax, dword [ebp - 4]
add ebx, 0x28
dec eax
mov dword [ebp - 4], eax
jne 0x4081e4
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x408229
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00406da0
mov edi, eax
test edi, edi
jne 0x4082f8
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4082bf
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x4082f8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4082dc
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x4082f8
push ebx
call fcn.00407d40
mov edi, eax
test edi, edi
je 0x40830a
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00406e50
test edi, edi
jle 0x408303
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x40830a
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x408323
cmp dword [esi + 0x40], 0
jne 0x408323
cmp dword [esi + 0x3c], 0
jne 0x408323
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x467bbc]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x408820
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408867
cmp edx, 0x40
je 0x408859
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0044fb50
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
lea edx, [esi + 0x20]
mov edi, 4
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
dec edi
jne 0x4088b0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x40ba50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x470c01], 0
push esi
mov esi, edx
jne 0x40ba8d
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409a80
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004472ce
add esp, 4
test esi, esi
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x470c01], 0
jne 0x40baea
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004472ce
add esp, 4
test esi, esi
pop esi
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40bb10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x470c01], 0
jne 0x40bb7c
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409a80
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004472ce
add esp, 4
test esi, esi
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bbbe
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040bc10
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040d120
test al, al
jne 0x40bbe0
xor bl, bl
jmp 0x40bbe9
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004472ce
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x470c01], 0
push ebx
push esi
mov esi, ecx
jne 0x40bf74
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.004472ce
add esp, 4
jmp 0x40bf82
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bfa1
cmp ebx, 0xffffffff
je 0x40bfa1
test bl, 0x10
jne 0x40bfa1
test bl, 1
je 0x40bfa1
and ebx, 0xfffffffe
mov ecx, esi
mov edx, ebx
call fcn.0040ba50
test al, al
je 0x40bfe8
cmp byte [0x470c01], 0
jne 0x40bfd5
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004472ce
add esp, 4
test esi, esi
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x470c01], 0
jne 0x40c3c9
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004472ce
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x40c3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e4d6
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46e2f0]
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 edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x470c01], cl
jne 0x40c48a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c53d
cmp eax, 0x114
jae 0x40c53d
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x360]
call fcn.00409b40
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409620
push dword [ebp - 0x360]
call fcn.004472ce
add esp, 4
mov al, 1
jmp 0x40c53f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40c53d
cmp esi, 0x114
jae 0x40c4d4
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov al, 1
jmp 0x40c53f
lea ecx, [ebp - 0x360]
call fcn.00409440
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40c4fa
push esi
lea ecx, [ebp - 0x360]
call fcn.00409240
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40c52f
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b970
cmp dword [ebp - 0x35c], ebx
jne 0x40c52f
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40c52f
lea eax, [ebp - 0x360]
jmp 0x40c46d
push dword [ebp - 0x360]
call fcn.004472ce
add esp, 4
xor al, al
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.00446168
mov esp, ebp
pop ebp
ret
Function at 0x40c5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e50b
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46e2f0]
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 byte [0x470c01], 0
jne 0x40c66a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov edi, eax
lea ecx, [ebp - 0x360]
call fcn.00409b40
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409620
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.004472ce
add esp, 4
jmp 0x40c695
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c6d1
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x40c6d1
cmp eax, 0x2f
je 0x40c6d1
cmp dword [esi + 8], ecx
jne 0x40c6b9
mov ecx, esi
call fcn.004092b0
mov ecx, dword [esi + 4]
mov edx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
test edi, edi
je 0x40c6e1
cmp edi, 0x114
jae 0x40c6e1
mov al, 1
jmp 0x40c6e3
xor al, al
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.00446168
mov esp, ebp
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x470c01], 0
jne 0x40d106
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004472ce
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40db10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40db78
test ecx, ecx
je 0x40db6d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40db30
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40db90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40dbf8
test ecx, ecx
je 0x40dbed
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40dbb0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411ad0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x411b08
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x411b08
call fcn.0040ec10
jmp 0x411b17
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esp + 0x10], 0x40000000
mov dword [esp + 0x14], 0
mov dword [esi + 0x20], 0x40000000
mov dword [esi + 0x24], 0
mov dword [esi + 0x10], 0x40000000
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x40000000
mov dword [esi + 0x1c], 0
call fcn.0040ec80
mov byte [esi + 9], al
test al, al
je 0x411bb8
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x411b84
cmp ebx, 0x70000000
jbe 0x411b8b
mov ebx, 0x70000000
xor edi, edi
push 0
push 0x50
push edi
push ebx
call fcn.00411a70
shrd ebx, edi, 5
mov dword [esi + 0x10], eax
shr edi, 5
mov eax, ebx
mov ecx, edi
mov dword [esi + 0x14], edx
shld ecx, eax, 4
shl eax, 4
add eax, ebx
mov dword [esi + 0x18], eax
adc ecx, edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00446f69
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x41a5ae
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x420360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f547
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi], 0x468894
mov dword [esi + 4], 0x468860
mov dword [esi + 8], 0x468874
mov dword [esi + 0xc], 0x46884c
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push 8
mov dword [esi + 0x44], 0
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x50], ecx
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 8
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
call fcn.0040bc10
mov dword [esi + 0x98], 0
mov eax, esi
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0x54fffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f8ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
push dword [esi + 0xcc]
call fcn.004472ce
push dword [esi + 0xc0]
call fcn.004472ce
push dword [esi + 0x9c]
call fcn.004472ce
push dword [esi + 0x90]
call fcn.004472ce
push dword [esi + 0x30]
call fcn.004472ce
push dword [esi + 0x24]
call fcn.004472ce
push dword [esi + 0x18]
call fcn.004472ce
mov ecx, dword [esi + 0xc]
add esp, 0x1c
test ecx, ecx
je 0x422904
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x422915
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x422926
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x422939
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x14]
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447196
mov ebx, eax
mov dword [ebp - 0x20], edi
mov eax, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
inc eax
add eax, eax
push eax
push dword [esi + 0x10]
push ebx
call fcn.00448c70
add esp, 0x10
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp dword [eax + 4], ecx
jbe 0x423a1d
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx + 4]
cmp edx, eax
jbe 0x42398d
lea ecx, [edi + edx]
mov eax, ecx
shr eax, 1
add eax, 0x10
add eax, ecx
and eax, 0xfffffff0
dec eax
cmp eax, edi
jb 0x423931
cmp eax, 0x3ffffffe
jbe 0x423936
mov eax, 0x3ffffffe
cmp eax, edi
jbe 0x423a3a
mov ecx, eax
sub ecx, edi
cmp ecx, edx
jb 0x423a3a
dec eax
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447196
lea ecx, [edi*2 + 2]
mov esi, eax
push ecx
push ebx
push esi
call fcn.00448c70
push ebx
call fcn.004472ce
mov ecx, dword [ebp - 0x14]
mov ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
push dword [ecx]
lea eax, [ebx + edi*2]
push eax
call fcn.00448c70
mov eax, dword [ebp - 0x14]
add esp, 0xc
add edi, dword [eax + 4]
cmp byte [0x470c01], 0
mov dword [ebp - 0x20], edi
jne 0x4239d9
mov edx, ebx
lea ecx, [ebp - 0x30]
call fcn.00409a80
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
call fcn.004472ce
add esp, 4
jmp 0x4239e2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, edi
jne 0x4239f7
lea ecx, [ebp - 0x24]
call fcn.004092b0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc ecx
inc edi
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [ebx + edi*2], ax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x423903
push ebx
call fcn.004472ce
add esp, 4
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
push 0x46cda8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.0044c29d
int3
Function at 0x424160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fb59
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], 0x4689dc
mov dword [edi + 8], 0
push 8
mov dword [edi + 0xc], 0
call fcn.00447196
xor ecx, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 3
mov word [eax], cx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x44], ecx
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.00408980
mov word [edi + 0x60], 0
mov dword [edi + 0x68], 1
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
push 0
push 0
push 1
mov byte [ebp - 4], 3
push 0
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x44], eax
test eax, eax
jne 0x424252
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x424252
push 0x46cda8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x145ecb
push eax
call fcn.0044c29d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret