joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a66c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48700c]
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, ecx
lea esi, [edi + 0xc]
xor bl, bl
push esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x40916f
call fcn.00406060
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
je 0x40916f
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
lea ecx, [ebp - 0x4c]
call fcn.004091d0
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_V__WeakCallback_V___Binder_U_Unforced_std__AAP8MessageLoopProxy_nbase__BEXXZABQBV34__std___nbase__V__allocator_H_std__X__V_std__.0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x24]
push eax
call fcn.00405330
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40916d
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov bl, 1
test esi, esi
je 0x40917a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x409186
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
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.00450f3a
mov esp, ebp
pop ebp
ret

Function at 0x40ae40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ae85
cmp byte [ebp + 8], 0
je 0x40ae79
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x40cf90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x10]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x40cfc4
cmp ebx, dword [esi + 0xe0]
je 0x40cfc4
test ebx, ebx
je 0x40cfc4
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x40d108
test eax, eax
je 0x40d0a4
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 3
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov esi, dword [esi + 0xe0]
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0xf4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xf8]
mov dword [ecx + 0xe0], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x25
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [eax + 0xd0]
mov esi, dword [esp + 0xc]
test ebx, ebx
je 0x40d108
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
cmp eax, esi
jne 0x40d108
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40d108
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x88]
call eax
test al, al
je 0x40d108
push 0
push 0
push ecx
mov dword [esp], 0
mov ecx, ebx
push 0
push 0
push 0
push 2
mov dword [esi + 0xe0], ebx
call fcn.00423350
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x40d108
push 0
push 0
push 0x24
push eax
mov ecx, esi
call fcn.0040d3f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x476898
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x48ad00], 0
mov esi, eax
je 0x414897
call fcn.0043ea60
mov dword [0x48ad00], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x4148a2
mov ecx, dword [ecx]
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.0043e900
add esp, 8
mov dword [0x48ad00], eax
xor ecx, ecx
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret
Function at 0x423350
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
sete al
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x4233bd
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xf4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xf8]
mov dword [ebp - 0x14], eax
jmp 0x4233c3
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42d060
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c630
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x48700c]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x42d09e
mov eax, dword [esi]
jmp 0x42d0a0
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42d198
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x42d138
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d192
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42d192
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00401b50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x42d127
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401c50
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x28]
call fcn.004019d0
jmp 0x42d192
push 1
call edi
test eax, eax
je 0x42d192
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d192
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42d192
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.00421750
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004189c0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x40]
call fcn.00401aa0
call dword [sym.imp.USER32.dll_CloseClipboard]
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.00450f3a
mov esp, ebp
pop ebp
ret

Function at 0x42d1c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42d240
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x42d1e8
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
push ebx
push edi
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42d238
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x42d214
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.00468af0
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4365c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a6d6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x48700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov esi, dword [eax + 4]
mov ebx, dword [eax]
test esi, esi
je 0x43660b
lock inc dword [esi + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x436621
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x436621
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 4], esi
lea ecx, [edi + 0x18]
mov esi, dword [ebp + 0xc]
xor edx, edx
mov dword [edi], ebx
movq xmm0, qword [esi]
movq qword [edi + 8], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 0x10], eax
mov al, byte [esi + 0xc]
mov byte [edi + 0x14], al
lea eax, [esi + 0x10]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.00413730
lea ecx, [edi + 0x30]
xor edx, edx
lea eax, [esi + 0x28]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.00413730
mov eax, dword [esi + 0x40]
mov dword [edi + 0x48], eax
mov eax, edi
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 0x439950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aa78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48700c]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x43998f
push eax
call fcn.0045b916
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x43999f
push eax
call fcn.0045b916
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004139a0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4399fb
cmp word [edi], 0
jne 0x4399da
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00416850
jmp 0x439a29
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4399e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00416850
jmp 0x439a29
cmp word [edi], 0
jne 0x439a05
xor ecx, ecx
jmp 0x439a1f
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439a10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00401b50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x439a5d
push 0x63
push str.Error_opening_file
jmp 0x439ace
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x439a75
push 0x63
push str.File_is_empty
jmp 0x439ace
cmp edi, 0x400000
jbe 0x439a86
push 0x63
push str.File_too_large
jmp 0x439ace
push edi
mov dword [ebp - 0x2c], 0
call fcn.004516a1
add esp, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], edi
je 0x439af1
mov edi, dword [ebp - 0x30]
push edi
call fcn.004516aa
add esp, 4
mov ecx, esi
call fcn.00439b40
push 0x63
push str.Could_not_read_file
lea eax, [esi + 0x10]
push eax
call fcn.0045b8c8
push 0x31
lea eax, [esi + 0xd8]
push 0x474ee8
push eax
call fcn.0045b8c8
add esp, 0x18
xor bl, bl
jmp 0x439b09
push ecx
push edi
mov edi, dword [ebp - 0x30]
mov ecx, esi
push edi
call fcn.00439890
push edi
mov bl, al
call fcn.004516aa
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x439b1b
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00401d70
mov al, bl
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.00450f3a
mov esp, ebp
pop ebp
ret 8
Function at 0x43c270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43c27b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43c337
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
sub edi, 1
jne 0x43c290
pop edi
test esi, esi
je 0x43c35a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
sub esi, 1
jne 0x43c340
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43c9d0
Capabilities:
Read file on windows

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x43ca8b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ca86
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43cab8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x43ca9c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00468af0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x43cacc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43cac3
cmp byte [esi + 8], 0
je 0x43cac3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x43cc55
cmp byte [edi + 1], 0
je 0x43cc4d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43cc5b
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x43cc7e
cmp byte [edi + 1], 0
je 0x43cc77
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x43cc81
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x43cc90
mov eax, dword [edi + 0x1c]
mov ebx, 0xffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jae 0x43cc95
mov ebx, eax
mov dword [ebp - 0x10], eax
push esi
push 0x404
call fcn.0045b90b
mov esi, eax
add esp, 4
test esi, esi
jne 0x43ccb3
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp ebx, eax
jbe 0x43cdb5
nop word [eax + eax]
mov edx, dword [ebp - 8]
add eax, 0x400
cmp eax, ebx
mov ecx, eax
mov eax, 0x404
cmova ecx, ebx
sub edx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x404
mov dword [ebp - 0x18], edx
mov ebx, ecx
cmova ebx, eax
cmp byte [edi], 0
je 0x43cd1b
cmp byte [edi + 1], 0
je 0x43cdb5
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43cd1e
mov dword [edi + 0x1c], edx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x43cd46
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cd41
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x43cd6f
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x43cd59
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.00468af0
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x43cdb5
lea eax, [ebx - 3]
test eax, eax
js 0x43cda0
nop
dec eax
cmp byte [eax + esi], 0x50
jne 0x43cd9c
cmp byte [eax + esi + 1], 0x4b
jne 0x43cd9c
cmp byte [eax + esi + 2], 5
jne 0x43cd9c
cmp byte [eax + esi + 3], 6
je 0x43cdc8
test eax, eax
jns 0x43cd80
mov eax, dword [ebp - 4]
test eax, eax
jne 0x43cdb5
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jb 0x43ccd0
push esi
call fcn.0045b916
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x43cda3
Function at 0x43d9b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x43d9cb
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x43d9c0
cmp dword [edi + 0x7c], 0
je 0x43d9dc
call fcn.0043de20
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.0043d720
add esp, 8
test eax, eax
je 0x43da00
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.0045b90b
mov esi, eax
add esp, 4
test esi, esi
je 0x43da43
push 0x4000
call fcn.0045b90b
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x43da4f
push esi
call fcn.0045b916
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x43daaa
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0043c570
test eax, eax
jne 0x43daaa
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x43dacd
mov al, byte [edi + 0x39]
jmp 0x43dad0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x43db4e
nop
mov al, byte [ebx]
test al, al
je 0x43db4e
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, dword [esi + 0x70]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4750f8]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4750f8]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x43db00
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dfa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43e052
cmp dword [esi + 4], 0xffffffff
jne 0x43e052
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43dfd1
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x43e008
cmp eax, 0x2f
je 0x43e008
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x43dff5
mov eax, dword [0x476e4c]
mov dword [edi], eax
push 0x20
call fcn.00450f4b
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0043cdd0
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc