joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4810e0
Capabilities:
Set current directory

Disassembly:
push esi
push ebx
sub esp, 0x74
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4810fc
cmp byte [eax], 0x2f
je 0x4811e0
mov eax, dword [ebx]
test eax, eax
jns 0x481178
mov eax, dword [ebx + 4]
test eax, eax
jg 0x481168
setne al
movzx eax, al
neg eax
mov esi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x481122
mov eax, dword [ebx + 0x14]
or eax, dword [ebx + 0x10]
je 0x48115b
lea eax, [esp + 0x10]
mov dword [esp], 0x4f9cbc
mov dword [esp + 4], eax
call sub.cygwin1.dll__stat64
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor edx, dword [ebx + 0x10]
xor eax, dword [ebx + 0x14]
or eax, edx
jne 0x4811f8
mov eax, dword [ebx + 0xc]
cmp dword [esp + 0x10], eax
mov eax, 0xfffffffe
cmovne esi, eax
add esp, 0x74
mov eax, esi
pop ebx
pop esi
ret
call fcn.00476310
mov esi, eax
jmp 0x481113
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
mov esi, eax
test eax, eax
jne 0x4811c0
mov eax, dword [ebx + 8]
test eax, eax
je 0x48115b
mov dword [esp], eax
call fcn.004e5da0
mov esi, eax
test eax, eax
je 0x481113
mov eax, dword [ebx]
mov esi, 0xfffffffe
mov dword [esp], eax
call fcn.004e5db0
mov dword [ebx], 0xffffffff
jmp 0x481113
mov eax, dword [ebx]
mov esi, 0xffffffff
mov dword [esp], eax
call fcn.004e5db0
mov dword [ebx], 0xffffffff
jmp 0x481113
mov dword [esp + 0x80], eax
add esp, 0x74
pop ebx
pop esi
jmp fcn.004e5da0
mov esi, 0xfffffffe
jmp 0x48115b
Function at 0x4acf20
Capabilities:
Encrypt data using rc4 prga
Parse credit card information

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 8
movzx ebx, byte [eax]
test bl, bl
je 0x4ad08f
cmp bl, 0x3a
je 0x4ad08f
xor edx, 1
mov dword [esp], eax
mov ecx, eax
and edx, 1
mov esi, edx
jmp 0x4acf70
cmp bl, 0x5e
je 0x4acfe8
mov byte [ecx], bl
mov edi, eax
movzx ebx, byte [edi + 1]
add ecx, 1
lea eax, [edi + 1]
test bl, bl
je 0x4acfc0
cmp bl, 0x3a
je 0x4acfc0
cmp bl, 0x3d
jne 0x4acf7b
mov edx, esi
test dl, dl
je 0x4acfc0
lea edi, [eax + 1]
cmp bl, 0x5c
jne 0x4acf50
movzx edx, byte [eax + 1]
test dl, dl
je 0x4acf59
lea ebx, [edx - 0x3f]
cmp bl, 0x37
ja case.0x4acf9a.1
movzx ebp, bl
jmp dword [ebp*4 + 0x4fce40]
mov byte [ecx], 0x7f
movzx ebx, byte [edi + 1]
add ecx, 1
lea eax, [edi + 1]
test bl, bl
jne 0x4acf6b
lea esi, [esi]
mov esi, dword [esp]
mov edx, eax
sub edx, esi
cmp ecx, eax
je 0x4acfce
mov byte [ecx], 0
cmp dword [0x5291b4], edx
jge 0x4acfdc
mov dword [0x5291b4], edx
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, byte [eax + 1]
lea ebx, [edx - 0x40]
cmp bl, 0x1f
jbe 0x4ad018
lea ebx, [edx - 0x61]
cmp bl, 0x19
jbe 0x4ad018
cmp dl, 0x3f
je case.0x4acf9a.0
mov byte [ecx], 0x5e
movzx eax, byte [eax + 1]
add ecx, 1
mov byte [ecx], al
jmp 0x4acf5d
mov byte [ecx], 0x1e
jmp 0x4acf5d
lea ebx, [edx - 0x30]
cmp bl, 7
ja 0x4ad040
movzx edi, dl
mov dword [esp + 4], edi
movzx edi, byte [eax + 2]
lea ebp, [edi - 0x30]
mov ebx, ebp
cmp bl, 7
jbe 0x4ad098
lea edi, [eax + 2]
mov byte [ecx], dl
jmp 0x4acf5d
mov byte [ecx], 0x20
jmp 0x4acf5d
mov byte [ecx], 7
jmp 0x4acf5d
mov byte [ecx], 8
jmp 0x4acf5d
mov byte [ecx], 0x1b
jmp 0x4acf5d
mov byte [ecx], 0xc
jmp 0x4acf5d
mov byte [ecx], 0xa
jmp 0x4acf5d
mov byte [ecx], 0xd
jmp 0x4acf5d
mov byte [ecx], 9
jmp 0x4acf5d
mov byte [ecx], 0xb
jmp 0x4acf5d
mov eax, esi
xor edx, edx
jmp 0x4acfce
mov edx, edi
movzx ebp, byte [eax + 3]
movsx edi, dl
mov edx, dword [esp + 4]
lea edx, [edi + edx*8]
lea edi, [eax + 3]
lea eax, [ebp - 0x30]
mov ebx, edx
lea edx, [ebp + edx*8]
cmp al, 8
cmovae edx, ebx
mov byte [ecx], dl
jmp 0x4acf5d
Function at 0x4c7780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
xor esi, esi
push ebx
mov ebx, eax
mov eax, edx
mov edx, ecx
sub esp, 0x10
test eax, eax
je 0x4c77b9
mov ecx, dword [0x529a70]
js 0x4c779e
test ecx, ecx
jle 0x4c77b9
mov esi, 0xc800000
mov edi, eax
neg edi
cmp ecx, esi
cmovg ecx, esi
test eax, eax
mov esi, 1
cmovs ecx, edi
mov dword [ebx + 4], ecx
mov dword [ebx], esi
test edx, edx
je 0x4c780b
mov eax, dword [sym.zsh.exe_timedfns]
test eax, eax
je 0x4c780b
mov eax, dword [eax]
test eax, eax
je 0x4c7802
mov edi, dword [eax + 8]
mov esi, dword [edi + 4]
mov dword [esp], 0
call sub.cygwin1.dll_time
mov edx, eax
mov eax, esi
sub eax, edx
test eax, eax
jle 0x4c7840
cmp eax, 0x200000
jg 0x4c7818
imul eax, eax, 0x64
cmp dword [ebx], 1
je 0x4c7850
mov dword [ebx + 4], eax
mov dword [ebx], 2
mov eax, dword [sym.zsh.exe_resetneeded]
test eax, eax
jne 0x4c782e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [sym.zsh.exe_resetneeded]
mov dword [ebx + 4], 0xc800000
mov dword [ebx], 3
test eax, eax
je 0x4c780b
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym.zsh.exe_zrefresh
call dword [edi]
mov eax, dword [sym.zsh.exe_timedfns]
jmp 0x4c77c8
cmp eax, dword [ebx + 4]
jge 0x4c7802
jmp 0x4c77f9
Function at 0x4d1e80
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
call sub.cygwin1.dll___locale_mb_cur_max
add eax, 1
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, edx
mov esi, eax
not ecx
and ecx, dword [0x529cc4]
not esi
mov edi, esi
and edi, dword [0x529cc0]
mov esi, ecx
mov ecx, edi
or ecx, esi
jne 0x4d2040
mov ebx, eax
and ebx, 0x1f
je 0x4d1f0a
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4d1eed
mov edi, dword [esp + 0x54]
mov ecx, dword [edi]
mov esi, dword [edi + 4]
xor ecx, eax
xor esi, edx
and ecx, 0xfffff01f
or ecx, esi
je 0x4d1f0a
and eax, 0xfffff01f
mov dword [0x529cc0], ebx
mov dword [0x529cc4], 0
call fcn.004d11c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
test ah, 4
jne 0x4d1fc0
cmp edx, 0xffffffff
jne 0x4d1f58
and eax, 0x3e0
jne 0x4d1f95
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4d1f4b
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x54]
mov eax, ecx
shrd eax, ebx, 5
mov dword [esi + 4], ebx
and eax, 0x1f
not eax
and eax, ecx
and eax, 0xfffff01f
mov dword [esi], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
movzx edx, dx
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.cygwin1.dll_wcrtomb
test eax, eax
jg 0x4d2070
mov eax, dword [ebp + 8]
and eax, 0x3e0
je 0x4d1f22
xor edx, edx
call fcn.004d11c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
shrd eax, edx, 5
and eax, 0x1f
not eax
and dword [0x529cc0], eax
jmp 0x4d1f22
mov ecx, dword [0x529cd8]
mov ebx, dword [ecx + edx*4]
lea esi, [ecx + edx*4 + 4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x4d1f1b
mov edi, dword [esp + 0x1c]
lea esi, [esi]
add esi, 4
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
movzx eax, word [esi - 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_wcrtomb
test eax, eax
jle 0x4d202d
mov edx, dword [sym.zsh.exe_shout]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], edi
call sub.cygwin1.dll_fwrite
sub ebx, 1
jne 0x4d1ff0
mov eax, dword [ebp + 8]
jmp 0x4d1f8e
mov eax, edi
xor edx, edx
shl eax, 5
and eax, 0x3e0
call fcn.004d11c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [0x529cc0], 0
mov dword [0x529cc4], 0
jmp 0x4d1ec7
mov dword [esp + 4], eax
mov edx, dword [sym.zsh.exe_shout]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 8]
jmp 0x4d1f8e
Function at 0x4d9440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
movzx eax, byte [ebx]
test al, al
je 0x4d94e0
xor ebp, ebp
jmp 0x4d94b7
cmp dl, al
jne 0x4d94e0
add ebp, 1
add ebx, 1
add esi, 1
mov byte [esp + 0x15], al
lea eax, [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
mov dword [esp + 4], eax
lea eax, [esp + 0x16]
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.cygwin1.dll_mbrtowc
cmp eax, 0xffffffff
je 0x4d94e0
cmp eax, 0xfffffffe
movzx eax, byte [ebx]
cmovne edi, ebp
test al, al
je 0x4d94e0
movzx edx, byte [esi]
cmp al, 0x83
jne 0x4d9470
cmp dl, 0x83
jne 0x4d94e0
movzx eax, byte [ebx + 1]
cmp byte [esi + 1], al
jne 0x4d94e0
xor eax, 0x20
add ebp, 2
add ebx, 2
add esi, 2
jmp 0x4d947d
add esp, 0x2c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4de2e0
Capabilities:
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 8
movsx eax, byte [0x522d01]
cmp dword [sym.zsh.exe_lastchar], 9
mov dword [sym.zsh.exe_usemenu], 1
mov dword [sym.zsh.exe_wouldinstab], 0
mov ebx, dword [esp + 0x10]
mov dword [sym.zsh.exe_useglob], eax
jne 0x4de31a
call fcn.004d8910
test eax, eax
jne 0x4de328
add esp, 8
xor eax, eax
pop ebx
jmp fcn.004da970
mov dword [esp + 0x10], ebx
add esp, 8
pop ebx
jmp sym.zsh.exe_selfinsert

Function at 0x4de5e0
Capabilities:
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 8
movsx eax, byte [0x522d01]
neg dword [0x5299d4]
cmp dword [sym.zsh.exe_lastchar], 9
mov ebx, dword [esp + 0x10]
mov dword [sym.zsh.exe_wouldinstab], 0
mov dword [sym.zsh.exe_usemenu], 1
mov dword [sym.zsh.exe_useglob], eax
jne 0x4de620
call fcn.004d8910
test eax, eax
jne 0x4de630
add esp, 8
xor eax, eax
pop ebx
jmp fcn.004da970
mov dword [esp + 0x10], ebx
add esp, 8
pop ebx
jmp sym.zsh.exe_selfinsert

Function at 0x4dec10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
lea eax, [edx + 0x2000]
cmp ax, 0xff
ja 0x4dec90
mov byte [esi], dl
movzx eax, dl
mov ebx, esi
mov edi, 1
jmp 0x4dec4b
cmp ebx, esi
je 0x4dec86
movzx eax, byte [ebx - 1]
sub ebx, 1
test byte [eax + eax + 0x523921], 0x10
je 0x4dec40
lea edx, [esi + edi - 1]
movzx eax, byte [edx]
mov byte [edx + 1], al
cmp ebx, edx
je 0x4dec78
sub edx, ebx
lea eax, [ebx + 1]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll_memmove
xor byte [ebx + 1], 0x20
add edi, 1
mov byte [ebx], 0x83
cmp ebx, esi
jne 0x4dec44
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
movzx edx, dx
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.cygwin1.dll_wctomb
mov edi, eax
test eax, eax
jle 0x4decb0
lea ebx, [esi + eax - 1]
movzx eax, byte [ebx]
jmp 0x4dec4b
mov byte [esi], 0x3f
mov edi, 1
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
Function at 0x100472c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002de0
call fcn.010048c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1004767
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004767
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100477f
cmp eax, 0x20b
je 0x100476c
mov dword [ebp - 0x1c], edi
jmp 0x1004793
cmp dword [ecx + 0x84], 0xe
jbe 0x1004767
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100478d
cmp dword [ecx + 0x74], 0xe
jbe 0x1004767
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10099cc], 0xffffffff
or dword [0x10099d0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100932c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009328]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10099d4], eax
call fcn.010048c4
cmp dword [section..data], edi
jne 0x10047ee
push fcn.010048c4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010048b2
push 0x1001188
push 0x1001184
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009324]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1009320]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001180
push 0x100117c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01004666
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1004865
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100489a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004901
ret
Function at 0x1005407
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0xc], 0x8000000a
jne 0x1005467
cmp dword [ebp + 0x10], 0
jne 0x100542e
mov eax, dword [ebp + 0x18]
cmp dword [eax], 7
jbe 0x100543c
push 0x10031d0
jmp 0x100544b
cmp dword [ebp + 0x10], 1
jne 0x100545d
mov eax, dword [ebp + 0x18]
cmp dword [eax], 5
ja 0x1005446
mov eax, 0xea
jmp 0x10054fa
push 0x10031c4
push dword [ebp + 0x1c]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
jmp 0x10054fa
mov eax, 0x103
jmp 0x10054fa
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 3
push ebx
push esi
push edi
jne 0x10054d9
mov edi, 0x104
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x1009ad8]
mov ebx, eax
test ebx, ebx
jne 0x10054f5
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100549b
mov esi, dword [ebp + 0x18]
sub eax, edx
cmp eax, dword [esi]
jb 0x10054b2
mov eax, 0xea
jmp 0x10054f7
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push eax
call fcn.0100491e
test eax, eax
mov dword [esi], eax
jne 0x10054d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10054f7
mov edi, dword [ebp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x10054f5
push dword [ebp + 0x14]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100556a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 3
push ebx
push esi
push edi
jne 0x100564e
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10055af
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call fcn.0100496a
test eax, eax
jne 0x10055a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100568f
lea eax, [ebp - 0x104]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edi, dword [esi]
push esi
push dword [ebp + 0x1c]
push ebx
push 0
push eax
push dword [ebp + 0xc]
call dword [0x1009af0]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x100568c
cmp dword [ebx], 1
jne 0x100568c
mov eax, dword [esi]
lea ecx, [eax + eax]
cmp ecx, edi
jbe 0x10055ef
mov eax, 0xea
jmp 0x100568f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100560f
push 0xe
pop eax
jmp 0x100568f
push dword [esi]
push dword [ebp + 0x1c]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push dword [esi]
push dword [ebp + 0x1c]
push ebx
call fcn.0100491e
test eax, eax
jne 0x1005638
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x10], eax
jmp 0x1005640
mov eax, dword [esi]
lea eax, [eax + eax + 2]
mov dword [esi], eax
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100568c
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
push esi
push edi
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x100568c
mov edx, dword [esi]
mov eax, edx
and eax, 3
push 4
pop ecx
sub ecx, eax
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1005696
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 3
push ebx
push esi
push edi
jne 0x100575a
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x10056d5
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call fcn.0100496a
test eax, eax
je 0x1005711
lea eax, [ebp - 0x104]
mov dword [ebp + 0x10], eax
jmp 0x10056d8
mov dword [ebp + 0x10], edi
cmp dword [ebp + 0x14], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x100571c
mov esi, dword [ebp + 0x18]
lea eax, [esi + esi]
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1005700
push 0xe
pop eax
jmp 0x1005777
push esi
push edi
push dword [ebp + 0x1c]
call fcn.0100496a
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x1005719
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1005777
mov dword [ebp + 0x1c], edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x1009ae0]
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0x18], eax
je 0x1005748
push edi
push 0
call ebx
push eax
call esi
cmp dword [ebp + 0x10], 0
je 0x1005774
push dword [ebp + 0x10]
push 0
call ebx
push eax
call esi
jmp 0x1005774
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x10057e9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 3
jne 0x1005830
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x1005824
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call fcn.0100496a
test eax, eax
jne 0x100581e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100583c
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [0x1009ab4]
jmp 0x100583c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
leave
ret 0xc
Function at 0x1005ca1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x120089
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1005cd7
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 2
xor al, al
jmp 0x1005d58
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov esi, eax
jne 0x1005d43
cmp esi, 0xffffffff
je 0x1005d43
mov ebx, dword [ebp + 0x14]
cmp esi, dword [ebx]
jae 0x1005d43
and byte [ebp + 0xb], 0
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005d35
cmp dword [ebp - 8], esi
je 0x1005d2b
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1005d35
and dword [edi + 0x10], 0
mov dword [ebx], esi
mov byte [ebp + 0xb], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
jmp 0x1005d56
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10072a2
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10072a9
push ebx
push esi
push edi
sub eax, edx
mov edi, eax
lea esi, [edi + edi]
lea eax, [esi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10072e8
mov eax, dword [0x1009a9c]
test eax, eax
je 0x10072e0
push 1
call eax
push 1
call dword [sym.imp.msvcrt.dll_exit]
push edi
push ebx
push edi
push dword [esp + 0x1c]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x1007312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x14]
push 0x1003af0
call fcn.01007289
and word [esi + ebx], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5bb008], 0x8088405
inc edx
mov dword [ebx + 0x5bb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbac
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret