joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57af8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x616930]
jne 0x57af94
repz ret
jmp fcn.005810ba

Function at 0x596876
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x616930]
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.00581d77
and dword [ebp - 0x14], 0
cmp dword [0x61cb78], 0
mov dword [ebp - 0x18], eax
jne 0x596929
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5969d1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ac4f0
push ebx
call edi
test eax, eax
je 0x5969d1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x61cb78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x61cb7c], eax
call edi
push eax
call esi
push 0x5ac4b0
push ebx
mov dword [0x61cb80], eax
call edi
push eax
call esi
mov dword [0x61cb88], eax
test eax, eax
je 0x596929
push 0x5ac498
push ebx
call edi
push eax
call esi
mov dword [0x61cb84], eax
mov eax, dword [0x61cb84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x596982
cmp dword [0x61cb88], ecx
je 0x596982
push eax
call esi
push dword [0x61cb88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x596982
test ebx, ebx
je 0x596982
call edi
test eax, eax
je 0x596979
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x596979
test byte [ebp - 8], 1
jne 0x596982
or dword [ebp + 0x10], 0x200000
jmp 0x5969b5
mov eax, dword [0x61cb7c]
cmp eax, dword [ebp - 0x18]
je 0x5969b5
push eax
call esi
test eax, eax
je 0x5969b5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5969b5
mov eax, dword [0x61cb80]
cmp eax, dword [ebp - 0x18]
je 0x5969b5
push eax
call esi
test eax, eax
je 0x5969b5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x61cb78]
call esi
test eax, eax
je 0x5969d1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5969d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057af8a
leave
ret
Function at 0x59c160
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x59d230
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a2d18
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x59d2a4
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
call fcn.0040b380
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0
call fcn.0059cf70
push 0x612fc8
lea ecx, [esp + 0x24]
push ecx
call fcn.0057e3d1
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x59e2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a2e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0040b750
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esi + 0x3c], 0xffffffff
mov byte [esi + 0x40], bl
mov dword [eax], ebx
mov ecx, dword [esi + 0x20]
mov dword [ecx], ebx
mov edx, dword [esi + 0x30]
mov dword [edx], ebx
mov eax, dword [esi + 0x14]
mov dword [eax], ebx
mov ecx, dword [esi + 0x24]
mov dword [ecx], ebx
mov edx, dword [esi + 0x34]
mov dword [edx], ebx
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x44], edi
and edi, 1
mov dword [esi], vtable.Poco::Base64DecoderBuf.0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax + 0x38]
mov dword [esi + 0x54], eax
mov dword [esp + 0x18], ebx
mov eax, 0x61cdd8
jne 0x59e364
mov eax, 0x61ccd8
mov ecx, 0x61cedc
mov dword [esi + 0x58], eax
mov dword [esp + 0x24], ecx
call fcn.00523b10
cmp edi, ebx
je 0x59e3c2
cmp byte [0x61ced9], bl
jne 0x59e410
push 0x100
push 0xff
push 0x61cdd8
call fcn.0057e420
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + 0x5acad8]
mov byte [ecx + 0x61cdd8], al
inc eax
cmp eax, 0x40
jb 0x59e3a0
mov byte [0x61ce15], bl
mov byte [0x61ced9], 1
jmp 0x59e410
cmp byte [0x61ced8], bl
jne 0x59e410
push 0x100
push 0xff
push 0x61ccd8
call fcn.0057e420
add esp, 0xc
xor eax, eax
jmp 0x59e3f0
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edx + 0x61ccd8], al
inc eax
cmp eax, 0x40
jb 0x59e3f0
mov byte [0x61cd15], bl
mov byte [0x61ced8], 1
lea ecx, [esp + 0x24]
call fcn.00523ae0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406a79
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x406aa2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4233e4], 0
push esi
mov esi, edx
jne 0x406ada
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00406aea
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.00406a79
mov bl, al
push dword [ebp - 0xc]
call fcn.0040540c
pop ecx
mov al, bl
pop ebx
jmp 0x406ae7
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x406b39
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4233e4], 0
jne 0x406b6a
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00406aea
mov ecx, dword [eax]
call fcn.00406a87
mov bl, al
push dword [ebp - 0xc]
call fcn.0040540c
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x406bf9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4233e4], 0
jne 0x406c2a
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00406aea
mov ecx, dword [eax]
call fcn.00406bea
mov bl, al
push dword [ebp - 0xc]
call fcn.0040540c
pop ecx
mov al, bl
pop ebx
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x406e57
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4233e4], 0
push esi
mov esi, ecx
jne 0x406e8b
push ebx
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00406aea
mov ecx, dword [eax]
call fcn.00406e39
mov bl, al
push dword [ebp - 0xc]
call fcn.0040540c
pop ecx
mov al, bl
pop ebx
jmp 0x406ea4
xor edx, edx
mov ecx, esi
call fcn.00406aa2
test al, al
je 0x406ea4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x407619
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40763f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40763f
xor al, al
jmp 0x40765f
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00419ca0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40d5a3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41b2e3
call fcn.004199a0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41d664
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41d770
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00405aa5
push dword [esi + 8]
mov ecx, ebx
call fcn.00405aa5
push dword [esi + 0xc]
mov ecx, edi
call fcn.00405aa5
push dword [esi + 0xc]
mov ecx, edi
call fcn.00405aa5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d5af
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41b2e3
call fcn.004199a0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41d664
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41d770
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00405aa5
push dword [esi + 8]
mov ecx, ebx
call fcn.00405aa5
push dword [esi + 0xc]
mov ecx, edi
call fcn.00405aa5
push dword [esi + 0xc]
mov ecx, edi
call fcn.00405aa5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x410b72
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41bb18
call fcn.004199a0
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41d664
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41d828
push 4
mov ebx, 0x41d6dc
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00401adf
mov dword [esi + 0x3c], 0x41d8b8
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00401adf
mov dword [edi], 0x41d8c0
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040f6a8
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.004101b7
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040f6a8
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.004101b7
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040f6a8
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.004101b7
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040f6a8
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.004101b7
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.004101b7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x418a30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00418a00
pop esi
ret 4

Function at 0x419540
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x24], eax
ret
Function at 0x419d2c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dc68
push 0x419d26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x427704], 0xffffffff
or dword [0x427708], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4256fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4256f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x427700], eax
call fcn.00419e6f
cmp dword [0x4233d0], 0
jne 0x419daf
push 0x419e6c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00419e5a
push 0x422050
push 0x42204c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4256f4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4256f0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x422048
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00404151
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x419e80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, ecx
mov esi, edx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x419eaf
test esi, 7
je 0x419eaf
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x419e94
cmp edi, 0x10
jb 0x419f38
mov dword [esp + 0x14], edi
sub edi, 8
and edi, 0xfffffff8
sub dword [esp + 0x14], edi
add edi, esi
xor eax, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, bl
mov edx, dword [ebp + ecx*4 + 0xc00]
movzx ecx, bh
xor edx, dword [ebp + ecx*4 + 0x800]
shr ebx, 0x10
movzx ecx, bl
xor edx, dword [ebp + ecx*4 + 0x400]
xor edx, dword [esi + 8]
movzx ecx, al
movzx ebx, bh
xor edx, dword [ebp + ebx*4]
mov ebx, dword [esi + 0xc]
xor edx, dword [ebp + ecx*4 + 0x1c00]
movzx ecx, ah
add esi, 8
shr eax, 0x10
xor edx, dword [ebp + ecx*4 + 0x1800]
movzx ecx, al
xor edx, dword [ebp + ecx*4 + 0x1400]
movzx ecx, ah
mov eax, dword [ebp + ecx*4 + 0x1000]
movzx ecx, bl
xor eax, edx
cmp esi, edi
jne 0x419ed0
xor eax, dword [esi]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x419f4f
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x419f3c
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0xe88a2c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe88a36
pushal
call 0xe88a3c
pop ebp
sub ebp, 0x10
sub ebp, 0xa88a2c
mov al, byte [esp + 0x28]
cmp al, 1
je 0xe88a60
popal
xor eax, eax
inc eax
ret 0xc
jmp 0xe88a69
mov eax, 0xa88a2c
add eax, ebp
add eax, 0x63
mov ecx, 0x5c7
mov edx, 0xac26f1bb
xor byte [eax], dl
inc eax
dec ecx
jne 0xe88a80
jmp 0xe88a93
xor byte [esi + 0x30], dh
xor al, byte [edi + 0x3abbbbbb]
jp 0xe88ae1
mov ebx, 0x76b8bbbb
add esi, dword [edx + 0x1bbbbbb]
xchg ebx, eax
mov ebx, 0x594cbbbb
mov eax, 0xb73a3073
mov ebx, 0x7eb8bbbb
fistp word ss:[edi - 0x6040cdb9]
fistp word ss:[edi - 0x6040cdb9]
shl dword [ebx - 9], cl
wait
mov ebx, 0x3386ead3
mov ebx, 0xd39f97ba
push eax
sbb dword [ebx - 0x3a], esp
push ebx
mov esi, 0x52bbbbbb
mov edi, dword [ebx + 0x36eebbbb]
xlatb
mov ebx, 0xd736eebb
lahf
mov ebx, 0xbbb33e30
mov ebx, 0xb72e30bb
mov ebx, 0x3630bbbb
stosd dword es:[edi], eax
mov ebx, 0x527abbbb
mov ecx, 0x7938b98a
mov edi, 0x4f3eb4f2
inc esp
inc esp
inc esp
xor byte [edi - 0x6020c961], dl
mov edi, 0x30bbb779
aaa
lahf
mov edi, 0xd3bbbbbb
arpl di, si
wait
mov ebx, 0x3386ead3
mov ebx, 0xea9f97ba
push ebx
mov esi, 0x52bbbbbb
invalid
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40f6d9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f774
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4390e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40f774
cmp eax, 1
je 0x40f795
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f774
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40f741
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40f770
xor eax, eax
inc eax
jmp 0x40f7b4
cmp edi, eax
jae 0x40f778
xor eax, eax
jmp 0x40f7b4
cmp eax, esi
jae 0x40f77f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4390e8]
jmp 0x40f798
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fbcc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42dd58
call fcn.004108bc
mov edi, 0x94
mov eax, edi
call fcn.0040f360
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4390e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4390f4], eax
mov edx, dword [esi + 8]
mov dword [0x4390f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4390ec], esi
cmp ecx, 2
je 0x40fc2c
or esi, 0x8000
mov dword [0x4390ec], esi
shl eax, 8
add eax, edx
mov dword [0x4390f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40fc67
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fc67
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fc7f
cmp eax, 0x20b
je 0x40fc6c
mov dword [ebp - 0x1c], esi
jmp 0x40fc93
cmp dword [ecx + 0x84], 0xe
jbe 0x40fc67
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40fc8d
cmp dword [ecx + 0x74], 0xe
jbe 0x40fc67
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041346a
pop ecx
test eax, eax
jne 0x40fca7
push 0x1c
call fcn.0040fba8
pop ecx
call fcn.00412cb2
test eax, eax
jne 0x40fcb8
push 0x10
call fcn.0040fba8
pop ecx
call fcn.0041554e
mov dword [ebp - 4], esi
call fcn.00415350
test eax, eax
jge 0x40fcd1
push 0x1b
call fcn.0040fb83
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a9b0], eax
call fcn.0041522e
mov dword [0x4390d4], eax
call fcn.0041518c
test eax, eax
jge 0x40fcf7
push 8
call fcn.0040fb83
pop ecx
call fcn.00414f59
test eax, eax
jge 0x40fd08
push 9
call fcn.0040fb83
pop ecx
push 1
call fcn.004106a8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40fd1e
push eax
call fcn.0040fb83
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00414efc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40fd3f
movzx eax, word [ebp - 0x40]
jmp 0x40fd42
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041ac94
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40fd60
push edi
call fcn.004107d5
call fcn.004107f7
jmp 0x40fd92
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004108f7
ret
Function at 0x410712
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42ddc8
call fcn.004108bc
push 8
call fcn.0041341f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x439128], esi
jne 0x410746
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x439124], esi
mov al, byte [ebp + 0x10]
mov byte [0x439120], al
cmp dword [ebp + 0xc], edi
jne 0x410790
cmp dword [0x43a9a8], edi
je 0x410780
mov eax, dword [0x43a9a4]
sub eax, 4
mov dword [0x43a9a4], eax
cmp eax, dword [0x43a9a8]
jb 0x410780
mov eax, dword [eax]
cmp eax, edi
je 0x410761
call eax
jmp 0x410761
push 0x435094
mov eax, 0x43508c
call fcn.00410690
pop ecx
push 0x4350a0
mov eax, 0x435098
call fcn.00410690
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4107c1
cmp dword [ebp + 0x10], edi
jne 0x4107cf
mov dword [0x439128], esi
push dword [ebp + 8]
call fcn.0041064e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4107ce
push 8
call fcn.0041336a
pop ecx
ret
call fcn.004108f7
ret