joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413510
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x41355b
cmp edx, 0x40
je 0x413547
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0045d090
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x413561
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0045d090
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
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
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4135a4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
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
pop ebp
ret 8

Function at 0x413610
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x4ca020]
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
pop ebp
ret 4

Function at 0x413a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00460e02
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x413a7d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
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 0xc
Function at 0x416c50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4cda14], 0
jne 0x416c98
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x416c90
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x416f30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00418200
cmp eax, 0xffffffff
je 0x416f5d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x416f5d
and eax, 0xfffffffe
push eax
push esi
call fcn.00417670
test al, al
je 0x416f89
cmp byte [0x4cda14], 0
push esi
jne 0x416f9b
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
jne 0x416f92
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x416fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47970b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4ca180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x4cda14], cl
jne 0x41705c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x417138
cmp eax, 0x114
jae 0x417138
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00415330
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004142f0
push dword [ebp - 0x36c]
call fcn.0045ba8c
add esp, 4
mov al, 1
jmp 0x41713a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x417138
cmp esi, 0x114
jae 0x4170a7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004144a0
mov al, 1
jmp 0x41713a
lea ecx, [ebp - 0x360]
call fcn.00414260
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x4170cd
push esi
lea ecx, [ebp - 0x360]
call fcn.00414be0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41712a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x4170f9
inc eax
cmp word [ecx + eax*2], 0
jne 0x4170f1
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41712a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41712a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.004142f0
push dword [ebp - 0x360]
call fcn.0045ba8c
add esp, 4
mov al, 1
jmp 0x41713a
push dword [ebp - 0x360]
call fcn.0045ba8c
add esp, 4
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.0045b84f
mov esp, ebp
pop ebp
ret 4
Function at 0x4171c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479750
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4ca180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4cda14], 0
mov esi, dword [ebp + 8]
jne 0x41724d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00415330
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004142f0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0045ba8c
add esp, 4
jmp 0x417278
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.004144a0
push esi
call fcn.00419050
test edi, edi
je 0x41728e
cmp edi, 0x114
jae 0x41728e
mov al, 1
jmp 0x417290
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.0045b84f
mov esp, ebp
pop ebp
ret 4

Function at 0x4172d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4cda14], 0
jne 0x417316
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x41730e
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x4175a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4cda14], 0
jne 0x4175dd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x417670
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4cda14], 0
jne 0x4176b9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x4176b1
xor al, al
mov esp, ebp
pop ebp
ret 8
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4cda14], 0
jne 0x41823a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
or eax, 0xffffffff
cmp ecx, 0xffffffff
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4184b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4184e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4184e2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4185e0
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
nop
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 0x418648
test ecx, ecx
je 0x41863d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x418600
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 0x4252b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a160
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ca180]
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 + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x58], 0x40000
push 0x419ad0
push 0x4252a0
push 4
push 4
lea eax, [esi + 0x2f8]
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0x4959cc
mov dword [esi + 4], 0x4959dc
mov dword [esi + 8], 0x4959ec
mov dword [esi + 0xc], 0x4959fc
mov dword [esi + 0x10], 0x495a10
mov dword [esi + 0x14], 0x495a24
mov dword [esi + 0x18], 0x495a34
mov word [esi + 0x2e0], 0
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
call fcn.0045b8bc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a6b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ca180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.00414260
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.00414260
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.00414260
lea esi, [edi + 0x78]
mov dword [edi + 0x44], 0
xor eax, eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00414260
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.00414260
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00414260
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00414260
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
Function at 0x42aae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a747
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ca180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi], 0x495f0c
mov dword [edi + 4], 0x495f20
mov dword [edi + 8], 0x495f34
mov dword [edi + 0xc], 0x495f44
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00414260
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 3
call fcn.00414260
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00417770
lea ecx, [esi + 0x28]
call fcn.00414260
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 5
call fcn.00429000
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

Function at 0x42ac20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a770
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4ca180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.0045ba8c
push dword [esi + 0xc0]
call fcn.0045ba8c
push dword [esi + 0x9c]
call fcn.0045ba8c
push dword [esi + 0x90]
call fcn.0045ba8c
push dword [esi + 0x30]
call fcn.0045ba8c
push dword [esi + 0x24]
call fcn.0045ba8c
push dword [esi + 0x18]
call fcn.0045ba8c
add esp, 0x1c
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42aca0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42acb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x42acc8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42acdb
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 0x42ad90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a7fc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ca180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xe0
call fcn.0045ba45
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42af21
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x42adea
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42adfe
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 2
mov dword [esi + 8], ecx
test ecx, ecx
je 0x42ae12
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x42ae26
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
lea ecx, [esi + 0x18]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00414080
lea eax, [edi + 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x24]
call fcn.00414080
lea eax, [edi + 0x30]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.00414080
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esi + 0x74], ecx
lea ecx, [esi + 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.0042aa40
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0xa8]
call fcn.0042aa40
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], ecx
jmp 0x42af23
xor esi, esi
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov dword [ecx + eax*4], 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 0x45c817
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45c856
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45c856
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45c856
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45c856
cmp dword [ecx + 0x74], 0xe
jbe 0x45c856
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x469c70
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba354
push 0x4ba34c
push str.FlsAlloc
push 0x1e
call fcn.00469afa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469ca4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4952b0]
call esi
jmp 0x469caa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x469cee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba364
push 0x4ba35c
push str.FlsGetValue
push 0x20
call fcn.00469afa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469d25
push dword [ebp + 8]
mov ecx, esi
call dword [0x4952b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46bda1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046bc12

Function at 0x46d3e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ce1f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d429
cmp byte [ebx], 0xa
jne 0x46d429
or byte [eax + edi + 0x28], 4
jmp 0x46d42e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46d52c
mov al, byte [edx]
cmp al, 0x1a
je 0x46d50e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46d45d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46d482
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46d48c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46d43f
jmp 0x46d52c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d509
cmp dword [ebp - 0xc], 0
je 0x46d509
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ce1f8]
test byte [eax + edi + 0x28], 0x48
je 0x46d4e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d4ce
mov byte [esi], dl
jmp 0x46d4df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ce1f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d52c
cmp byte [ebp - 1], 0xa
jne 0x46d4f2
cmp esi, ebx
jne 0x46d4f2
mov byte [esi], 0xa
jmp 0x46d52b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00472d6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d52c
mov byte [esi], 0xd
jmp 0x46d52b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ce1f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d528
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d52c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret