joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1cb010]
push edi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x4bf0339
nop
push eax
nop
call 0x77545da0
mov ebx, eax
push 0x1d49e8
mov dword [ebp - 4], ebx
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
mov byte [ebx + edi], 0
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x1a4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x76b797f0
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x1d49e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x1a4b06
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
push 0x1d49e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x4bf033f
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1a6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x1a6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76b78cf0
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x1a6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1a6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x1a6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x76b78cf0
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x1a6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x1a6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x1a6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.003d90f4]
push eax
call dword [fcn.003d9088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x1a6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.001a7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x6b7af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x3d90e0]
test esi, esi
jne 0x6b7b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x6b7b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x6b7b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x6b7b6a
jmp 0x6b7b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x3d8bf0]
add eax, esi
call fcn.006b5610
test eax, eax
je 0x6b7b73
inc edi
cmp edi, dword [ebp - 4]
jb 0x6b7b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2a6923a8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x165a0e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401da0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4124f7
call fcn.00411fa0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.0040e0bd
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x1d30], edi
mov dword [esi], 0x4142cc
mov dword [esi + 4], 0x4142bc
mov dword [esi + 8], 0x4142a8
mov dword [esi + 0xc], 0x414298
mov dword [esi + 0x10], 0x414284
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401ee6
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41251a
call fcn.00411fa0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4142cc
mov dword [esi + 4], 0x4142bc
mov dword [esi + 8], 0x4142a8
mov dword [esi + 0xc], 0x414298
mov dword [esi + 0x10], 0x414284
push dword [esi + 0x1d30]
lea edi, [esi + 0x1d30]
mov dword [ebp - 4], 1
call fcn.0040ad38
and dword [edi], 0
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.00401f5b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x18]
call fcn.0040ac6a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4073b2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412d4b
call fcn.00411fa0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4143b8
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x414218
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040bdc0
push dword [esi + 8]
mov ecx, ebx
call fcn.0040bdc0
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040bdc0
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040bdc0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407967
Capabilities:
Create thread

Disassembly:
mov eax, 0x412f01
call fcn.00411fa0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0x414448
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.0040105a
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.00401a15
mov dword [esi + 0x5c], 0x414440
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.00401a15
mov dword [esi + 0x70], 0x414438
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414430
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.0040de24
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414314
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.0040de24
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.0040de24
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x407aca
push edi
push edi
mov dword [esi], 0x41441c
mov dword [esi + 4], 0x414410
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x407a6b
lea eax, [ebp - 0x10]
push 0x4149d8
push eax
mov dword [ebp - 0x10], 0x425d1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407d01
Capabilities:
Create thread

Disassembly:
mov eax, 0x412f9b
call fcn.00411fa0
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
push dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax]
call fcn.0040746f
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040850a
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.004075b8
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.0040215d
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004085b5
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x407df7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x407ddc
lea eax, [ebp - 0x10]
push 0x4149d8
push eax
mov dword [ebp - 0x10], 0x425d0
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.0040762d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40b35b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x40b386
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4185f0]
xor eax, edi
inc edx
dec esi
jne 0x40b36c
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x40c8aa
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c8be
xor al, al
jmp 0x40c8ce
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40c965
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x4135b8
call fcn.00411fa0
sub esp, 0x6c
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0040d08e
mov esi, dword [ebp + 8]
push 0x5c
lea eax, [ebp - 0x18]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040d28c
lea eax, [ebp - 0x18]
push 0x2a
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040d28c
mov byte [ebp - 0x34], bl
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040b67e
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040d793
test al, al
je 0x40ca24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040b67e
call fcn.0040ca8f
cmp al, bl
jne 0x40c9c0
push dword [ebp - 0x30]
mov byte [ebp - 4], 6
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040d348
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor al, al
pop ecx
jmp 0x40ca7a
push dword [ebp - 0x30]
mov byte [ebp - 4], 7
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040d348
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ca50
mov byte [ebp + 0xb], bl
jmp 0x40ca5e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne byte [ebp + 0xb]
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40cdfa
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x104
push edi
mov edi, 0x105
cmp dword [esi + 8], ebx
jg 0x40ce18
push edi
mov ecx, esi
call fcn.0040b6b4
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, esi
mov edi, eax
call fcn.0040d0ed
test edi, edi
jbe 0x40ce37
cmp edi, ebx
ja 0x40ce37
push 1
pop eax
jmp 0x40ce39
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x40cf65
Capabilities:
Delete file

Disassembly:
mov eax, 0x41365c
call fcn.00411fa0
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.0040d01e
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040ceb2
test al, al
je 0x40cff7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40cfde
push dword [esi]
call fcn.0040d6f6
test al, al
je 0x40cfc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040cf41
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40cf79
push dword [esi]
call fcn.0040c5ff
test al, al
jne 0x40cfdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cff7
jmp 0x40cfab
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040cf41
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, bl
jmp 0x40d00e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040cf41
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d565
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x413710
call fcn.00411fa0
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00412160
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.0040d0a6
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040d625
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040af62
push dword [ebp - 0x24]
and byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d901
Capabilities:
Get file size

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

Function at 0x4111c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x4111f2
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x413dbc
call fcn.00411fa0
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.0040af62
push 0
push 0x1f4
mov ecx, edi
call fcn.0040c1a0
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.0040dd2d
mov eax, dword [eax]
and dword [ebp - 4], 0
add esi, 0x6c
push eax
mov ecx, esi
call fcn.0040de86
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x411395
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413e46
call fcn.00411fa0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x4146c4
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004071eb
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.0040de24
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.00411429
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x414694
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10022c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10037040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10022cbc
cmp byte [esi + 0x3d], 0
je 0x10022cbc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10022caa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10022c71
sub eax, 1
je 0x10022c75
sub eax, 2
jne 0x10022caa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d54f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10022c93
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10022caa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d54f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d54f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002d54f
mov esp, ebp
pop ebp
ret
Function at 0x10027300
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
cmp ebx, eax
je 0x10027471
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0xc]
mov esi, ebx
xor ecx, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.10027630
push 0x2c
push edi
call fcn.1002d9ca
mov edx, dword [ebp - 0x14]
add esp, 8
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x100273cd
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x10027380
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x10027467
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi], esi
mov dword [ecx], esi
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x100273e1
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov dword [edi], eax
jmp 0x100273e4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], ecx
cmp esi, eax
je 0x10027467
nop
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.10027630
push 0x2c
push edi
call fcn.1002d9ca
mov edx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x10027478
cmp esi, eax
jne 0x10027437
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
cmp esi, eax
jne 0x100273f0
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8