joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adfc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
or dword [ebp - 4], 0xffffffff
xor eax, eax
jne 0x40ae09
push 0x30
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00401c20
add esp, 0xc
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x54], 0x409cd6
mov dword [ebp - 0x58], 0x4000
mov dword [ebp - 0x34], 0x45c6d0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx eax, ax
test eax, eax
jne 0x40ae53
xor eax, eax
jne 0x40ae4a
jmp 0x40af6d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x45c6e4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x40ae86
xor eax, eax
jne 0x40ae7d
jmp 0x40af58
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x40acea
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x40aec0
xor eax, eax
jne 0x40aeac
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
mov dword [ebp - 4], eax
jmp 0x40af4f
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x90]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x40af18
cmp dword [ebp - 0x94], 1
je 0x40af1e
cmp dword [ebp - 0x94], 0x102
je 0x40af16
cmp dword [ebp - 0x94], 0xffffffff
je 0x40af0d
jmp 0x40af4a
mov dword [ebp - 4], 0xfffffffd
jmp 0x40af4f
jmp 0x40aec0
and dword [ebp - 4], 0
jmp 0x40af4f
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40af4a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40af1e
jmp 0x40aec0
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push str.DummyWindowClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
test eax, eax
jne 0x40af6d
xor eax, eax
jne 0x40af69
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x40f126
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x105
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f14f
xor eax, eax
jmp 0x40f20c
xor eax, eax
jne 0x40f14f
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x40f18c
xor eax, eax
jne 0x40f181
xor eax, eax
jmp 0x40f20c
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x114], 0xffffffff
jne 0x40f1c5
xor eax, eax
jne 0x40f1bd
xor eax, eax
jmp 0x40f20c
push 0
push 0
push 0
push 4
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f1f6
xor eax, eax
jne 0x40f1e2
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f20c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x114]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
inc eax
leave
ret

Function at 0x40f228
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], 0x811c9dc5
and dword [ebp - 4], 0
jmp 0x40f241
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x40f266
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x1000193
mov dword [ebp - 8], eax
jmp 0x40f23a
mov eax, dword [ebp - 8]
leave
ret
Function at 0x40f602
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x28]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
jmp 0x40f63e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x28]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jge 0x40f71c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
jne 0x40f6bd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40f6b8
push 4
push 0x1000
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f693
xor eax, eax
jmp 0x40f71f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
push dword [ebp - 0xc]
push 0
push dword [ebp - 8]
call fcn.00401c20
add esp, 0xc
jmp 0x40f62e
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f6e7
xor eax, eax
jmp 0x40f71f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 8]
call fcn.00401680
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x40f62e
xor eax, eax
inc eax
leave
ret
Function at 0x415c1a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov word [ebp - 0x10], ax
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x415cf0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x14]
jae 0x415c6c
mov eax, dword [ebp + 8]
jmp 0x415d9b
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x415c80
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x415ceb
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + eax + 0xc]
jb 0x415ce9
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x10]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + ecx + 0x10]
cmp dword [ebp + 8], eax
jae 0x415ce9
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
sub edx, dword [ecx + eax + 0xc]
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0x14]
mov eax, edx
jmp 0x415d9b
jmp 0x415c74
jmp 0x415d99
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x14]
jae 0x415d1d
mov eax, dword [ebp + 8]
jmp 0x415d9b
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x415d31
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x415d99
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + eax + 0xc]
jb 0x415d97
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x10]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + ecx + 0x10]
cmp dword [ebp + 8], eax
jae 0x415d97
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
sub edx, dword [ecx + eax + 0xc]
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0x14]
mov eax, edx
jmp 0x415d9b
jmp 0x415d25
xor eax, eax
leave
ret
Function at 0x415d9d
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x811c9dc5
cmp dword [ebp + 8], 0
je 0x415db8
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test eax, eax
jne 0x415dbd
mov eax, dword [ebp - 4]
jmp 0x415e08
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x5f
jne 0x415dcf
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test eax, eax
je 0x415e05
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x40
je 0x415e05
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x1000193
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
jmp 0x415dcf
mov eax, dword [ebp - 4]
leave
ret
Function at 0x415e0a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push str.ReflectiveLoader
call fcn.00415d9d
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x994d06f3
mov dword [ebp - 0x28], 0x6249c9c2
mov dword [ebp - 0x24], 0xda5392de
mov dword [ebp - 0x10], 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0x18]
cmp eax, 0x10b
jne 0x415e89
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0xc], eax
jmp 0x415eb2
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0x18]
cmp eax, 0x20b
jne 0x415eab
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x20]
add eax, 0x88
mov dword [ebp - 0xc], eax
jmp 0x415eb2
xor eax, eax
jmp 0x415fd4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x24]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
dec ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x415fd2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
call fcn.00415d9d
pop ecx
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
jmp 0x415f66
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jae 0x415fbc
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x30]
cmp eax, dword [ebp - 0x38]
je 0x415f7c
jmp 0x415f5f
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call fcn.00415c1a
add esp, 0xc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
push dword [eax]
call fcn.00415c1a
add esp, 0xc
jmp 0x415fd4
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x415f22
xor eax, eax
leave
ret
Function at 0x415fd6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x1c], 0
jne 0x415fe8
lea eax, [ebp - 0x10]
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xc], eax
xor eax, eax
jne 0x416005
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x416106
xor eax, eax
jne 0x416018
and dword [ebp - 0xc], 0
cmp dword [0x45e660], 0
jne 0x416087
cmp dword [0x45e658], 0
jne 0x41607d
push str.RtlCreateUserThread
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45e658], eax
push str.GetThreadId
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45e65c], eax
cmp dword [0x45e658], 0
je 0x416079
xor eax, eax
jne 0x416073
jmp 0x41607d
xor eax, eax
jne 0x416079
mov dword [0x45e660], 1
cmp dword [0x45e658], 0
je 0x4160fe
cmp dword [0x45e65c], 0
je 0x4160fe
xor eax, eax
jne 0x416099
mov eax, dword [ebp + 0x18]
and eax, 4
sub eax, 4
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call dword [0x45e658]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jne 0x4160da
cmp dword [ebp - 4], 0
jne 0x4160fc
cmp dword [ebp + 0x1c], 0
je 0x4160fc
push dword [ebp - 0xc]
call dword [0x45e65c]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jne 0x4160f8
jmp 0x416106
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4167cb
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 1
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push 0
push 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x100000
push dword [ebp + 8]
call fcn.00415fd6
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x416875
cmp dword [ebp + 0xc], 2
jne 0x416851
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0041610b
add esp, 0x10
test eax, eax
je 0x41684f
xor eax, eax
jne 0x41682d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_remotethread:_migrate_via_remotethread_wow64_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x4168bd
jmp 0x416873
xor eax, eax
jne 0x416851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_remotethread:_CreateRemoteThread_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x4168bd
jmp 0x416879
xor eax, eax
jne 0x416875
xor eax, eax
jne 0x416879
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4168b1
xor eax, eax
jne 0x41688f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_remotethread:_ResumeThread_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x4168bd
xor eax, eax
jne 0x4168b1
xor eax, eax
jne 0x4167e4
cmp dword [ebp - 0xc], 0
je 0x4168d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7020489b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x56170963
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10003550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000357c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000359e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100035a0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10003625
jg 0x100035b5
test esi, esi
je 0x10003625
test ecx, ecx
jl 0x10003608
jg 0x100035bf
test eax, eax
je 0x10003608
cmp edi, ecx
jg 0x100035d3
jl 0x100035c9
cmp esi, eax
jae 0x100035d3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10003625
jg 0x1000360b
test esi, esi
je 0x10003625
jmp 0x1000360b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10003625
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1000366c
jl 0x10003660
test esi, esi
jne 0x1000366c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003685
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x100036bf
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100036bf
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x10003740
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100036e8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1000372c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10003753
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10003700
test edx, edx
je 0x10003740
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc