joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, ecx
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
jb 0x4c8488
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x4c84a4
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4c8493
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
and eax, esi
lea edx, [eax*8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x4c84d7
cmp dword [ecx], edi
jne 0x4c84cf
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov dword [ecx + edx + 4], eax
jmp 0x4c84df
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4c84df
cmp dword [ecx], edi
jne 0x4c84e3
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [ebp + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ecx + 4]
call fcn.004c76c0
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4c8720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0x10
mov edi, ecx
mov ebp, dword [ebx + 0x10]
jb 0x4c873a
mov esi, dword [ebx]
jmp 0x4c873c
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test ebp, ebp
je 0x4c8758
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebp
jb 0x4c8747
mov ecx, dword [edi + 0x18]
and ecx, edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [esp + 0x10], esi
mov esi, dword [edi + 4]
mov dword [esp + 0x24], esi
lea ecx, [edx + ecx*4]
mov dword [esp + 0x18], ecx
nop dword [eax + eax]
cmp dword [esp + 0x10], esi
jne 0x4c878a
mov ecx, esi
jmp 0x4c878e
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4c88c3
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x4c87a3
mov edi, dword [ebx]
jmp 0x4c87a5
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x4c87b0
mov edx, dword [edx]
mov ecx, dword [ecx]
mov esi, ebp
cmp ecx, ebp
mov dword [esp + 0x14], ecx
cmovb esi, ecx
test esi, esi
je 0x4c881a
sub esi, 4
jb 0x4c87d7
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4c87dc
add edx, 4
add edi, 4
sub esi, 4
jae 0x4c87c6
cmp esi, 0xfffffffc
je 0x4c8810
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x4c8809
cmp esi, 0xfffffffd
je 0x4c8810
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x4c8809
cmp esi, 0xfffffffe
je 0x4c8810
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x4c8809
cmp esi, 0xffffffff
je 0x4c8810
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x4c8810
sbb ecx, ecx
or ecx, 1
jmp 0x4c8812
xor ecx, ecx
test ecx, ecx
jne 0x4c8820
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jb 0x4c8820
jbe 0x4c882f
mov eax, dword [eax]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
jmp 0x4c8780
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x4c883d
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x4c8845
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ebp, edi
mov esi, edi
cmovb esi, ebp
test esi, esi
je 0x4c88a7
sub esi, 4
jb 0x4c8868
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4c886d
add ebx, 4
add edx, 4
sub esi, 4
jae 0x4c8857
cmp esi, 0xfffffffc
je 0x4c88a1
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x4c889a
cmp esi, 0xfffffffd
je 0x4c88a1
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x4c889a
cmp esi, 0xfffffffe
je 0x4c88a1
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x4c889a
cmp esi, 0xffffffff
je 0x4c88a1
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x4c88a1
sbb ecx, ecx
or ecx, 1
jmp 0x4c88a3
xor ecx, ecx
test ecx, ecx
jne 0x4c88ad
cmp ebp, edi
jb 0x4c88ad
jbe 0x4c88b1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4d1aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0xa4
push 0xffffffffffffffff
push 0x5ce240
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x647138]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xac]
lea ecx, [ebp]
mov esi, dword [ebp + 0xb0]
push eax
call fcn.004ce020
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x73
push eax
lea ecx, [ebp]
call fcn.004f5720
push dword [esi + 0xc]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push dword [esi + 8]
call fcn.004dde30
mov eax, dword [edi + 0x30]
push str.Sending_response..._n
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
add esp, 0xc
push 0
push 1
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi + 0x30]
push str.response_sent_n
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004ddda0
lea ecx, [ebp]
call fcn.004cec40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.00501f98
lea esp, [ebp + 0xa4]
pop ebp
ret 8

Function at 0x4d50e0
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, ecx
call fcn.004d4f80
test al, al
jne 0x4d5107
mov ecx, dword [esi + 0x268]
call fcn.004f6d00
test al, al
je 0x4d5107
mov ecx, dword [esi + 0x26c]
pop esi
jmp fcn.004e70a0
pop esi
ret

Function at 0x4d6580
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc118
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x647138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4d65cf
mov eax, dword [esi]
jmp 0x4d65d1
mov eax, esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov byte [eax], 0
call fcn.0040ea60
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.0040ea60
mov al, byte [ebp + 0x10]
mov byte [esi + 0x30], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4de9f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cf8a8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, ecx
cmp dword [edi + 0x4c], 0
je 0x4deac5
cmp dword [edi + 0x1c], 0xffffffff
je 0x4deac5
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push ebx
push esi
push 0xffffffffffffffff
call dword [eax]
mov esi, dword [ebp + 8]
test esi, esi
je 0x4deabb
push dword [edi + 0x4c]
call fcn.0059c715
add esp, 4
cmp esi, eax
jge 0x4deabb
push dword [edi + 0x4c]
call fcn.0059bc17
push str..bak
lea esi, [edi + 4]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004dd370
add esp, 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.004dc420
push eax
call fcn.0059c720
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004dc430
push eax
mov ecx, esi
call fcn.004dc430
push eax
call fcn.0059ce60
add esp, 8
mov ecx, esi
push dword [edi + 0x20]
call fcn.004dc430
push eax
call fcn.0059be30
add esp, 8
mov dword [edi + 0x4c], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e4b0
lea ecx, [edi + 0x24]
call fcn.004e3b90
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4defc0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x48]
cmp eax, dword [esp + 0xc]
jl 0x4df016
push dword [edi + 0x1c]
call fcn.004de9f0
cmp dword [edi + 0x4c], ebx
jne 0x4defe3
pop edi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push esi
push 0xffffffffffffffff
call dword [eax]
push dword [edi + 0x4c]
push dword [esp + 0x1c]
push 1
push dword [esp + 0x20]
call fcn.0059ce08
push dword [edi + 0x4c]
mov ebx, eax
call fcn.0059c8fb
add esp, 0x14
lea ecx, [edi + 0x24]
call fcn.004e3b90
pop esi
pop edi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x4df2e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.004dc0a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004dc7c0
dec eax
lea ecx, [ebp - 0x40]
push eax
call fcn.004dcf20
mov al, byte [eax]
cmp al, 0x5c
je 0x4df339
cmp al, 0x2f
je 0x4df339
push 0x5e7210
lea ecx, [ebp - 0x40]
call fcn.004dd1c0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004dc0a0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x6194fc
mov byte [ebp - 4], 1
call fcn.004dd080
lea ecx, [ebp - 0x28]
test al, al
je 0x4df368
push ebx
call fcn.004dd1a0
jmp 0x4df372
push 0x5e7214
call fcn.004dd1c0
push edi
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x28]
call fcn.004dc420
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov bl, 1
mov byte [ebp - 0xe], bl
cmp edi, 0xffffffff
je 0x4df4a6
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x619530
lea eax, [ebp - 0x16c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4df3d0
test dl, dl
je 0x4df3cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4df3d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4df3b0
xor eax, eax
jmp 0x4df3d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4df48c
mov ecx, 0x5e7218
lea eax, [ebp - 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4df408
test dl, dl
je 0x4df404
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4df408
add eax, 2
add ecx, 2
test dl, dl
jne 0x4df3e8
xor eax, eax
jmp 0x4df40d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4df48c
test byte [ebp - 0x198], 0x10
je 0x4df46c
test si, si
je 0x4df46c
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004dd370
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push eax
call fcn.004df2e0
add esp, 0x20
test al, al
je 0x4df4fb
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4df46c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040ee30
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push ebx
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [ebp + 0x10]
add esp, 0x10
cmp byte [ebp - 0xd], 0
jne 0x4df507
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4df3a0
mov bl, byte [ebp - 0xe]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
pop edi
cmp eax, 0x10
jb 0x4df4c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ee30
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4df4ea
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040ee30
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.0040e4b0
jmp 0x4df4a5
xor bl, bl
jmp 0x4df4a5
Function at 0x4df8c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret

Function at 0x4e0050
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cfa2f
push eax
mov eax, 0x115c
mov dword fs:[0], esp
call fcn.005021f0
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1168]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4e01bf
mov ebx, dword [ebp - 0x14]
xor esi, esi
shr ebx, 2
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4e01bf
nop word [eax + eax]
push dword [ebp + esi*4 - 0x1168]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4e01b6
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x4e01ad
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.004dc7e0
mov ebx, eax
lea eax, [ebp - 0x168]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.004dc100
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004dc7e0
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004dc430
push eax
mov ecx, edi
call fcn.004dc430
push eax
call fcn.00588bb0
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x4e0151
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0040ee30
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp eax, 0x10
jb 0x4e0178
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040ee30
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4e01a6
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.0040ee30
test edi, edi
jne 0x4e01d2
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x4e00b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e0350
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.005889a0
add esp, 0xc
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4e0396
jne 0x4e038d
cmp dword [esp + 8], 1
jae 0x4e0396
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret
Function at 0x4e0570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfa8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.004dc080
push 0x6194fc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004dd080
test al, al
je 0x4e0705
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
push 0x5c
lea ecx, [ebp + 8]
call fcn.004dc8c0
push 0x2f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004dc8c0
lea ecx, [ebp + 8]
cmp esi, eax
jae 0x4e05e1
push 0x5c
jmp 0x4e05e3
push 0x2f
call fcn.004dc8c0
lea esi, [eax + 1]
test esi, esi
jns 0x4e05fb
lea ecx, [ebp + 8]
call fcn.004dc7c0
mov esi, eax
jmp 0x4e0601
je 0x4e075b
push esi
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 8]
call fcn.004dc970
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004dc010
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004dc160
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4e067c
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x1000
jb 0x4e0673
test cl, 0x1f
jne 0x4e0756
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4e0756
sub ecx, eax
cmp ecx, 4
jb 0x4e0756
cmp ecx, 0x23
ja 0x4e0756
mov ecx, eax
push ecx
call fcn.004307d0
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4e06d8
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x4e06cf
test cl, 0x1f
jne 0x4e0756
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4e0756
sub ecx, eax
cmp ecx, 4
jb 0x4e0756
cmp ecx, 0x23
ja 0x4e0756
mov ecx, eax
push ecx
call fcn.004307d0
add esp, 4
push 0
lea ecx, [ebp - 0x24]
call fcn.004dc420
push eax
call edi
push esi
push 0
lea ecx, [ebp + 8]
call fcn.004dcc50
push 0x6194fc
lea ecx, [ebp + 8]
call fcn.004dd080
test al, al
jne 0x4e05c0
mov bl, 1
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x4e071c
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040ee30
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp ecx, 0x10
jb 0x4e0743
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040ee30
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0059107d
xor bl, bl
jmp 0x4e0707
Function at 0x4e1120
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 1
push 0
mov ecx, edi
call fcn.004dc420
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x4e1168
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.004dc420
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x4e11e7
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0
call fcn.004dc420
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4e11e7
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.004dc420
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x4e11e7
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.004dc420
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x4e15f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfbb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004e4550
mov dword [edi], vtable.asafe_thread.0
cmp byte [0x653e8c], 0
mov dword [ebp - 4], 0
jne 0x4e165a
lea ecx, [ebp - 0x7c]
call fcn.004e12e0
push eax
mov byte [ebp - 4], 1
call fcn.004e1720
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.004e13e0
cmp byte [0x653e8c], 0
je 0x4e16fa
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ebx
push dword [ebp + 8]
mov dword [edi + 0x4c], eax
call fcn.004dc0a0
push 0x28
mov byte [ebp - 4], 2
call fcn.00501ce1
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4e16ad
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebx], edi
call fcn.004dc0a0
mov dword [ebx + 0x24], esi
pop esi
jmp 0x4e16af
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
mov edx, 4
mov byte [ebp - 4], 2
lea eax, [ecx + 8]
push eax
xor eax, eax
cmp byte [ecx + 4], al
cmovne eax, edx
push eax
push ebx
push 0x4e1480
push 0
push 0
call fcn.0059ddfe
add esp, 0x18
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004e4420
mov eax, dword [ebp - 0x14]
pop ebx
cmp eax, 0x10
jb 0x4e16fa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ee30
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e1d80
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword [0x653f04]
sub esp, 0x454
test eax, eax
je 0x4e1d91
call eax
push esi
push edi
mov edi, dword [esp + 0x460]
mov ecx, dword [edi]
add ecx, 0x28
call fcn.004e3b90
mov ecx, dword [0x654628]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov byte [eax + 0x24], 1
mov eax, dword [edi + 0x24]
cmp eax, 2
jne 0x4e1e75
push 0x400
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4e1e33
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.005889a0
add esp, 0xc
mov dword [esp + 0x18], 0x44
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [edi + 0x20]
lea esi, [edi + 0xc]
cmp eax, 0x10
jb 0x4e1e49
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040ee30
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4e1e5f
mov esi, dword [esi]
push 0x28
push edi
mov byte [esi], 0
call fcn.00501d14
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea esi, [edi + 0xc]
cmp eax, 1
mov eax, dword [esi + 0x14]
jne 0x4e1ebc
cmp eax, 0x10
jb 0x4e1e90
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040ee30
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4e1ea6
mov esi, dword [esi]
push 0x28
push edi
mov byte [esi], 0
call fcn.00501d14
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp eax, 0x10
jb 0x4e1ecc
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040ee30
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4e1e5f
jmp 0x4e1e5d