joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402296
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x41102c]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
push edi
mov ecx, ebx
mov byte [ebx + 0x1054], 0
call fcn.004020ca
lea esi, [ebx + 0xc20]
push esi
call fcn.00404fc0
test eax, eax
pop ecx
jbe 0x4022de
lea eax, [ebx + 0x1044]
push eax
push esi
call fcn.004023ea
mov esi, 0x208
xor edi, edi
push esi
lea eax, [esp + 0x226]
push edi
push eax
mov word [esp + 0x22c], di
call fcn.00404db0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea eax, [esp + 0x16]
push edi
push eax
mov word [esp + 0x432], di
mov word [esp + 0x1c], di
call fcn.00404db0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [ebx + 0x1044]
mov eax, esi
mov word [esp + 0x216], di
call fcn.00402d99
test eax, eax
jne 0x40238c
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00404fc0
pop ecx
inc eax
push eax
lea eax, [esp + 0x228]
push eax
push edi
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.00401ecf
jmp 0x4023cf
push edi
call fcn.00402db1
mov edi, eax
cmp byte [edi + 0x69c], 1
jne 0x4023c8
lea eax, [esp + 0x220]
push eax
push edi
call fcn.00404a62
test eax, eax
pop ecx
pop ecx
jne 0x4023c8
lea eax, [esp + 0x10]
push eax
add edi, 0x280
push edi
call fcn.00404a62
test eax, eax
pop ecx
pop ecx
je 0x4023d6
mov eax, esi
call fcn.00402dd3
mov byte [ebx + 0x1054], 1
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.004042d7
mov esp, ebp
pop ebp
ret
Function at 0x4023ea
Capabilities:
Read file on windows

Disassembly:
push 0x704
mov eax, 0x40c630
call fcn.0040b75f
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4025b9
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x4025b9
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x48]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00401e05
test al, al
jne 0x40246c
xor edi, edi
mov dword [ebp - 0x24], ebx
jmp 0x40246f
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x4024c3
jb 0x402488
cmp ecx, 0xffffe
ja 0x4024c3
push edi
lea eax, [ebp - 0x1c]
call fcn.00402e24
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea esi, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.00402ec7
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 0x24]
ja 0x4024c3
jb 0x4024b8
cmp dword [ebp + 8], edi
jae 0x4024c3
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
call fcn.00402e24
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x4025b1
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
je 0x4025b1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea esi, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00403b8c
cmp dword [ebp - 0x18], ebx
jne 0x4024ff
xor edi, edi
jmp 0x402505
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.00402ec7
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
mov edx, edi
call fcn.00403c20
test al, al
je 0x4025a9
cmp dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x30]
jne 0x402530
xor eax, eax
jmp 0x402535
mov eax, ecx
sub eax, dword [ebp - 0x34]
mov esi, 0x69d
xor edx, edx
mov edi, esi
div edi
test edx, edx
jne 0x4025a9
cmp dword [ebp - 0x34], ebx
jne 0x40254d
xor ecx, ecx
jmp 0x402550
sub ecx, dword [ebp - 0x34]
xor edx, edx
mov eax, ecx
div esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4025a9
lea esi, [ebp - 0x70d]
call fcn.00401303
mov edx, dword [ebp + 0xc]
sub esp, 0x6a0
mov esi, eax
mov edi, esp
mov ecx, 0x1a7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00402fbd
imul esi, esi, 0x69d
push esi
lea esi, [ebp - 0x38]
call fcn.00402ec7
mov esi, dword [ebp + 0xc]
push eax
push ebx
call fcn.00402db1
push eax
call fcn.00404360
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.00402e09
lea esi, [ebp - 0x1c]
call fcn.00402e09
call fcn.0040b837
ret 8
Function at 0x402cf9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x40c728
call fcn.0040b75f
mov edi, ecx
mov esi, 0x4129a8
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
test edi, edi
je 0x402d45
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402d45
test al, 0x10
jne 0x402d45
mov ecx, dword [ebp + 8]
mov edx, edi
call fcn.0040295b
test al, al
push edi
jne 0x402d56
push dword [ebp + 8]
call fcn.00402b0f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.0040b837
ret 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x402d4e
Function at 0x4042d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41102c]
jne 0x4042e1
repz ret
jmp fcn.00405224

Function at 0x4073cc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4117e0]
je 0x4073e7
inc edi
cmp edi, 0x17
jb 0x4073d8
cmp edi, 0x17
jae 0x407567
push ebp
push 3
call fcn.0040a5c0
cmp eax, 1
pop ecx
je 0x407533
push 3
call fcn.0040a5c0
test eax, eax
pop ecx
jne 0x40741b
cmp dword [0x411028], 1
je 0x407533
cmp ebx, 0xfc
je 0x407566
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4121d0
push ebp
call fcn.0040731c
add esp, 0xc
test eax, eax
je 0x407451
push esi
push esi
push esi
push esi
push esi
call fcn.00404bd5
add esp, 0x14
push 0x104
mov esi, 0x4121e9
push esi
push 0
mov byte [0x4122ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407495
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040731c
add esp, 0xc
test eax, eax
je 0x407495
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404bd5
add esp, 0x14
push esi
call fcn.00404b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4074da
push esi
call fcn.00404b40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4124e4
push 0x40d8a4
sub ecx, eax
push ecx
push eax
call fcn.00409fe6
add esp, 0x14
test eax, eax
je 0x4074da
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404bd5
add esp, 0x14
jmp 0x4074dc
xor esi, esi
push 0x40d8a0
push ebx
push ebp
call fcn.00409f20
add esp, 0xc
test eax, eax
je 0x4074fc
push esi
push esi
push esi
push esi
push esi
call fcn.00404bd5
add esp, 0x14
push dword [edi*8 + 0x4117e4]
push ebx
push ebp
call fcn.00409f20
add esp, 0xc
test eax, eax
je 0x40751e
push esi
push esi
push esi
push esi
push esi
call fcn.00404bd5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040a403
add esp, 0xc
jmp 0x407566
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407566
cmp ebp, 0xffffffff
je 0x407566
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4117e4]
push dword [esi]
call fcn.00404b40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40a403
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040593d
xor ebx, ebx
cmp dword [0x4128d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a4d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a5b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40a5b9
push eax
call fcn.004058cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4128d0], eax
call esi
push eax
call fcn.004058cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4128d4], eax
call esi
push eax
call fcn.004058cf
mov dword [0x4128d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040603e
test eax, eax
pop ecx
pop ecx
je 0x40a4a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404bd5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a4d9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004058cf
cmp eax, ebx
pop ecx
mov dword [0x4128e0], eax
je 0x40a4d9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004058cf
pop ecx
mov dword [0x4128dc], eax
mov eax, dword [0x4128dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a55e
cmp dword [0x4128e0], ecx
je 0x40a55e
push eax
call fcn.00405946
push dword [0x4128e0]
mov esi, eax
call fcn.00405946
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a55e
cmp edi, ebx
je 0x40a55e
call esi
cmp eax, ebx
je 0x40a52b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a52b
test byte [ebp - 0x18], 1
jne 0x40a55e
lea eax, [ebp - 0x10]
push eax
call fcn.00406075
test eax, eax
pop ecx
je 0x40a546
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404bd5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a555
or dword [ebp + 0x10], 0x200000
jmp 0x40a599
or dword [ebp + 0x10], 0x40000
jmp 0x40a599
mov eax, dword [0x4128d4]
cmp eax, dword [ebp - 8]
je 0x40a599
push eax
call fcn.00405946
cmp eax, ebx
pop ecx
je 0x40a599
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a599
mov eax, dword [0x4128d8]
cmp eax, dword [ebp - 8]
je 0x40a599
push eax
call fcn.00405946
cmp eax, ebx
pop ecx
je 0x40a599
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4128d0]
call fcn.00405946
cmp eax, ebx
pop ecx
je 0x40a5b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a5bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e500
Capabilities:
Authenticate hmac

Disassembly:
push 0x65b00054
in al, dx
sahf
mov al, byte [eax - 0x57]
xchg edi, eax
sbb byte [ecx - 0x28], 0xcb
or esi, dword [0xc678623e]
test al, 0x3f
popal
mov dl, 0x53
inc ebx
push esi
popfd
xor dword [ebx + 0x20ed3faa], esi
daa
mov dl, 0x14
xchg edi, ebp
mov al, 0xd6
test eax, 0x42556801
test al, 0x85
pop ecx
nop
sbb dh, byte [ecx - 0x3c8ffb03]
enter 0x3d43, 0xffffffffffffff83
xor dword [ebx], esi
xchg ebx, eax
mov edi, 0xfdaff4f3
add edx, dword [eax + 0x27]
div esi
dec ebx
jo 0x41e550
invalid

Function at 0x430cdc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x430ce2
ret

Function at 0x4642b4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048cc
mov eax, dword [ebp - 8]
call fcn.004048cc
mov eax, dword [ebp - 0xc]
call fcn.004048cc
mov eax, dword [ebp + 8]
call fcn.004048cc
xor eax, eax
push ebp
push 0x464459
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46441f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x420f4c]
call fcn.0042104c
mov dword [ebp - 0x10], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x10]
call fcn.004210ec
xor eax, eax
push ebp
push 0x46437a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x464474
mov eax, dword [ebp - 0x10]
call fcn.00421150
mov edx, 0x4644c0
mov eax, dword [ebp - 0x10]
call fcn.0042146c
test al, al
je 0x464364
lea ecx, [ebp - 0x14]
mov edx, 0x4644c0
mov eax, dword [ebp - 0x10]
call fcn.00421318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464381
mov eax, dword [ebp - 0x10]
call fcn.004036c0
ret
Function at 0x82510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xaf094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00094250
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x825df
mov eax, 0xac640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x82555
sub eax, edx
sar eax, 1
je 0x825df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.000a5124]
push 0xac640
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.000926bd
push 0xac638
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00092164
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x825df
push eax
push 1
push 0x200
push esi
call fcn.000929da
mov eax, dword [esp + 0x14]
push eax
call fcn.00092412
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00091ee8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00091ee8
add esp, 0x214
ret

Function at 0x827c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0xa5140]
push 0xac6dc
lea eax, [esp + 0x10]
push 0xb1de8
push eax
call fcn.00092164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x828f1
push 2
push 0
push eax
call fcn.00092e4f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00093071
mov esi, eax
add esp, 4
push esi
call fcn.000930df
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00092e4f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.000929da
add esp, 0x10
cmp esi, eax
jne 0x828d3
call dword [0xa512c]
push eax
call fcn.00092d91
add esp, 4
call fcn.00092da3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0xad138]
fmul qword [0xad130]
fadd qword [0xad128]
call fcn.00094af0
cmp esi, eax
jl 0x828d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00082770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00092412
add esp, 4
push 0xb1de8
call dword [0xa511c]
push 0xac774
lea edx, [esp + 0x10]
push 0xb1de8
push edx
call fcn.00092164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x828f1
push eax
push esi
push 1
push edi
call fcn.00092319
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x828e4
push eax
call fcn.00092412
add esp, 4
test edi, edi
je 0x828f1
push edi
call fcn.00091edd
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x847b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x848a1
cmp edi, 0xa
jb 0x848a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00091f46
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00084630
add esp, 8
test eax, eax
je 0x8489a
mov eax, dword [esp + 0x1c]
push 0xab804
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00092164
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x84825
lea ebp, [eax - 2]
jmp 0x84850
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00092319
add esp, 0x10
cmp eax, edi
je 0x84867
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x84850
push eax
call fcn.00092412
add esp, 4
test esi, esi
je 0x8485d
push esi
call fcn.00092010
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0xa512c]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00092319
add esp, 0x10
jmp 0x8483f
mov ebp, 0xfffffffd
jmp 0x8483f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x86620
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x86627
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x86704
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xaab48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x86640
pop edi
test edx, edx
je 0x8672b
jmp 0x86710
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xaab48]
inc ecx
sub edx, 1
jne 0x86710
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xaab48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0xaab48]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0xaab48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0xaab48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x87b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x87b9e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x87b92
cmp dword [edi + 0x7c], ebx
je 0x87bad
call fcn.00087f60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.000878f0
add esp, 0xc
test eax, eax
je 0x87bd4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00091f46
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x87c12
push 0x4000
call fcn.00091f46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x87c1f
push esi
call fcn.00092010
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x87c67
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00086a40
test eax, eax
jne 0x87c67
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x87c8e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x87c94
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x87cd1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x87cd1
call fcn.00086730
add ebp, 1
jne 0x87cc0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40171b
pop dword [ebp - 0x44]
mov eax, 0xed58a446
sub eax, 0xed188d2b
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf80af541
add dword [ebp - 0x54], 0x5647500a
mov dword [ebp - 0x50], 0x3685e343
sub dword [ebp - 0x50], 0x45296fe
mov dword [ebp - 0x4c], 0x9ccdbb40
sub dword [ebp - 0x4c], 0x50817712
mov dword [ebp - 0x48], 0x6b80357d
add dword [ebp - 0x48], 0x947fca83
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x3e169b8
sub dword [ebp - 0x54], 0x8f6f0062
mov dword [ebp - 0x50], 0x64c12faf
add dword [ebp - 0x50], 0xdcab31c6
mov dword [ebp - 0x4c], 0xef6449d3
add dword [ebp - 0x4c], 0x740b2299
mov dword [ebp - 0x48], 0x94a0ddab
add dword [ebp - 0x48], 0x6b5f2255
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39166
push 0
call eax
mov ecx, 0x9f0a2c9
sub ecx, 0x9f05d5d
xor ebx, ebx
add ebx, eax
mov edi, 0x94a53873
sub edi, 0x94638873
add edi, dword [ebp - 0x44]
mov edx, 0xde72c5bf
sub edx, 0xa4348dbb
mov esi, dword [edi]
add dword [ebp - 8], edi
xor esi, edx
mov dword [ebx], esi
xor dword [ebp - 0x2c], 0x2827c2e
add ebx, 4
add edi, 0xe59196d7
add edi, 0x1a6e692d
loop 0x401835
add eax, 0x10883
mov ebx, eax
add eax, 0x415e97f5
sub eax, 0x415e97f0
mov ecx, 0xa4e96c82
sub ecx, 0xa4a96c82
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53