joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c13c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x634f83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00626c95
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x985448
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x985390
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x6370c8]
push eax
mov ecx, edi
call fcn.0062c333
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0062d892
test eax, eax
je 0x5c14dc
mov ecx, dword [esp + 0x3c]
call fcn.0062c360
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x637474]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x5c14a0
push edi
mov ecx, esi
call fcn.006299c2
mov ecx, esi
call fcn.005c1680
cmp dword [esp + 0x38], 1
jne 0x5c14d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00629afd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x5c36c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x5c36f3
push esi
call fcn.005d1960
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5c36ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5c3779
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5c3762
mov eax, dword [esi + 8]
test eax, eax
je 0x5c3717
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5c375e
cmp eax, 2
je 0x5c3762
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5c370a
cmp eax, 3
je 0x5c373d
cmp eax, 1
jne 0x5c370a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5c370a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5c370a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005c37a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5c3788
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.005c37a0
add esp, 4
pop esi
ret
Function at 0x5de760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x635480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005de310
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005de390
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005de390
lea ecx, [esi + 0xc]
call fcn.00625635
lea ecx, [esi + 0x10]
call fcn.00625635
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005df920
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005df920
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005df920
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.006256aa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.006256aa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5fb510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa155a0]
xor edx, edx
cmp eax, edx
jne 0x5fb536
xor eax, eax
mov byte [eax + 0xa154a0], al
inc eax
cmp eax, 0x100
jl 0x5fb51e
mov dword [0xa155a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa154a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5fb5c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5fb59a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5fb568
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5fb5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5fb623
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5fb60a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x601fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x635b5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.006028d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x98ba7c
call fcn.006253eb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x602043
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006253eb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x60203c
push 0
mov ecx, eax
call fcn.005f9150
mov dword [esi + 0xc], eax
jmp 0x602045
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x602045
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x44f5e7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [0x300217d0], ecx
push esi
mov esi, 0xff
jne 0x44f630
mov dword [0x300217d0], 1
push edi
push 8
mov edx, ecx
pop edi
test dl, 1
je 0x44f61c
shr edx, 1
xor edx, 0xedb88320
jmp 0x44f61e
shr edx, 1
dec edi
test edi, edi
jg 0x44f60d
mov dword [ecx*4 + 0x300213d0], edx
inc ecx
cmp ecx, esi
jle 0x44f608
pop edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jbe 0x44f651
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x300213d0]
inc dword [ebp + 8]
dec ecx
jne 0x44f637
not eax
pop esi
pop ebp
ret 8
Function at 0x446f60
Capabilities:
Create service
Delete service
Modify service
Pause service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5f6040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0
mov ebx, edx
mov dword [ebp - 0x28], ecx
push 0
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0x10022
mov edi, eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
push esi
call ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4470c6
cmp edi, 0xffffffff
je 0x4470c6
push 0x10
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x446fee
cmp esi, 0xffffffff
jne 0x447022
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x28]
push 0
push 3
push 1
push 0x10
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4470c3
cmp esi, 0xffffffff
je 0x4470c3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4470a7
push esi
call ebx
push 0x12
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4470a7
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4470a7
push 1
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0x10022
push dword [ebp - 0x24]
mov edi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
jmp 0x4470c4
push edi
call ebx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
push edi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
Function at 0x448660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5f6040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov ebx, ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4486a4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00449a50
test eax, eax
je 0x44871a
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x448700
nop dword [eax]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00449a50
test eax, eax
je 0x44871a
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4486e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
Function at 0x448a80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582f9f
mov eax, dword fs:[0]
push eax
mov eax, 0x13b8
call fcn.005808b0
mov eax, dword [0x5f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13c0], esi
mov dword [ebp - 0x13b8], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c4], esi
mov dword [ebp - 0x13bc], 0
push 0x40
movups xmmword [ebp - 0x28], xmm0
call fcn.0044b4dc
movups xmm0, xmmword [0x5f26d4]
mov ecx, eax
mov dword [ebp - 0x18], 0x3e
add esp, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x5f26e4]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x5f26f4]
movups xmmword [ecx + 0x20], xmm0
movq xmm0, qword [0x5f2704]
movq qword [ecx + 0x30], xmm0
mov eax, dword [0x5f270c]
mov dword [ecx + 0x38], eax
mov ax, word [0x5f2710]
mov word [ecx + 0x3c], ax
mov byte [ecx + 0x3e], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x13bc], 1
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x13ac], edx
mov eax, 1
nop dword [eax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x13ac], edx
inc eax
cmp eax, 0x270
jb 0x448b90
mov dword [ebp - 0x13b0], 0x270
mov edi, 0xf
nop dword [eax]
lea ecx, [ebp - 0x13b0]
call fcn.0044b310
mov ecx, 0x3e
mul ecx
cmp eax, ecx
jae 0x448bf8
cmp eax, 4
jae 0x448bf8
mov esi, ecx
nop dword [eax]
lea ecx, [ebp - 0x13b0]
call fcn.0044b310
mul esi
cmp eax, 4
jb 0x448be0
mov esi, dword [ebp - 0x13c0]
mov ecx, dword [ebp - 0x28]
lea eax, [edx - 0x80000000]
mov edx, dword [esi + 0x14]
xor eax, 0x80000000
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x13b4], al
cmp ecx, edx
jae 0x448c38
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x448c28
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x13b4]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x448c53
push dword [ebp - 0x13b4]
mov byte [ebp - 0x13b8], 0
push dword [ebp - 0x13b8]
push ecx
mov ecx, esi
call fcn.0044a9d0
sub edi, 1
jne 0x448bc0
push 0x40
push dword [ebp - 0x28]
call fcn.0044b50c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b4ce
mov esp, ebp
pop ebp
ret
Function at 0x44b310
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44b36d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x44b330
mov eax, dword [esi]
jmp 0x44b44b
cmp eax, 0x4e0
jb 0x44b44b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x44b386
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x44b3d1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44c213
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44c252
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44c252
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44c252
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44c252
cmp dword [ecx + 0x74], 0xe
jbe 0x44c252
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4513a0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x4513e4
push esi
push 1
push edi
call fcn.00454020
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00454020
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x45141d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x584a04
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x451a10
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5f6040]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x451b1e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x4516e0
jne 0x451b1e
cmp dword [esi], 0
je 0x451aa8
test edi, edi
je 0x451b1e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00462240
add esp, 0x14
cmp eax, 0xffffffff
je 0x451b1e
test al, 1
je 0x451b1e
mov ecx, dword [esi]
test ecx, ecx
jne 0x451afb
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5f60a0]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x451b17
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x451b1e
add dword [esi + 8], eax
jmp 0x451b1e
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x451b87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x451b58
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x451b8c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00463ad0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00451430
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x451b89
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b4ce
add esp, 0x8c
ret
Function at 0x458150
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x5f6040]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x45821b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.0046ec40
add esp, 0xc
test eax, eax
jne 0x45821b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.0046ec40
add esp, 0xc
test eax, eax
jne 0x45821b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4581a4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0046ec10
add esp, 0xc
test eax, eax
je 0x4581d8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0046ec10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4581da
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x458206
mov al, byte [esi]
push eax
call fcn.00450fe0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4581e8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b4ce
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0044b4ce
add esp, 0x18
ret

Function at 0x458ea0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x5f60b4]
cmp eax, 0xffffffff
jne 0x458ee2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x458ec8
xor eax, eax
test eax, eax
mov dword [0x5f60b4], eax
setg al
ret
push eax
push 0
mov dword [0x5f60b4], 1
call fcn.0045fd40
mov eax, dword [0x5f60b4]
add esp, 8
test eax, eax
setg al
ret

Function at 0x458ef0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x458f45
mov eax, dword [0x5f60b4]
cmp eax, 0xffffffff
jne 0x458f3f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x458f25
xor eax, eax
test eax, eax
mov dword [0x5f60b4], eax
setg al
ret
push eax
push 0
mov dword [0x5f60b4], 1
call fcn.0045fd40
mov eax, dword [0x5f60b4]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x461840
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x46185a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5f20c0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x4618a2
test ebp, ebp
je 0x461893
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4618c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4618c8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x46197f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4618e5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5f60a0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x461975
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x461975
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461917
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461930
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x461940
test ebp, ebp
je 0x46196c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5f60a4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5f60a4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret