joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x44e510
push eax
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x412278
push 0x45a204
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00429229
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x412298
push 0x45a204
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.00429229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4122d2
push 0x45a204
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.00429229
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push 0
push edi
push ecx
push eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x412311
lea edx, [ebp + 0xc]
push edx
push ebx
mov dword [edi], 0x44e3d0
mov dword [ebp + 0xc], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x412313
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x78], ecx
mov ecx, edi
mov dword [esi + 0x90], edi
call fcn.00411fc0
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x6c], eax
call fcn.00411ff0
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x6c]
cdq
idiv dword [esi + 0x78]
mov edx, dword [esi + 0x1c]
push edx
mov dword [esi + 0x74], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0043c870
mov ebx, eax
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x94]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov ecx, ebx
call fcn.004424bb
mov eax, dword [esi + 0x74]
mov ecx, dword [edi]
mov edx, dword [esi + 0x98]
add edx, dword [esi + 0x70]
add ecx, eax
mov dword [esi + 0xa0], edx
mov dword [esi + 0x9c], ecx
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0043fce4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4123b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4133d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44abe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ecx + 4]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
jne 0x413532
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x44e510
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x413434
push 0x45a204
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], ebx
call fcn.00429229
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x413454
push 0x45a204
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
call fcn.00429229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 1
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41348e
push 0x45a204
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], edi
call fcn.00429229
mov edx, dword [eax]
push edi
push esi
push ebx
push eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x4134be
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], 0x44e3c8
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4134c0
xor esi, esi
cmp esi, edi
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], esi
je 0x413500
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esi + 8], edi
jne 0x413500
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4134e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x45a204
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00429229
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41351e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41352c
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x413532
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp di, 0x14
jae 0x414868
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
mov cl, byte [esi]
mov dl, byte [esi + 1]
push ebp
push 0x10
lea eax, [esp + 0x18]
mov byte [esp + 0x10], cl
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0
call fcn.00429e43
mov ecx, eax
movzx ebp, cx
lea edx, [ebp + 4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
movzx eax, di
shl edx, 2
add esp, 0xc
cmp eax, edx
mov dword [esp + 0x18], ecx
je 0x4148ca
pop ebp
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
movzx edx, word [esp + 0x28]
dec edx
cmp ebp, edx
jg 0x41494a
xor edi, edi
test ebp, ebp
jle 0x414942
add esi, 2
push ebx
mov edi, edi
mov cl, byte [esi - 1]
mov dl, byte [esi]
mov al, byte [esi - 2]
mov byte [esp + 0x15], cl
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], al
mov al, byte [esi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x22], 0
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0
call fcn.00429e43
mov ebx, eax
push 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00429e43
mov edx, dword [esp + 0x40]
xor al, bl
add esp, 0x18
mov byte [edi + edx], al
inc edi
add esi, 4
cmp edi, ebp
jl 0x4148e0
mov ecx, dword [esp + 0x1c]
pop ebx
mov eax, dword [esp + 0x24]
mov byte [eax + ebp], 0
pop ebp
pop edi
mov ax, cx
pop esi
add esp, 0x10
ret

Function at 0x414960
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x461660]
push 0
mov dword [esp + 0x214], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x4557f0
push 1
push 0
push 0x455800
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4149bd
mov edx, dword [esp + 0x218]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x455840
push eax
call dword [ecx]
test eax, eax
jge 0x4149d2
xor eax, eax
mov ecx, dword [esp + 0x210]
call fcn.00428f7e
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
push 0x104
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push 2
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x210]
mov eax, 1
call fcn.00428f7e
add esp, 0x214
ret
Function at 0x414bc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44ad33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x461660]
push ebx
push ebp
mov dword [esp + 0x110], eax
push esi
mov eax, dword [esp + 0x12c]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [esp + 0x120], 0
mov ebx, 1
jne 0x414c59
mov ecx, dword [esp + 0x128]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00414ac0
add esp, 8
push eax
lea ecx, [esp + 0x130]
mov byte [esp + 0x124], bl
call fcn.00401f30
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x120], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x414c7c
push 0x5c
push 0
lea ecx, [esp + 0x134]
call fcn.00414a40
push 4
push str..lnk
lea ecx, [esp + 0x134]
call fcn.004054f0
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebp, dword [esp + 0x12c]
cmp dword [ebp - 4], ebx
jle 0x414cb0
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x130]
call fcn.00401080
mov ebp, dword [esp + 0x12c]
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414cb4
push edi
lea edi, [esp + 0x14]
sub eax, edx
dec edi
lea ebx, [edi + 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x414cc6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
pop edi
jne 0x414ce7
xor eax, eax
jmp 0x414cfb
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414cf0
sub eax, edx
js 0x414d65
cmp eax, dword [ebp - 8]
jg 0x414d65
mov edx, dword [esp + 0x128]
push ebx
mov dword [ebp - 0xc], eax
push edx
mov byte [eax + ebp], 0
call fcn.00414960
mov esi, eax
lea eax, [ebp - 0x10]
add esp, 8
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414d3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop ebx
call fcn.00428f7e
add esp, 0x118
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x417980
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x44af8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
mov eax, dword [0x461660]
push ebx
push esi
mov esi, dword [esp + 0x55c]
push 1
push 0x1b6
xor ebx, ebx
mov dword [esp + 0x54c], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push 0x20
push eax
lea ecx, [esp + 0x50]
call fcn.00417790
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x48]
test al, 6
mov dword [esp + 0x550], 1
je 0x417a23
push esi
lea edx, [esp + 0x18]
push str.MD5Helper::GetMD5_cause_a_exception__cant_open_file
push edx
call fcn.00417000
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x554], 2
mov dword [esp + 0x14], eax
call fcn.00429274
push 0x45a7e4
lea edx, [esp + 0x38]
push edx
call fcn.00429229
test al, 1
mov byte [esp + 0x140], bl
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xd8], 0x67452301
mov dword [esp + 0xdc], 0xefcdab89
mov dword [esp + 0xe0], 0x98badcfe
mov dword [esp + 0xe4], 0x10325476
jne 0x417ab1
jmp 0x417a70
push 0x400
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x48]
call fcn.00416aa0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jle 0x417aa3
push eax
lea ecx, [esp + 0x148]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00416050
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x48], 1
je 0x417a70
lea ecx, [esp + 0x48]
call fcn.00417520
test eax, eax
jne 0x417ae2
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x48]
mov edx, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x40]
or eax, 2
cmp edx, ebx
jne 0x417adb
or eax, 4
push ebx
push eax
call fcn.004394ef
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xdc]
call fcn.004176a0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
cmp ecx, esi
mov byte [esp + 0x550], 3
jb 0x417b0c
mov eax, dword [eax + 4]
jmp 0x417b0f
add eax, 4
push eax
lea ecx, [esp + 0xc]
call fcn.00402550
cmp dword [esp + 0x30], esi
mov byte [esp + 0x550], 5
jb 0x417b34
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043b0cc
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004050a0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.004015f0
mov esi, dword [esp + 0x55c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
mov byte [esp + 0x550], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x550], bl
call fcn.004178d0
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x44e850
call fcn.00439405
mov ecx, dword [esp + 0x548]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x540]
pop ebx
call fcn.00428f7e
add esp, 0x54c
ret 8
Function at 0x417c10
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0x20000000
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x417c30
pop esi
pop ebx
add esp, 0x1c
ret
push edi
push 4
push str.SENS
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x417c55
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x417c7a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x417c86
mov ebx, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x417cb0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
cmp dword [ecx], 0
push esi
je 0x417ced
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
xor esi, esi
call sub.SensApi.dll_IsNetworkAlive
test eax, eax
je 0x417cd9
mov esi, 1
mov eax, esi
pop esi
pop ecx
ret
push 0x44e980
push 3
call fcn.0041d710
add esp, 8
mov eax, esi
pop esi
pop ecx
ret
push 0
lea ecx, [esp + 8]
push ecx
mov esi, 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x417d11
test byte [esp + 4], 0x20
je 0x417d27
xor esi, esi
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
push 0x44e960
push 3
xor esi, esi
call fcn.0041d710
add esp, 0xc
mov eax, esi
pop esi
pop ecx
ret
Function at 0x418b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x418b4b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x418c43
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44fd70]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x418b66
test edi, edi
je 0x418c62
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x44fd70]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x418c47
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x44fd70]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, 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
mov esi, dword [eax*4 + 0x44fd70]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44fd70]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x44fd70]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x419160
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4191a1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419196
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x4191b4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x461660]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x220], eax
push edi
je 0x41a307
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a307
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x41a3d5
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x41a322
cmp cl, 0x5c
jne 0x41a324
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41a318
cmp eax, ebx
je 0x41a36a
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [esp + eax + 0x118], 0
lea eax, [esp + 0x118]
push eax
push ecx
call fcn.0041a2d0
mov esi, dword [ebp + 8]
add esp, 8
test esi, esi
mov byte [esp + 0x10], 0
je 0x41a38a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x41a380
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41a380
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a390
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a3a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a3d5
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x224]
call fcn.00428f7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bd80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x41bd94
cmp dword [edi + 0x18], ebx
jne 0x41bd9f
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x41bdad
push edi
call fcn.00419bd0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004199d0
add esp, 0x10
test eax, eax
je 0x41bdd4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00429528
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41be15
push 0x4000
call fcn.00429528
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x41be21
push esi
call fcn.0042953a
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41be6f
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00418f50
add esp, 4
test eax, eax
jne 0x41be6f
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x41be99
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x41bea2
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x41bee6
nop
xor eax, eax
mov al, byte [ebp]
test al, al
je 0x41bee6
push eax
push ebx
call fcn.00418c70
add esp, 8
inc ebp
jne 0x41bed0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret