joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
cmp edi, 0x83
ja 0x42f214
je case.0x42f22c.133
mov eax, edi
dec eax
je 0x42f1ee
sub eax, 0x23
jne case.0x42f22c.135
lea edi, [esp + 0x14]
mov ecx, ebx
call fcn.0042f850
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
jmp 0x42f26c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push 1
mov ecx, ebx
call eax
mov dword [esp + 0x10], eax
jmp 0x42f26c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi - 0x84]
cmp eax, 0x8e
ja case.0x42f22c.135
movzx edx, byte [eax + 0x42f32c]
jmp dword [edx*4 + 0x42f314]
push 0xd
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42f268
mov ecx, dword [ebx + 0x358]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x42f268
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
mov dword [ebx + 0x350], 0
call edx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jne 0x42f30b
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
lea ecx, [ebx + 0x14]
call dword [0x510ffc]
test al, al
je 0x42f2fd
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0xf060
jne 0x42f2bd
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jmp 0x42f26c
push esi
push eax
push edi
mov eax, ebx
call fcn.0042ed00
mov dword [esp + 0x10], eax
jmp 0x42f26c
push esi
mov ecx, ebx
call fcn.0042edc0
mov dword [esp + 0x10], eax
jmp 0x42f26c
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0042f000
mov dword [esp + 0x10], eax
jmp 0x42f26c
mov dword [esp + 0x14], ecx
jmp 0x42f277
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
mov ecx, ebx
call dword [0x511000]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430690
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3720
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x43084c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x2d6]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43081a
cmp dword [esi + 0x8f8], 0
jne 0x4306f9
mov eax, esi
call fcn.00430630
test al, al
je 0x43084c
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
push 0
lea edx, [esi + 0x4e0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x430726
add esi, 4
mov edi, str.SetURL
call fcn.004312f0
jmp 0x43084c
lea edi, [esi + 0x6ea]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430731
sub eax, edx
sar eax, 1
mov ebx, 0xffffffff
je 0x430794
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430794
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4ed9bc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x430782
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x430794
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4f181c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4307de
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jns 0x4307f2
add esi, 4
mov edi, 0x50a954
call fcn.004312f0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43084c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43084c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x430804
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430822
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004b96b0
push 0x50a920
push 0x64
push esi
call fcn.004b4755
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430880
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e36db
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push edi
mov esi, ecx
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x430a57
lea edi, [esi + 0x2d6]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430a57
cmp dword [esi + 0x8f4], 0
jne 0x4308f4
mov eax, esi
call fcn.004305d0
test al, al
je 0x430a8a
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
lea edx, [esi + 0xcc]
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430910
sub eax, ebx
sar eax, 1
je 0x430930
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x2c]
push eax
call edx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004b96b0
add esp, 0xc
test edi, edi
je 0x430974
lea ebx, [ebp - 0x21c]
mov eax, edi
call fcn.00431060
test al, al
je 0x430974
mov eax, dword [esi + 0x8f4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov ecx, ebx
push ecx
push eax
call edx
lea ebx, [esi + 0x6ea]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430980
sub eax, edx
sar eax, 1
je 0x4309ad
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4309ad
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4f181c
push eax
mov eax, dword [ecx]
call eax
cmp eax, edi
jge 0x4309f7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x430a8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x430a8a
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, edi
jge 0x430a3a
add esi, 4
mov edi, 0x50a96c
call fcn.004312f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x430a8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x430a8a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x430a53
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
jmp 0x430a8c
add esi, 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430a60
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004b96b0
push 0x50a920
push 0x64
push esi
call fcn.004b4755
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x430ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004b96b0
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x430b3e
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430b03
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004b96b0
push 0x50a984
push 0x64
push esi
call fcn.004b4755
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
push 0x5062dc
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b47b8
push 0x50a8b0
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b47b8
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b47b8
add esp, 0x24
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.00430880
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x430fb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004b96b0
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5062dc
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b47b8
push 0x50a8b0
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b47b8
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b47b8
add esp, 0x24
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x431060
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431072
xor al, al
pop edi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431077
sub eax, edx
sar eax, 1
push esi
lea esi, [eax - 1]
test esi, esi
js 0x43109a
mov edi, edi
cmp word [edi + esi*2], 0x5c
je 0x43109a
dec esi
jns 0x431090
mov edx, edi
xor ecx, ecx
mov eax, ebx
sub edx, ebx
cmp ecx, esi
jge 0x4310b9
mov di, word [edx + eax]
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, 0x104
jl 0x4310a2
pop esi
mov al, 1
pop edi
ret
Function at 0x431e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4a63
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x431ef0
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.004041e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x432d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4a33
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov byte [ebp - 4], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x50669a
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.004041e0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x43334b
cmp byte [esi + 0x44], bl
jne 0x433343
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433327
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.004041e0
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x433363
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x433352
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004b4b67
push ebx
call fcn.004b4d77
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004b4b67
add esp, 0x1c
test ebx, ebx
jg 0x4333d6
cmp byte [esi + 0x44], 0
jne 0x4333ce
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_null__0__or_unexpected_EOF_found_in_input_stream.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4333b5
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.004041e0
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea ecx, [ebx + 1]
push ecx
call fcn.0046b32d
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.004b2e67
add esp, 0x14
cmp eax, 1
je 0x43342e
push edi
call fcn.004b1e05
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x433343
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433422
jmp 0x43332e
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x43345c
jmp 0x433440
mov dl, byte [eax]
cmp dl, 0xd
jne 0x433453
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x433457
jmp 0x433456
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x433440
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ecx
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.004b1e05
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 8
Function at 0x43aad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43aad7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43abad
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 + 0x509770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
add ecx, 8
sub edx, 8
dec esi
jne 0x43aaf0
pop edi
test edx, edx
je 0x43abca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x509770]
inc ecx
dec edx
jne 0x43abb1
not eax
pop esi
ret

Function at 0x43abd0
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 + 0x509770]
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 + 0x509770]
mov dword [edx + 8], ecx
ret

Function at 0x43ac40
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 + 0x509770]
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 + 0x509770]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43b560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x43b596
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b58c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43b5a7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004b5e30
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43b5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x43b603
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b5fe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43b62e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x43b615
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.004b5e30
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x43b643
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43b63d
cmp byte [esi + 8], 0
je 0x43b63d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x43b790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43b7d7
cmp byte [esi + 1], 0
je 0x43b7df
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43b7f2
cmp byte [esi + 1], 0
je 0x43b7e6
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x43b7fa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43b7b1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43b7fa
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43b80c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004b2b1c
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43b829
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43b92e
lea ecx, [ecx]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43b84f
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43b866
mov ebx, 0x404
cmp byte [esi], 0
je 0x43b88b
cmp byte [esi + 1], 0
je 0x43b92e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43b88e
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43b8b7
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b8b2
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43b8e0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43b8c8
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004b5e30
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43b92e
lea eax, [ebx - 3]
test eax, eax
js 0x43b913
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43b90f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43b90f
cmp byte [eax + ecx + 2], 5
jne 0x43b90f
cmp byte [eax + ecx + 3], 6
je 0x43b928
test eax, eax
jns 0x43b8f0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x43b92e
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xc]
jmp 0x43b840
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004b2f65
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43caf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x43cbaa
cmp dword [esi + 4], 0xffffffff
jne 0x43cbaa
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43cb20
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x43cb4c
cmp ecx, 0x2f
je 0x43cb4c
mov dword [esi + eax*2 + 0x244], 0x2f
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x43cb70
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43cb70
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push ebx
call fcn.0043b340
add esp, 0x10
test eax, eax
jne 0x43cb8f
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.0043b950
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8