joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f900
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004fcf0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006ab2c], 0
jne 0x1004f93d
cmp dword [0x1006ab28], 0
je 0x1004f93d
mov eax, dword [0x1006ab28]
mov dword [0x1006ab2c], eax
cmp dword [0x1006ab2c], 0
je 0x1004f9ba
mov ecx, dword [0x1006ab2c]
cmp dword [ecx + 8], 0
je 0x1004f9ba
mov edx, dword [0x1006ab2c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1004f9ba
mov ecx, dword [0x1006ab2c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1004f9ba
mov eax, dword [0x1006ab2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1004f989
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1004f990
xor eax, eax
jmp 0x1004fad9
mov ecx, dword [0x1006ab2c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1004fad9
mov edx, dword [0x1006ab28]
mov dword [0x1006ab2c], edx
jmp 0x1004f9d6
mov eax, dword [0x1006ab2c]
mov ecx, dword [eax + 4]
mov dword [0x1006ab2c], ecx
cmp dword [0x1006ab2c], 0
je 0x1004fa16
cmp dword [0x1006ab2c], 0
je 0x1004fa14
mov edx, dword [0x1006ab2c]
cmp dword [edx + 8], 0
je 0x1004fa14
mov eax, dword [0x1006ab2c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1004fa14
mov edx, dword [0x1006ab2c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1004fa14
jmp 0x1004f96e
jmp 0x1004f9c8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004fae0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1004fad7
mov eax, dword [ebp - 0x18]
mov dword [0x1006ab2c], eax
mov ecx, dword [0x1006ab2c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006ab2c]
mov dword [edx + 8], 0
mov eax, dword [0x1006ab2c]
mov ecx, dword [0x1006ab28]
mov dword [eax + 4], ecx
mov edx, dword [0x1006ab2c]
mov dword [0x1006ab28], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006ab2c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1004faa7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1004fac7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1004fa9e
mov eax, dword [0x1006ab2c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1004f96e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10050820
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006ab28]
mov dword [ebp - 4], eax
jmp 0x10050839
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10050860
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005085e
call sub.KERNEL32.dll_GetLastError
jmp 0x10050862
jmp 0x10050830
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10050d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1006ab38], eax
je 0x10050d24
mov eax, 0x10dd
jmp 0x10050ecc
cmp dword [0x1006ab3c], 0
je 0x10050d37
mov eax, dword [0x1006ab3c]
jmp 0x10050ecc
cmp dword [ebp + 0xc], 0
jne 0x10050d47
mov eax, 0x57
jmp 0x10050ecc
cmp dword [ebp + 8], 0
jne 0x10050d57
mov eax, 6
jmp 0x10050ecc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10050d80
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1006ab3c], ecx
mov edx, dword [ebp + 8]
mov dword [0x1006ab40], edx
mov eax, dword [ebp - 8]
jmp 0x10050ecc
push 0x18
call fcn.100523b6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10050ddb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1006ab3c], ecx
cmp dword [ebp - 4], 0
je 0x10050dca
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1005296e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1006ab40], ecx
mov eax, dword [ebp - 8]
jmp 0x10050ecc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10050ce0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10050ce0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10050e1b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10050e37
mov dword [ebp - 8], 9
cmp dword [0x1006ab30], 0
je 0x10050e32
jmp 0x10050da9
jmp 0x10050da0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10050e5e
mov dword [ebp - 8], 9
cmp dword [0x1006ab30], 0
je 0x10050e59
jmp 0x10050da9
jmp 0x10050da0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10050e89
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10050da0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1006ab48]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1006ab48], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10050ee0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1006ab38], eax
je 0x10050efd
mov eax, 0x10dd
jmp 0x10050fe0
mov eax, dword [0x1006ab48]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10050f7c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10050f58
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10050f58
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1004fd80
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1005296e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10050f05
mov dword [0x1006ab48], 0
call fcn.10050660
mov ecx, dword [0x1006ab44]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10050fca
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1005296e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10050f94
mov dword [0x1006ab44], 0
mov dword [0x1006ab38], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100514c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1006ab3c], 0
je 0x100514d9
mov eax, dword [0x1006ab3c]
jmp 0x10051578
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x100514ea
xor eax, eax
jmp 0x10051578
push 8
call fcn.100523b6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10051542
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1005152b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005296e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1006ab3c], eax
mov dword [0x1006ab40], 0
mov eax, dword [ebp - 8]
jmp 0x10051578
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1005155a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1005150a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1006ab44]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1006ab44], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x21bd382f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x75d40cf5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402e34
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402f7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x407010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403014
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ff4
xor eax, eax
push ebp
push 0x402fed
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 0x403030
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 0x402ff4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x407010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x407010], ax
mov esp, ebp
pop ebp
ret

Function at 0x40371c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x40377d
cmp word [0x408208], 0xd7b2
jne 0x403745
cmp dword [0x408210], 0
jbe 0x403745
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4037a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40701c], 0
jne 0x403799
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403f08
Capabilities:
Get geographical location
Query or enumerate registry value

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 0x404138
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404138
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404154
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404014
xor eax, eax
push ebp
push 0x40400d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d44
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 0x403ff2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404174
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403ff2
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 0x404014
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 0x40412e
cmp byte [ebp - 0xd], 0
jne 0x40405b
cmp byte [ebp - 0x12], 0
je 0x40412e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404074
dec ebx
cmp byte [ebx], 0x2e
je 0x404083
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404073
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40412e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4040c0
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 0x40412e
cmp byte [ebp - 0xd], 0
je 0x40412e
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 0x40412e
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 0x404738
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403b88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404751
test al, 0x10
je 0x404755
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4048e8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00403a08
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403b88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x404bb8
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x40a8a4]
mov ecx, 0x40
call fcn.00402d0c
mov dword [0x40a7f0], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x40a7f0
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x404be6
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x40a7f0]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.00404a80
mov esi, eax
mov dword [ebx*4 + 0x40a7f0], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.00404a80
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x404c56
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x404c06
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404ca8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x40a89c]
sub dword [ebx + 8], eax
mov eax, dword [0x40a898]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00404a80
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00404a80
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40a7f4]
mov edx, edi
call fcn.00404a94
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40a7f0]
mov edx, ebp
call fcn.00404a94
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x404cc2
mov eax, dword [0x40a7f4]
sub dword [ebx + 0xc], eax
mov eax, dword [0x40a7f0]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404d9c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffff9c
mov esi, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0xc
call fcn.00402ea8
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ea8
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], 0xffffffff
mov bl, 1
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.00403b88
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x404e3b
push 0x30
push 0x404e70
push 0x404e78
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x404e66
push 0xffffffffffffffff
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esp
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x64
pop esi
pop ebx
ret

Function at 0x404e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40a8f0
mov esi, 0x40a8f4
mov edi, 0x40a8f8
mov ebp, 0x40a908
mov eax, 0x404fb4
call fcn.00404c64
call fcn.00404bb8
mov eax, dword [0x40a8e4]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x40a8e8], eax
mov eax, dword [0x40a8e0]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402c14
mov dword [0x40a8ec], eax
mov eax, dword [0x40a8e8]
mov dword [ebx], eax
mov eax, dword [0x40a8ec]
mov dword [esi], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x40a8e0]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x40a910], eax
mov dword [0x40a914], edx
jmp 0x404f5c
mov edx, edi
mov eax, dword [ebx]
mov ecx, 0x10
call fcn.00402d0c
mov eax, edi
call fcn.00404ca8
mov edx, dword [esi]
mov eax, edi
mov ecx, 0x10
call fcn.00402d0c
add dword [ebp], 0x10
adc dword [ebp + 4], 0
mov eax, dword [ebx]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x40a910]
mov edx, dword [0x40a914]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x404f7a
cmp eax, 0x10
jae 0x404f23
jmp 0x404f7c
jge 0x404f23
call fcn.00404c9c
mov eax, dword [0x40a8ec]
xor edx, edx
add eax, dword [0x40a910]
adc edx, dword [0x40a914]
sub eax, 1
sbb edx, 0
mov dword [ebx], eax
mov eax, dword [ebx]
movzx eax, byte [eax]
mov byte [0x40a91c], al
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4034e5
Capabilities:
Terminate process

Disassembly:
jmp 0x450fa9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x450fba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004056d2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403607
Capabilities:
Query environment variable

Disassembly:
jmp 0x498ed1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498ee2
pop esi
ret
push ebx
push edi
push esi
call fcn.00498db8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403e4a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498f0a
push ebx
push esi
push edi
call fcn.004054c5
add esp, 0xc
push 0
call fcn.00406000
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40558d
Capabilities:
Parse pe header

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