joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ddc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, byte [0x43c169]
cmp al, 3
je 0x409474
cmp al, 4
je 0x409841
cmp al, 5
je 0x409fe4
ret
call fcn.004088eb
mov edx, dword [0x43c02c]
mov dword [edx + 0x50], eax
call fcn.004012cb
mov edx, dword [0x43c02c]
mov dword [edx + 8], eax
mov eax, dword [0x43c114]
cmp eax, 0xffffffff
je 0x4094b4
shl eax, 2
sub dword [0x43c024], eax
btr dword [0x43c10c], 0
jae 0x4094b4
or byte [0x43c167], 0xff
mov eax, dword [0x43c118]
mov word [edx + 6], ax
imul eax, eax, 0x28
movzx ecx, word [edx + 0x14]
lea eax, [eax + ecx + 0x18]
add eax, dword [0x43c11c]
mov ecx, dword [edx + 0x3c]
dec ecx
add eax, ecx
not ecx
and eax, ecx
cmp eax, dword [edx + 0x54]
je 0x4094e4
or byte [0x43c167], 0xff
xor ecx, ecx
add edx, 0x78
test dword [0x43c108], 8
je 0x4094f8
add edx, 0x10
mov eax, dword [edx + ecx*8]
or eax, eax
je 0x409516
cmp dword [edx + ecx*8 + 4], 0xffffffff
jne 0x409516
mov ebx, dword [edx + ecx*8]
mov eax, dword [ebx + 0xc]
mov dword [edx + ecx*8], eax
mov eax, dword [ebx + 8]
mov dword [edx + ecx*8 + 4], eax
inc cl
cmp cl, 0x10
jb 0x4094f8
mov ebx, dword [0x43c02c]
sub ebx, dword [0x43c11c]
mov ecx, edi
sub ecx, ebx
mov ebp, ecx
shr ecx, 1
xor eax, eax
cdq
mov dx, word [ebx]
add eax, edx
mov dx, ax
shr eax, 0x10
add eax, edx
add ebx, 2
loop 0x409534
add eax, ebp
mov ebx, dword [0x43c02c]
mov dword [ebx + 0x58], eax
ret
call fcn.0040976c
cmp byte [0x43c167], 0
je 0x409859
mov eax, dword [0x43c110]
mov dword [0x43c024], eax
ret
bt dword [0x43c108], 0
jb 0x40aad7
call fcn.0040976c
cmp byte [0x43c167], 0
je 0x40a00a
mov eax, dword [0x43c110]
mov dword [0x43c024], eax
ret
test dword [0x43c108], 8
jne 0x40ab13
call fcn.0040a8f1
mov edx, dword [0x43c02c]
mov eax, dword [0x43c118]
mov byte [edx + 0x1c], 0x34
mov word [edx + 0x2c], ax
shl eax, 5
add eax, edx
add eax, 0x34
cmp eax, dword [0x43c110]
je 0x40ab12
or byte [0x43c167], 0xff
ret
call fcn.0040aa41
mov edx, dword [0x43c02c]
mov eax, dword [0x43c118]
mov byte [edx + 0x20], 0x40
mov word [edx + 0x38], ax
imul eax, eax, 0x38
add eax, edx
add eax, 0x40
cmp eax, dword [0x43c110]
je 0x40ab42
or byte [0x43c167], 0xff
ret

Function at 0x413530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 0x40]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x3c]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x3c]
push ebx
push ecx
push edx
push eax
call fcn.00418b10
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea edi, [esi + 0x40]
push edi
mov ebx, eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 8]
push eax
push ebx
push ecx
call fcn.00418b10
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4136a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df4a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x438660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.00416ba0
xor ebx, ebx
lea edi, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x10], edi
mov byte [edi + 4], bl
push 0x43a60c
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1000
mov dword [edi + 0x24], 0x1000
mov dword [edi + 0x20], 0x64
call fcn.0041a524
add esp, 4
mov dword [edi], eax
mov dword [edi + 0x28], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x74]
push ecx
mov byte [esi + 0x6c], bl
call edi
lea edx, [esi + 0x8c]
push edx
call edi
lea ecx, [ebp + 0xb]
lea eax, [esi + 0xb0]
push ecx
mov byte [ebp - 4], 2
push eax
mov dword [esi + 0xa8], ebx
call fcn.00416a80
mov dword [esi + 0xa8], ebx
mov byte [ebp - 4], 3
push 0x40
mov dword [esi + 0xe4], ebx
call fcn.0041b443
add esp, 4
cmp eax, ebx
je 0x4137ab
mov dword [esi + 0xe0], eax
mov dword [eax], eax
mov eax, dword [esi + 0xe0]
mov dword [eax + 4], eax
mov byte [ebp - 4], 4
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004166f0
lea edx, [esi + 0xec]
push edx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0041ae9c
push 0x4363cc
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0041ba81
int3
Function at 0x414190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e130
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x438660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x124]
mov eax, dword [esi + 0x14]
lea ebx, [edi + 0x58]
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 0x3c]
push 0
push 1
lea ecx, [ebp - 0x12]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
push ebx
setne byte [ebp - 0x11]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x11], 0
jne 0x414235
mov ecx, dword [ebp - 0x18]
push 0x436394
lea eax, [ebp - 0x1c]
lea edx, [ecx + str.Error_Reading_Memory_At:]
push eax
mov dword [ebp - 0x1c], edx
call fcn.0041ba81
mov eax, 0x414223
ret
cmp byte [ebp - 0x12], 0xe9
jne 0x414334
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x124]
lea ecx, [eax + 0x10]
xor edx, edx
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], edx
jb 0x41425c
mov ecx, dword [ecx]
mov byte [ecx], dl
mov dword [eax + 0x34], edx
mov edi, dword [esi + 0x124]
push 0xb
mov eax, str.mov_edi_edi
lea ecx, [edi + 0x10]
call fcn.00416910
push 1
mov eax, 0x432104
lea ecx, [edi + 0x10]
call fcn.00416910
mov edi, dword [esi + 0x124]
push 8
mov eax, str.push_ebp
lea ecx, [edi + 0x10]
call fcn.00416910
push 1
mov eax, 0x432104
lea ecx, [edi + 0x10]
call fcn.00416910
mov edi, dword [esi + 0x124]
push 0xb
mov eax, str.mov_ebp_esp
lea ecx, [edi + 0x10]
call fcn.00416910
push 1
mov eax, 0x432104
lea ecx, [edi + 0x10]
call fcn.00416910
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x124]
push ecx
add edi, 0xc
call fcn.00413200
test al, al
je 0x414334
mov edi, dword [esi + 0x124]
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 8]
mov ebx, dword [edi + 0x34]
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x40]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x3c]
lea ecx, [ebp - 0x18]
push ecx
push 0x40
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi + 0x3c]
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push esi
push edx
call fcn.00418b10
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4152c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x4152e8
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x20]
call fcn.004166f0
pop esi
lea ecx, [ebp - 4]
push ecx
push 0
push edi
push 0x414160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x415390
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
push 0
push eax
mov dword [esi], vtable.AZClass.0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x128]
push edx
call fcn.0041b3d9
add esp, 4
add esi, 0x20
call fcn.00415ba0
pop esi
ret

Function at 0x418d30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x438660]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x418db9
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x418db9
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041ad81
mov esp, ebp
pop ebp
ret

Function at 0x41ad81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438660]
jne 0x41ad8b
repz ret
jmp fcn.0041f24e

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x420990
call fcn.004202fa
mov dword [eax], esi
call fcn.004202e7
push 0x16
pop esi
mov dword [eax], esi
call fcn.00420295
mov eax, esi
jmp 0x4209e5
test dword [ebp + 0xc], 0xfffffff9
jne 0x420976
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4209bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042030d
pop ecx
call fcn.004202e7
mov eax, dword [eax]
jmp 0x4209e5
test al, 0x10
jne 0x4209e3
test al, 1
je 0x4209e3
test byte [ebp + 0xc], 2
je 0x4209e3
call fcn.004202fa
mov dword [eax], 5
call fcn.004202e7
mov dword [eax], 0xd
jmp 0x4209b4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42887c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042196b
and dword [ebp - 0x14], 0
cmp dword [0x43a5f0], 0
mov dword [ebp - 0x18], eax
jne 0x42892f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4289d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4289d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43a5f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43a5f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43a5f8], eax
call edi
push eax
call esi
mov dword [0x43a600], eax
test eax, eax
je 0x42892f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43a5fc], eax
mov eax, dword [0x43a5fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x428988
cmp dword [0x43a600], ecx
je 0x428988
push eax
call esi
push dword [0x43a600]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x428988
test ebx, ebx
je 0x428988
call edi
test eax, eax
je 0x42897f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42897f
test byte [ebp - 8], 1
jne 0x428988
or dword [ebp + 0x10], 0x200000
jmp 0x4289bb
mov eax, dword [0x43a5f4]
cmp eax, dword [ebp - 0x18]
je 0x4289bb
push eax
call esi
test eax, eax
je 0x4289bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4289bb
mov eax, dword [0x43a5f8]
cmp eax, dword [ebp - 0x18]
je 0x4289bb
push eax
call esi
test eax, eax
je 0x4289bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a5f0]
call esi
test eax, eax
je 0x4289d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4289d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ad81
leave
ret
Function at 0x405c44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a04], 0
push esi
jne 0x405c7b
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 0x405c55
mov dword [ecx*4 + 0x422a00], eax
inc ecx
cmp ecx, 0x100
jl 0x405c50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cac
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 + 0x422a00]
xor eax, esi
inc ecx
dec edx
jne 0x405c8e
pop edi
not eax
pop esi
ret 0xc

Function at 0x40728c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x40bb68
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40bb90
mov dword [0x426724], eax
add esp, 0xfffffff8
push 0x40bb2c
push eax
call fcn.0040ff90
jmp 0x40bb95
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40bba8
mov dword [0x41335c], 0x40bc88
jmp 0x40bbb2
mov dword [0x41335c], 0x40bc3c
leave
ret
Function at 0x404f6e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x47a
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x404fee
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0041c9b9
mov esi, eax
cmp esi, ebx
je 0x404fe6
sub eax, dword [0x4239c4]
push ebx
push ebx
push ebx
add eax, 0x41d160
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x404fd8
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
jmp 0x404fe6
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x404ff7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp eax, 0xffffffff
je 0x405161
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40514b
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
jbe 0x40513b
cmp ecx, dword [0x423c20]
je 0x40513b
xor eax, eax
cmp dword [ebp - 8], edi
jbe 0x40507f
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*4], ecx
je 0x40513b
inc eax
cmp eax, dword [ebp - 8]
jb 0x40506d
push ecx
call fcn.0041c8d5
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40513b
push dword [ebp - 0x240]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x405136
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004067fd
push esi
mov edi, eax
call ebx
test edi, edi
je 0x405134
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x4239c0]
jne 0x40512e
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x4239b8]
jne 0x40512e
mov ecx, dword [edi]
push eax
mov eax, dword [0x4239b4]
mov eax, dword [eax]
call fcn.00405257
test eax, eax
jne 0x40512e
mov ecx, dword [ebp - 8]
lea ecx, [ecx*4 + 4]
lea esi, [ebp - 0xc]
call fcn.00405171
test al, al
je 0x40512e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x18]
inc dword [ebp - 8]
inc dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
push dword [ebp - 0x240]
call fcn.00404f6e
test al, al
je 0x40512e
mov byte [ebp - 1], 1
push edi
call fcn.004051e6
xor edi, edi
push dword [ebp - 0x18]
call ebx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40504c
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x14], edi
jne 0x405015
push dword [ebp - 0xc]
call fcn.004051e6
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40648b
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x406517
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 1
jne 0x40650d
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x406504
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 1
jne 0x406504
cmp dword [ebp - 0xc], 0x10
jne 0x406504
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc

Function at 0x40651f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x4231ac]
cmp eax, 0x270
jl 0x406457
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
mov eax, dword [ecx*4 + 0x4227e4]
xor eax, dword [ecx*4 + 0x4227e0]
and eax, esi
xor eax, dword [ecx*4 + 0x4227e0]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + section..data]
xor eax, dword [ecx*4 + 0x422e14]
inc edx
mov dword [ecx*4 + 0x4227e0], eax
cmp edx, 0xe3
jl 0x4063b0
cmp edx, 0x26f
jge 0x406429
lea ecx, [edx*4 + 0x4227e0]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + section..data]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x42319c
jl 0x4063fd
mov ecx, dword [0x42319c]
mov eax, dword [0x4227e0]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + section..data]
pop edi
xor eax, dword [0x422e10]
pop esi
mov dword [0x42319c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4227e0]
inc eax
mov dword [0x4231ac], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x4227d8]
je 0x406566
xor ecx, ecx
mov dword [0x4227d8], eax
mov dword [0x4227e0], eax
inc ecx
mov eax, 0x4227e0
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x42319c
jl 0x406540
mov dword [0x4231ac], ecx
pop esi
jmp 0x406397
Function at 0x406595
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x4223b2], 0
jne 0x4065ce
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x4065b2
shr eax, 1
xor eax, 0xedb88320
jmp 0x4065b4
shr eax, 1
dec edx
jne 0x4065a5
mov dword [ecx*4 + 0x4223d8], eax
inc ecx
cmp ecx, 0x100
jb 0x4065a0
mov byte [0x4223b2], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x4065fa
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4223d8]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x4065d9
not eax
ret 8

Function at 0x406662
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x4066bc
push ebx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx esi, byte [esi + eax]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x406682
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x40685b
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4068ac
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x40689f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x406894
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x40688b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x406a2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor ecx, ecx
xor esi, esi
mov word [ebp - 4], cx
cmp eax, esi
jne 0x406a54
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.00405299
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x406a5f
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406aa6
cmp dword [ebp + 0x10], esi
je 0x406a91
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00405222
jmp 0x406aa1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x406aa8
xor eax, eax
pop esi
leave
ret 0xc