joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f06
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411f6a
cmp dword [ebp + 0xc], 1
je 0x411f42
cmp dword [ebp + 0xc], 2
je 0x411f42
push 0xd
pop eax
jmp 0x411f6a
mov eax, dword [ebp - 4]
test edi, edi
je 0x411f64
test eax, eax
je 0x411f5f
test al, 1
jne 0x411f3d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411f64
jmp 0x411f3d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x420662
Capabilities:
Query environment variable

Disassembly:
push 0x41c
mov eax, 0x4cd2e2
call fcn.004ae269
mov eax, dword [ebp + 8]
and dword [ebp - 0x424], 0
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xa
jl 0x420747
lea edi, [ebp + 0xc]
call fcn.00411ade
mov edi, str._userprofile_
push edi
xor ecx, ecx
lea esi, [ebp + 0xc]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x420747
call fcn.0048aa29
push eax
lea ecx, [ebp - 0x424]
call fcn.00402840
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 1
push dword [eax + 0x2074]
lea ecx, [eax + 0x2044]
call fcn.00498dbe
push 0x207
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x420729
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040276b
push dword [ebp - 0x424]
mov eax, esi
push edi
push eax
call fcn.0041193f
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.004025a1
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
call fcn.00402883
jmp 0x420752
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.004025a1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, ebx
call fcn.004ae2ec
ret 8
Function at 0x42aa74
Capabilities:
Persist via run registry key

Disassembly:
push 0xc
mov eax, 0x4cd271
call fcn.004ae200
mov esi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x10]
call fcn.0040255d
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00461ea4
lea edi, [esi + 0x2030]
test al, al
je 0x42ab3d
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Common_Programs
call fcn.0040255d
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.004025a1
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
call fcn.0040e44c
cmp eax, ebx
je 0x42ab01
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42ab01
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402bdb
cmp ax, 0x5c
je 0x42ab01
push 0x5236bc
mov ecx, edi
call fcn.00411b75
add esi, 0x2034
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
call fcn.0040255d
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004025a1
push SysReAllocStringLen
mov byte [ebp - 4], bl
call fcn.0040e32f
jmp 0x42abd0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Common_Programs
call fcn.0040255d
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004025a1
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0040e1f1
cmp eax, ebx
je 0x42ab98
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42ab98
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402bdb
cmp ax, 0x5c
je 0x42ab98
push 0x5236bc
mov ecx, edi
call fcn.00411b75
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
add esi, 0x2034
call fcn.0040255d
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004025a1
push SysReAllocStringLen
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040e1f1
cmp eax, ebx
je 0x42abf9
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42abf9
lea ecx, [eax - 1]
mov eax, esi
call fcn.00402bdb
cmp ax, 0x5c
je 0x42abf9
push 0x5236bc
mov ecx, esi
call fcn.00411b75
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402883
call fcn.004ae2d8
ret
Function at 0x42ff93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x55c6c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0
push dword [0x565bb0]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fff0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push dword [0x565bb8]
mov dword [ebp - 0x5c], 0x50
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42fff0
cmp dword [ebp - 0x54], eax
sete al
jmp 0x42fff2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa206
leave
ret
Function at 0x430478
Capabilities:
Check if file exists

Disassembly:
push 0x30
mov eax, 0x4ced54
call fcn.004ae200
mov edi, 0x5683b4
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004956f5
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.004956f5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004956f5
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00495776
push dword [0x565bdc]
mov ecx, edi
call fcn.00462aab
pop ecx
call fcn.0048aa29
push eax
lea ecx, [ebp - 0x10]
call fcn.00402840
push 0x12
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406c75
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x430509
push eax
call ebx
test eax, eax
je 0x430509
mov eax, esi
push eax
push dword [0x5683bc]
mov ecx, edi
call fcn.00495a83
push 0x13
lea esi, [ebp - 0x10]
call fcn.00406c75
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x430533
push eax
call ebx
test eax, eax
je 0x430533
mov eax, esi
push eax
push dword [0x5683bc]
mov ecx, edi
call fcn.00495a83
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402883
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00495921
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00495921
mov eax, edi
call fcn.004ae2d8
ret
Function at 0x434771
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x55c6c0]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push esi
xor esi, esi
cmp dword [0x567afc], esi
jne 0x434840
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
xor ebx, ebx
push str.SoftwareMicrosoftPlus_ThemesCurrent
inc ebx
push SysReAllocStringLen
mov dword [0x567afc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43483f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x434836
push edi
push 0xb
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp + 0x1a8]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov edi, eax
lea eax, [ebp + 0x1a8]
push eax
call esi
cmp edi, eax
jl 0x434835
lea eax, [ebp + 0x1a8]
push eax
push eax
call esi
sub edi, eax
lea eax, [ebp + edi*2 - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x434835
mov dword [0x567af8], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x1d4]
mov eax, dword [0x567af8]
xor ecx, ebp
pop esi
call fcn.004aa206
add ebp, 0x1d8
leave
ret
Function at 0x437023
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43702e
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4370e0
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52c8b0]
inc ecx
sub edi, 8
dec esi
jne 0x437045
pop ebx
test edi, edi
je 0x4370f9
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x52c8b0]
inc ecx
dec edi
jne 0x4370e4
pop esi
not eax
pop edi
ret

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

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

Function at 0x4377fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x43782d
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437828
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x437855
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x43783e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004b34b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x43846e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x438501
cmp dword [ebx + 4], 0xffffffff
jne 0x438501
lea esi, [ebx + 0x240]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43849a
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x23e]
cmp ax, 0x5c
je 0x4384d1
cmp ax, 0x2f
je 0x4384d1
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4384be
mov edi, esi
mov esi, 0x5236bc
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004376f3
pop ecx
pop ecx
test eax, eax
jne 0x4384e8
mov eax, dword [ebp + 8]
jmp 0x438506
push eax
call fcn.00437a6d
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x438506
mov eax, 0x1000000
pop edi
pop esi
pop ecx
pop ebp
ret 4

Function at 0x4389db
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x55c6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
push ebx
mov ebx, dword [ebp + 8]
test ax, ax
je 0x438ab5
push esi
push edi
mov edi, ecx
mov edx, ecx
movzx eax, ax
cmp ax, 0x2f
je 0x438a16
cmp ax, 0x5c
jne 0x438a18
mov edi, edx
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x438a0a
mov eax, edi
cmp edi, ecx
je 0x438a5b
mov esi, edi
sub esi, ecx
sar esi, 1
add esi, esi
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004b34b0
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004389db
add esp, 0x14
lea eax, [edi + 2]
lea esi, [ebp - 0x414]
mov ecx, ebx
sub esi, ebx
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x438a65
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x438a75
sub eax, edx
lea edi, [ebp - 0x414]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x438a89
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004aa206
leave
ret
Function at 0x43a1cf
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x43a1e8
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
mov dword [eax], edi
cmp dword [ecx], edi
jne 0x43a208
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004adda0
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x52b082]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x52b080]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x52b084]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x52b086]
add esp, 0xc
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x43a26b
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x43a278
cmp ebx, 8
jl 0x43a278
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x43a2e0
cmp eax, 0xffffffff
je 0x43a2e0
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x43a2b8
call fcn.0043a478
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc edi
mov dword [esi + 0x6af7c], eax
cmp edi, 2
jb 0x43a2be
jmp 0x43a2f0
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x43a594
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x43a791
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x43a60e
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x43a651
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x43a651
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x43a636
mov dword [eax], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.0043a2f4
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x43a651
mov ebx, eax
cmp ebx, 3
jb 0x43a711
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.00439c32
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x43a6df
cmp eax, 3
jb 0x43a6df
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x43a68d
jmp 0x43a731
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [eax + esi]
movzx ecx, byte [edx + 0x1af70]
lea eax, [esi + 0x6af7c]
mov dword [eax], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [eax], edx
jmp 0x43a737
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.00439c32
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x43a772
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x43a750
lea edx, [ecx + esi + 0x1af70]
jmp 0x43a752
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.00439a41
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x43a783
call fcn.0043a478
cmp dword [esi + 0x6af90], 0
jne 0x43a5be
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x43a7a4
lea edx, [ecx + esi + 0x1af70]
jmp 0x43a7a6
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.00439a41
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x43b34e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43b359
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x43b40b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x52b0d0]
inc ecx
sub edi, 8
dec esi
jne 0x43b370
pop ebx
test edi, edi
je 0x43b424
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x52b0d0]
inc ecx
dec edi
jne 0x43b40f
pop esi
not eax
pop edi
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x52b0d0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x52b0d0]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x43b5d7
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x43b5fc
mov eax, 0x200
jmp 0x43b77f
mov ecx, dword [ebp - 0x4c]
xor eax, eax
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 8], ebx
je 0x43b610
mov dword [ebp - 8], eax
test cl, 2
je 0x43b619
or dword [ebp - 8], 2
test cl, 4
je 0x43b622
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x43b62d
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x43b636
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x43b643
or dword [ebp - 8], 0x40000000
jmp 0x43b64a
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x43b65c
or dword [ebp - 8], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x43b6fd
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x43b6fd
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x43b6fd
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x43b6f6
cmp eax, 0x454e
je 0x43b6f6
cmp eax, 0x454c
je 0x43b6f6
cmp eax, 0x4550
jne 0x43b6fd
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x43b709
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x43b715
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x43b751
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0043b55c
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
mov dword [esi + 4], edx
call fcn.0043b55c
push dword [ebp - 0x44]
mov dword [esi + 8], eax
push dword [ebp - 0x48]
mov dword [esi + 0xc], edx
call fcn.0043b55c
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x43b77d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0043b57e
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b7a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x43b81b
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x43b7d4
cmp dword [esi + 0x40], edi
jae 0x43b7d4
push eax
call fcn.00489657
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x43b7e9
lea eax, [edi + edi]
push eax
call fcn.0048964c
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.004b34b0
add esp, 0xc
test edi, edi
jbe 0x43b818
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea ecx, [esi + 0x30]
call fcn.0043b46f
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x43b7fc
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x43b84a
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x43b836
mov dword [esi + 0x14], 0x30000
jmp 0x43b86c
push edi
push edx
add eax, ecx
push eax
call fcn.004b34b0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x43b86e
mov eax, dword [esi + 4]
test eax, eax
je 0x43b865
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x43b86e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43baa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x43bafa
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x43bb22
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x43bad1
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.004b34b0
add esp, 0xc
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.0043b34e
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x43bb24
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x43bb1b
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43bb22
mov edi, dword [ebp + 8]
jmp 0x43bae4
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4