joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a925
Capabilities:
Create http request

Disassembly:
push 0x34
mov eax, 0x45b5fd
call fcn.0043f22a
xor esi, esi
push esi
push esi
push esi
push esi
push dword [0x48539c]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
jne 0x40a96a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_Open_error_:__d
call fcn.0040762c
pop ecx
pop ecx
xor eax, eax
jmp 0x40ab14
xor edi, edi
push 2
inc edi
cmp dword [ebp + 0xc], 0xffffffff
mov ebx, 0x1f4
pop esi
jne 0x40a9f6
push str.Connection_type_is_proxy
call fcn.0040762c
pop ecx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x10]
call fcn.00403246
and dword [ebp - 4], 0
push dword [0x4853ac]
mov ecx, 0x4853a8
call fcn.004030f1
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.0040397a
push ebx
call fcn.0041ce2f
add esp, 0x14
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040339a
push eax
push dword [ebp - 0x14]
call fcn.004395cc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.004010ea
cmp dword [ebp + 0xc], edi
jne 0x40aa1b
push 0
mov ecx, 0x4853e4
mov dword [ebp - 0x40], 4
call fcn.0040339a
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 4
cmp dword [ebp + 0xc], 3
jne 0x40aa95
push str.Connection_type_is_proxy
call fcn.0040762c
pop ecx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x10]
call fcn.00403246
mov dword [ebp - 4], edi
push dword [0x4853d8]
mov ecx, 0x4853d0
call fcn.004030f1
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.0040397a
push ebx
call fcn.0041ce2f
add esp, 0x14
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040339a
push eax
push ebx
call fcn.004395cc
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.004010ea
xor ebx, ebx
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
je 0x40aab8
cmp dword [ebp + 0xc], 3
jne 0x40ab0b
push str.Setting_IE_option
call fcn.0040762c
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
pop ecx
push 0x14
lea eax, [ebp - 0x28]
push eax
push 0x4b
push dword [edi + 0xa0]
call esi
test eax, eax
jne 0x40aaf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Option_Failed_:__d
call fcn.0040762c
pop ecx
pop ecx
push ebx
push ebx
push 0x27
push dword [edi + 0xa0]
call esi
push ebx
push ebx
push 0x25
push dword [edi + 0xa0]
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
call fcn.0043f302
ret 8
Function at 0x40d3e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.Stoping_services
mov byte [edi + 0x32c], 1
call fcn.0040762c
mov ecx, esp
mov dword [ebp - 4], esp
push str.Zoho_Assist_Remote_Support
call fcn.00402fb8
push 0x86
call fcn.00415a65
push str.Closing_tray_exe
call fcn.0040762c
add esp, 0xc
push 0x1f5
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push str.Zoho_Assist
mov esi, 0x464fb4
call fcn.00402fb8
call fcn.00415f30
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push edi
push 0x40e0b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret

Function at 0x40ec51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45caca
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4809a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0041b2e0
xor esi, esi
mov dword [esp + 0x38], esi
call fcn.0041b310
lea eax, [esp + 0x10]
push eax
call fcn.004166a5
mov byte [esp + 0x38], 1
cmp dword [0x485274], 1
jl 0x40ecd5
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0041bbe7
call fcn.00404b1f
cmp eax, 2
jne 0x40ecd5
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0041bbe7
lea ecx, [esp + 0x14]
call fcn.004165d6
push esi
push esi
push dword [ebp + 8]
push 0x40e4cf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [esp + 0x10]
call fcn.00405d7c
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed0f
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x45ca9f
call fcn.0043f22a
lea eax, [ebp - 0x10]
push eax
call fcn.0041b2e0
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041b310
cmp dword [0x485274], 1
jl 0x40ed4b
push esi
push esi
push dword [ebp + 8]
push 0x40e4cf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40ed5e
push str.failed_to_update_URS:__URS_count_is_less_than_zero.
call fcn.004076c2
pop ecx
push dword [ebp + 8]
call fcn.0040e27b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
call fcn.0043f302
ret 4
Function at 0x412a3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x412a46
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x412af8
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
sub eax, 8
dec edi
jne 0x412a5d
pop edi
test eax, eax
je 0x412b11
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x467630]
inc ecx
dec eax
jne 0x412afc
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x412b18
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x467630]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x467630]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x413214
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x413244
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41323f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41326c
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x413255
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043bb80
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x413e7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x413ef7
cmp dword [esi + 4], 0xffffffff
jne 0x413ef7
lea edi, [esi + 0x240]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00439041
movzx eax, word [esi + eax*2 + 0x23e]
cmp ax, 0x5c
pop ecx
je 0x413ec7
cmp ax, 0x2f
je 0x413ec7
push 0x468384
push edi
call fcn.004395a2
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0041310a
test eax, eax
pop ecx
pop ecx
jne 0x413ede
mov eax, dword [ebp + 8]
jmp 0x413efc
push eax
call fcn.00413484
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x413efc
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x41436d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test cx, cx
push ebx
mov ebx, dword [ebp + 8]
je 0x414418
push esi
push edi
mov edi, eax
mov edx, eax
movzx ecx, cx
cmp cx, 0x2f
je 0x4143a8
cmp cx, 0x5c
jne 0x4143aa
mov edi, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x41439c
cmp edi, eax
mov esi, edi
je 0x4143ea
sub esi, eax
sar esi, 1
add esi, esi
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bb80
and word [ebp + esi - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041436d
add esp, 0x14
lea esi, [edi + 2]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004395cc
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004395a2
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004388b9
leave
ret
Function at 0x414425
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4654
call fcn.0043fb50
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
push esi
push edi
mov dword [ebp - 0x4650], ebx
mov dword [ebp - 0x464c], eax
je 0x41445d
mov edi, dword [ebx]
call fcn.00413d9c
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [esi + 4]
jl 0x414475
mov eax, 0x10000
jmp 0x414676
cmp edi, dword [esi + 0x10]
jge 0x414488
call fcn.00413813
jmp 0x414488
mov esi, dword [ebx]
call fcn.00413848
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x414481
push edi
mov edi, dword [ebp - 0x4650]
lea ebx, [ebp - 0x4648]
mov ecx, edi
call fcn.00413f42
test byte [ebp - 0x443c], 0x10
je 0x4144b3
xor eax, eax
jmp 0x414676
lea eax, [edi + 0x240]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004395cc
push dword [ebp - 0x464c]
lea eax, [ebp - 0x210]
push eax
call fcn.004395a2
xor ebx, ebx
add esp, 0x10
cmp word [ebp - 0x210], bx
lea esi, [ebp - 0x210]
mov eax, esi
je 0x4145ba
movzx ecx, word [ebp - 0x210]
cmp cx, 0x2f
je 0x414505
cmp cx, 0x5c
jne 0x414508
lea esi, [eax + 2]
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x4144f9
lea eax, [ebp - 0x210]
cmp esi, eax
je 0x4145ba
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004395cc
lea eax, [ebp - 0x210]
sub esi, eax
sar esi, 1
pop ecx
mov word [ebp + esi*2 - 0x41a], bx
cmp word [ebp - 0x418], bx
pop ecx
je 0x41456c
cmp word [ebp - 0x418], 0x2f
je 0x41456c
cmp word [ebp - 0x418], 0x5c
je 0x41456c
cmp word [ebp - 0x416], 0x3a
je 0x41456c
xor bl, bl
jmp 0x41456e
mov bl, 1
lea eax, [ebp - 0x418]
push 0x46dea4
push eax
call fcn.00439e1c
mov esi, eax
lea eax, [ebp - 0x418]
push 0x46deac
push eax
call fcn.00439e1c
add esp, 0x10
test eax, eax
setne al
test esi, esi
setne cl
or al, cl
or al, bl
jne 0x4145ba
lea eax, [ebp - 0x418]
push eax
lea eax, [edi + 0x240]
push eax
call fcn.0041436d
pop ecx
pop ecx
xor eax, eax
push eax
push dword [ebp - 0x443c]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4145ea
mov eax, 0x200
jmp 0x414676
push dword [edi + 0x23c]
mov ebx, dword [edi]
call fcn.00413a5c
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x4418]
push eax
mov eax, dword [edi]
mov ecx, 0x4000
call fcn.00413bb0
cmp eax, 0xffffff96
pop ecx
je 0x41463c
test eax, eax
jl 0x414643
je 0x41464a
push 0
lea ecx, [ebp - 0x464c]
push ecx
push eax
lea eax, [ebp - 0x4418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4145fa
mov ebx, 0x400
jmp 0x414666
mov ebx, 0x1000
jmp 0x414666
mov ebx, 0x5000000
jmp 0x414666
lea eax, [ebp - 0x4428]
push eax
lea eax, [ebp - 0x4438]
push eax
lea eax, [ebp - 0x4430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
call fcn.00413d9c
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004388b9
leave
ret 8
Function at 0x414821
Capabilities:
Get session user name
Set current directory

Disassembly:
push 0x1b0
mov eax, 0x45b4de
call fcn.0043f293
xor ebx, ebx
push 0x18e
lea eax, [ebp - 0x19e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x1a0], bx
call fcn.0043b970
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x1b4], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.00414df5
push eax
lea eax, [ebp - 0x1a0]
push eax
push str.USER:_s___AdminProcess:_d
call fcn.004076c2
add esp, 0xc
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00403246
mov byte [ebp - 4], 1
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1a8]
call fcn.00403246
mov byte [ebp - 4], 2
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00403246
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 3
call fcn.00403547
lea eax, [ebp + 8]
push eax
call fcn.0040bebc
test al, al
pop ecx
je 0x4148f9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00403289
jmp 0x41495b
push str.SYSTEM
lea esi, [ebp - 0x1a8]
call fcn.00405d9d
test eax, eax
lea edi, [ebp - 0x1bc]
lea esi, [ebp - 0x1b8]
lea eax, [ebp - 0x1ac]
jl 0x41492f
push 0x23
push eax
call fcn.00414a8a
pop ecx
pop ecx
mov byte [ebp - 4], 4
jmp 0x41493d
push 0x1c
push eax
call fcn.00414a8a
pop ecx
pop ecx
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00403289
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1ac]
add ecx, 0xfffffff0
call fcn.004010ea
push 0x46ded0
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040308a
push str.ZohoMeeting
lea ecx, [ebp - 0x1a4]
call fcn.00403522
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00403289
mov esi, dword [ebp - 0x1b0]
push esi
call fcn.00439b9b
test eax, eax
pop ecx
je 0x4149b6
call fcn.0043abb5
cmp dword [eax], 0x11
je 0x4149b6
push esi
push str.Unable_to_create_directory:___s
call fcn.0040762c
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x414a03
push str.Unable_to_set_working_directory
call fcn.0040762c
pop ecx
lea ecx, [esi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp - 0x1a8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov al, bl
call fcn.0043f316
ret
mov bl, 1
jmp 0x4149cc

Function at 0x414a07
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x45a2f6
call fcn.0043f22a
and dword [ebp - 0x10], 0
lea eax, [ebp]
push eax
push 0x104
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, esi
call fcn.00402fa4
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
push 0x468d8c
push esi
mov dword [ebp - 0x10], 1
call fcn.0040397a
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004388b9
add ebp, 0x210
leave
ret
Function at 0x414af2
Capabilities:
Copy file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
lea ecx, [esi - 0x10]
call fcn.004010ea
lea ecx, [edi - 0x10]
call fcn.004010ea
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x414df5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x414e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Status_:__d
call fcn.0040762c
pop ecx
pop ecx
xor eax, eax
jmp 0x414e8a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x414e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CheckTokenMembership_Status_:__d
call fcn.0040762c
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004388b9
leave
ret

Function at 0x414e97
Capabilities:
Create process on windows

Disassembly:
push 0x3c
mov eax, 0x459b18
call fcn.0043f22a
mov dword [ebp - 4], 2
xor esi, esi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.runas
call fcn.0040339a
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x38], eax
call fcn.0040339a
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x34], eax
call fcn.0040339a
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
jne 0x414f06
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp esi, 1
jne 0x414f30
jmp 0x414f20
push 1
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x414f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x414f30
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [ebx - 0x10]
call fcn.004010ea
mov eax, esi
call fcn.0043f302
ret
Function at 0x414fb4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x23c
mov eax, 0x45b454
call fcn.0043f293
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x414fec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, edi
call fcn.0043f316
ret
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41500e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x248], eax
push edi
lea ecx, [ebp + 8]
call fcn.0040339a
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00439779
test eax, eax
pop ecx
pop ecx
jne 0x415044
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x248]
jne 0x415057
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41501a
jmp 0x415094
push eax
xor ebx, ebx
push edi
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x415094
cmp dword [ebp + 0xc], edi
je 0x415094
push dword [ebp - 0x244]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.Process_killed
call fcn.004076c2
pop ecx
mov edi, ebx
jmp 0x414fd9
Function at 0x4153d7
Capabilities:
Check os version

Disassembly:
push 0x14c
mov eax, 0x45b3cc
call fcn.0043f293
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, ecx
push 0x464fb4
mov ecx, edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x130], esi
call fcn.00402fb8
mov dword [ebp - 4], esi
lea eax, [ebp - 0x128]
inc esi
push eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x118]
mov dword [ebx], ecx
xor ebx, ebx
sub eax, ebx
je 0x4154e9
dec eax
je 0x4154b3
dec eax
jne 0x4154fe
cmp ecx, 5
jne 0x415482
cmp dword [ebp - 0x120], ebx
jne 0x415463
lea eax, [ebp - 0x114]
push eax
push str.Windows_2000_With__s
jmp 0x415477
cmp dword [ebp - 0x120], esi
jne 0x4154a5
lea eax, [ebp - 0x114]
push eax
push str.Windows_XP__s
push edi
call fcn.0040397a
add esp, 0xc
jmp 0x4154fe
cmp ecx, 4
ja 0x4154a5
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x120]
push ecx
push str.Windows_NT__d._d_with__s
push edi
call fcn.0040397a
add esp, 0x14
jmp 0x4154fe
push dword [ebp - 0x120]
push ecx
push str.Windows__d._d
jmp 0x4154f5
cmp dword [ebp - 0x120], ebx
jne 0x4154c2
push str.Windows_t95
jmp 0x4154e0
cmp dword [ebp - 0x120], 0xa
jne 0x4154d2
push str.Windows_98
jmp 0x4154e0
cmp dword [ebp - 0x120], 0x5a
jne 0x4154fe
push str.Windows_tMe
mov ecx, edi
call fcn.00403547
jmp 0x4154fe
push dword [ebp - 0x120]
push ecx
push 0x46e24c
push edi
call fcn.0040397a
add esp, 0x10
lea eax, [ebp - 0x12c]
push str.OSVersion:
push eax
mov ecx, edi
call fcn.00405f08
pop ecx
pop ecx
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00403289
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.004010ea
mov dword [ebp - 0x134], ebx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403246
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 4], 2
call fcn.004166a5
lea eax, [ebp - 0x12c]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push eax
mov byte [ebp - 4], 3
call fcn.0040397a
pop ecx
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x13c], esp
mov ecx, esp
push eax
call fcn.0040326b
lea ecx, [ebp - 0x158]
call fcn.00403a15
push 0x46e3c4
lea ecx, [ebp - 0x140]
call fcn.00403547
lea ebx, [ebp - 0x134]
lea esi, [ebp - 0x158]
call fcn.00416f6c
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push eax
push str._s__d._d._d
push edi
call fcn.0040397a
push dword [edi]
push 0x468d8c
call fcn.0040762c
add esp, 0x20
call fcn.00405d7c
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, edi
call fcn.0043f316
ret