joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10054f4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10055e4
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100556f
cmp eax, 0xea
je 0x100556f
cmp eax, 0x7a
je 0x100556f
mov esi, eax
jmp 0x1005588
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1005595
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10055e3
push edi
xor edi, edi
mov eax, dword [ebp - 8]
inc eax
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10055b9
push esi
push dword [ebp - 4]
call fcn.010054f4
test eax, eax
je 0x10055ba
inc edi
cmp eax, 0x103
je 0x10055c6
cmp edi, dword [ebp - 0x10]
jb 0x1005598
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
leave
ret 8

Function at 0x10057f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1008020]
mov ecx, dword [0x1010a88]
xor edx, edx
test eax, eax
setne dl
push esi
mov esi, 0x200
push edi
inc edx
imul edx, ecx
cmp edx, esi
jne 0x10058c3
push 0
cmp eax, 1
lea eax, [ebp - 4]
push eax
push esi
jne 0x100585b
push 0x1010682
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005851
mov dword [0x1010264], 0x82
jmp 0x10058cb
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x1005885
mov edi, 0x1010280
push edi
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005845
push esi
push 0x1010682
push dword [ebp - 4]
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [0x1010a94]
mov dword [0x1010a90], eax
mov eax, dword [ebp - 4]
add dword [0x1010a98], eax
xor ecx, ecx
test esi, esi
mov dword [0x1010a88], ecx
je 0x10058b3
mov eax, dword [0x1010a98]
xor edx, edx
div esi
cmp eax, 0x64
jbe 0x10058b6
push 0x64
pop eax
cmp dword [0x1010a9c], eax
je 0x10058c3
mov dword [0x1010a9c], eax
cmp ecx, dword [0x1010a90]
jl 0x10058cf
xor eax, eax
jmp 0x10058e6
mov ax, word [ecx*2 + 0x1010682]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [0x1010a88]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x100596c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1010a88]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10059f5
cmp dword [0x1010aa0], edi
je 0x10059c2
push esi
push edi
push edi
push 0x402
mov esi, 0x1010280
push esi
push eax
push 0x1010682
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x10059eb
cmp ebx, dword [ebp - 4]
jmp 0x10059e9
push edi
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push 0x1010682
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10059eb
mov eax, dword [0x1010a88]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x10059f5
mov dword [0x1010264], 0x8d
mov dword [0x1010a88], edi
pop edi
pop ebx
leave
ret

Function at 0x1005d3a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008028]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 2
xor ebx, ebx
push ebx
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005d79
mov dword [0x1010264], 0x83
jmp 0x1005eeb
lea eax, [ebp - 0x208]
push eax
call fcn.010057f9
test eax, eax
je 0x1005ed3
push esi
push edi
dec dword [0x1010a88]
push 0x5c
call fcn.010058f1
test eax, eax
je 0x1005da7
mov esi, 0x10019e8
jmp 0x1005db5
cmp word [0x10012cc], bx
mov esi, 0x10012cc
je 0x1005dcf
xor eax, eax
mov ax, word [esi]
push eax
call fcn.010058f1
inc esi
inc esi
test eax, eax
je 0x1005eb8
cmp word [esi], bx
jne 0x1005db5
push 0x5c
call fcn.010058f1
mov edi, eax
cmp edi, ebx
je 0x1005eb8
xor esi, esi
jmp 0x1005e0b
mov ecx, dword [ebp - 0x208]
cmp cx, 0x20
je 0x1005e1f
push ecx
call fcn.01005949
test eax, eax
jne 0x1005e1f
cmp esi, 0xff
jae 0x1005e1d
mov word [ebp + esi*2 - 0x204], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.010057f9
test eax, eax
jne 0x1005de4
jmp 0x1005e1f
xor edi, edi
cmp edi, ebx
je 0x1005eb8
mov word [ebp + esi*2 - 0x204], bx
call fcn.01005c6b
push 0x3d
call fcn.010058f1
test eax, eax
je 0x1005e46
push 0x20
call fcn.010058f1
xor esi, esi
jmp 0x1005e6b
mov ecx, dword [ebp - 0x208]
push ecx
call fcn.01005949
test eax, eax
jne 0x1005e7f
cmp esi, 0x3fff
jae 0x1005e7d
mov word [esi*2 + 0x1008260], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.010057f9
test eax, eax
jne 0x1005e4a
jmp 0x1005e7f
xor edi, edi
cmp edi, ebx
je 0x1005eb8
lea eax, [esi + esi]
push eax
push 0x1008260
mov word [eax + 0x1008260], bx
push 1
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x1005ebd
mov dword [0x1010264], 0x84
jmp 0x1005ebd
call fcn.01005c9b
lea eax, [ebp - 0x208]
push eax
call fcn.010057f9
test eax, eax
jne 0x1005d8f
pop edi
pop esi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006c87
leave
ret
Function at 0x100616c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1008028]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], edi
call fcn.01005c6b
push 0x22
call fcn.010058f1
xor ebx, ebx
test eax, eax
je 0x10061df
lea eax, [ebp - 0x108]
push eax
mov esi, 0x1008260
push esi
mov dword [ebp - 0x108], 0x4000
call fcn.01005b15
test eax, eax
je 0x1006293
call fcn.01005c0e
test eax, eax
je 0x1006293
xor edi, edi
inc edi
jmp 0x10062dc
push 0x64
call fcn.010058f1
test eax, eax
je 0x1006234
mov esi, 0x1001a6e
xor eax, eax
mov ax, word [esi]
push eax
call fcn.010058f1
inc esi
inc esi
test eax, eax
je 0x1006293
cmp word [esi], bx
jne 0x10061ef
call fcn.01005c6b
mov esi, 0x1008260
push esi
call fcn.01005efb
test eax, eax
je 0x1006293
call fcn.01005c0e
test eax, eax
je 0x1006293
push 4
pop edi
mov dword [ebp - 0x108], edi
jmp 0x10062dc
push 0x2d
call fcn.010058f1
test eax, eax
je 0x1006252
call fcn.01005c0e
test eax, eax
je 0x1006293
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1006298
mov esi, 0x1001a64
xor eax, eax
mov ax, word [esi]
push eax
call fcn.010058f1
inc esi
inc esi
test eax, eax
je 0x1006293
cmp word [esi], bx
jne 0x1006257
push 0x28
call fcn.010058f1
test eax, eax
je 0x10062a7
lea eax, [ebp - 0x108]
push eax
call fcn.01005efb
test eax, eax
je 0x1006293
push 0x29
call fcn.010058f1
test eax, eax
jne 0x10062ac
call fcn.01005c9b
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006c87
leave
ret 8
push 3
pop edi
jmp 0x10062b2
mov edi, dword [ebp - 0x108]
push 0x3a
call fcn.010058f1
test eax, eax
je 0x1006293
lea eax, [ebp - 0x108]
push eax
mov esi, 0x1008260
push esi
call fcn.01006034
test eax, eax
je 0x1006293
call fcn.01005c0e
test eax, eax
je 0x1006293
cmp dword [0x1010260], 0x500
jae 0x1006343
cmp edi, 2
je 0x10062f2
cmp edi, 7
jne 0x1006343
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push esi
push edi
push ebx
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1006298
mov dword [0x1010264], 0x84
jmp 0x1006298
push dword [ebp - 0x108]
push esi
push edi
push ebx
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1006298
push eax
mov dword [0x1010264], 0x84
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1006298
Function at 0x100641e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x5b
call fcn.01005ce6
push dword [ebp + 0xc]
call fcn.01005f77
push 0x1001ac4
call fcn.01005f77
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 8]
push ecx
mov esi, 0x1008260
push esi
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edi, 0x1008060
push edi
mov dword [ebp - 4], eax
push eax
jmp 0x10064f3
inc dword [ebp - 4]
cmp dword [ebp - 0xc], 0
je 0x100647d
push edi
call fcn.01005f9e
jmp 0x1006484
push 0x40
call fcn.01005ce6
push 0x3d
call fcn.01005ce6
mov eax, dword [ebp - 0x10]
dec eax
je 0x10064c3
sub eax, 3
jne 0x10064b5
cmp dword [ebp - 8], 4
jne 0x10064b5
push 0x1001a6c
call fcn.01005f77
push 1
push dword [0x1008260]
call fcn.01005fe9
jmp 0x10064c9
push dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call fcn.01006098
jmp 0x10064c9
push esi
call fcn.01005f9e
push 0xa
call fcn.01005ce6
cmp dword [0x1010264], 0x8d
je 0x10065bf
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
mov dword [ebp - 0xc], 0x200
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100646c
push 0xa
call fcn.01005ce6
cmp dword [ebp - 0x14], 0x103
je 0x100652b
mov dword [0x1010264], 0x8c
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
lea esi, [esi + eax*2]
mov word [esi], 0x5c
inc esi
inc esi
push esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x100
sub edi, eax
and dword [ebp - 4], 0
push edi
push esi
push 0
jmp 0x10065a5
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 9
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006596
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.0100641e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1010264], 0x8d
je 0x10065bf
jmp 0x10065a0
mov dword [0x1010264], 0x8b
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100655b
cmp eax, 0x103
je 0x10065bf
mov dword [0x1010264], 0x8c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1006673
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x1008028]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], eax
mov dword [0x1010264], 0x88
je 0x10066c0
push esi
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.0100573a
test eax, eax
je 0x10066c0
mov dword [0x1010264], 0x89
jmp 0x10067ba
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1010a84], eax
je 0x10067a0
push esi
lea ecx, [ebp - 0x25c]
push ecx
push 2
push 0x1001a14
push eax
mov dword [0x1010a88], esi
mov dword [0x1010a8c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001a18
call fcn.01005f77
push 0x1001ad4
call fcn.01005f77
push 0x1001a58
call fcn.01005f77
push 0x1001acc
call fcn.01005f77
cmp edi, esi
lea eax, [ebp - 0x254]
je 0x100674f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
jmp 0x1006788
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100128c
push eax
call ebx
lea eax, [ebp - 0x254]
push eax
push 0x80000002
call fcn.0100641e
push 0x1001268
lea eax, [ebp - 0x254]
push eax
call ebx
lea eax, [ebp - 0x254]
push eax
push 0x80000003
call fcn.0100641e
call fcn.0100596c
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10067aa
mov dword [0x1010264], 0x8a
cmp edi, esi
je 0x10067ba
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006c87
leave
ret 8
Function at 0x1006d9f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b40
call fcn.01006f98
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006dda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006dda
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006df2
cmp eax, 0x20b
je 0x1006ddf
mov dword [ebp - 0x1c], edi
jmp 0x1006e06
cmp dword [ecx + 0x84], 0xe
jbe 0x1006dda
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006e00
cmp dword [ecx + 0x74], 0xe
jbe 0x1006dda
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 [0x1013b88], 0xffffffff
or dword [0x1013b8c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1008050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100804c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1013b90], eax
call fcn.01006f90
cmp dword [0x1008030], edi
jne 0x1006e61
push fcn.01006f90
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006f79
push 0x1008010
push 0x100800c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1008048]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1008044]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1008008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100295a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006ed8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006f0d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006fd3
ret
Function at 0x94d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0094d1a8
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 0x94d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94d06a
add dl, dl
jne 0x94d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94d0dc
xor eax, eax
add dl, dl
jne 0x94d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94d17d
add dl, dl
jne 0x94d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x94d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x94d075
mov eax, 1
add dl, dl
jne 0x94d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94d0e1
sub eax, ebx
mov ebx, 1
jne 0x94d128
mov ecx, 1
add dl, dl
jne 0x94d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x94d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x94d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x94d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94d136
cmp eax, 0x7d00
jae 0x94d16d
cmp eax, 0x500
jb 0x94d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94d075
cmp eax, 0x7f
ja 0x94d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x94d19e
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 0x94d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40772f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x462154], 0
jne 0x40776d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407743
mov dword [ecx*4 + 0x462150], eax
inc ecx
cmp ecx, 0x100
jl 0x40773e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40779a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462150]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40777b
not eax
pop ebp
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4017f0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
jne 0x40181d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40180d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push str.CONIN_
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4019d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0
push 0x45a550
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.CONOUT_
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4019be
push 2
push 1
push 0
push 0x45a6f4
call edi
push eax
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push 1
push 0
push 0x45a57c
call edi
push eax
push esi
call edi
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x45a550]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff6
call esi
push dword [0x45a6f4]
push 0xfffffffffffffff5
call esi
push dword [0x45a57c]
push 0xfffffffffffffff4
call esi
mov ecx, 1
call fcn.004014e0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov dword [ebp - 0x108], eax
movsx esi, word [ebp - 0x108]
mov dword [0x45a560], eax
shr eax, 0x10
push esi
cwde
push eax
lea eax, [ebp - 0x104]
push str.rows_d_cols_d
push eax
call fcn.00404cd0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push str.PRAGMASYS_LARGEST_SIZE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, 0xa
call fcn.004014e0
mov edx, dword [0x45a578]
cmp edx, esi
jle 0x40196b
sub edx, esi
mov dword [0x45a68c], edx
mov edx, esi
mov dword [0x45a578], edx
movsx eax, word [ebp - 0x106]
mov ecx, dword [0x45a540]
cmp ecx, eax
jle 0x40198c
sub ecx, eax
mov dword [0x45a558], ecx
mov ecx, eax
mov dword [0x45a540], ecx
mov word [ebp - 0x108], dx
mov word [ebp - 0x106], cx
push dword [ebp - 0x108]
call fcn.00401600
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x402380
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, edx
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x4c]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x50
mov dword [ebp - 0x2c], 0x19
mov dword [ebp - 0x28], 0x50
mov dword [ebp - 0x24], 0x19
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x10a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
call fcn.004022c0
test eax, eax
jne 0x40242a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push edi
push eax
push 0
push 0
push 4
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
cmp ebx, 1
jne 0x40247d
push dword [edi + 0xc]
push dword [edi + 8]
push esi
push str.CreateProcessAsUser____s_success__pid_d__threadid_d_n
push eax
call fcn.0041a380
push esi
call fcn.00426f24
mov eax, dword [edi + 8]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
push esi
push str.CreateProcessAsUser____s_fails_with_rc_d__0x_X__n
push 1
call fcn.0041a380
push esi
call fcn.00426f24
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret