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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor esi, esi
call fcn.0042a300
test eax, eax
je 0x42a439
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a424
push ebx
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov ebx, eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a423
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a423
test ebx, ebx
je 0x42a423
mov esi, dword [ebp + 0xc]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x42a41e
push ebx
push dword [ebp + 8]
push eax
call fcn.0047e830
add esp, 0xc
mov esi, 1
pop ebx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x42a439
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x18], 0
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42a4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db439
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
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 ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x2c], 0
call fcn.0042a300
test eax, eax
je 0x42a626
push 0x4fb150
push 0x74
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42a56f
push 0x4fb150
push 0x6a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42a611
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a611
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42a611
cmp dword [ebp - 0x2c], ebx
je 0x42a611
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov ecx, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
call fcn.00424cc0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e350
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a60c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a602
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a646
push edx
push ecx
call fcn.0047cf1c
add esp, 8
mov ebx, 1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42a626
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], 0
mov eax, ebx
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.0047cf2f
mov esp, ebp
pop ebp
ret 8
call fcn.004896af
int3
Function at 0x42b1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db598
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x64], 0xffffffff
jne 0x42b345
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x64], 0
call fcn.0042b130
test eax, eax
jne 0x42b345
mov ecx, SysReAllocString
call fcn.0042b130
test eax, eax
je 0x42b245
cmp eax, 2
jne 0x42b345
push 1
push SysReAllocString
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x70]
call fcn.0040ea80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42b336
push 1
push SysReAllocString
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x4c]
call fcn.0040ea80
mov eax, 7
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4c], ecx
je 0x42b2d9
lea eax, [ebp - 0x28]
push eax
push 0x4f46f8
lea ecx, [ebp - 0x4c]
call fcn.0040e900
test eax, eax
je 0x42b2d6
cmp dword [ebp - 0x18], 0
je 0x42b2d6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b2d6
mov dword [esi + 0x64], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x42b310
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b306
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b368
push edx
push ecx
call fcn.0047cf1c
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42b333
push eax
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], 4
test eax, eax
je 0x42b345
push eax
call dword [ebp - 0x64]
xor eax, eax
cmp dword [esi + 0x64], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
call fcn.004896af
int3
Function at 0x42c190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x214], esi
jb 0x42c1bf
mov ebx, dword [ebx]
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x42c277
cmp word [ebx], ax
je 0x42c277
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], 0
je 0x42c236
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c200
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x42c236
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42c223
mov eax, dword [0x4f4818]
mov dword [edi], eax
mov esi, ebx
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42c240
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42c256
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x210]
pop edi
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c293
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00410170
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
Function at 0x4338e0
Capabilities:
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, edx
mov byte [ebp - 1], 0
push edi
mov eax, dword [esi + 0x10]
push 0
push 0
push 0x8003
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43394f
cmp dword [esi + 0x14], 0x10
jb 0x433915
mov esi, dword [esi]
push 0
push dword [ebp + 0xc]
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433947
push dword [ebp + 8]
push 0
push dword [edi]
push 0x6603
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x433947
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433a40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x433a4f
mov eax, 1
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x433a96
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433a96
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433a96
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
pop edi
pop esi
ret

Function at 0x433ab0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x433b6e
push ebx
call fcn.00433a40
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x433b54
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
push esi
push 0x8003
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x433b54
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
test eax, eax
jne 0x433b03
mov eax, dword [edi + 4]
sub eax, ecx
push 0
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433b47
push ebx
push 0x10
mov ecx, ebx
mov dword [ebp + 8], 0x10
call fcn.00417a50
push 0
lea eax, [ebp + 8]
push eax
push dword [ebx]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
jne 0x433b63
push ebx
push 1
mov ecx, ebx
call fcn.00417a50
mov eax, dword [ebx]
mov byte [eax], 0x17
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433b80
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
push edi
mov dword [esp + 0x1c], 0
cmp dword [esi], 0
jne 0x433bed
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x433bed
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433bed
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433bed
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
je 0x433c08
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
call fcn.004338e0
add esp, 8
test al, al
jne 0x433c13
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
sub esi, dword [edi]
mov ecx, esi
and ecx, 7
je 0x433c3e
mov eax, 8
mov byte [esp + 0x13], 0
sub eax, ecx
mov ecx, edi
add esi, eax
lea eax, [esp + 0x13]
push eax
push edi
push esi
call fcn.00422560
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
test ebx, ebx
je 0x433c95
mov eax, dword [esp + 0x18]
cmp eax, esi
jbe 0x433c7b
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 0
push ecx
push edi
push eax
mov ecx, edi
call fcn.00422560
push esi
lea eax, [esp + 0x1c]
push eax
push dword [edi]
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433cc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], 0
cmp dword [esi], 0
jne 0x433d27
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x433d27
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433d27
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433d27
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
je 0x433d40
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
call fcn.004338e0
add esp, 8
test al, al
jne 0x433d4a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x433d70
sub eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x436350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
push edi
mov byte [ebp - 1], 0
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4364f1
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
jne 0x4364f1
mov eax, dword [edx + 8]
cmp eax, dword [esi + 8]
jne 0x4364f1
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x4364f1
mov al, byte [edx + 0x12]
cmp al, byte [esi + 0x12]
jne 0x4364f1
mov al, byte [edx + 0x10]
cmp al, byte [esi + 0x10]
jne 0x4364f1
mov al, byte [edx + 0x11]
cmp al, byte [esi + 0x11]
jne 0x4364f1
mov eax, dword [edx + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4364f1
mov eax, dword [edx + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x4364f1
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
mov ecx, eax
jb 0x4363d7
mov ecx, dword [eax]
cmp dword [edx + 0x38], 8
lea ebx, [edx + 0x24]
jb 0x4363e3
mov ebx, dword [edx + 0x24]
mov edi, dword [edx + 0x34]
cmp edi, dword [eax + 0x10]
jne 0x4364f1
test edi, edi
je 0x436415
sub ebx, ecx
nop word [eax + eax]
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x4364f1
add ecx, 2
sub edi, 1
jne 0x436400
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
mov ecx, eax
jb 0x436422
mov ecx, dword [eax]
cmp dword [edx + 0x50], 8
lea ebx, [edx + 0x3c]
jb 0x43642e
mov ebx, dword [edx + 0x3c]
mov edi, dword [edx + 0x4c]
cmp edi, dword [eax + 0x10]
jne 0x4364f1
test edi, edi
je 0x436455
sub ebx, ecx
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x4364f1
add ecx, 2
sub edi, 1
jne 0x436440
mov eax, dword [edx + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x4364f1
mov al, byte [edx + 0x20]
cmp al, byte [esi + 0x20]
jne 0x4364f1
cmp dword [esi + 0x74], 8
lea eax, [esi + 0x60]
mov ecx, eax
jb 0x43647a
mov ecx, dword [eax]
cmp dword [edx + 0x74], 8
lea ebx, [edx + 0x60]
jb 0x436486
mov ebx, dword [edx + 0x60]
mov edi, dword [edx + 0x70]
cmp edi, dword [eax + 0x10]
jne 0x4364f1
test edi, edi
je 0x4364a5
sub ebx, ecx
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x4364f1
add ecx, 2
sub edi, 1
jne 0x436494
cmp dword [esi + 0x8c], 8
lea eax, [esi + 0x78]
mov ecx, eax
jb 0x4364b5
mov ecx, dword [eax]
cmp dword [edx + 0x8c], 8
lea esi, [edx + 0x78]
jb 0x4364c4
mov esi, dword [edx + 0x78]
mov edx, dword [edx + 0x88]
cmp edx, dword [eax + 0x10]
jne 0x4364f1
test edx, edx
je 0x4364e6
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4364f1
add ecx, 2
sub edx, 1
jne 0x4364d5
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x43db71
cmp eax, 3
jb 0x43d9c6
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x43da03
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x43da03
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x43d9ed
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.0043d630
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x43daf3
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.0043cda0
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x43dab8
cmp ecx, 3
jb 0x43dab8
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x43da50
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x43db1a
mov edx, dword [esi + 0x6af84]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [esi + edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x43db1a
movzx eax, byte [esi + ecx + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.0043cda0
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
lea ecx, [esi + 0x1af70]
test eax, eax
je 0x43db4f
mov eax, dword [esi + 0x6af74]
sub edx, eax
push 0
push edx
lea edx, [eax + ecx]
xor ecx, ecx
test eax, eax
cmovs edx, ecx
mov ecx, esi
call fcn.0043c8f0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x43db69
mov ecx, esi
call fcn.0043d7f0
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x43d975
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x43db85
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x43db87
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0043c8f0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e8f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43e8fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43e9b7
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 + 0x4f8040]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
sub edi, 1
jne 0x43e910
pop edi
test esi, esi
je 0x43e9da
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 + 0x4f8040]
sub esi, 1
jne 0x43e9c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43e9f0
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
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4f8040]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8040]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x43f170
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
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x43f247
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x43f1a8
cmp dword [esi + 0x40], ebx
jae 0x43f1a8
push ecx
call fcn.0047cf2a
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x43f1be
lea eax, [ebx + ebx]
push eax
call fcn.0047d846
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.0047e830
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x43f244
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4f8040]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4f8040]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x43f1d2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x43f285
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x43f26c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.0047e830
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x43f2a7
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
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43f870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x43f8d3
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x43f91b
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.0047e830
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.0043e8f0
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x43f914
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f91b
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0043e8f0
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8