joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x468bba
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00406cb0
xor edi, edi
push 0x35
lea ecx, [esi + 0x38]
mov dword [esp + 0xb4], edi
mov dword [esi], vtable.CW3MFCClient.0
mov dword [esi + 0x34], edi
call fcn.004149d0
lea ecx, [esi + 0xf8]
mov byte [esp + 0xb0], 1
mov dword [esi + 0xf4], edi
call fcn.004078a0
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x114]
mov byte [esp + 0xc0], 2
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
call fcn.0043743f
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40cb60
cmp dword [esp + 0x20], 2
jne 0x40cb60
cmp dword [esp + 0x14], 5
jb 0x40cb60
push str.MSWSOCK.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x11c], eax
cmp eax, edi
je 0x40cb60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TransmitFile
push eax
call edi
mov ecx, dword [esi + 0x11c]
push str.TransmitPackets
push ecx
mov dword [esi + 0x120], eax
call edi
mov dword [esi + 0x124], eax
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004517f0
add esp, 0xa8
ret
Function at 0x4144f0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [esp + 0x10], ecx
mov esi, 0x400
push esi
call fcn.004318d6
mov ecx, dword [ebx]
add esp, 4
mov edi, eax
mov eax, dword [ebp]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esi - 2]
push edi
cmp eax, ecx
jne 0x414534
call fcn.004318cb
add esp, 4
add esi, esi
jmp 0x414506
test eax, eax
jne 0x41454f
call fcn.004318cb
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004142c0
push edi
call fcn.004318cb
mov eax, dword [esi + 0x10]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x417090
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x469c5c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebp, [esi + 0x20]
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4170d8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x20], 0
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417109
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x20], 1
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417137
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x20], 2
lea edi, [esi + 0x34]
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417168
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ebx, dword [esp + 0x28]
push ebx
push 0x46ea2c
push ebp
mov byte [esp + 0x2c], 3
call fcn.00401f50
add esp, 0xc
push ebx
mov ecx, esi
call fcn.00416da0
mov ecx, dword [esp + 0x30]
push ecx
push 0x46ea2c
push edi
call fcn.00401f50
mov edx, dword [esp + 0x38]
mov dword [esi + 0x30], edx
add esp, 0xc
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x47108c]
mov dword [esi + 0xc], eax
mov ecx, dword [0x471090]
mov dword [esi + 0x10], ecx
mov edx, dword [0x471094]
mov dword [esi + 0x14], edx
mov eax, dword [0x471098]
mov dword [esi + 0x18], eax
mov cl, byte [0x47109c]
mov byte [esi + 0x1c], cl
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x418840
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x164]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esi + 0x178], 0
mov dword [esi + 0x174], 0
call edi
mov ecx, dword [esi + 0x16c]
push ecx
call edi
mov edx, dword [esi + 0x68]
push edx
call edi
mov eax, dword [esi + 0x70]
push eax
call edi
mov ecx, dword [esi + 0x78]
push ecx
call edi
mov edx, dword [esi + 0x80]
push edx
call edi
mov eax, dword [esi + 0x88]
push eax
call edi
mov ecx, dword [esi + 0x90]
push ecx
call edi
mov edx, dword [esi + 0x98]
push edx
call edi
mov eax, dword [esi + 0xa0]
push eax
call edi
mov ecx, dword [esi + 0xa8]
push ecx
call edi
push 0
push 4
push 0
push 0
push esi
push 0x4186e0
call fcn.00434f49
mov dword [esi + 0x15c], eax
test eax, eax
jne 0x4188d8
pop edi
pop esi
ret
mov dword [eax + 0x28], 0
mov edx, dword [esi + 0x15c]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x164]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x178]
pop edi
pop esi
ret
Function at 0x41b5b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46a260
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.00401290
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push str.wallpaper.jpg
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x38], 0
call fcn.00401d80
add esp, 0x10
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov byte [esp + 0x2c], 1
call ebp
test eax, eax
jne 0x41b63d
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov ebx, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0042d4b0
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call ebp
test eax, eax
je 0x41b653
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x14]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x41b672
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.00401720
mov ebp, dword [ebp]
push ebx
push ebp
mov ecx, esi
call fcn.00418700
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 0
je 0x41b6d2
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b6a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41b714
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b712
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x41c960
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46a418
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.00401290
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], edi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jne 0x41c9d4
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov ebx, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0042d4b0
add esp, 4
push 7
push str.update
lea ecx, [esp + 0x1c]
call fcn.00401e60
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test eax, eax
jne 0x41ca0f
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042d4b0
add esp, 4
mov eax, dword [esi + 0x18]
push 0
lea edi, [esi + 0x1c]
push edi
push eax
mov eax, dword [str.http:__tqm.stnts.com:80_ws_index2.php]
push eax
mov ecx, esi
call fcn.00418910
test eax, eax
je 0x41ca73
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x41ca40
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.00401720
push edi
mov ecx, esi
call fcn.004195a0
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ca6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41ca99
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x41f6a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
xor esi, esi
cmp eax, esi
jne 0x41f6de
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x41f6ea
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x41f780
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov edi, eax
push edi
push ebx
push ecx
lea edx, [esp + 0x28]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x46ead0
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x12]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
push edx
movzx eax, cx
push eax
push str._d._d._d._d
push ebp
call fcn.0045428b
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov ecx, dword [esp + 0x11c]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004517f0
add esp, 0x114
ret 8

Function at 0x41f7a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call fcn.00451390
add esp, 0xc
cmp byte [esp + 0x128], 0
jne 0x41f845
mov ecx, dword [esi]
push ecx
push 0x104
lea edx, [esp + 0x18]
push edx
push str._none_value_
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, str._none_value_
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41f835
test dl, dl
je 0x41f831
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41f835
add eax, 2
add ecx, 2
test dl, dl
jne 0x41f815
xor eax, eax
jmp 0x41f83a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41f845
mov eax, 1
jmp 0x41f85f
mov eax, dword [esi]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x41f859
xor eax, eax
jmp 0x41f85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004517f0
add esp, 0x108
ret 0x10
Function at 0x41fed0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x11c]
push edi
xor eax, eax
push 0x103
push eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1d]
push eax
mov edi, ecx
call fcn.00451390
mov ecx, dword [edi]
add esp, 0xc
push ecx
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0x46eb20
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402600
mov ecx, dword [esp + 0x118]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004517f0
add esp, 0x10c
ret 0xc
Function at 0x420b80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
lea ecx, [ecx]
xor edx, edx
test eax, eax
jle 0x420bbd
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + 0x10]
mov esi, eax
imul eax, ebp
imul esi, edi
add esi, edx
add eax, edx
add esi, ebx
mov ebx, dword [ecx + 0xc]
lea eax, [ebx + eax*4]
mov al, byte [eax + edi]
xor byte [esi], al
mov eax, dword [ecx + 4]
inc edx
cmp edx, eax
jl 0x420b96
inc edi
cmp edi, 4
jl 0x420b90
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x422210
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov eax, 0x1020
call fcn.00454110
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x101c], eax
mov eax, dword [esp + 0x1028]
push esi
mov esi, dword [esp + 0x1028]
mov dword [esp + 8], eax
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422241
sub eax, edx
inc eax
push eax
call fcn.004318d6
push esi
mov edi, eax
push 0x46ea2c
push edi
mov dword [esp + 0x18], edi
call fcn.0045428b
add esp, 0x10
call fcn.00422180
test eax, eax
jne 0x42229b
push 0x10
push 0x4718b8
push str.Could_not_start_crypto_library
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.004517f0
add esp, 0x1020
ret
push ebp
push 0x471874
push edi
call fcn.00455141
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
jne 0x4222f6
push 0x10
push 0x4718b8
push str.Failed_to_open___Invaild_File
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x48cec0]
cmp eax, ebp
je 0x4222d6
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [0x48cec0], ebp
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.004517f0
add esp, 0x1020
ret
mov edx, dword [0x48cec0]
lea ecx, [esp + 0x24]
push ecx
push ebp
xor eax, eax
push ebp
push 0x8003
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
call fcn.00455015
add esp, 4
test eax, eax
jne 0x422370
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x422340
push esi
push 0x1000
lea eax, [esp + 0x30]
push 1
push eax
call fcn.00454ff8
mov edx, dword [esp + 0x34]
add esp, 0x10
push ebp
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call edi
push esi
call fcn.00455015
add esp, 4
test eax, eax
je 0x422340
lea eax, [esp + 0x14]
push eax
call fcn.004221d0
push esi
call fcn.00454cdc
push 0x400
call fcn.004318d6
add esp, 0xc
mov edi, eax
xor esi, esi
push ebx
mov bl, byte [esp + ebp + 0x18]
mov edx, 4
jmp 0x4223a0
mov al, bl
mov cl, dl
shr al, cl
and al, 0xf
cmp al, 0xa
jge 0x4223b0
add al, 0x30
jmp 0x4223b2
add al, 0x57
mov byte [esi + edi], al
inc esi
sub edx, 4
jns 0x4223a0
inc ebp
cmp ebp, 0x10
jl 0x422392
mov byte [esi + edi], 0
mov eax, dword [0x48cec0]
pop ebx
test eax, eax
je 0x4223d8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x10]
push edi
push 0x46ea2c
push ecx
mov dword [0x48cec0], 0
call fcn.0045428b
mov edx, dword [esp + 0x18]
push edx
call fcn.004318cb
push edi
call fcn.004318cb
mov ecx, dword [esp + 0x103c]
add esp, 0x14
pop ebp
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004517f0
add esp, 0x1020
ret
Function at 0x4231c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4231cb
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x4232a9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x472d48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4231e5
pop edi
test edx, edx
je 0x4232cb
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x472d48]
inc ecx
sub edx, 1
jne 0x4232b0
not eax
pop esi
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x472d48]
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 + 0x472d48]
mov dword [edx + 8], ecx
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [esp + 0x10]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x472d48]
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 + 0x472d48]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
Function at 0x4237a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x4237e2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4237d6
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4237f3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00453270
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x42490d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42490d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x4249c6
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x424928
cmp al, 0x5c
jne 0x42492a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x424920
cmp esi, ebp
je 0x424960
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00453270
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.004248d0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x42497b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x424971
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424980
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x424990
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x4249c6
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.004517f0
add esp, 0x20c
ret