joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d9e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4929f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048358e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00488d07
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048a359
test eax, eax
je 0x44dafc
mov ecx, dword [esp + 0x3c]
call fcn.00488d34
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44dac0
push edi
mov ecx, esi
call fcn.004862f0
mov ecx, esi
call fcn.0044dc60
cmp dword [esp + 0x38], 1
jne 0x44daf5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048645a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x450540
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450573
push esi
call fcn.00453640
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45056c
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 0x4505f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4505e2
mov eax, dword [esi + 8]
test eax, eax
je 0x450597
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 0x4505de
cmp eax, 2
je 0x4505e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45058a
cmp eax, 3
je 0x4505bd
cmp eax, 1
jne 0x45058a
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 0x45058a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45058a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450620
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450608
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450620
add esp, 4
pop esi
ret

Function at 0x45c6f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45c793
test eax, eax
jbe 0x45c793
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45c793
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45c73e
xor esi, esi
jmp 0x45c744
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45c76f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00460a30
add esi, eax
push esi
mov ebx, esi
call fcn.00460a30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45c750
pop ebp
test edi, edi
pop edi
jne 0x45c793
test ebx, ebx
je 0x45c793
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004714a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45c8d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45c9ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c9ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004839e0
mov esi, eax
test esi, esi
je 0x45c9ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45c9ed
mov ecx, esi
call fcn.0045c840
cmp edi, eax
jge 0x45c9ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45c973
mov dword [esp + 0x34], 1
jmp 0x45c9ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c9ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045bdc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x461300
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 0x461366
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 0x461366
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x461347
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4616f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x461728
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x462400
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 0x462449
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 0x4628c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493390
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.00462470
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004624f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004624f0
lea ecx, [esi + 0xc]
call fcn.00481f1f
lea ecx, [esi + 0x10]
call fcn.00481f1f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00463a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00463a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00463a80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00481f94
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00481f94
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x484384
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4843bc
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.0048243b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482413
jmp 0x4843c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x485a76
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 0x485ab8
call fcn.0048bb1c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485ab8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485aaf
xor eax, eax
jmp 0x485ac0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485ac6
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c04c
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 0x48c07a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c098
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048bfb2
jmp 0x48c098
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c098
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048bfb2
test edi, edi
mov eax, edi
jne 0x48c082
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4305e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov al, 0x45
xor ecx, ecx
mov byte [esp + 4], al
mov byte [esp + 0xa], al
mov ax, word [esp + 0x18]
lea edx, [esp]
mov cl, ah
push edx
push 0x13
mov byte [esp + 8], 0x21
mov byte [esp + 9], 0xff
mov byte [esp + 0xa], 0xb
mov byte [esp + 0xb], 0x4e
mov byte [esp + 0xd], 0x54
mov byte [esp + 0xe], 0x53
mov byte [esp + 0xf], 0x43
mov byte [esp + 0x10], 0x41
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x30
mov byte [esp + 0x16], 3
mov byte [esp + 0x17], 1
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0
call fcn.0042f450
add esp, 8
add esp, 0x14
ret
Function at 0x1003cfa
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1009020]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01003cad
test eax, eax
je 0x1003dff
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 0x400
mov ebx, 0x1001940
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x418], eax
je 0x1003dfc
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
shr ecx, 1
push ecx
push eax
push 0x1001974
push 0
push ebx
call edi
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x1003d8e
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
cmp esi, 0x2000
jb 0x1003d3d
jmp 0x1003dfc
cmp dword [ebp + 0xc], 0
je 0x1003d99
call fcn.010066d4
mov esi, dword [ebp - 0x418]
jmp 0x1003ddf
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x1001974
push esi
push ebx
call edi
cmp word [ebp - 0x414], 0
je 0x1003dd4
lea eax, [ebp - 0x414]
push eax
call dword [ebp - 0x41c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1003da1
cmp dword [ebp + 0xc], 0
je 0x1003df0
call fcn.010066e4
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100815d
leave
ret 8

Function at 0x1004673
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x1009020]
mov dword [ebp - 4], eax
mov eax, dword [0x100926c]
push edi
mov edi, dword [eax]
test edi, edi
je 0x1004763
and word [ebp - 0x20c], 0
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x10015d8
push 0x10015c4
push 0x80000002
call fcn.01006926
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x10015f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xa30], eax
je 0x1004763
push esi
xor esi, esi
test edi, edi
jle 0x1004756
push esi
push dword [0x100926c]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
push 0x10017e8
lea eax, [ebp - 0xa2c]
push 0x410
push eax
call fcn.01004645
add esp, 0x20
push 0
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, edi
jl 0x10046ed
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100815d
leave
ret
Function at 0x10070b1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1001ec0
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100722b
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001e28
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007221
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1001b90
push edi
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push edi
mov edi, 0x1001b60
push edi
push dword [ebp - 0xc]
call int.010069f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001ba4
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001ba4
push edi
push dword [ebp - 0xc]
call int.010069f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001bb0
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001bb0
push edi
push dword [ebp - 0xc]
call int.010069f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001bc0
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001bc0
push edi
push dword [ebp - 0xc]
call int.010069f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001be0
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001be0
push edi
push dword [ebp - 0xc]
call int.010069f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001bf8
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1007206
cmp dword [ebp - 4], ebx
sete al
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0x1001c1c
push edi
push dword [ebp - 0xc]
call int.010069f2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
leave
ret 4
Function at 0x10002516
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x10012058]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [esp + 0xf], bl
cmp eax, ebx
je 0x100026e5
cmp byte [eax], bl
je 0x100026e5
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x100026e5
xor eax, eax
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100026db
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0xffffff80
adc eax, 0xffffffff
cmp eax, ebx
ja 0x100026db
jb 0x100025b9
cmp ecx, 0x9fff80
ja 0x100026db
push dword [esp + 0x10]
call fcn.1000648c
pop ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100026d1
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jne 0x100026d1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.10003010
pop ecx
pop ecx
cmp dword [esp + 0x20], ebx
jbe 0x10002651
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], ebx
jb 0x10002651
ja 0x10002625
cmp dword [esp + 0x10], ebx
jbe 0x10002651
xor eax, eax
push eax
push dword [esp + 0x24]
push edi
push esi
call fcn.1000bed0
mov cl, byte [esp + eax + 0x28]
mov eax, dword [esp + 0x18]
xor byte [esi + eax], cl
add esi, 1
adc edi, ebx
cmp edi, dword [esp + 0x14]
jb 0x10002625
ja 0x10002651
cmp esi, dword [esp + 0x10]
jb 0x10002625
push 0x77
lea eax, [esp + 0x55]
push ebx
push eax
mov byte [esp + 0x5c], bl
call fcn.100091c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x10002680
cmp byte [eax], bl
je 0x10002680
lea edx, [esp + 0x50]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10002676
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov edi, eax
lea eax, [esp + 0x50]
push eax
push edi
call fcn.100062e1
pop ecx
pop ecx
mov esi, eax
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp esi, ebx
je 0x100026d1
mov ecx, esi
call fcn.10002833
mov edi, eax
call fcn.1000641d
cmp edi, ebx
je 0x100026d1
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
push dword [esp + 0x20]
call edi
test eax, eax
setne byte [esp + 0xf]
push dword [esp + 0x18]
call fcn.100064b1
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100064a2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100049c3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x100049ce
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x10004a82
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10010430]
add ecx, 8
sub edi, 8
dec esi
jne 0x100049e5
pop ebx
test edi, edi
je 0x10004a9b
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x10010430]
inc ecx
dec edi
jne 0x10004a86
pop esi
not eax
pop edi
ret

Function at 0x10004aa0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x10010430]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10010430]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x100062e1
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x1000cc88
call fcn.1000be0e
push 0x244
call fcn.10006592
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10006311
push dword [ebp + 0xc]
mov esi, eax
call fcn.10005bad
mov ebx, eax
jmp 0x10006313
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x1000637d
cmp dword [ebx + 4], 0xffffffff
jne 0x1000637d
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006339
sub eax, edi
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x10006363
cmp al, 0x2f
je 0x10006363
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10006352
mov edi, esi
mov esi, 0x10010cd0
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 8]
call fcn.1000521a
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x10006382
mov eax, 0x1000000
mov dword [0x1001389c], eax
test eax, eax
je 0x10006396
mov edi, ebx
call fcn.100063ad
xor eax, eax
jmp 0x100063a7
push 8
call fcn.10006592
pop ecx
mov dword [eax], 1
mov dword [eax + 4], ebx
call fcn.1000bead
ret

Function at 0x100064a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012058]
jne 0x100064ac
repz ret
jmp fcn.10006fd8