joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x3c3d3e3f
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x1b
ja 0x43ccbe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x725c0c28
add eax, 0x28
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov ecx, eax
xor ecx, 0xe7
and eax, 0x67
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x1c
jb 0x43cc70
mov eax, dword [esp + 0x10]
mov edi, dword [0x44b674]
test edi, edi
je 0x43cd1d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x44b678]
nop
nop
nop
nop
nop
nop
cmp dword [esi + ebx*8], 0xea176b69
je 0x43ccf0
inc ebx
cmp edi, ebx
jne 0x43cce0
jmp 0x43cd1d
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x43cd1d
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x44b67c]
push edi
call fcn.004392f0
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x43ce28
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x3c3d3e3f
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1b
ja 0x43cdce
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x725c0c28
add eax, 0x28
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov ecx, eax
xor ecx, 0xe7
and eax, 0x67
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1c
jb 0x43cd80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44b674]
test ecx, ecx
je 0x43ce20
xor edx, edx
mov esi, dword [0x44b678]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x7a1a689f
je 0x43ce00
inc edx
cmp ecx, edx
jne 0x43cdf0
jmp 0x43ce20
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43ce20
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x44b67c]
push ecx
call fcn.004392f0
add esp, 0x18
test eax, eax
js 0x43ce28
mov eax, dword [esp + 8]
test edi, edi
je 0x43ce32
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43ce40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x43ce60
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 8], bx
add ebx, 2
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edi
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x3c3d3e3f
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1b
ja 0x43cf4e
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edi, [eax + ecx]
add edi, 0x725c0c28
add eax, 0x28
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edi
not eax
and eax, edi
add eax, eax
sub eax, ecx
mov ecx, eax
xor ecx, 0xe7
and eax, 0x67
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1c
jb 0x43cf00
mov eax, dword [esp + 0x10]
mov edi, dword [0x44b674]
test edi, edi
je 0x43cfa3
xor ebx, ebx
mov ecx, dword [0x44b678]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x8ea7b332
je 0x43cf80
inc ebx
cmp edi, ebx
jne 0x43cf70
jmp 0x43cfa3
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, eax
je 0x43cfa3
lea eax, [esp + 0x34]
push esi
push eax
push edx
push dword [ebp + 0xc]
push 4
push dword [0x44b67c]
push ecx
call fcn.004392f0
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407960
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x496230
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402330
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406aa0
add esp, 4
test eax, eax
jne 0x4079c0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.7z
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00405830
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 1
push eax
mov eax, dword [esp + 0x10]
call fcn.00407a70
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004314b0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x407a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407a97
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.00448214
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x49ff14
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x40add0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4949a0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [esp + 0x228], 1
push eax
lea ecx, [esp + 0x1a]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x104
mov word [esp + 0x1c], ax
call fcn.004660c0
add esp, 0xc
push 0x4a0420
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aebb
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x240]
push eax
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40aebb
mov eax, dword [esp + 0x22c]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x238]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aee6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00461095
add esp, 0x224
ret
Function at 0x40d4c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call fcn.00448214
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x4a07f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d4ed
pop edi
pop esi
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40d50d
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0046a6a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40d564
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40d566
xor esi, esi
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
setne al
pop ebp
ret 8
Function at 0x40fce0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x493748
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push str.YouXunBoxYouxun.exe
lea esi, [ebx + 0x164]
lea eax, [esp + 0x10]
push esi
push eax
mov dword [ebx + 0x16c], 1
call fcn.00405830
mov dword [esp + 0x28], 0
mov eax, dword [0x4bf084]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00402330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00405130
test eax, eax
je 0x40fd9d
push str.YouXunBox
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00405830
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
push 0x4a0bb4
push edx
push 0x4a03f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40fe5f
mov eax, dword [0x4bf084]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00402330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00405200
test eax, eax
je 0x40fe05
push str.YouXunBox
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00405830
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
push 0
push edx
push 0x4a03f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40fe5f
mov ecx, dword [0x4bf088]
cmp dword [ecx - 0xc], 0
jne 0x40fe1b
mov ecx, 0x4bf090
call fcn.00401fc0
push str.YouXunBox
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00405830
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
mov eax, dword [0x4bf090]
push eax
push ecx
push 0x4a03f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x416620
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.0044241e
mov esi, eax
add esp, 4
test esi, esi
je 0x4166f4
push 0x288
push 0
push esi
call fcn.004660c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41666f
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4166eb
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x416695
cmp dword [eax + 0x190], ecx
je 0x4166a9
mov eax, dword [eax]
test eax, eax
jne 0x416685
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x4a1454
push edx
call fcn.00406350
add esp, 0x20
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x416700
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.0044241e
mov esi, eax
add esp, 4
test esi, esi
je 0x4167c4
push 0x170
push 0
push esi
call fcn.004660c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x416755
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x4167bb
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x41678b
mov eax, dword [eax + 8]
test eax, eax
jne 0x416771
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x4a1454
push ecx
call fcn.00406350
add esp, 0x20
push esi
call fcn.00442458
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x41b700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x41b707
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41b7e4
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 + 0x4a65b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a65b0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41b720
pop edi
test edx, edx
je 0x41b80b
jmp 0x41b7f0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4a65b0]
inc ecx
sub edx, 1
jne 0x41b7f0
not eax
pop esi
ret

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

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

Function at 0x41bfb0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x41bfe2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41bfd8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x41bff5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0046a6a0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x41d140
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x41d1e1
cmp dword [esi + 4], 0xffffffff
jne 0x41d1e1
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d170
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x41d1a9
cmp ax, 0x2f
je 0x41d1a9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41d196
mov eax, dword [0x4a03f4]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.0041bf10
add esp, 4
test eax, eax
jne 0x41d1c7
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.0041c340
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x41d7e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x41d820
push esi
call ebp
cmp eax, 0xffffffff
jne 0x41d820
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41d906
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x41d83f
cmp ax, 0x5c
jne 0x41d841
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x41d833
push edi
cmp ecx, ebx
je 0x41d884
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0046a6a0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.0041d7e0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x41d8af
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x41d8a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41d8a0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d8b3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x41d8d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41d8d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x41d906
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00461095
add esp, 0x414
ret