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

Disassembly:
push 0xffffffffffffffff
push 0x10125340
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x64]
xor edi, edi
cmp byte [esi + 0x6c], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
movzx eax, al
cmove eax, edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea edi, [esi + 0x54]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov byte [esi + 0x78], al
mov dword [esi + 0x48], ecx
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ebp
mov dword [edi + 0x10], 0
jb 0x100ed7a2
mov eax, dword [edi]
jmp 0x100ed7a4
mov eax, edi
lea ecx, [esi + 0x14]
mov byte [eax], 0
call fcn.100f4a80
cmp dword [esi + 0x10], 0
je 0x100ed7c5
mov eax, dword [esi + 0x10]
dec eax
jne 0x100ed7be
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100ed7b8
mov dword [esi + 0x10], eax
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.100f42e0
mov ecx, esi
call fcn.100ed8f0
mov bl, al
mov ecx, esi
lea eax, [esp + 0x2c]
push eax
call fcn.100eddc0
cmp byte [esi + 0x71], 0
je 0x100ed85d
cmp byte [esi + 0x6d], 0
mov ecx, dword [esp + 0x2c]
jne 0x100ed7fb
cmp ecx, 0x10
je 0x100ed85d
test ecx, ecx
je 0x100ed85d
push str.Extra_non_whitespace_after_JSON_value.
lea ecx, [esp + 0x18]
call fcn.10001f00
mov dword [esp + 0x50], 0
push 0
lea eax, [esp + 0x30]
mov ecx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.100f07e0
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x100ed844
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x28], 0xf
xor al, al
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jmp 0x100ed8c5
cmp byte [esi + 0x78], 0
je 0x100ed87f
cmp dword [esi + 0x64], 0
je 0x100ed87f
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x100ed874
mov edi, dword [edi]
push 2
push eax
push edi
mov ecx, ebp
call fcn.100e42c0
cmp byte [esi + 0x6d], 0
je 0x100ed8c3
mov al, byte [ebp + 8]
cmp al, 6
je 0x100ed8c3
cmp al, 7
je 0x100ed8c3
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push str.A_valid_JSON_document_must_be_either_an_array_or_an_object_value.
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x38], eax
call fcn.10001f00
mov dword [esp + 0x50], 1
jmp 0x100ed815
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10103694
add esp, 0x40
ret 0x10
Function at 0x100f6900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101266b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
cmp byte [edx], 0
jne 0x100f693c
xor esi, esi
jmp 0x100f694a
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f6941
sub esi, ecx
push esi
push edx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.100f7810
push eax
mov ecx, edi
call fcn.10024620
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x100fc090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10127878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100fc219
cmp dword [eax], 0
je 0x100fc219
push 1
push 0x10137c0c
lea ecx, [ebx + 0x10]
call fcn.1002d480
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x100fc11c
cmp dword [ebx + 0x24], 0x10
jb 0x100fc101
mov eax, dword [ebx + 0x10]
jmp 0x100fc104
lea eax, [ebx + 0x10]
mov al, byte [eax + ecx - 1]
cmp al, 0x20
je 0x100fc12c
cmp al, 0xa
je 0x100fc11c
push 0xa
push 1
lea ecx, [ebx + 0x10]
call fcn.10028c20
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0x10]
call fcn.1002d3d0
push 0
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.100e43e0
mov dword [esp + 0x38], 0
lea esi, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae esi, dword [esp + 0x10]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
add eax, ecx
lea ecx, [ebx + 0x10]
cmp esi, eax
je 0x100fc1dc
movzx eax, byte [esi]
push eax
push 1
call fcn.10028c20
cmp byte [esi], 0xa
jne 0x100fc1d6
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
add eax, ecx
cmp esi, eax
je 0x100fc1d6
cmp byte [esi + 1], 0x2f
jne 0x100fc1d6
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100fc1c6
cmp dword [ebx + 0x24], 0x10
jb 0x100fc1ab
mov ecx, dword [ebx + 0x10]
jmp 0x100fc1ae
lea ecx, [ebx + 0x10]
mov al, byte [ecx + eax - 1]
cmp al, 0x20
je 0x100fc1d6
cmp al, 0xa
je 0x100fc1c6
push 0xa
push 1
lea ecx, [ebx + 0x10]
call fcn.10028c20
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0x10]
call fcn.1002d3d0
inc esi
jmp 0x100fc150
push 1
push 0x10137c0c
call fcn.1002d480
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x100fc204
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10103694
mov esp, ebp
pop ebp
ret 4
Function at 0x100fd220
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10127aca
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Json::StreamWriter.0
mov dword [esi + 4], 0
mov dword [esp + 0x14], 0
mov dword [esi], vtable.Json::BuiltStyledStreamWriter.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [esp + 0x14], 1
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], 0
mov byte [esi + 0x14], 0
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x30]
push 0xffffffffffffffff
mov dword [esi + 0x2c], 0x4a
push 0
push dword [esp + 0x24]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10001f90
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x4c]
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov dword [esi + 0x48], eax
push 0
push dword [esp + 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10001f90
mov byte [esp + 0x14], 4
lea ecx, [esi + 0x64]
push 0xffffffffffffffff
push 0
push dword [esp + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10001f90
mov byte [esp + 0x14], 5
lea ecx, [esi + 0x7c]
push 0xffffffffffffffff
push 0
push dword [esp + 0x34]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10001f90
mov byte [esp + 0x14], 6
mov al, byte [esi + 0x94]
mov ecx, dword [esp + 0x30]
and al, 0xf8
and cl, 1
shl cl, 2
or cl, al
mov eax, dword [esp + 0x34]
mov byte [esi + 0x94], cl
mov dword [esi + 0x98], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
Function at 0x10102680
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1010268b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.101026a0
Function at 0x10102cd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], esi
test edi, edi
jg 0x10102cfc
jl 0x10102e96
test esi, esi
je 0x10102e96
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
lea ecx, [ecx]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x10102d10
xor esi, esi
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10102d41
test al, 1
je 0x10102d3a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10102d34
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x10102d21
xor esi, esi
jmp 0x10102d60
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10102d80
test al, 1
je 0x10102d79
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10102d73
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x10102d60
jmp 0x10102da0
xor esi, esi
jmp 0x10102db0
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10102dd0
test al, 1
je 0x10102dc9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10102dc3
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x10102db0
mov edx, dword [ebp + 0xc]
mov eax, edx
and eax, 1
or eax, 0
je 0x10102e10
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x10102e0e
jmp 0x10102e00
test bl, 1
je 0x10102e07
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x10102e00
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp + 0xc], edx
je 0x10102e93
xor esi, esi
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10102e41
test al, 1
je 0x10102e3a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10102e34
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x10102e21
mov esi, dword [ebp + 0xc]
mov eax, esi
and eax, 1
or eax, 0
je 0x10102e80
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x10102e7e
lea esp, [esp]
test bl, 1
je 0x10102e77
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x10102e70
mov ebx, ecx
shrd esi, edi, 1
sar edi, 1
mov eax, esi
or eax, edi
mov dword [ebp + 0xc], esi
jne 0x10102da0
xor ebx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
jmp loc.00423526

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x1000cdc0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x45c
mov eax, dword [0x1012e750]
xor eax, esp
mov dword [esp + 0x458], eax
mov eax, dword [esp + 0x468]
push ebx
mov ebx, dword [esp + 0x464]
push ebp
mov ebp, dword [esp + 0x46c]
push esi
push edi
push 0x104
mov dword [esp + 0x18], eax
lea eax, [esp + 0x264]
push 0
push eax
call fcn.1002ee00
push 0x104
lea eax, [esp + 0x374]
push 0
push eax
call fcn.1002ee00
add esp, 0x18
lea eax, [esp + 0x364]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea eax, [esp + 0x368]
push eax
lea eax, [esp + 0x268]
push 0x104
push eax
call fcn.10032cf8
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.10032c3a
push 0x104
lea eax, [esp + 0x180]
push 0
push eax
call fcn.1002ee00
add esp, 0x2c
xor ecx, ecx
nop dword [eax]
mov al, byte [esp + ecx + 0x260]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x15b], al
test al, al
jne 0x1000ce80
lea eax, [esp + 0x18]
push 0x1004c6a4
push eax
call fcn.10049230
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 0x10
jb 0x1000ceb1
mov edx, dword [edx]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x1000ceb3
lea edi, [esp + 0x15c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000cec4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 0x10
jb 0x1000cf10
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cf06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cfe0
push edx
push ecx
call fcn.1002c730
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x170]
push 0x40000000
push eax
call fcn.1001d590
add esp, 0x1c
mov dword [esp + 0x10], 0
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0x484]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.1001bc20
lea eax, [esp + 0x160]
push 0
push eax
call fcn.1000e500
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000cfb9
push ebx
push edi
call fcn.1000e7f0
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
push edi
call fcn.1000e560
mov ebx, dword [esp + 0x44]
add esp, 0x14
xor esi, esi
test ebx, ebx
jle 0x1000cfb0
lea eax, [esp + 0x30]
push eax
push esi
push edi
call fcn.1000e560
push ebp
push esi
push edi
call fcn.1000e700
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x1000cf94
push edi
call fcn.1000e890
add esp, 4
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002ca58
add esp, 0x45c
ret
call fcn.100316af
int3
Function at 0x1000f270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x1000f27b
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not eax
cmp esi, 8
jb 0x1000f33c
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
sub edi, 1
jne 0x1000f295
pop edi
test esi, esi
je 0x1000f35a
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10051860]
sub esi, 1
jne 0x1000f340
not eax
pop esi
ret
Function at 0x10011d60
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ebp
imul ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0
je 0x10011da0
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011d94
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
xor edx, edx
pop edi
div ebp
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x14]
push esi
mov esi, dword [edi + 0x18]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x1c]
call fcn.1002e880
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x10013040
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100131fe
cmp dword [edi + 0x18], 0
je 0x100131fe
cmp dword [edi + 0x7c], 0
je 0x10013069
push edi
call fcn.10012360
add esp, 4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.10012e50
add esp, 0x10
test eax, eax
je 0x1001308f
mov eax, 0xffffff99
pop edi
add esp, 8
ret
push esi
push 0x84
call fcn.100317b2
mov esi, eax
add esp, 4
test esi, esi
je 0x100130d4
push 0x4000
call fcn.100317b2
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x100130df
push esi
call fcn.10031700
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
add esp, 8
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x1001313b
lea eax, [esi + 4]
mov dword [esi + 0x24], 0
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.10011900
add esp, 4
test eax, eax
jne 0x1001313b
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x1001315f
mov al, byte [edi + 0x39]
jmp 0x10013162
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x7c], eax
test edx, edx
je 0x100131df
mov al, byte [edx]
test al, al
je 0x100131df
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10051860]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10051860]
mov dword [esi + 0x78], ecx
add edx, 1
jne 0x10013194
mov eax, dword [esp + 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
add esp, 8
ret
mov eax, 0xffffff9a
pop edi
add esp, 8
ret
Function at 0x10013630
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
cmp dword [ebx], 0
jne 0x100137cd
cmp dword [ebx + 4], 0xffffffff
jne 0x100137cd
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013663
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x10013693
cmp al, 0x2f
je 0x10013693
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10013680
mov ax, word [0x10051f9c]
mov word [edi], ax
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 1
jne 0x100136c3
push 1
push 0
push 0
push ebp
call esi
cmp eax, 0xffffffff
jne 0x100136da
pop esi
pop ebp
pop edi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
cmp edi, 2
je 0x100136da
cmp edi, 3
je 0x100136da
pop esi
pop ebp
pop edi
mov eax, 0x10000
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
xor al, al
mov byte [esp + 0x18], al
mov byte [esp + 0x20], bl
cmp edi, 1
je 0x10013722
cmp edi, 2
jne 0x1001373c
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001371b
pop esi
pop ebp
pop edi
mov eax, 0x200
pop ebx
pop ecx
ret 0xc
mov byte [esp + 0x20], 1
jmp 0x10013729
mov ebx, ebp
mov byte [esp + 0x20], 0
push 1
push 0
push 0
push ebx
call esi
cmp eax, 0xffffffff
setne al
mov byte [esp + 0x18], al
push 0x20
call fcn.1002c700
add esp, 4
mov esi, eax
cmp edi, 1
je 0x10013775
cmp edi, 2
je 0x10013775
mov eax, dword [esp + 0x1c]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x100137a8
mov al, byte [esp + 0x20]
mov byte [esi + 0x10], al
mov al, byte [esp + 0x18]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x100137a8
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.100123e0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
pop esi
test eax, eax
pop ebp
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
pop ecx
ret 0xc
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc