joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dc5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10025f48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000dca1
cmp word [ebx], dx
jne 0x1000dca1
or byte [eax + edi + 0x28], 4
jmp 0x1000dca6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000de09
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000dde9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000dce7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000dd1d
cmp eax, edx
jae 0x1000dd2b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000dcc2
jmp 0x1000de09
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000dde4
cmp dword [ebp - 0x18], 0
je 0x1000dde4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10025f48]
test byte [eax + edi + 0x28], 0x48
je 0x1000ddba
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000dd7e
mov word [esi], cx
jmp 0x1000ddb5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10025f48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10025f48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10025f48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000de09
pop eax
cmp word [ebp - 4], ax
jne 0x1000ddca
cmp esi, ebx
jne 0x1000ddca
mov word [esi], ax
jmp 0x1000de06
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000d3bb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000de09
push 0xd
pop eax
jmp 0x1000ddc5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10025f48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000de03
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000de09
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10010716
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ecd8
push 0x1001ecd0
push str.FlsAlloc
push 0x1f
call fcn.100105d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001074a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b164]
call esi
jmp 0x10010750
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010794
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ece8
push 0x1001ece0
push str.FlsGetValue
push 0x21
call fcn.100105d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100107cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100107d3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ecf0
push 0x1001ece8
push str.FlsSetValue
push 0x22
call fcn.100105d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001080d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012226
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100122c3
push ebx
push esi
call fcn.100121ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10010a86
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012270
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100122c2
push edi
push eax
call fcn.1000f1f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012290
call fcn.1000ec62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100122c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10010a86
add esp, 0x20
test eax, eax
jne 0x100122af
push edi
call fcn.1000ec62
jmp 0x100122b7
push ebx
call fcn.1000ec62
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10017801
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001777d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10017970
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10017970
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10017925
jg 0x1001785d
test eax, eax
je 0x1001791b
push 1
push 0x1000
call fcn.100110ef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10017880
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10017912
push 0x8000
push ebx
call fcn.100176ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100178a9
jg 0x100178a4
cmp ecx, 0x1000
jb 0x100178a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014c1f
add esp, 0x10
cmp eax, 0xffffffff
je 0x100178ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100178a4
jl 0x100178d5
test ecx, ecx
jne 0x10017896
push dword [ebp - 0xc]
push ebx
call fcn.100176ae
push esi
call fcn.1000ec62
add esp, 0xc
xor ebx, ebx
jmp 0x1001797e
cmp byte [edi + 0x24], 0
je 0x10017905
cmp dword [edi + 0x20], 5
jne 0x10017905
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10017910
mov ebx, dword [edi + 0x18]
jmp 0x10017912
xor ebx, ebx
push esi
call fcn.1000ec62
pop ecx
jmp 0x1001797e
test ecx, ecx
jg 0x100178e7
jl 0x10017925
test eax, eax
jae 0x100178e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000d3bb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10017945
cmp byte [edi + 0x1c], 0
je 0x100178e7
jmp 0x10017976
push ebx
call fcn.10012f51
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100178e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001797e
cmp byte [edi + 0x1c], 0
je 0x1001797b
mov ebx, dword [edi + 0x18]
jmp 0x1001797e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000d3bb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4269d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426a18
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a18
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426a18
cmp dword [ecx + 0x74], 0xe
jbe 0x426a18
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x425061
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x425070
pop dword [ebp - 0x14]
mov eax, 0x425070
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4fad7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x53826055
sub ecx, 0x53821a3e
xor esi, esi
add esi, eax
mov edx, 0xe31fc9d3
add edx, 0x1d28c42d
add edx, dword [ebp - 0x14]
mov edi, 0x97279959
xor dword [ebp - 0xc], eax
mov ebx, dword [edx]
sub dword [ebp - 0xc], esi
xor ebx, edi
add dword [ebp - 0xc], ecx
mov dword [esi], ebx
add dword [ebp - 0x10], 0xd43e9d2d
add esi, 0x88c43d6
add esi, 0xf773bc2e
add edx, 0x6afd4d94
add edx, 0x9502b270
loop 0x4250c1
add eax, 0x10b2f
xor ebx, ebx
add ebx, eax
add eax, 0x6eaa58e2
sub eax, 0x6eaa58dd
mov ecx, 0x62467308
add ecx, 0x9df98cf8
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x403f90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x5fdfec]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4040d8
mov esi, dword [ebp + 8]
test esi, esi
je 0x4040d8
test edi, edi
je 0x4040d8
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00569720
push 0x80
lea eax, [esp + 0x90]
mov byte [esp + 0x80], 0
xorps xmm0, xmm0
mov dword [esp + 0x89], 0
push 0
push eax
movq qword [esp + 0x89], xmm0
mov word [esp + 0x95], 0
mov byte [esp + 0x97], 0
call fcn.00569720
push dword [esp + 0x2c]
mov edx, ebx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x67452301
mov dword [esp + 0x40], 0xefcdab89
mov dword [esp + 0x44], 0x98badcfe
mov dword [esp + 0x48], 0x10325476
call fcn.004021c0
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x34]
call fcn.00402290
push edi
push dword [ebp + 0xc]
lea edx, [esp + 0x34]
push esi
lea ecx, [esp + 0xa8]
call fcn.00402d70
add esp, 0x28
test eax, eax
jne 0x4040d8
cmp dword [esp + 0x10], 0x10
jne 0x4040d8
lea ecx, [esp + 0x70]
lea edx, [esp + 0x80]
lea esi, [eax + 0xc]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4040d8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4040b0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00551e13
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x104]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551e13
mov esp, ebp
pop ebp
ret

Function at 0x4042e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59251a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5fdfec]
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 - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00553177
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4043a0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0056855a
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5f9704
push eax
call fcn.00568d5c
push edi
push esi
call fcn.005534d5
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.00551e13
mov esp, ebp
pop ebp
ret 4
Function at 0x407e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5928e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fdfec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x407fe9
cmp byte [ebx + 0x3d], 0
je 0x407fe9
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x407ea9
xor al, al
jmp 0x407feb
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00407710
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407f1d
sub eax, 1
je 0x407f21
sub eax, 2
je 0x407fdb
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00405ae0
mov al, bl
jmp 0x407feb
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x407f56
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0056f548
add esp, 0x10
cmp esi, eax
jne 0x407f0c
mov ecx, dword [ebp - 0x14]
cmp byte [ebx + 0x3d], 0
je 0x407fdb
test esi, esi
jne 0x407ed1
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, edx
cmp eax, 8
jbe 0x407fd1
lea esi, [edx + 8]
cmp esi, 0xfffffffe
ja 0x407fd1
cmp ecx, esi
jae 0x407fb8
push edx
push esi
lea ecx, [ebp - 0x28]
call fcn.00408d10
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x407ed1
push 0
push 8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.004087c0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x407ece
test esi, esi
jne 0x407f92
cmp ecx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x407ece
push str.string_too_long
call fcn.0055310a
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00405ae0
mov al, bl
jmp 0x407feb
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e13
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592c08
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5fdfec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp + 8]
push eax
call fcn.0040d450
test al, al
je 0x40d431
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor edi, edi
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x690074
mov dword [ebp - 0x2c], 0x730070
mov dword [ebp - 0x28], 0x63005f
mov dword [ebp - 0x24], 0x6e006f
mov dword [ebp - 0x20], 0x690066
mov dword [ebp - 0x1c], 0x2e0067
mov dword [ebp - 0x18], 0x6d0078
mov dword [ebp - 0x14], 0x6c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x60], 7
lea edx, [eax + 2]
mov dword [ebp - 0x64], edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d370
sub eax, edx
lea ecx, [ebp - 0x74]
sar eax, 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004074e0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebx + 0x14]
call fcn.004053d0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebx + 0x14]
jne 0x40d3b3
xor bl, bl
jmp 0x40d3c4
add eax, 0x28
lea ecx, [ebp - 0x40]
push eax
call fcn.004058d0
mov edi, dword [ebp - 0x3c]
mov bl, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x40d3dd
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408450
test bl, bl
je 0x40d427
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
sub edi, eax
mov dword [ebp - 0x44], 0xf
push edi
push eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004077e0
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040eef0
test al, al
lea ecx, [ebp - 0x58]
setne bl
call fcn.00405ae0
lea ecx, [ebp - 0x40]
call fcn.00407330
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e13
mov esp, ebp
pop ebp
ret 4

Function at 0x40da80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x40daa0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x411440
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x5fdfec]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4114db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x208
mov dword [esp + 0x10], eax
lea eax, [esp + 0x66c]
push 0
push eax
call fcn.00569720
add esp, 0xc
lea eax, [esp + 0x668]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4114db
push 0x228
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x22c
push 0
push eax
call fcn.00569720
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4114f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.00551e13
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
nop word [eax + eax]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
je 0x411591
test eax, eax
je 0x411591
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41158b
push 0x424
lea eax, [esp + 0x248]
mov dword [esp + 0x244], 0x428
push 0
push eax
call fcn.00569720
add esp, 0xc
lea eax, [esp + 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x41157c
lea eax, [esp + 0x668]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.0056f6bd
add esp, 8
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x4115a5
jmp 0x411591
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x411500
push edi
call esi
mov ecx, dword [esp + 0x874]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551e13
mov esp, ebp
pop ebp
ret