joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a40
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405a92
mov edx, dword [eax + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x405a92
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [eax], 0x4550
jne 0x405a92
add eax, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0xc]
add eax, 0x14
mov edx, 0x10b
mov dword [ecx], eax
cmp word [eax], dx
jne 0x405a92
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x405aa0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, 0x5a4d
mov dword [esp + 8], 0
cmp word [esi], ax
jne 0x405adc
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
lea ebx, [ecx + esi]
jne 0x405adc
add ebx, 4
mov edx, 0x10b
mov dword [esp + 0xc], ebx
cmp word [ebx + 0x14], dx
je 0x405ae4
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x9c]
push ebp
push edi
test ecx, ecx
je 0x405b96
test byte [ebx + 0x12], 1
jne 0x405b96
add ecx, esi
mov eax, 1
test eax, eax
jne 0x405b11
cmp dword [ecx], eax
je 0x405b96
mov edx, dword [ecx + 4]
xor eax, eax
add edx, 0xfffffff8
shr edx, 1
mov dword [esp + 0x18], eax
lea edi, [ecx + 8]
mov dword [esp + 0x20], eax
je 0x405b7e
jmp 0x405b30
movzx eax, word [edi]
mov ebp, eax
and ebp, 0xf000
cmp ebp, 0x3000
jne 0x405b6a
inc dword [esp + 0x10]
and eax, 0xfff
add eax, dword [ecx]
mov ebp, dword [eax + esi]
sub ebp, dword [ebx + 0x30]
cmp ebp, dword [esp + 0x24]
jne 0x405b66
mov ebx, 0x5c7
cmp word [eax + esi - 2], bx
je 0x405b83
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc eax
add edi, 2
mov dword [esp + 0x20], eax
cmp eax, edx
jb 0x405b30
mov eax, dword [esp + 0x18]
add ecx, dword [ecx + 4]
jmp 0x405b05
mov eax, dword [eax + esi + 4]
mov ecx, dword [esp + 0x14]
sub eax, dword [ecx + 0x30]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x405e80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48d838
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b82d8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0xc], ebp
xor eax, eax
mov word [esp + 0x14], ax
mov eax, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebp
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x405ed0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405210
mov eax, dword [esp + 0x24]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x38], ebp
neg ecx
or ecx, eax
push ecx
call fcn.00419bd0
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x24]
xor eax, eax
mov word [esi + ecx*2], ax
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov byte [esp + 0x38], 1
jae 0x405f30
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x24]
push esi
push edx
push eax
call fcn.004075d0
add esp, 0xc
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebp
mov word [edi + 4], ax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405f54
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.00405210
cmp esi, ebp
je 0x405f79
push esi
call fcn.00419bc5
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x405f8d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00419bc5
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045cd9b
add esp, 0x30
ret
Function at 0x405fb0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x48d876
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov ebx, ecx
push 0x38
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045cf50
add esp, 0xc
push 0x4956d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [esp + 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwOpenProcess
push esi
mov dword [esp + 0x20], ecx
call edi
mov edx, dword [eax + 1]
push str.ZwQuerySystemInformation
push esi
mov dword [esp + 0x30], edx
call edi
mov eax, dword [eax + 1]
push str.ZwQueryVirtualMemory
push esi
mov dword [esp + 0x38], eax
call edi
mov ecx, dword [eax + 1]
push str.ZwReadVirtualMemory
push esi
mov dword [esp + 0x50], ecx
call edi
mov edx, dword [eax + 1]
push str.ZwWriteVirtualMemory
push esi
mov dword [esp + 0x40], edx
call edi
mov eax, dword [eax + 1]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x44], eax
call fcn.00405cc0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00405900
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebx]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x38
lea ecx, [esp + 0x2c]
push ecx
push 0x9c402408
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4060af
cmp dword [esp + 0x10], 0x12d79
je 0x406129
push 1
push 2
lea ecx, [esp + 0x9c]
call fcn.0040c020
mov eax, dword [esp + 0x10]
push eax
push 0x495750
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xa0]
call fcn.0040c4d0
push eax
call fcn.0040c170
add esp, 8
mov ecx, eax
call fcn.0040c4d0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x98]
call fcn.0040a820
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x120], 1
call fcn.00409d80
push 0x4aabc4
lea edx, [esp + 0x54]
push edx
call fcn.0045d42c
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
Function at 0x4066a0
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x48d96f
mov eax, dword fs:[0]
push eax
sub esp, 0x144
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40674e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x168]
push 1
push 2
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.0040c020
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x15c], 0
call fcn.0040c380
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.00409d80
push 0x4aabc4
lea ecx, [esp + 0x10]
push ecx
call fcn.0045d42c
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4067cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x168]
push 1
push 2
lea ecx, [esp + 0xd8]
mov dword [edi], eax
call fcn.0040c020
mov edx, dword [edi]
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x15c], 2
call fcn.0040c380
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xd4]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 3
call fcn.00409d80
push 0x4aabc4
lea ecx, [esp + 0x10]
push ecx
call fcn.0045d42c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x150
ret 0xc
Function at 0x4067f0
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x48d9bc
mov eax, dword fs:[0]
push eax
sub esp, 0x144
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40689e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x168]
push 1
push 2
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.0040c020
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x15c], 0
call fcn.0040c380
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.00409d80
push 0x4aabc4
lea ecx, [esp + 0x10]
push ecx
call fcn.0045d42c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40692a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x40692a
call edi
mov edi, dword [esp + 0x168]
push 1
push 2
lea ecx, [esp + 0xd8]
mov dword [edi], eax
call fcn.0040c020
mov edx, dword [edi]
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x15c], 2
call fcn.0040c380
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xd4]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 3
call fcn.00409d80
push 0x4aabc4
lea ecx, [esp + 0x10]
push ecx
call fcn.0045d42c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x150
ret 0xc
Function at 0x406950
Capabilities:
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x48da09
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x17c]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4069fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x184]
push 1
push 2
lea ecx, [esp + 0x74]
mov dword [esi], eax
call fcn.0040c020
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x178], 0
call fcn.0040c380
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x178], 1
call fcn.00409d80
push 0x4aabc4
lea ecx, [esp + 0x10]
push ecx
call fcn.0045d42c
lea edx, [esp + 0x50]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x406a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x184]
push 1
push 2
lea ecx, [esp + 0xf4]
mov dword [edi], eax
call fcn.0040c020
mov eax, dword [edi]
push eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0x178], 2
call fcn.0040c380
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xf0]
call fcn.0040a820
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x178], 3
call fcn.00409d80
push 0x4aabc4
lea edx, [esp + 0x10]
push edx
call fcn.0045d42c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x16c
ret 0xc
Function at 0x406da0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48dae6
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x194]
mov ebx, dword [esp + 0x198]
mov dword [ebx], 0
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x406df2
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call ebp
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x406fa3
cmp dword [edi + 0x18], 8
mov eax, dword [esp + 0x14]
jb 0x406e24
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call ebp
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x406fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp eax, 2
je 0x406ead
push 1
push 2
lea ecx, [esp + 0x8c]
call fcn.0040c020
mov ecx, dword [ebx]
push ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x190], 0
call fcn.0040c380
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x88]
call fcn.0040a820
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x190], 1
call fcn.00409d80
push 0x4aabc4
lea eax, [esp + 0x38]
push eax
call fcn.0045d42c
mov ecx, 0x495670
lea edi, [esp + 0x18]
mov dword [ebx], 0
call fcn.00405e80
mov edi, 8
mov dword [esp + 0x18c], 2
cmp dword [esi + 0x1c], edi
jb 0x406edb
mov ecx, dword [esi + 8]
jmp 0x406ede
lea ecx, [esi + 8]
cmp dword [eax + 0x18], edi
jb 0x406ee8
mov eax, dword [eax + 4]
jmp 0x406eeb
add eax, 4
push ebx
push 1
push ecx
push eax
mov ecx, esi
call fcn.00406ab0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18c], 0xffffffff
call fcn.00404df0
mov ecx, dword [esp + 0x194]
cmp dword [ecx + 0x18], edi
jb 0x406f1f
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x406f23
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call ebp
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp dword [esi], 0xffffffff
jne 0x406fa3
push 1
push 2
lea ecx, [esp + 0x10c]
call fcn.0040c020
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x190], 3
call fcn.0040c380
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x108]
call fcn.0040a820
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x190], 4
call fcn.00409d80
push 0x4aabc4
lea edx, [esp + 0x60]
push edx
call fcn.0045d42c
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8

Function at 0x407570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor ecx, ecx
test ebp, ebp
jbe 0x4075c5
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x14]
sub edi, ebx
jmp 0x407590
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x495794]
lea esi, [ecx + ebx]
xor dl, byte [edi + esi]
inc ecx
mov byte [esi], dl
cmp ecx, ebp
jb 0x407590
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4075d0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
add edi, edi
xor ecx, ecx
test edi, edi
jbe 0x407625
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
sub ebx, ebp
lea ebx, [ebx]
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x49579c]
lea esi, [ecx + ebp]
xor dl, byte [ebx + esi]
inc ecx
mov byte [esi], dl
cmp ecx, edi
jb 0x4075f0
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x40c830
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1808
call fcn.0045e0c0
mov eax, dword [0x4b82d8]
xor eax, esp
mov dword [esp + 0x1804], eax
push ebp
mov ebp, dword [esp + 0x1810]
push esi
push edi
xor edi, edi
push 0xffc
lea eax, [esp + 0x18]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x1c], edi
call fcn.0045cf50
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x1000
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x1c], edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40c92d
push ebx
push 0x7fe
lea ecx, [esp + 0x101a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x1020], ax
call fcn.0045cf50
mov eax, dword [esp + 0x1c]
shr eax, 2
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, edi
jbe 0x40c92a
mov ebx, 8
cmp byte [esp + 0x1820], 0
mov eax, dword [esp + edi*4 + 0x14]
push 0x3ff
lea edx, [esp + 0x1018]
push edx
push eax
push ebp
je 0x40c8f8
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x40c923
cmp dword [esi + 0x3c], ebx
jb 0x40c8f3
mov eax, dword [esi + 0x28]
jmp 0x40c90e
lea eax, [esi + 0x28]
jmp 0x40c90e
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40c923
cmp dword [esi + 0x20], ebx
jb 0x40c90b
mov eax, dword [esi + 0xc]
jmp 0x40c90e
lea eax, [esi + 0xc]
lea ecx, [esp + 0x1014]
push ecx
push eax
call fcn.0045e01e
add esp, 8
test eax, eax
je 0x40c947
inc edi
cmp edi, dword [esp + 0x10]
jb 0x40c8c3
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1810]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045cd9b
add esp, 0x1808
ret 8
mov eax, dword [esp + edi*4 + 0x14]
jmp 0x40c92c
Function at 0x40cb50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e1a7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x495a80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
jmp 0x40cba4
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
mov ecx, ebx
call fcn.0040c830
test eax, eax
je 0x40ccbd
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x40ccbd
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x40ccbd
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40cc20
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
lea esi, [ebx + 0x58]
push ecx
mov ecx, esi
call fcn.0040f800
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
lea esp, [esp]
test eax, eax
je 0x40cc6a
cmp eax, dword [esp + 0x3c]
je 0x40cc6f
call fcn.0045d981
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x28], eax
je 0x40cc88
lea ecx, [esp + 0x24]
call fcn.0040e500
mov eax, dword [esp + 0x24]
jmp 0x40cc60
mov edx, dword [esp + 0x3c]
push eax
push edx
push ebx
push edi
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00410c20
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x40ccb3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp + 0xc], 0
jne 0x40cba0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d2c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
push 0x800
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.00411290
mov edi, dword [esi + 0x10]
sub edi, dword [esi + 0xc]
sar edi, 2
test edi, edi
ja 0x40d2f1
call fcn.0045d981
mov eax, dword [esi + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [edi*4]
push edx
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40d345
push ebx
push ebp
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40d31a
call fcn.0045d981
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x40d329
call fcn.0045d981
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040fc30
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 8]
shr ecx, 2
push 0
push ecx
mov ecx, esi
call fcn.00411290
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40dee0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40df05
push esi
push 0
push 0x40de30
call fcn.0045e220
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40df02
xor al, al
pop esi
ret
mov dword [esi + 0x50], eax
mov al, 1
pop esi
ret

Function at 0x413c10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48e478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004050d0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413c70
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00411f20
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004050d0
cmp dword [esp + 0x28], 8
jb 0x413cbd
mov eax, dword [esp + 0x14]
push eax
call fcn.00419bc5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x414160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4b82d8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x496358
lea edi, [esp + 0x3c]
mov dword [esp + 0x10], esi
mov byte [esp + 0x58], 0x32
mov byte [esp + 0x59], 0x65
mov byte [esp + 0x5a], 0x77
mov byte [esp + 0x5b], 0x14
mov byte [esp + 0x5c], 0x36
mov byte [esp + 0x5d], 0x16
mov byte [esp + 0x5e], 0x25
mov byte [esp + 0x5f], 0x2b
mov byte [esp + 0x60], 0x64
mov byte [esp + 0x61], 0x4f
mov byte [esp + 0x62], 0x18
mov byte [esp + 0x63], 0x24
mov byte [esp + 0x64], 0x53
mov byte [esp + 0x65], 0x62
mov byte [esp + 0x66], 0
call fcn.00414040
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x4141e0
mov eax, dword [eax + 4]
jmp 0x4141e3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
cmp dword [esp + 0x54], ebx
jb 0x4141ff
mov eax, dword [esp + 0x40]
push eax
call fcn.00419bc5
add esp, 4
push 0xc
lea ecx, [esp + 0x18]
push ecx
push ebp
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x41424b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x41424b
mov edx, dword [esp + 0x18]
add edx, eax
cmp esi, edx
ja 0x41424b
mov ecx, esi
call fcn.00413ea0
test eax, eax
je 0x414260
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0045cd9b
add esp, 0x5c
ret
lea ecx, [esp + 0x58]
lea edi, [esp + 0x20]
call fcn.00414040
cmp dword [eax + 0x18], ebx
jb 0x414277
mov eax, dword [eax + 4]
jmp 0x41427a
add eax, 4
push eax
push ebp
call esi
mov esi, eax
cmp dword [esp + 0x38], ebx
jb 0x414293
mov eax, dword [esp + 0x24]
push eax
call fcn.00419bc5
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
test esi, esi
je 0x4142cd
mov ecx, ebp
call fcn.00413f00
test eax, eax
je 0x4142bb
xor eax, eax
jmp 0x4142d1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4142b7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0045cd9b
add esp, 0x5c
ret