joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10223cd9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 3], 0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x24], 0x68
push dword [ebp + 8]
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], 0x3a
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0x1e], 0x2f
mov byte [ebp - 0x1d], 0x75
mov byte [ebp - 0x1c], 0x79
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x71
mov byte [ebp - 0x17], 0x35
mov byte [ebp - 0x16], 0x38
mov byte [ebp - 0x15], 0x36
mov byte [ebp - 0x14], 0x37
mov byte [ebp - 0x13], 0x38
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x6d
mov byte [ebp - 0xe], 0x3a
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x32
mov byte [ebp - 0xb], 0x31
mov byte [ebp - 0xa], 0x34
mov byte [ebp - 9], 0x2f
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x61
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x70
call fcn.1021e8ef
pop ecx
pop ecx
leave
ret

Function at 0x10223d77
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 3], 0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x24], 0x68
push dword [ebp + 8]
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], 0x3a
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0x1e], 0x2f
mov byte [ebp - 0x1d], 0x75
mov byte [ebp - 0x1c], 0x79
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x71
mov byte [ebp - 0x17], 0x35
mov byte [ebp - 0x16], 0x38
mov byte [ebp - 0x15], 0x36
mov byte [ebp - 0x14], 0x37
mov byte [ebp - 0x13], 0x38
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x6d
mov byte [ebp - 0xe], 0x3a
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x32
mov byte [ebp - 0xb], 0x31
mov byte [ebp - 0xa], 0x34
mov byte [ebp - 9], 0x2f
mov byte [ebp - 8], 0x75
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x61
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x70
call fcn.1021e8ef
pop ecx
pop ecx
leave
ret

Function at 0x1022445a
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x1022446d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x102244b6
Capabilities:
Create thread

Disassembly:
jmp 0x102221aa
xor eax, eax
push eax
push eax
push eax
push 0x10221f6d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
push 0x1021b9a0
call fcn.102221c4
pop ecx
jmp 0x102207e4
Function at 0x10224886
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x3c]
push 0x40
add esi, ebx
push 0x1000
push dword [esi + 0x50]
mov di, word [esi + 6]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x102248fb
push dword [esi + 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, word [esi + 0x14]
movzx ecx, di
add esp, 0xc
lea eax, [eax + esi + 0x18]
test ecx, ecx
jle 0x102248f3
lea edi, [eax + 0x14]
mov dword [ebp + 8], ecx
mov eax, dword [edi]
push dword [edi - 4]
add eax, ebx
push eax
mov eax, dword [edi - 8]
add eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 0x28
dec dword [ebp + 8]
jne 0x102248d4
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x50]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10224950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push 0x1021bdc8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x102249cf
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 4
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x102249c4
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push dword [ebp + 8]
call fcn.10224903
add esp, 0xc
mov ebx, eax
push 0x4000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10224a54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push edi
mov edi, 0x1021becc
push 0x104
push edi
push 0
call ebx
mov esi, 0x88886666
cmp dword [ebp + 0xc], esi
jne 0x10224a8d
push dword [ebp + 0x10]
push 0x1021bdc8
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x10224a9c
push 0x104
push 0x1021bdc8
push dword [ebp + 8]
call ebx
and byte [ebp - 4], 0
cmp dword [ebp + 0xc], esi
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x70
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
je 0x10224b18
push edi
call dword [sym.imp.MSVCRT.dll__strlwr]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov dword [esp], 0x1021d2ac
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10224b08
lea eax, [ebp - 0x10]
push eax
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10224b08
call fcn.10224a0d
xor eax, eax
jmp 0x10224b27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10224e69
jmp 0x10224b27
push 0
push 1
push dword [ebp + 8]
call fcn.10224e69
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10224b8f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 1], 0
lea eax, [ebp - 0x10c]
push 0x104
push eax
mov byte [ebp - 8], 0x5c
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x6f
mov byte [ebp - 5], 0x6e
mov byte [ebp - 4], 0x74
mov byte [ebp - 3], 0x73
mov byte [ebp - 2], 0x5c
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push 0x1021d2dc
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x10224c14
lea eax, [ebp - 0x10c]
push eax
call fcn.1021dcf7
test eax, eax
pop ecx
je 0x10224c14
push 0x100011c8
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
leave
ret
Function at 0x10224c7b
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10224c9e
xor eax, eax
jmp 0x10224d1b
lea eax, [ebp - 0x12c]
push esi
push eax
push ebx
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10224d15
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
je 0x10224d01
push ebx
call esi
push edi
push dword [ebp - 0x124]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10224cc0
mov edi, dword [ebp - 4]
push ebx
call esi
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10224d1f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10224d98
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10224d91
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x10224d8a
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10224d90
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
jmp 0x10224d67
mov ebx, dword [ebp - 0x120]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x10224d9e
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.1021d59c
xor ebp, ebp
mov edi, 0x1021ce00
push ebp
push edi
call fcn.10224c7b
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
push 0xa
pop ebx
push ebx
call esi
push ebp
push 0x1021ce78
call fcn.10224c7b
pop ecx
pop ecx
push ebx
call esi
push ebp
push 0x1021ce6c
call fcn.10224c7b
pop ecx
pop ecx
push ebx
call esi
push ebp
push 0x1021ce60
call fcn.10224c7b
pop ecx
pop ecx
push ebx
call esi
mov ebx, 0x1021d2ec
push 1
push edi
call fcn.10224c7b
push edi
call fcn.10224d1f
add esp, 0xc
test eax, eax
je 0x10224e29
push ebx
push ebx
call fcn.10224c16
push 1
push edi
call fcn.10224c7b
add esp, 0x10
push 0xa
call esi
inc ebp
cmp ebp, 0x10
jl 0x10224df8
mov edi, dword [esp + 0x1c]
push edi
call fcn.1021d7c3
test eax, eax
pop ecx
je 0x10224e45
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x56
call esi
jmp 0x10224e2d
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x40131c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x401332
mov esi, 0x100000
jmp 0x40133e
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x40137b
mov edx, ebx
mov eax, 0x4195d4
call fcn.004011d0
test al, al
jne 0x40137b
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401380
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x4013ca
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4013f2
mov edx, ebx
mov eax, 0x4195d4
call fcn.004011d0
test al, al
jne 0x4013f2
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4013f8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 0xffffffff
xor edx, edx
mov dword [esp + 0xc], edx
mov ebp, eax
mov eax, dword [esp]
add eax, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [0x4195d4]
jmp 0x401478
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
cmp ebp, esi
ja 0x401476
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0x10]
ja 0x401476
cmp esi, dword [esp + 8]
jae 0x401445
mov dword [esp + 8], esi
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0xc]
jbe 0x401454
mov dword [esp + 0xc], eax
push 0x8000
push 0
push esi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x40146f
mov dword [0x4195b0], 1
mov eax, ebx
call fcn.00401200
mov ebx, edi
cmp ebx, 0x4195d4
jne 0x401427
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x4014a8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401544
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov esi, ebx
add esi, 0xfff
and esi, 0xfffff000
mov dword [esp], esi
mov ebp, ebx
add ebp, edx
and ebp, 0xfffff000
mov eax, dword [esp]
mov dword [ecx], eax
mov eax, ebp
sub eax, dword [esp]
mov dword [ecx + 4], eax
mov esi, dword [0x4195d4]
jmp 0x4015b3
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebx, dword [esp]
jae 0x40158b
mov ebx, dword [esp]
cmp ebp, edi
jae 0x401591
mov edi, ebp
cmp edi, ebx
jbe 0x4015b1
push 0x4000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4015b1
mov dword [0x4195b0], 2
mov esi, dword [esi]
cmp esi, 0x4195d4
jne 0x40157b
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401804
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x4018ba
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4195b4
call sub.KERNEL32.DLL_GetModuleHandleA
cmp byte [0x419035], 0
je 0x401832
push 0x4195b4
call sub.KERNEL32.DLL_LocalAlloc
mov eax, 0x4195d4
call fcn.004011c8
mov eax, 0x4195e4
call fcn.004011c8
mov eax, 0x419610
call fcn.004011c8
push 0xff8
push 0
call sub.KERNEL32.DLL_Sleep
mov dword [0x41960c], eax
cmp dword [0x41960c], 0
je 0x401899
mov eax, 3
mov edx, dword [0x41960c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x40186f
mov eax, 0x4195f4
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x419600], eax
mov byte [0x4195ac], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4018c1
cmp byte [0x419035], 0
je 0x4018b9
push 0x4195b4
call sub.KERNEL32.DLL_TlsGetValue
ret
Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4195ac], 0
jne 0x401f0d
call fcn.00401804
test al, al
je 0x401f15
cmp ebx, 0x7ffffff8
jle 0x401f1f
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x402073
xor ecx, ecx
push ebp
push 0x40206c
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x419035], 0
je 0x401f40
push 0x4195b4
call sub.KERNEL32.DLL_LocalAlloc
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401f50
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x401fef
mov eax, ebx
test eax, eax
jns 0x401f65
add eax, 3
sar eax, 2
mov edx, dword [0x41960c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x401fef
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x401fa0
mov eax, ebx
test eax, eax
jns 0x401f8f
add eax, 3
sar eax, 2
mov ecx, dword [0x41960c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x401fc6
mov ecx, ebx
test ecx, ecx
jns 0x401fa9
add ecx, 3
sar ecx, 2
mov edi, dword [0x41960c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x41959c]
sub ebx, 4
add dword [0x4195a0], ebx
call fcn.004038f4
jmp 0x402073
cmp ebx, dword [0x419604]
jg 0x402041
sub dword [0x419604], ebx
cmp dword [0x419604], 0xc
jge 0x402013
add ebx, dword [0x419604]
xor eax, eax
mov dword [0x419604], eax
mov eax, dword [0x419608]
add dword [0x419608], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x41959c]
sub ebx, 4
add dword [0x4195a0], ebx
call fcn.004038f4
jmp 0x402073
mov eax, ebx
call fcn.00401dfc
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402073
cmp byte [0x419035], 0
je 0x40206b
push 0x4195b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4195b0], eax
cmp byte [0x4195ac], 0
jne 0x4020b8
call fcn.00401804
test al, al
jne 0x4020b8
mov dword [0x4195b0], 8
mov dword [ebp - 4], 8
jmp 0x402219
xor ecx, ecx
push ebp
push 0x402212
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x419035], 0
je 0x4020d9
push 0x4195b4
call sub.KERNEL32.DLL_LocalAlloc
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4020f4
mov dword [0x4195b0], 9
jmp 0x4021e9
dec dword [0x41959c]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4195a0], eax
test bl, 1
je 0x402154
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402124
test edx, 0x80000003
je 0x402133
mov dword [0x4195b0], 0xa
jmp 0x4021e9
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x40214b
mov dword [0x4195b0], 0xa
jmp 0x4021e9
add ebx, edx
mov esi, eax
call fcn.004019a8
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x419608]
jne 0x402194
sub dword [0x419608], ebx
add dword [0x419604], ebx
cmp dword [0x419604], 0x3c00
jle 0x402185
call fcn.00401c98
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004038f4
jmp 0x402219
mov edx, dword [eax]
test dl, 2
je 0x4021b7
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4021b2
mov dword [0x4195b0], 0xb
jmp 0x4021e9
or dword [eax], 1
jmp 0x4021e0
mov eax, edi
cmp dword [eax + 4], 0
je 0x4021ca
cmp dword [eax], 0
je 0x4021ca
cmp dword [eax + 8], 0xc
jge 0x4021d6
mov dword [0x4195b0], 0xb
jmp 0x4021e9
mov edx, dword [eax + 8]
add ebx, edx
call fcn.004019a8
mov edx, ebx
mov eax, esi
call fcn.00401c10
mov eax, dword [0x4195b0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402219
cmp byte [0x419035], 0
je 0x402211
push 0x4195b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4027b0
Capabilities:
Get memory capacity
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403e18
test esi, esi
jne 0x4027e6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_ReadFile
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403f08
jmp 0x402804
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026c4
mov edi, eax
test esi, esi
je 0x402804
cmp dword [ebx], 0
je 0x402804
dec esi
jmp 0x4027ed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40322c
Capabilities:
Get system information on windows

Disassembly:
mov ecx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b1
cmp eax, 2
ja 0x403255
push 0
mov eax, dword [ecx + 8]
mul edx
push 0
push eax
push dword [ecx]
call sub.KERNEL32.DLL_GetSystemInfo
inc eax
je fcn.004025e8
ret
mov eax, 0x67
jmp fcn.004025d8
Function at 0x403540
Capabilities:
Swap mouse buttons

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x418014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035d8
push 0x80000002
call sub.user32.dll_SystemParametersInfoA
test eax, eax
jne 0x4035b8
xor eax, eax
push ebp
push 0x4035b1
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 0x4035f4
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_TranslateMessage
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035b8
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SwapMouseButton
ret
mov ax, word [0x418014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x418014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cac
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x419620
mov esi, section.DATA
mov edi, 0x419030
cmp byte [ebx + 0x28], 0
jne 0x403cdb
cmp dword [edi], 0
je 0x403cdb
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403cca
cmp dword [0x418004], 0
je 0x403cf5
call fcn.00403b94
call fcn.00403c20
xor eax, eax
mov dword [0x418004], eax
cmp byte [ebx + 0x28], 2
jne 0x403d05
cmp dword [esi], 0
jne 0x403d05
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00403a94
cmp byte [ebx + 0x28], 1
jbe 0x403d15
cmp dword [esi], 0
je 0x403d36
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403d36
call fcn.00404894
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x403d36
test eax, eax
je 0x403d36
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
call fcn.00403a6c
cmp byte [ebx + 0x28], 1
jne 0x403d44
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x403d4f
call fcn.00403bf0
cmp dword [ebx], 0
jne 0x403d6b
cmp dword [0x419018], 0
je 0x403d63
call dword [0x419018]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403cf5
Function at 0x4069fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x406b75
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x63
lea eax, [ebp - 0x14]
call fcn.00403e18
mov esi, 0x33
mov edi, 0x33
push edi
lea eax, [ebp - 0xae]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0xb4]
mov edx, ebx
call fcn.00403f38
lea eax, [ebp - 0xb4]
mov edx, 0x406b8c
call fcn.00403fa4
mov eax, dword [ebp - 0xb4]
call fcn.0040419c
push eax
call fcn.00404d68
cmp eax, 1
sbb eax, eax
neg eax
test al, al
jne 0x406b2f
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x4a]
mov edx, 0x31
call fcn.00408a08
cmp dword [ebp - 0x10], 0
jne 0x406ac9
lea eax, [ebp - 0x10]
mov edx, 0x406b98
call fcn.00403eb0
push 0xa
call sub.user32.dll_EnumWindows
push dword [ebp - 0x18]
lea eax, [ebp - 0xbc]
mov edx, ebx
call fcn.00403f38
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.00408560
push dword [ebp - 0xb8]
push 0x406bac
push 0x406bb8
lea ecx, [ebp - 0xc0]
lea eax, [ebp - 0xae]
mov edx, 0x31
call fcn.00408a08
push dword [ebp - 0xc0]
push 0x406bc4
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040405c
xor eax, eax
mov al, bl
inc eax
mov ebx, eax
cmp bl, 0x7a
jne 0x406a46
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00403e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b7c
lea eax, [ebp - 0xc0]
mov edx, 4
call fcn.00403e3c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403e3c
ret