joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d61f0]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x5a9e7c
push 1
push 0
push 0x5aa16c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x408f70
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x409072
mov eax, dword [ebp - 0x14]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00402110
mov dword [ebp - 4], 0
push 0x5c
push dword [ebp - 0x1c]
call fcn.0054aed1
add esp, 8
test eax, eax
jne 0x408fa7
or eax, 0xffffffff
jmp 0x408fac
sub eax, dword [ebp - 0x1c]
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404260
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402530
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408fe9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
push 0x5ac810
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
push edx
push 0x5aa1cc
push eax
call dword [ecx]
test eax, eax
js 0x409028
mov eax, dword [ebp - 0x18]
push 1
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x409032
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
jmp 0x40904f
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x409070
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0054940a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409160
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5762e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d61f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x409090
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x5de504]
test eax, eax
je 0x4091bb
push 0
push 0
push 0x13a8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004290db
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4091d7
push 0x80004005
call fcn.00402650
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.MonVideoDesktop
lea eax, [ebp - 0x14]
push str._s.exe
push eax
mov dword [ebp - 4], 0
call fcn.00404a00
mov edi, dword [ebp - 0x14]
add esp, 0xc
add edi, 0xfffffff0
push 1
push ecx
mov esi, esp
push edi
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409280
push 1
push ecx
mov ecx, esp
push str.MiniThunderPlatform.exe
call fcn.00402110
call fcn.00409280
push 1
push ecx
mov ecx, esp
push str.WallFloatTip.exe
call fcn.00402110
call fcn.00409280
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409265
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054940a
mov esp, ebp
pop ebp
ret
Function at 0x40d890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042be74

Function at 0x40e320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5766c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5d61f0]
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 edx, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40e36a
xor ecx, ecx
jmp 0x40e37f
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e370
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ccd0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40e3b5
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.0040e4e0
mov ecx, dword [ebp - 0x18]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
xor edx, edx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], dx
xor edi, edi
xor esi, esi
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40e42a
mov edi, edi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + esi*2], 0x5c
je 0x40e406
lea eax, [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
movzx eax, word [eax + esi*2]
push eax
jmp 0x40e414
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040e5f0
push 0x5c
push 1
lea ecx, [ebp - 0x40]
call fcn.0040e4e0
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x40e3e0
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov esi, eax
cmp eax, ebx
je 0x40e454
cmp dword [esi + 0x14], 8
jb 0x40e43a
mov eax, dword [esi]
jmp 0x40e43c
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
neg edi
sbb edi, edi
add esi, 0x18
neg edi
cmp esi, ebx
jne 0x40e430
cmp dword [ebp - 0x2c], 8
jb 0x40e465
push dword [ebp - 0x40]
call fcn.00426e01
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40e4a8
mov esi, eax
cmp eax, ebx
je 0x40e49f
cmp dword [esi + 0x14], 8
jb 0x40e482
push dword [esi]
call fcn.00426e01
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x40e472
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00426e01
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x40e4b9
push dword [ebp - 0x28]
call fcn.00426e01
add esp, 4
mov eax, edi
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.0054940a
mov esp, ebp
pop ebp
ret
Function at 0x419210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419281
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41924f
cmp eax, 2
jne 0x41926b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41927b
test ecx, ecx
je 0x419276
test cl, 1
jne 0x41926b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41927b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x419a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0
push dword [ebp + 8]
call fcn.0054acb8
add esp, 8
cmp eax, 0xffffffff
jne 0x419aaf
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x419aaf
xor esi, esi
jmp 0x419ab4
mov esi, 1
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419ad1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f89
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5d61f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004290db
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x41a148
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41a1dc
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x41a19a
push 0x104
mov ecx, esi
call fcn.00402390
push dword [esi]
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi]
test eax, eax
jne 0x41a1af
xor ecx, ecx
jmp 0x41a1c1
push dword [eax - 8]
push eax
call fcn.0054a435
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41a1ef
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41a1ef
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402650
int3

Function at 0x41a200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5765f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5d61f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x41a242
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004022d0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
setne bl
push dword [eax - 8]
push eax
call fcn.0054a435
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41a2b1
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 8]
jg 0x41a2b1
mov dword [eax - 0xc], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a29e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402650
int3
Function at 0x41a2c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577068
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x5d61f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or edi, 0xffffffff
cmp eax, 0x1c
jb 0x41a312
cmp eax, 0x1e
jbe 0x41a3e3
cmp eax, 0x20
ja 0x41a3e3
mov edx, 0x26
lea ecx, [ebp - 0x14]
call fcn.0041a0f0
push str.Internet_Exploreriexplore.exe
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040de30
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a35e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041a200
add esp, 4
test eax, eax
je 0x41a3c3
push 0x3c
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0054c3e0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x48], 0x5ad064
mov dword [ebp - 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a3e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41a404
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a950
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f2c
call fcn.0054c770
mov eax, dword [0x5d61f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2ef0], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2ee8], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2eec], ecx
lea ecx, [ebp - 0x7d4]
mov dword [ebp - 0x2f28], ecx
lea ecx, [ebp - 0xfa4]
mov dword [ebp - 0x2f1c], ecx
lea ecx, [ebp - 0x1774]
mov dword [ebp - 0x2f10], ecx
lea ecx, [ebp - 0x1f44]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2f08], ecx
lea ecx, [ebp - 0x2ee4]
mov dword [ebp - 0x2f00], ecx
lea ecx, [ebp - 0x2714]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2f2c], 0x3c
mov dword [ebp - 0x2ef8], ecx
mov dword [ebp - 0x2f24], 0x3e8
mov dword [ebp - 0x2f18], 0x3e8
mov dword [ebp - 0x2f0c], 0x3e8
mov dword [ebp - 0x2f04], 0x3e8
mov dword [ebp - 0x2efc], 0x3e8
mov dword [ebp - 0x2ef4], 0x3e8
jb 0x41aa24
mov eax, dword [eax]
lea ecx, [ebp - 0x2f2c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edx, dword [ebp - 0x2f1c]
cmp word [edx], 0
jne 0x41aa46
xor ecx, ecx
jmp 0x41aa5f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x41aa50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa50
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040ccd0
mov ax, word [ebp - 0x2f14]
mov edx, dword [ebp - 0x2f00]
mov word [ebx], ax
cmp word [edx], 0
jne 0x41aa82
xor ecx, ecx
jmp 0x41aa96
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa87
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x2ef0]
push edx
call fcn.0040ccd0
mov edx, dword [ebp - 0x2ef8]
cmp word [edx], 0
jne 0x41aab3
xor ecx, ecx
jmp 0x41aacf
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x41aac0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aac0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x2ee8]
push edx
call fcn.0040ccd0
mov ecx, dword [ebp - 0x2eec]
mov eax, dword [ebp - 0x2f20]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054940a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4219c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x2d], 0
mov edi, dword [ebp + 8]
je 0x421a9b
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4219f4
cmp dword [esi + 0x40], ebx
jae 0x4219f4
push eax
call fcn.00426e01
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x421a0c
lea eax, [ebx + ebx]
push eax
call fcn.00426dcb
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.005507b0
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x421a98
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x5ade20]
xor eax, ecx
mov dword [esi + 0x30], eax
movzx eax, al
add eax, dword [esi + 0x34]
mov edi, edx
imul eax, eax, 0x8088405
and edi, 0xfffd
or edi, 2
inc eax
mov dword [esi + 0x34], eax
mov ecx, edi
xor ecx, 1
shr eax, 0x18
imul ecx, edi
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x5ade20]
shr ecx, 8
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
xor cl, bl
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x421a22
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x421ad9
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x421ac0
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.005507b0
add esp, 0xc
add dword [esi + 0x24], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x421afb
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x423b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x423b4b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x423c15
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
add edx, 8
sub esi, 8
dec edi
jne 0x423b60
pop edi
test esi, esi
je 0x423c3a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5af448]
lea edx, [edx + 1]
dec esi
jne 0x423c20
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x5af448]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5af448]
mov dword [edi + 8], eax
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
mov bl, dl
mov edx, ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx]
mov esi, edi
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x5af448]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x5af448]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x424410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 4], eax
je 0x424453
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 0x424445
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
pop edi
xor edx, edx
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 0x424464
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.005507b0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 8], ebx
mov edi, 1
je 0x4244cb
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 0x4244c6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4244f8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4244dc
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.005507b0
lea eax, [ebx + edi]
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x42450c
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 0x424503
cmp byte [esi + 8], 0
je 0x424503
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret