joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4406f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440723
push esi
call fcn.004437f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44071c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4407a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440792
mov eax, dword [esi + 8]
test eax, eax
je 0x440747
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44078e
cmp eax, 2
je 0x440792
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44073a
cmp eax, 3
je 0x44076d
cmp eax, 1
jne 0x44073a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44073a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44073a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004407d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4407b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004407d0
add esp, 4
pop esi
ret

Function at 0x44bb20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44bb86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44bb86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44bb67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44c6c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c810
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c6e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c6c1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c810
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c6e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c710
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44c767
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c77d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044c7a0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44c7a0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44c830
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44c879
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44ccf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46fc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c8a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c920
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c920
lea ecx, [esi + 0xc]
call fcn.00461559
lea ecx, [esi + 0x10]
call fcn.00461559
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f150
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f150
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f150
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004615ce
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004615ce
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d998
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46fe68
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d9a8
call fcn.0044dec0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44da8b
cmp byte [edi], 0
je 0x44da8b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d9cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c6c0
test eax, eax
jne 0x44d9ed
push 0x4ab490
lea ecx, [esi + 0x38]
call fcn.0046170b
jmp 0x44da8b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c710
test eax, eax
jne 0x44da1c
mov ecx, esi
call fcn.0044c810
push edi
add esi, 0x38
push 0x4ab46c
push esi
call fcn.0045f56a
add esp, 0xc
jmp 0x44da8b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e740
test eax, eax
je 0x44da84
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044db60
test eax, eax
jne 0x44daa0
push edi
lea eax, [esi + 0x38]
push 0x4ab448
push eax
call fcn.0045f56a
add esp, 0xc
mov ecx, esi
call fcn.0044dec0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44db48
mov ecx, dword [0x4ab800]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045f56a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c7c0
test eax, eax
jne 0x44db0a
push 0x4ab42c
lea ecx, [esi + 0x38]
call fcn.0046170b
jmp 0x44db1a
push 0xfa
mov ecx, esi
call fcn.0044e740
test eax, eax
jne 0x44db37
mov ecx, esi
call fcn.0044dec0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004615ce
jmp 0x44da8b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004615ce
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x463972
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4639aa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461a29
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461a01
jmp 0x4639b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465067
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4650a9
call fcn.0046ac1a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4650a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4650a0
xor eax, eax
jmp 0x4650b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004650b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b14a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b178
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b196
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b0b0
jmp 0x46b196
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b196
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b0b0
test edi, edi
mov eax, edi
jne 0x46b180
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4025c0
Capabilities:
Check os version
Get disk information

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x408fab
push eax
mov eax, 0x10098
mov dword fs:[0], esp
call fcn.00408b50
push ebx
mov ebx, dword [esp + 0x100ac]
push ebp
push esi
push edi
xor ebp, ebp
push 0xffffffffffffffff
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CUIntArray::SetSize
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebp
je 0x4026a7
cmp dword [esp + 0x24], 2
jne 0x4026a7
lea ecx, [esp + 0xa8]
push 0xffff
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40272e
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
lea esi, [esp + ebp + 0xa8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jle 0x402685
push 3
push 0x40b1c8
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x402685
lea edx, [esi + 3]
push edx
call ebx
mov ecx, dword [esp + 0x100bc]
add esp, 4
push eax
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CUIntArray::SetAtGrow
cmp byte [esi], 0
je 0x402696
mov al, byte [esp + ebp + 0xa9]
inc ebp
test al, al
jne 0x40268a
mov al, byte [esp + ebp + 0xa9]
inc ebp
test al, al
jne 0x40263e
jmp 0x40272e
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [esp + 0x14]
push str..COM_d
push ecx
mov dword [esp + 0x100bc], ebp
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push edx
call edi
cmp eax, 0xffffffff
jne 0x4026fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x402705
cmp eax, 0x1f
jne 0x402711
jmp 0x402705
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
push esi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CUIntArray::SetAtGrow
lea ecx, [esp + 0x10]
mov dword [esp + 0x100b0], 0xffffffff
call fcn.004089ea
inc esi
cmp esi, 0x100
jb 0x4026b2
mov ecx, dword [esp + 0x100a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100a4
ret

Function at 0x4037d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push edi
push 0x12c
lea eax, [ebp - 0x130]
push 0x40e7b8
push eax
call fcn.0040385c
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
mov esi, 0xe73d110a
xor eax, esi
xor edi, esi
push 0x4b
lea ecx, [ebp - 0x130]
pop edx
xor dword [ecx], esi
add ecx, 4
dec edx
jne 0x403814
lea ecx, [ebp - 0x130]
xor eax, esi
push ecx
call eax
test eax, eax
mov dword [ebp - 4], eax
je 0x403858
xor edi, esi
push ebx
mov ebx, edi
mov esi, 0x40e780
lea edi, [ebp - 0x11c]
push edi
push dword [ebp - 4]
call ebx
mov dword [esi], eax
add esi, 4
add edi, 0x14
cmp esi, 0x40e7b8
jl 0x40383e
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x404092
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jle 0x40416d
add eax, 0x32
push esi
dec ecx
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x40e15c]
xor edx, dword [esi*4 + 0x40d95c]
movzx esi, byte [eax]
add eax, 0x10
xor edx, dword [esi*4 + 0x40dd5c]
movzx esi, byte [eax - 0x12]
xor edx, dword [esi*4 + 0x40d55c]
mov dword [eax - 0x12], edx
movzx edx, byte [eax - 0xb]
movzx esi, byte [eax - 0xc]
mov edx, dword [edx*4 + 0x40e15c]
xor edx, dword [esi*4 + 0x40dd5c]
movzx esi, byte [eax - 0xd]
xor edx, dword [esi*4 + 0x40d95c]
movzx esi, byte [eax - 0xe]
xor edx, dword [esi*4 + 0x40d55c]
mov dword [eax - 0xe], edx
movzx edx, byte [eax - 7]
movzx esi, byte [eax - 8]
mov edx, dword [edx*4 + 0x40e15c]
xor edx, dword [esi*4 + 0x40dd5c]
movzx esi, byte [eax - 9]
xor edx, dword [esi*4 + 0x40d95c]
movzx esi, byte [eax - 0xa]
xor edx, dword [esi*4 + 0x40d55c]
mov dword [eax - 0xa], edx
movzx edx, byte [eax - 3]
movzx esi, byte [eax - 4]
mov edx, dword [edx*4 + 0x40e15c]
xor edx, dword [esi*4 + 0x40dd5c]
movzx esi, byte [eax - 5]
xor edx, dword [esi*4 + 0x40d95c]
movzx esi, byte [eax - 6]
xor edx, dword [esi*4 + 0x40d55c]
dec ecx
mov dword [eax - 6], edx
jne 0x4040a7
pop esi
ret
Function at 0x40489c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 4
lea eax, [ebp - 4]
push 0x40e78c
push eax
call fcn.0040385c
mov esi, dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push 0x40e788
push eax
call fcn.0040385c
mov edi, dword [ebp - 4]
add esp, 0x18
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x475f4352
push eax
push 0
push 0
mov dword [ebp - 0x10], 0x646e6172
mov dword [ebp - 0xc], 0x6e65704f
mov dword [ebp - 8], 0x676f44
call esi
mov esi, eax
test esi, esi
je 0x404900
push 0xffffffffffffffff
push esi
call edi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404904
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40e738]
push esi
mov esi, dword [ebp + 8]
and eax, 3
sub eax, 0
je 0x40498e
dec eax
je 0x40496b
dec eax
je 0x404948
dec eax
jne 0x4049af
mov eax, dword [0x40e748]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004049ef
add dword [0x40e748], 0x3f2
pop ecx
pop ecx
jmp 0x4049af
mov eax, dword [0x40e744]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004049ef
add dword [0x40e744], 0x3f2
pop ecx
pop ecx
jmp 0x4049af
mov eax, dword [0x40e740]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004049ef
add dword [0x40e740], 0x3f2
pop ecx
pop ecx
jmp 0x4049af
mov eax, dword [0x40e73c]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004049ef
add dword [0x40e73c], 0x3f2
pop ecx
pop ecx
mov ax, word [esi + 2]
add dword [0x40e738], 0x3eb
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x4049c5
mov al, byte [esi + 0x10]
push esi
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
call fcn.00404a83
pop ecx
pop esi
pop ebp
ret
Function at 0x405030
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x2b
mov byte [esi], 0x52
mov byte [esi + 1], 0x43
mov byte [esi + 2], 0x36
mov byte [esi + 3], bl
mov dword [esi + 4], 0xb8
mov dword [esi + 8], 0xb7e15163
lea eax, [esi + 0xc]
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x405060
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x84
mov eax, dword [ebp - 4]
push 3
lea edi, [esi + eax*4 + 8]
mov eax, dword [ebp + 0xc]
add eax, ebx
add eax, dword [edi]
push eax
call fcn.004051de
mov ecx, dword [ebp - 8]
mov dword [edi], eax
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + eax]
push ecx
mov ecx, dword [edi]
add ecx, eax
add ecx, ebx
push ecx
call fcn.004051de
mov dword [edi], eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
add esp, 0x10
inc eax
push 0x2c
cdq
pop ecx
idiv ecx
mov eax, dword [ebp - 8]
push 4
inc eax
pop ecx
mov dword [ebp - 4], edx
cdq
idiv ecx
dec dword [ebp - 0xc]
mov dword [ebp - 8], edx
jne 0x405081
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4050e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
test byte [ebp + 0x10], 0xf
je 0x4050f4
push 1
pop eax
leave
ret
cmp dword [ebp + 0x10], 0
je 0x4051da
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx]
push 4
mov dword [ebp - 4], eax
pop eax
add ebx, eax
sub dword [ebp + 0x10], 0x10
mov dword [ebp - 0x10], 0x14
mov esi, dword [ebx]
mov ecx, dword [eax + ebx]
add ebx, eax
mov dword [ebp - 8], ecx
add ebx, eax
mov edi, dword [ebx]
add ebx, eax
mov eax, dword [ebp + 8]
add esi, dword [eax + 8]
add edi, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp + 0xc], eax
lea eax, [esi + esi + 1]
push 5
imul eax, esi
push eax
call fcn.004051de
mov dword [ebp - 0xc], eax
lea eax, [edi + edi + 1]
imul eax, edi
push 5
push eax
call fcn.004051de
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 4]
push eax
call fcn.004051de
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
add eax, dword [ecx - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 8]
push eax
call fcn.004051de
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x20
mov dword [ebp - 8], edi
add eax, dword [ecx]
dec dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, eax
jne 0x405138
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push 4
mov edx, dword [ecx + 0xb0]
mov ecx, dword [ecx + 0xb4]
add edx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [eax], edx
pop edx
add eax, edx
mov dword [eax], esi
add eax, edx
mov dword [eax], ecx
add eax, edx
mov ecx, edi
mov dword [eax], ecx
add eax, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x14], eax
jne 0x405104
pop edi
pop esi
pop ebx
xor eax, eax
leave
ret
Function at 0x40525c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x405d3d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00405d77
mov ax, word [esi + 2]
pop ecx
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x405d55
mov al, byte [esi + 0x10]
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
pop esi
ret

Function at 0x406c9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
push 4
pop edi
lea eax, [ebp - 4]
push edi
push 0x40e7ac
push eax
call fcn.0040385c
mov esi, dword [ebp - 4]
push edi
lea eax, [ebp - 4]
push 0x40e794
push eax
call fcn.0040385c
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 0x40e7b0
push eax
call fcn.0040385c
mov eax, dword [ebp - 4]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00405d0e
add esp, 0x30
push 1
pop ebx
cmp dword [ebp + 8], ebx
push 0x10
jne 0x406d26
lea eax, [ebp - 0x24]
push 0x40e75c
push eax
call fcn.0040385c
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x406d15
mov byte [ebp - 0x14], 0x6c
jmp 0x406d4f
lea eax, [ebp - 0x24]
push 0x40e76c
push eax
call fcn.0040385c
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x406d3c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x406d8d
lea esi, [ebp - 0x9c]
push ebx
push dword [ebp - 8]
call dword [ebp - 0xc]
test eax, eax
mov dword [esi], eax
je 0x406d87
inc ebx
add esi, edi
cmp ebx, 0x1f
jb 0x406d62
cmp dword [ebp + 8], 1
mov eax, dword [ebp - 0x30]
jne 0x406d94
mov dword [0x40e730], eax
jmp 0x406d99
push dword [ebp - 8]
call dword [ebp - 0x10]
mov eax, 0xa8160005
jmp 0x406de6
mov dword [0x40e734], eax
push dword [ebp - 0x8c]
call fcn.00406deb
test eax, eax
pop ecx
je 0x406db0
mov eax, 0xa8160006
jmp 0x406de6
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call fcn.00406eb8
pop ecx
test eax, eax
pop ecx
je 0x406dc8
mov eax, 0xa8160007
jmp 0x406de6
cmp dword [ebp + 8], 1
jne 0x406dda
mov dword [0x40e728], 2
jmp 0x406de4
mov dword [0x40e72c], 2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401514
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004025c4
test esi, esi
jne 0x40154a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004026b0
jmp 0x401568
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004013c8
mov edi, eax
test esi, esi
je 0x401568
cmp dword [ebx], 0
je 0x401568
dec esi
jmp 0x401551
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x401cb4
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x401cd2
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile
dec eax
je 0x401cdc
jmp fcn.004012f8
mov eax, 0x67
jmp fcn.004012e8
ret

Function at 0x403834
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x40388b
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x413694]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x413694]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x413694]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x413694]
add esi, 4
loop 0x403849
mov ecx, edi
and ecx, 3
jecxz 0x4038a3
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x413694]
loop 0x403892
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret