joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403100
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
cmp dword [0xc28080], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0xc], eax
jne 0x403139
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov ecx, dword [0x808ef8]
mov ebx, dword [0x808efc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0x9e3779b9
mov dword [ebp - 0x28], ecx
call fcn.004030f0
mov edx, dword [0x808f00]
mov eax, dword [0x808f04]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov edi, 0x20
jmp 0x403180
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0xc28080]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4031e8
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0x4025c0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
xor edx, edx
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], ax
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc28080]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x403202
mov dword [0xc2761c], 0xedeb2e40
jmp 0x403214
cmp ecx, 0x3eb
jne 0x403214
mov dword [0xc26fd0], 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add edx, esi
mov dword [ebp - 0x14], edx
mov edx, esi
shr edx, cl
mov dword [0xc27618], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0xc28080], 0xc
jne 0x403272
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov edx, dword [ebp - 0xc]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, ebx
xor eax, edx
xor ecx, eax
mov dword [ebp - 4], ecx
sub esi, ecx
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
sub edi, 1
jne 0x403180
cmp dword [0xc28080], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], esi
jne 0x4032d9
push 0
push 0x4025f4
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4032f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc28080]
mov ecx, dword [0xc26fd4]
shr eax, 3
sub esp, 0x408
test eax, eax
jbe 0x4033ca
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0xc28080], 0x959
jne 0x4033b0
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x402628
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403100
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x403330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403730
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x806d68
push eax
mov dword fs:[0], esp
sub esp, 0x448
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x40376b
lea eax, [ebp - 0x454]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x403758
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ebx, dword [ebp - 0x10]
xor esi, esi
call edi
cmp esi, 0x2b259d
jle 0x403792
cmp ebx, 0x785074d5
jne 0x40379b
inc esi
cmp esi, 0x1c1b
jl 0x403780
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4037cd
inc esi
cmp esi, 0x4f6a4
jl 0x4037b0
cmp dword [0xc28080], 0x400
jne 0x403810
push 0
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x30]
call fcn.004038a0
push 0
mov dword [ebp - 4], 0
call fcn.00403bd4
add esp, 4
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004038c0
mov edx, dword [0x80913c]
mov eax, dword [0x809110]
mov dword [0xc28080], edx
mov dword [0xc28084], eax
call fcn.004033f0
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40384a
cmp ebx, 0x785074d5
jne 0x403853
inc esi
cmp esi, 0x11915
jl 0x403836
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
nop
cmp dword [0xc28080], 0x51f
jne 0x403872
lea ecx, [ebp - 0x54]
push ecx
call esi
sub edi, 1
jne 0x403860
mov eax, dword [0xc26fd4]
mov dword [0xc27614], eax
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404540
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8080c8]
jne 0x40454a
repz ret
jmp fcn.00406cae
Function at 0x4068cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004045c1
and dword [ebp - 4], 0
cmp dword [0x809a10], 0
mov ebx, eax
jne 0x406980
push 0x4019f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a31
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019ec
push edi
call esi
test eax, eax
je 0x406a31
push eax
call fcn.0040454f
mov dword [esp], 0x4019dc
push edi
mov dword [0x809a10], eax
call esi
push eax
call fcn.0040454f
mov dword [esp], 0x4019c8
push edi
mov dword [0x809a14], eax
call esi
push eax
call fcn.0040454f
mov dword [esp], 0x4019ac
push edi
mov dword [0x809a18], eax
call esi
push eax
call fcn.0040454f
pop ecx
mov dword [0x809a20], eax
test eax, eax
je 0x406980
push 0x401994
push edi
call esi
push eax
call fcn.0040454f
pop ecx
mov dword [0x809a1c], eax
mov eax, dword [0x809a1c]
cmp eax, ebx
je 0x4069d8
cmp dword [0x809a20], ebx
je 0x4069d8
push eax
call fcn.004045ca
push dword [0x809a20]
mov esi, eax
call fcn.004045ca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4069d8
test edi, edi
je 0x4069d8
call esi
test eax, eax
je 0x4069cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4069cf
test byte [ebp - 0xc], 1
jne 0x4069d8
or dword [ebp + 0x10], 0x200000
jmp 0x406a11
mov eax, dword [0x809a14]
cmp eax, ebx
je 0x406a11
push eax
call fcn.004045ca
pop ecx
test eax, eax
je 0x406a11
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a11
mov eax, dword [0x809a18]
cmp eax, ebx
je 0x406a11
push eax
call fcn.004045ca
pop ecx
test eax, eax
je 0x406a11
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809a10]
call fcn.004045ca
pop ecx
test eax, eax
je 0x406a31
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a33
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bab1
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop ecx
mov esi, 0x440608
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x88]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x8c], eax
cmp ecx, 8
jae 0x41bafa
movzx edi, byte [ecx + esi]
inc ecx
jmp 0x41bafc
xor edi, edi
cmp ecx, 8
jae 0x41bb14
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
jmp 0x41bb1b
and dword [ebp - 0x90], 0
shr eax, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2], ax
mov eax, dword [ebp - 0x8c]
and eax, 3
shl eax, 4
mov dword [ebp - 0x8c], eax
mov eax, edi
shr eax, 4
and edi, 0xf
or dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
shl edi, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 2], ax
mov eax, dword [ebp - 0x90]
shr eax, 6
or edi, eax
mov ax, word [ebp + edi*2 - 0x88]
mov word [ebx + edx*2 + 4], ax
mov eax, dword [ebp - 0x90]
and eax, 0x3f
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 6], ax
add edx, 4
cmp ecx, 8
jb 0x41bae3
mov ecx, dword [ebp - 4]
push 0x3d
pop eax
mov word [ebx + edx*2 - 2], ax
xor ecx, ebp
xor eax, eax
pop edi
mov word [ebx + edx*2], ax
mov al, 1
pop esi
pop ebx
call fcn.0042d8cc
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1ada1d3b
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0xd110c54
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1006e4b
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5661d2c1
push esi
jl 0x1006e4f
mov dl, 0xb1
lea ebp, [ecx]
out 0x3d, eax
xchg ah, ch
add eax, 0x9c753712
xor dh, dh
dec esi
pop es
add dl, byte [edx]
and ah, byte [edi]
fstp dword [edx + 0x7e]
rcl dword [eax + 0x1fed999d]
xor byte [edx + 0x6e10de0a], dh
jge 0x1006e92
lodsd eax, dword [esi]
mov ebp, dword [esi + 0x1770491a]
xor al, 0x69
add al, 0xf5
add byte [esi - 0x47], ch
mov esi, 0x78423dc4
cwde
leave
fiadd dword [edx]
cmp dword [edx - 0x31], 0x5695b2ee
stosd dword es:[edi], eax
popal
daa
jg 0x1006e7f
iretd
out 0x39, eax
stosb byte es:[edi], al
and ebp, edi
sar byte [edi + 0x7b], 0xf5
salc
sub ebx, dword [edi + 0x2554aa74]
imul edx, dword [edx - 0x458d6b01], 0x91d2102
jo 0x1006e65
jns 0x1006ec2
xor edi, dword [edi - 0x7c]
sbb byte [0xaa9423fd], 0xd5
dec ebx
xchg esp, eax
stosb byte es:[edi], al
aad 0x4b
and dword [ecx + 0x6c], 0xc0a7f00e
push edi
in eax, dx
mov byte [edx - 0x4246c01a], ch
aas
out 0xb1, al
lahf
out 0x6d, eax
dec ebp
stc
jns 0x1006ed8
cmp eax, 0x3fb5f2ab
mov eax, dword [0x70427fdc]
stosd dword es:[edi], eax
sbb al, bh
mov edx, 0xecb82e71
mov ah, 0x64
fstp dword [eax + 0xa]
les esi, [eax]
jge 0x1006f54
xor eax, 0x8a6ca8c0
adc dword [edx - 0x79874a1f], ebx
dec ebx
invalid
fdivr st(4)
out 0x30, al
or dword [ebp - 4], esi
sub dl, byte [eax - 0x2716c5b4]
jns 0x1006f60
pop eax
in al, dx
xchg ebx, eax
dec ebx
aas
jge 0x1006ee4
cmp al, 0xbf
loop 0x1006f60
mov bl, byte [eax + 0x2d26947c]
stosd dword es:[edi], eax
mov byte [edx], 0x76
sub eax, 0x7602c6ab
push es
lds edx, [edi]
dec edx
sti
jns 0x1006f34
shr dword [edx + 0x23], cl
push 0x23
xor byte [eax + 0x62], al
das
das
xlatb
mov eax, dword [0xbc5259c6]
test byte [ebx], ch
call 0x638bd270
int3

Function at 0x10189e6
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
sbb byte [ebx - 0x58], ah
mov dword [0x77601203], eax
invalid
mov esi, 0xa5a9f5f4
pushal
imul edi, dword [edi + 0x1e], 0x3154c3be
push eax
add al, 0xe
mov word [esi - 0x2291a347], ss
salc
test ebx, esi
mov esi, 0xe831106c
lea edi, [ebx]
aam 0xa7
mov ds, word [eax]
jo 0x10189a6
mov edx, 0x544cad8f
mov al, 7
add ah, dh
jns 0x1018a64
int 0xca
imul edx, dword [eax - 0x47], 0x3174a4d1
and cl, byte [ebx - 0x5677f4f1]
out 0x89, al
insd dword es:[edi], dx
jge 0x1018a39
fdivp st(1)
jmp 0xaf45f949
aas
push es
idiv dword [edx - 0x66]
mov ah, 0x9d
mov edi, 0x6f52d548
pop esi
fld dword [edx - 0x3c6aa780]
xor byte [ebx + 0x1bd2cd60], cl
inc edx
sbb cl, byte [esp]
bound ebx, qword [ebp + 0x152ab97a]
fbstp tbyte [ecx - 0x54]
xor edi, dword [0x9580c498]
pop ebp
push ss
push eax
insd dword es:[edi], dx
xchg esp, eax
adc byte [ebp + 0x6d50165d], 0x94
mov ds, word [eax]
sti
or al, 0x9e
loopne 0x10189fe
dec edx
sbb eax, dword [edx]
wait
lahf
adc al, 0xda
push edx
lodsb al, byte [esi]
pushfd
pop dword gs:[esi + ecx*4 - 0x3533b5ec]
cmp bl, byte [ebx]
in al, 0xca
xlatb
adc dl, bl
dec esp
xchg byte [edx - 0x16c45f81], cl
fidivr word [ecx]
leave
movsd dword es:[edi], dword [esi]
jnp 0x1018b10
pop ss
mov esp, 0xd1370cb3
mov ecx, 0xde5abc3c
imul ecx, ebx, 0x7225a38f
invalid
in eax, 0x52
adc ecx, ebx
invalid
Function at 0x401690
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push str.kernel32.dll
call dword [0x41d57c]
push str.ws2_32.dll
mov dword [0x41d544], eax
call dword [0x41d57c]
push str.Advapi32.dll
mov dword [0x41d534], eax
call dword [0x41d57c]
push str.ntdll.dll
mov dword [0x41d530], eax
call dword [0x41d57c]
push str.Rstrtmgr.dll
mov dword [0x41d524], eax
call dword [0x41d57c]
push str.Ole32.dll
mov dword [0x41d528], eax
call dword [0x41d57c]
push str.OleAut32.dll
mov dword [0x41d540], eax
call dword [0x41d57c]
push str.Netapi32.dll
mov dword [0x41d538], eax
call dword [0x41d57c]
push str.Iphlpapi.dll
mov dword [0x41d550], eax
call dword [0x41d57c]
push str.Shlwapi.dll
mov dword [0x41d54c], eax
call dword [0x41d57c]
push str.Shell32.dll
mov dword [0x41d52c], eax
call dword [0x41d57c]
mov ecx, dword [0x41d524]
mov dword [0x41d548], eax
test ecx, ecx
je 0x40174f
call fcn.00401130
mov ecx, dword [0x41d544]
test ecx, ecx
je 0x40175e
call fcn.00401130
mov ecx, dword [0x41d534]
test ecx, ecx
je 0x40176d
call fcn.00401130
mov ecx, dword [0x41d530]
test ecx, ecx
je 0x40177c
call fcn.00401130
mov ecx, dword [0x41d528]
test ecx, ecx
je 0x401795
mov dword [0x41d53c], 1
call fcn.00401130
mov ecx, dword [0x41d540]
test ecx, ecx
je 0x4017aa
call fcn.00401130
mov ecx, dword [0x41d540]
cmp dword [0x41d538], 0
je 0x4017b8
call fcn.00401130
mov ecx, dword [0x41d550]
test ecx, ecx
je 0x4017c7
call fcn.00401130
mov ecx, dword [0x41d54c]
test ecx, ecx
je 0x4017d6
call fcn.00401130
mov ecx, dword [0x41d52c]
test ecx, ecx
je 0x4017e5
call fcn.00401130
mov ecx, dword [0x41d548]
test ecx, ecx
jne fcn.00401130
ret

Function at 0x401a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov edx, ecx
push edi
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], esi
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x10], eax
mov eax, esi
shr eax, 0x10
add ebx, edx
mov dword [ebp - 8], edx
test eax, eax
je 0x401a92
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
add esi, edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], edi
jbe 0x401a92
mov ecx, dword [esi]
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x401a77
lea ebx, [ebx]
inc edx
cmp byte [edx + ecx], 0
jne 0x401a70
push ecx
call fcn.00402c20
mov edx, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x401aa4
add dword [ebp - 4], 2
inc edi
add esi, 4
cmp edi, dword [ebx + 0x18]
jb 0x401a60
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
cmp ecx, ebx
jbe 0x401ac9
mov eax, ecx
sub eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x401ac9
call fcn.004018b0
mov ecx, eax
mov eax, dword [ebp + 8]
pop edi
add ecx, 2
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x41a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push esi
mov eax, dword [eax + 0xc]
push edi
mov edi, dword [eax + 0x10]
mov esi, edi
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
je 0x401b50
mov edx, dword [esi + 0x30]
xor eax, eax
cmp word [edx], ax
je 0x401b2c
cmp eax, 0x3f
jae 0x401b27
mov cl, byte [edx]
add edx, 2
mov byte [ebp + eax - 0x44], cl
inc eax
cmp word [edx], 0
jne 0x401b12
cmp eax, 0x40
jae 0x401b67
xor edx, edx
mov byte [ebp + eax - 0x44], 0
cmp byte [ebp - 0x44], dl
je 0x401b40
inc edx
cmp byte [ebp + edx - 0x44], 0
jne 0x401b38
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402c20
cmp eax, 0x240dfbc0
je 0x401b54
cmp edi, esi
jne 0x401b00
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
pop edi
xor ecx, ebp
pop esi
call fcn.00409f35
mov esp, ebp
pop ebp
ret
call fcn.0040a8c5
int3

Function at 0x402c20
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x41a050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edx, 0x40
lea eax, [ebp - 0x44]
lea ecx, [ecx]
mov byte [eax], 0
inc eax
dec edx
jne 0x402c40
mov edi, esi
shr edi, 2
lea edx, [ebp - 0x44]
test edi, edi
je 0x402c60
mov eax, dword [ecx]
mov dword [edx], eax
add ecx, 4
add edx, 4
dec edi
jne 0x402c53
mov edi, esi
and edi, 3
je 0x402c7b
sub edx, ecx
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
dec edi
jne 0x402c70
xor ecx, ecx
test esi, esi
jle 0x402c98
mov al, byte [ebp + ecx - 0x44]
cmp al, 0x41
jl 0x402c93
cmp al, 0x5a
jg 0x402c93
add al, 0x20
mov byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, esi
jl 0x402c81
mov ebx, esi
mov dword [ebp - 0x48], ebx
lea edx, [ebp - 0x44]
mov edi, 0x5b2d
cmp esi, 4
jl 0x402ce6
shr ebx, 2
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
jmp 0x402cc0
mov eax, dword [edx]
imul edi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor edi, ecx
add edx, 4
dec ebx
jne 0x402cc0
mov ebx, dword [ebp - 0x48]
xor ecx, ecx
dec esi
je 0x402d01
dec esi
je 0x402cf8
dec esi
jne 0x402d06
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
imul edi, edi, 0x5bd1e995
mov edx, ecx
shr edx, 0x18
xor edx, ecx
imul edx, edx, 0x5bd1e995
mov eax, ebx
shr eax, 0x18
xor eax, ebx
xor edx, edi
imul eax, eax, 0x5bd1e995
imul edx, edx, 0x5bd1e995
xor edx, eax
mov ecx, edx
shr ecx, 0xd
xor ecx, edx
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f35
mov esp, ebp
pop ebp
ret 4
Function at 0x404940
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41d520]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0xe0]
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0x28
test esi, esi
jne 0x4049ac
push str.Advapi32.dll
mov dword [ebp - 0x10], esi
call dword [0x41d57c]
test eax, eax
je 0x40499f
lea ecx, [ebp - 0x10]
push ecx
mov edx, 0xabcb0a67
mov ecx, eax
call fcn.00401a20
mov esi, dword [ebp - 0x10]
sub esi, 2
mov dword [ebp - 0x10], esi
jmp 0x4049a1
xor esi, esi
mov eax, dword [0x41d520]
mov dword [eax + 0xe0], esi
lea edi, [ebx + 0x58]
push edi
push 0x20
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4049d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409f35
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x41d520]
mov ecx, dword [eax + 0xe0]
test ecx, ecx
jne 0x404a19
push str.Advapi32.dll
mov dword [ebp - 0xc], ecx
call dword [0x41d57c]
test eax, eax
je 0x404a0c
lea ecx, [ebp - 0xc]
push ecx
mov edx, 0xabcb0a67
mov ecx, eax
call fcn.00401a20
mov ecx, dword [ebp - 0xc]
sub ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x404a0e
xor ecx, ecx
mov eax, dword [0x41d520]
mov dword [eax + 0xe0], ecx
lea esi, [ebx + 0x50]
push esi
push 8
push dword [ebp - 0x14]
call ecx
test eax, eax
je 0x4049bb
mov ecx, 0x40
lea eax, [ebx + 0x10]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x404a30
mov eax, dword [edi]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x10], 0x61707865
mov dword [ebx + 0x14], 0x3320646e
mov dword [ebx + 0x18], 0x79622d32
mov dword [ebx + 0x1c], 0x6b206574
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], ecx
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 4]
lea edx, [ebx + 0x78]
mov dword [ebx + 0x4c], eax
mov ecx, 8
sub edx, edi
nop
mov eax, dword [edi]
mov dword [edx + edi], eax
lea edi, [edi + 4]
dec ecx
jne 0x404aa0
lea edx, [ebx + 0x98]
mov ecx, 2
sub edx, esi
mov eax, dword [esi]
mov dword [edx + esi], eax
lea esi, [esi + 4]
dec ecx
jne 0x404ab8
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x78]
push eax
sub esp, 8
call fcn.00403090
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.00409f35
mov esp, ebp
pop ebp
ret 4