joyce8/EMBER2024-capa huggingface dataset:
Function at 0x773769
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xa8a766e9
call fcn.006014ca

Function at 0x7738bb
Capabilities:
Contain obfuscated stackstrings
Encode data using base64
Parse pe header

Disassembly:
call fcn.00450653
sub ecx, ecx
not cl
sub cl, 0xe3
xor esi, esi
rol cl, cl
and cl, cl
and cl, 0xf2
cmp eax, esi
setp cl
setne cl
clc
cmp ecx, esi
jmp 0x745e00
mov dword [ebp - 0x10], eax
jmp 0x6e18dc
mov byte [ebp - 0x19a], 0xb9
jmp 0x82b4bf
mov byte [ebp - 0x18f], 0xe8
mov byte [ebp - 0x18e], 0xa6
jmp 0x7248e0
push edi
jmp 0x6c32f5
mov byte [ebp - 0x196], 0x62
jmp 0x6a1bd5
mov byte [ebp - 0x190], 0x7d
jmp 0x59835c
mov byte [ebp - 0x197], 0x50
jmp 0x5a4fad
mov byte [ebp - 0x181], 0x24
jmp 0x18ded72
mov byte [ebp - 0x1a0], 0xb
mov byte [ebp - 0x19f], cl
jmp 0x64d7a5
mov byte [ebp - 0x19e], 0x1a
jmp 0x8301bc
mov byte [ebp - 0x195], 0x24
jmp 0x183454a
push eax
cwde
seto al
lea eax, [ebp - 0xc]
jmp 0x188a5c9
push ebx
push esi
jmp 0x59d531
mov byte [ebp - 0x19b], 0xc4
jmp 0x58c8bc
mov byte [ebp - 0x18d], 0x6c
jmp 0x74cac3
mov byte [ebp - 0x17b], 0xb3
mov byte [ebp - 0x17a], 0x58
jmp 0x73d36b
mov byte [ebp - 0x179], 0x13
jmp 0x7ed275
mov byte [ebp - 0x17c], cl
jmp 0x72e4bd
jne 0x745e10
push 0x80004005
call fcn.00407150
mov edx, dword [eax]
jmp 0x77ffe1
mov byte [ebp - 0x18c], dl
jmp 0x7adb1d
mov byte [ebp - 0x191], 0x12
jmp 0x5d2552
mov byte [ebp - 0x17d], 0x3d
jmp 0x7436b9
mov eax, dword [0x51f620]
xor eax, ebp
jmp 0x57d7f5
mov byte [ebp - 0x182], 0xd8
jmp 0x610e34
mov ecx, eax
cwde
lahf
mov eax, dword [edx + 0xc]
jmp 0x7a1d50
mov byte [ebp - 0x17f], 0xef
mov byte [ebp - 0x17e], 0xf3
jmp 0x75a3c1
call eax
add eax, 0x10
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 4], esi
setl cl
mov bl, 0x37
mov al, 0xf5
mov al, 0xaf
mov dl, al
sete cl
mov dl, 0xac
mov cl, 0x53
jmp 0x7e6a7e
mov byte [ebp - 0x18b], 0xdc
jmp 0x832868
mov byte [ebp - 0x183], 4
jmp 0x779067
mov dword [ebp - 0x2c4], ecx
jmp 0x7f8283
mov byte [ebp - 0x188], 0xed
mov byte [ebp - 0x187], 0xea
mov byte [ebp - 0x186], 0xeb
jmp 0x800fec
mov byte [ebp - 0x16a], bl
jmp 0x18311eb
mov byte [ebp - 0x178], 0x63
jmp 0x432305
mov dword [ebp - 0x2c8], edx
jmp 0x57355c
mov byte [ebp - 0x185], 0x6e
jmp 0x83612f
mov byte [ebp - 0x199], 0xe4
mov byte [ebp - 0x198], 0x6d
jmp 0x5e4242
mov byte [ebp - 0x19d], 0xba
jmp 0x18a35f3
mov byte [ebp - 0x18a], 0x82
mov byte [ebp - 0x189], 0xf
jmp 0x7cc92f
mov byte [ebp - 0x184], 0x18
jmp 0x7c0de5
mov byte [ebp - 0x169], bl
mov bl, 0xd1
jmp 0x61998b
mov byte [ebp - 0x194], al
jmp 0x18474fa
mov dword [ebp - 0x2cc], eax
jmp 0x7c5947
mov byte [ebp - 0x193], 0x97
mov byte [ebp - 0x192], 0x62
jmp 0x754d78
mov dword fs:[0], eax
mov ah, 0x71
mov eax, dword [ebp + 8]
jmp 0x18418a3
mov byte [ebp - 0x19c], 0xc8
jmp 0x71cb4d
mov byte [ebp - 0x180], 0xf9
jmp 0x78c7a8
Function at 0x7aa960
Capabilities:
Check for software breakpoints
Contain obfuscated stackstrings
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x954], 0xf
mov dword [esp + 0x950], 0
mov byte [esp + 0x940], 0
jmp 0x7cf37a
push eax
xchg al, ah
movzx eax, bx
movsx eax, cx
mov eax, dword [ebx + 0x84]
jmp 0x739531
inc edx
push edx
stc
add eax, 0xc4
push eax
jmp 0x1856b56
push 0xa8b763ad
call fcn.006014ca
call fcn.00450231
lea esp, [esp + 4]
and ax, sp
sbb eax, esi
cmp esi, edx
cmp dword [esp + 0x172c], 0x10
setp al
mov eax, dword [esp + 0x1718]
jmp 0x59d839
jae 0x7cf38a
lea eax, [esp + 0x1718]
movsx edx, bx
mov edx, dword [esp + 0x1728]
jmp 0x6d81bf
call fcn.004712ab
add esp, 0xc
jmp 0x430ed0
Function at 0x1861e95
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x3c]
test ax, 0x5853
test bh, ch
cmp edx, 0x793b1e86
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1874a1e
mov edx, dword [eax + 0x78]
stc
mov dword [ebp - 0x114], edx
stc
test edx, edx
jmp 0x449a6c
call fcn.0046d9cb
mov esp, ebp
pop ebp
ret
je 0x1874a1e
test esi, esi
je 0x1874a1e
mov eax, 0x5a4d
cmc
cmp word [ecx], ax
jmp 0x1874a18
push ebp
xor bp, 0x2dfd
mov ebp, esp
test cl, 0xfc
add ah, 0x2c
lea esp, [esp - 0x120]
add ah, ch
sub ax, cx
rcr ah, cl
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
rol ch, 0xfc
sbb ch, 0xc3
rcl cx, cl
mov ecx, dword [ebp + 8]
cmc
test dx, si
cmp bh, bl
push esi
cmp ebp, ebp
cmp si, 0x38f9
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], esi
clc
cmp ch, 0x90
test ecx, ecx
jmp 0x7c6906
je 0x65ffdf
sub eax, eax
mov cx, 0x2b8b
pop esi
sbb ecx, esi
inc cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
jmp 0x73cdc1

Function at 0x1864bc9
Capabilities:
Parse pe header

Disassembly:
push 0xa8c76cfd
call fcn.006014ca
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 0x10018260
push 1
push esi
push 0x10018270
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 0x10018280
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.1000c910
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.1000a971
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.1000a971
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.1000c910
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.1000a971
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.1000c910
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.1000b190
pop ecx
pop ecx
test eax, eax
je 0x10002d90
mov esi, 0x1f400000
push esi
call fcn.1000b0fb
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10002dc2
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push edi
call fcn.10013290
mov eax, dword [ebp - 0x110]
mov ecx, esi
sub ecx, eax
push ecx
add eax, edi
push ebx
push eax
call fcn.1000c910
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.1000b0c1
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.1000a971
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.1000a6cd
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.1000b4d1
pop ecx
push dword [ebp + 8]
call esi
lea esi, [ebx - 0x850]
push esi
call fcn.1000a6cd
mov ebx, eax
push esi
lea eax, [edi + 0x36]
push eax
push ebx
call fcn.10013290
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.1000b4d1
push edi
call fcn.1000b4d1
add esp, 0x2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100072ab
Capabilities:
Encode data using xor
Hash data with crc32

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

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

Function at 0x10007aa5
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 0x10007ad5
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 0x10007ad0
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10007afd
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x10007ae6
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.10013290
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 0x1000873e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x100087b6
cmp dword [esi + 4], 0xffffffff
jne 0x100087b6
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 0x10008764
sub eax, ecx
lea eax, [eax + esi + 0x13f]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x10008786
cmp cl, 0x2f
je 0x10008786
mov word [eax + 1], 0x2f
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1000799a
pop ecx
pop ecx
test eax, eax
jne 0x1000879d
mov eax, dword [ebp + 8]
jmp 0x100087bb
push eax
call fcn.10007d16
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x100087bb
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x10008d9e
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 0x10008e1d
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1000ba8b
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008ddb
sub eax, ecx
je 0x10008dfc
lea eax, [ebp + eax - 0x20d]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x10008df9
cmp cl, 0x5c
jne 0x10008dfc
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10008e1d
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x10008ede
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x10008e34
cmp al, 0x5c
jne 0x10008e36
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10008e2c
cmp esi, edi
je 0x10008e69
sub esi, edi
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10013290
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + esi - 0x20c], 0
call fcn.10008d9e
add esp, 0x14
mov byte [ebp - 0x108], 0
pop esi
test ebx, ebx
je 0x10008e8a
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000ba8b
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 0x10008e97
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x108]
push edi
push eax
call fcn.1000ba8b
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 0x10008ede
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.1000a971
leave
ret
Function at 0x10009911
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 + 0x1001aa20]
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 + 0x1001aa20]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x10009983
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 0x100099f6
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x100099af
cmp dword [esi + 0x40], edi
jae 0x100099af
push eax
call fcn.1000b50f
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x100099c4
lea eax, [edi + edi]
push eax
call fcn.1000b938
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.10013290
add esp, 0xc
test edi, edi
je 0x100099f3
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea ecx, [esi + 0x30]
call fcn.10009957
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x100099d7
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10009a25
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x10009a11
mov dword [esi + 0x14], 0x30000
jmp 0x10009a47
push edi
push edx
add eax, ecx
push eax
call fcn.10013290
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x10009a49
mov eax, dword [esi + 4]
test eax, eax
je 0x10009a40
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 0x10009a49
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1000a971
Capabilities:
Terminate process

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

Function at 0x10013640
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.1000e489
and dword [ebp - 0x14], 0
cmp dword [0x10021e90], 0
mov dword [ebp - 0x18], eax
jne 0x100136f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001379b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001379b
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 0x100136f3
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 0x1001374c
cmp dword [0x10021ea0], ecx
je 0x1001374c
push eax
call esi
push dword [0x10021ea0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001374c
test ebx, ebx
je 0x1001374c
call edi
test eax, eax
je 0x10013743
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10013743
test byte [ebp - 8], 1
jne 0x1001374c
or dword [ebp + 0x10], 0x200000
jmp 0x1001377f
mov eax, dword [0x10021e94]
cmp eax, dword [ebp - 0x18]
je 0x1001377f
push eax
call esi
test eax, eax
je 0x1001377f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001377f
mov eax, dword [0x10021e98]
cmp eax, dword [ebp - 0x18]
je 0x1001377f
push eax
call esi
test eax, eax
je 0x1001377f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10021e90]
call esi
test eax, eax
je 0x1001379b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001379d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a971
leave
ret
Function at 0x405740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47843b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046d38e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4057c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046b2a0
mov eax, dword [eax]
push 0x492c58
push eax
call fcn.0045dfa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d619
test bl, bl
je 0x4057c2
push 0x492c58
lea ecx, [esp + 0xc]
call fcn.0046d9a9
push 0x492c64
lea ecx, [esp + 0xc]
call fcn.0046d9a9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4057fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d619
jmp 0x4058c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405882
lea edx, [esp + 0x7c]
push 0x492c60
push edx
call fcn.0045dfa4
add esp, 8
test eax, eax
je 0x405882
lea eax, [esp + 0x7c]
push 0x492c5c
push eax
call fcn.0045dfa4
add esp, 8
test eax, eax
je 0x405882
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405812
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046d619
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4060c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406122
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc