joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002226
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov edi, str.Hello_World
push edi
xor ebx, ebx
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push ebx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
mov eax, dword [ebp + 8]
push 0x800
add eax, 0x880
push eax
call fcn.1000217c
pop ecx
pop ecx
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
push 0
call esi
push 0
push 0
call ebx
push edi
xor edi, edi
push edi
call esi
push edi
push edi
call ebx
mov dword [ebp - 4], edi
mov edx, 0x110
xor ecx, ecx
xor esi, esi
movsx eax, byte [esi + 0x10012010]
dec eax
mov ebx, eax
sar ebx, 2
cmp ebx, dword [ebp - 4]
jne 0x1000238f
and eax, 3
test dword [eax*4 + 0x10012348], ecx
je 0x1000238f
mov ebx, esi
sar ebx, 3
add ebx, dword [ebp + 8]
lea eax, [edx + ecx]
lea eax, [ebx + eax*8]
mov ebx, esi
and ebx, 7
mov bl, byte [ebx*4 + 0x10012328]
or byte [eax], bl
inc esi
cmp esi, 0x40
jl 0x10002355
inc ecx
cmp ecx, 0x10
jl 0x10002353
inc dword [ebp - 4]
add edx, 0x10
cmp edx, 0x210
jl 0x10002351
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c7ee
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov edi, str.Hello_World
push edi
xor ebx, ebx
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b149
Capabilities:
Connect socket

Disassembly:
jmp 0x508bc4
jmp dword [sym.imp.WS2_32.dll_connect]

Function at 0x47bf2c
Capabilities:
Terminate process

Disassembly:
jmp 0x508ca0
jmp fcn.00516c40
cmp ecx, dword [0x59adb0]
jne 0x508caa
repz ret
jmp 0x47c54e
Function at 0x4cb0d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4cb116
mov eax, dword [ebp - 8]
or eax, 8
mov dword [ebp - 8], eax
mov esi, esp
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4cb137
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 8], eax
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4cb158
mov eax, dword [ebp - 8]
or eax, 2
mov dword [ebp - 8], eax
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4cb179
mov eax, dword [ebp - 8]
or eax, 4
mov dword [ebp - 8], eax
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4cb19a
mov eax, dword [ebp - 8]
or eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0047d11f
mov esp, ebp
pop ebp
ret

Function at 0x4eaaa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd0]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3b4], 0
je 0x4eab82
cmp dword [ebp + 8], 0x100
jne 0x4eab40
movzx eax, word [ebp + 0xc]
cmp eax, 0xd
jne 0x4eab40
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3ba]
test ecx, ecx
je 0x4eab19
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.0047d11f
movsx eax, ax
test eax, eax
jge 0x4eab40
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3bb]
test ecx, ecx
jne 0x4eab40
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
je 0x4eab3c
push 0
push 0
push 0
push str.return
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x40]
call fcn.0047d322
xor eax, eax
jmp 0x4eab87
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3b4]
call fcn.0047d2b4
mov dword [ebp - 0xd0], eax
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd0]
mov edx, dword [eax + 0xc]
call edx
cmp esi, esp
call fcn.0047d11f
jmp 0x4eab87
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xd0
cmp ebp, esp
call fcn.0047d11f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x9f1cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xa22c20]
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.00a06cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x9f1d8f
mov eax, 0xa1c894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x9f1d05
sub eax, edx
sar eax, 1
je 0x9f1d8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00a19234]
push 0xa1c894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00a048ea
push 0xa1c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00a04e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x9f1d8f
push eax
push 1
push 0x200
push esi
call fcn.00a0512e
mov eax, dword [esp + 0x14]
push eax
call fcn.00a051c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret

Function at 0x9f1db0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xa22c20]
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.00a06cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x9f1eb5
mov eax, 0xa1c7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x9f1df5
sub eax, edx
sar eax, 1
je 0x9f1eb5
cmp dword [0xa23fbc], 3
jne 0x9f1e3c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.00a19214]
push 0xa1c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00a048ea
add esp, 0xc
jmp 0x9f1e4c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.00a19234]
push 0xa1c7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00a048ea
push 0xa1c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00a04e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x9f1eb5
push eax
push 1
push 0x200
push esi
call fcn.00a0512e
mov edx, dword [esp + 0x14]
push edx
call fcn.00a051c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret
Function at 0x9f25c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00a049e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xa1e4b0]
fadd qword [0xa1e4c8]
call fcn.00a089e0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x9f26e0
call fcn.00a049e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xa1e4b0]
fmul qword [0xa1e4c0]
fadd qword [0xa1e4b8]
call fcn.00a089e0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x9f26c8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x9f26b9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x9f26b0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x9f2677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x9f2780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xa22c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00a06cc0
add esp, 0xc
cmp edi, esi
je 0x9f2868
mov eax, 0xa1c790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x9f27c5
sub eax, edx
sar eax, 1
je 0x9f27ef
push 0xa1c924
lea edx, [esp + 8]
push 0xa1c790
push edx
call fcn.00a04e3b
add esp, 0xc
jmp 0x9f282a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00a19234]
push 0xa1c894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00a048ea
push 0xa1c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00a04e3b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x9f284d
push eax
push 1
push 0x200
push edi
call fcn.00a05401
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00a051c2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00a048db
add esp, 0x214
ret
Function at 0x9f2880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0xa1c8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00a04e3b
add esp, 0xc
test eax, eax
je 0x9f28a4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00a0550d
mov eax, dword [esp + 0x1c]
push eax
call fcn.00a0572f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00a0550d
lea ebp, [esi + 0x32]
push ebp
call fcn.00a057ec
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00a0512e
mov eax, dword [esp + 0x40]
push eax
call fcn.00a051c2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.009f2950
mov ecx, dword [esp + 0x4c]
push 0xa1c924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00a04e3b
add esp, 0x40
test eax, eax
je 0x9f2922
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00a05401
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00a051c2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x9f4570
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00a09170
mov eax, dword [0xa22c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0xa193d4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x9f45c8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00a048db
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x9f4607
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x9f4606
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00a05401
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x9f45d0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00a051c2
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00a048db
add esp, 0x100c
ret
Function at 0x9f61b0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00a09170
mov eax, dword [0xa22c20]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0xa1c8b0
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00a04e3b
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x9f621b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.00a048db
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00a0550d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a0572f
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00a0550d
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00a0512e
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x9f62c6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.009f6020
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00a0512e
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x9f6291
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.009f60c0
mov edx, dword [esp + 0x10]
push edx
call fcn.00a051c2
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x9f61f4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00a048db
add esp, 0x1068
ret
Function at 0x9f8080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x9f8087
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x9f8164
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 + 0xa1de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xa1de80]
inc ecx
sub edx, 8
sub esi, 1
jne 0x9f80a0
pop edi
test edx, edx
je 0x9f818b
jmp 0x9f8170
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xa1de80]
inc ecx
sub edx, 1
jne 0x9f8170
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xa1de80]
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 + 0xa1de80]
mov dword [edx + 8], ecx
ret

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

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 + 0xa1de80]
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 + 0xa1de80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x9f95e0
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 0x9f95fe
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x9f95f2
cmp dword [edi + 0x7c], ebx
je 0x9f960d
call fcn.009f99c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.009f9350
add esp, 0xc
test eax, eax
je 0x9f9634
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00a057ec
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x9f9672
push 0x4000
call fcn.00a057ec
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 0x9f967f
push esi
call fcn.00a05d47
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 0x9f96c7
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.009f84a0
test eax, eax
jne 0x9f96c7
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 0x9f96ee
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x9f96f4
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 0x9f9731
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x9f9731
call fcn.009f8190
add ebp, 1
jne 0x9f9720
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 0x415360
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x476c6b
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.0046b5c5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4153e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00468d7d
mov eax, dword [eax]
push 0x6211d4
push eax
call fcn.0045bb64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046b850
test bl, bl
je 0x4153e2
push 0x6211d4
lea ecx, [esp + 0xc]
call fcn.0046bbe0
push 0x624d4c
lea ecx, [esp + 0xc]
call fcn.0046bbe0
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 0x41541e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046b850
jmp 0x4154e9
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 0x4154a2
lea edx, [esp + 0x7c]
push 0x624d48
push edx
call fcn.0045bb64
add esp, 8
test eax, eax
je 0x4154a2
lea eax, [esp + 0x7c]
push 0x624d44
push eax
call fcn.0045bb64
add esp, 8
test eax, eax
je 0x4154a2
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 0x415432
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.0046b850
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 0x415ce0
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 0x415d42
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