joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed610
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x577db0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ed7b7
mov ecx, dword [0x87ba14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4ed70c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004ec330
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005633f9
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005632c0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x7b6dfc
call fcn.0056332e
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004ec6f0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.005633f9
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005632c0
lea ecx, [esp + 0xc]
call fcn.005637d4
mov ecx, dword [esp + 0xc]
push 0x7b783c
push ecx
call fcn.0054d4e4
add esp, 8
test eax, eax
je 0x4ed734
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4ed66d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.005632c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005632c0
jmp 0x4ed7bb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004ed3b0
test eax, eax
push 0
je 0x4ed79f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004eba50
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4ed785
cmp eax, 0x64
jg 0x4ed773
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ed710
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ed710
cmp eax, 0x64
jge 0x4ed70c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ed710
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004eba50
mov esi, eax
jmp 0x4ed710
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4ed7c5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4f5290
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4f52f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4f52f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4f52d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4f5680
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4f56b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push 0x7b8e68
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4f62e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4f6329
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4f67a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x578160
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.004f6350
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004f63d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004f63d0
lea ecx, [esi + 0xc]
call fcn.0056324b
lea ecx, [esi + 0x10]
call fcn.0056324b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004f7960
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004f7960
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004f7960
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005632c0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005632c0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f88cb
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4f88fb
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x4f890f
mov esp, ebp
pop ebp
ret 4

Function at 0x4f899f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
mov dword [ebp - 8], esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4f89f1
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x4f8a25
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4f8a20
push 6
call fcn.0051c636
add esp, 4
jmp 0x4f8a2d
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x4f8a3e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4fda0b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
jmp 0x4fda2d
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0051dbb1
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4fda64
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0051dbb1
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4fdaa1
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, pe_nt_image_headers32
call fcn.0051ca91
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ecx, 2
call fcn.004f9f32
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4fdaf0
push ebx
call fcn.0051c630
add esp, 4
mov dword [ebp - 0x10], esp
push 0xff
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0xff
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0xff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4fdb42
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4fdb55
push ebx
call fcn.0051c630
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x4fdb67
mov eax, dword [ebp - 4]
jmp 0x4fdb81
mov eax, 0
jmp 0x4fdb81
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4fdb87
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
jmp 0x4fdba9
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.0051dbb1
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4fdbde
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4fdbf5
mov eax, 0x7b974c
push eax
push 1
mov ebx, 0x130
call fcn.0051d1f1
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4fdc31
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4fdc5f
mov eax, dword [ebp - 4]
test eax, eax
je 0x4fdc5a
push eax
mov ebx, eax
call fcn.004f9e2e
inc eax
push eax
call fcn.0051c62a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4fdc98
push 0x80000101
push 0
push 0
push 1
mov ebx, pe_nt_image_headers32
call fcn.0051ca91
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4fdc98
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4fdca9
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x50dab2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x50dae1
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x50db03
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x2c]
fcomp qword [0x7bb1e1]
fnstsw ax
test ah, 1
je 0x50db73
mov dword [ebp - 8], esp
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x50db5c
push 6
call fcn.0051c636
add esp, 4
push 0
mov ebx, 0x350
call fcn.0051fe11
add esp, 4
jmp 0x50dae4
jmp 0x50db78
mov esp, ebp
pop ebp
ret 4

Function at 0x50dbd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0xc
call fcn.0051c62a
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x50dc18
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50dc44
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x64
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50dc6e
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x102
jne 0x50dccc
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50dca0
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50dcc2
push 6
call fcn.0051c636
add esp, 4
push 0
call fcn.0051c654
add esp, 4
jmp 0x50dcdc
mov ebx, dword [ebp - 8]
push ebx
call fcn.0051c630
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x50dd8c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x50ddbc
push 0x80000101
push 0
push 0
push 1
mov ebx, pe_nt_image_headers32
call fcn.0051ca91
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004f9ffe
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x50de0c
push ebx
call fcn.0051c630
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x50de56
mov eax, 0x7bb1ef
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004fd7d8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x50de3a
push ebx
call fcn.0051c630
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x50de50
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x50de84
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x50debd
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x90c
call fcn.0051ce41
add esp, 0x10
mov dword [ebp - 0x10], eax
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0050df83
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x50df00
push ebx
call fcn.0051c630
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x50df14
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x50df3a
push 6
call fcn.0051c636
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x50df56
push eax
mov ebx, eax
call fcn.004f9e2e
inc eax
push eax
call fcn.0051c62a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x50df6b
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x50df7c
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x50f98a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x50f9b3
mov dword [0x7bba70], 0
push dword [0x7bba74]
call fcn.004f87f9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50f9f7
push dword [0x7bba74]
call fcn.004f886d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50f9f7
mov eax, 0x7b974c
jmp 0x50fb6f
mov dword [ebp - 0xc], esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50fa30
push 6
call fcn.0051c636
add esp, 4
mov dword [0x7bba74], eax
mov dword [ebp - 0xc], esp
push 0x4bf
push 0xffffffff
push 0
push 0x7bba74
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50fa6d
push 6
call fcn.0051c636
add esp, 4
mov dword [0x7bba70], eax
push 0
mov ebx, 0x350
call fcn.0051fe11
add esp, 4
cmp dword [0x7bba70], 0
je 0x50faa8
cmp dword [0x7bba70], 0x102
je 0x50faa8
mov eax, 1
jmp 0x50faaa
xor eax, eax
test eax, eax
jne 0x50fa35
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [0x7bba74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50fad7
push 6
call fcn.0051c636
add esp, 4
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x90c
call fcn.0051ce41
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x50fb0a
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [0x7bba74]
call fcn.004f88cb
mov dword [ebp - 0xc], esp
push dword [0x7bba74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x50fb3e
push 6
call fcn.0051c636
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x50fb5a
push eax
mov ebx, eax
call fcn.004f9e2e
inc eax
push eax
call fcn.0051c62a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x50fb6f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x50fb80
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50fe9c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x50fece
push 6
call fcn.0051c636
add esp, 4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x51db31
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x51db4f
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x51db44
pop esi
ret
Function at 0x51db51
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0051c8c1
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x51dba8
push ebx
push edi
call fcn.0051c951
push esi
mov ebx, esi
call fcn.0051c8c1
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x51db7f
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x5359f0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x535a00
mov esi, 1
push esi
call fcn.0054e0d7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x535a52
call fcn.0054ebdd
mov edi, eax
call fcn.00538540
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x535a36
mov edx, dword [0x7d1e88]
mov dword [0x7d1e84], edx
test al, 0x18
je 0x535a47
push esi
push 0x24
push 5
call fcn.00538d90
add esp, 0xc
test edi, edi
je 0x535a6d
push 1
call fcn.0054fb99
test byte [esp + 0x14], 0x20
je 0x535a6d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x536b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x536c64
cmp byte [edx], 0
je 0x536c57
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00536af0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00536af0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00536a60
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x536c21
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00536aa0
fmul qword [0x791060]
push ecx
fstp qword [esp]
call fcn.0054c9e8
fadd qword [0x791058]
add esp, 8
call fcn.0054cab8
mov byte [ebx], al
inc ebx
dec edi
jne 0x536bf4
lea ecx, [esp + 0x20]
push ecx
call fcn.00536aa0
fmul qword [0x791060]
push ecx
fstp qword [esp]
call fcn.0054c9e8
add esp, 8
call fcn.0054cab8
cmp esi, ebx
je 0x536c4d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x536c46
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x537030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x537060
mov byte [edi + esi], 2
jmp 0x537097
test al, 4
je 0x53706a
mov byte [edi + esi], 0xd
jmp 0x537097
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x537083
mov byte [edi + esi], 2
jmp 0x537097
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x537093
mov byte [edi + esi], 0x19
jmp 0x537097
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x537047
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x53710b
cmp dl, 0xd
je 0x53710b
xor edx, edx
jmp 0x537110
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x5370fb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x537130
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.005359f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x537151
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00538780
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x537176
push esi
call fcn.00535a80
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.0055988c
push ebx
push edi
mov ebp, eax
call fcn.005387f0
push 0x5371b0
push ebp
push esi
call fcn.00539b20
push esi
call fcn.00535a80
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret