joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40347b
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4d1028]
lea esi, [ebp - 0x218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x208
push 0
push esi
call fcn.00472a40
add esp, 0xc
xor edi, edi
xor ebx, ebx
push 0x103
push esi
push dword [ebx*4 + 0x49045c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4034e4
push 1
push edi
push 0x490464
push esi
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4034ed
test ebx, ebx
mov ebx, 1
je 0x4034ab
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403502
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [0x4d1028]
lea ecx, [ebp - 0x10]
xor ebx, ebx
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, word [0x4904aa]
mov word [ecx + 4], ax
mov eax, dword [0x4904a6]
mov dword [ecx], eax
lea eax, [ebp - 0x14]
mov dword [eax], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x403577
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x403567
mov dword [ebp - 0x18], 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x18], 0
setne bl
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x404900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x4d1028]
mov ebx, dword [ebp + 8]
xor eax, ebp
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4049d3
mov eax, dword [ecx + 0x20]
mov esi, ecx
cmp dword [eax], 0
je 0x404946
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x404946
dec ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x404a20
cmp dword [esi + 0x4c], 0
je 0x4049d7
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
cmp dword [eax], ecx
jne 0x40496e
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4049dc
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x3c]
lea edi, [esi + 0x40]
mov byte [eax - 1], bl
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x31]
push edx
push edi
call dword [eax + 0x1c]
xor ecx, ecx
dec ecx
cmp eax, 2
jae 0x404a01
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x4049c4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0047d31e
xor ecx, ecx
dec ecx
add esp, 0x10
cmp edi, eax
jne 0x404a1e
xor eax, eax
mov byte [esi + 0x3d], 1
lea ecx, [ebp - 0x31]
dec eax
cmp dword [ebp - 0x38], ecx
jmp 0x404a19
xor ebx, ebx
jmp 0x404a20
xor ebx, ebx
dec ebx
jmp 0x404a20
movsx eax, bl
push dword [esi + 0x4c]
push eax
call fcn.0047c84a
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, eax
cmp eax, 0xffffffff
cmovne esi, ebx
xor ecx, ebp
call fcn.0046d691
mov eax, esi
jmp 0x404a2c
cmp eax, 3
jne 0x404a1e
movsx eax, byte [ebp - 0x31]
push dword [esi + 0x4c]
push eax
call fcn.0047c84a
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov ecx, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x404d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [ecx + 0x38], 0
mov ebx, ecx
je 0x404d4f
mov ecx, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00405450
mov edx, dword [ebx + 0x1c]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x404dc8
cmp eax, 1
mov ecx, edi
sbb ecx, 0
jl 0x404dc8
mov ecx, dword [ebx + 0x2c]
mov esi, dword [ecx]
test esi, esi
jle 0x404dc8
mov dword [ebp - 0x10], edi
mov edi, esi
mov ecx, dword [ebp - 0x10]
sar edi, 0x1f
cmp eax, esi
sbb ecx, edi
cmovl edi, dword [ebp - 0x10]
cmovl esi, eax
mov dword [ebp - 0x14], edi
push esi
push edx
mov edi, dword [ebp - 0x1c]
push edi
mov dword [ebp - 0x18], eax
call fcn.00471f40
mov eax, dword [ebp - 0x18]
add esp, 0xc
add edi, esi
mov edx, eax
mov dword [ebp - 0x1c], edi
sub edx, esi
mov ecx, dword [ebp - 0x10]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ebp - 0x10]
sub dword [ecx], esi
mov ecx, dword [ebx + 0x1c]
add dword [ecx], esi
mov esi, dword [ebp - 0x14]
jmp 0x404dcc
mov edx, eax
mov esi, edi
cmp edx, 1
mov ecx, esi
sbb ecx, 0
jl 0x404e2b
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x4c]
test esi, esi
je 0x404e28
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], edx
lea edx, [ebx + 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ecx], edx
jne 0x404e07
mov eax, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [ecx], eax
sub edx, eax
mov ecx, dword [ebx + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [ebx + 0x4c]
push esi
mov esi, dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x1c]
call fcn.0047ca05
mov edx, esi
add esp, 0x10
mov esi, dword [ebp - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x18]
sbb esi, 0
jmp 0x404e2b
mov esi, dword [ebp - 0x14]
sub eax, edx
sbb edi, esi
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x404e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [ecx + 0x38], 0
mov ebx, ecx
je 0x404e5f
mov ecx, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00405520
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [eax]
test edi, edi
je 0x404ede
cmp esi, 1
mov eax, edx
mov dword [ebp - 0x10], ecx
sbb eax, 0
jl 0x404ee8
mov ecx, dword [ebx + 0x30]
mov eax, esi
mov esi, dword [ecx]
test esi, esi
jle 0x404ee2
mov ecx, esi
sar ecx, 0x1f
cmp eax, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov ecx, edx
mov eax, dword [ebp - 0x14]
sbb ecx, eax
cmovl eax, edx
mov dword [ebp - 0x14], eax
cmovl esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
push edi
mov dword [ebp - 0x1c], edx
call fcn.00471f40
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov edi, dword [ebp - 0x18]
add ecx, esi
mov eax, edx
sub edi, esi
sbb eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x30]
sub dword [eax], esi
mov eax, dword [ebx + 0x20]
add dword [eax], esi
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
jmp 0x404eef
mov edi, esi
jmp 0x404eed
mov esi, eax
mov edi, eax
jmp 0x404eea
mov edi, esi
mov ecx, dword [ebp - 0x10]
mov eax, edx
cmp edi, 1
mov dword [ebp - 0x10], eax
sbb eax, 0
jl 0x404f20
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404f20
push eax
push edi
push 1
push ecx
mov ebx, esi
mov esi, edx
call fcn.0047d31e
mov edx, esi
mov esi, ebx
add esp, 0x10
sub edi, eax
mov eax, dword [ebp - 0x10]
sbb eax, 0
jmp 0x404f23
mov eax, dword [ebp - 0x10]
sub esi, edi
sbb edx, eax
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x405252
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x4d1028]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x4052d7
cmp byte [ecx + 0x3d], 0
mov esi, ecx
je 0x4052d7
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
dec edi
push edi
call dword [eax + 0xc]
cmp eax, edi
je 0x4052d1
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x34]
lea edi, [ebp - 0x30]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x4052d5
cmp eax, 1
je 0x4052ae
test eax, eax
jne 0x4052d1
mov byte [esi + 0x3d], 0
mov ebx, dword [ebp - 0x34]
sub ebx, edi
je 0x4052c8
push dword [esi + 0x4c]
push ebx
push 1
push edi
call fcn.0047d31e
add esp, 0x10
cmp ebx, eax
jne 0x4052d1
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x4052d7
xor ebx, ebx
jmp 0x4052d7
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x408ed7
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
inc ecx
cmp ecx, 2
jb 0x408eb3
call fcn.0041d920
push eax
push dword [ebp + 4]
push esi
push dword [esi]
call fcn.0041d980
add esp, 0x10
push dword [esi]
call fcn.0041d930
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x408ed0
mov dword [esi], ebx
call fcn.0041d920
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.0041d950
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40b5a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x40b5ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
pop ebp
ret

Function at 0x40b5d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x4d1028]
mov esi, dword [ebp + 8]
xor eax, ebp
mov ebx, esi
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x14], 7
jbe 0x40b5f0
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b61a
mov bl, 1
test al, 0x10
jne 0x40b6d8
test edi, edi
je 0x40b613
mov dword [edi], 0xfffffff7
xor ebx, ebx
jmp 0x40b6d8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov ecx, esi
push eax
call fcn.00409a90
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x18], eax
jne 0x40b66e
test eax, eax
je 0x40b65f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40b63e
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
jbe 0x40b64a
mov edx, dword [ebp - 0x28]
xor edi, edi
nop dword [eax]
movzx ebx, word [edx + edi*2]
cmp bx, word [ecx + edi*2]
jne 0x40b66e
inc edi
cmp eax, edi
jne 0x40b650
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b6ce
mov dword [eax], 0xfffffffc
jmp 0x40b6ce
mov edi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.0040b5d0
add esp, 8
test al, al
je 0x40b6ce
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x40b6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0xb7
jne 0x40b6bf
cmp dword [esi + 0x14], 7
jbe 0x40b6aa
mov esi, dword [esi]
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, esi
cmp eax, 0xffffffff
je 0x40b6bf
and eax, 0x10
jne 0x40b6d0
test edi, edi
je 0x40b6ce
push ecx
call fcn.0040c530
add esp, 4
mov dword [edi], eax
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.00408fb0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bcc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x104c
call fcn.0046d7d0
mov eax, dword [0x4d1028]
lea edi, [ebp - 0x1010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1010], 0
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7ff
jbe 0x40bd04
xor ebx, ebx
jmp 0x40be09
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], 0
push edi
call fcn.0047f05d
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x40bd52
sub esp, 0xc
mov al, byte [ebp - 0x1040]
lea ecx, [ebp - 0x1028]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.004028e6
jmp 0x40bd77
mov eax, esi
mov dword [ebp - 0x1018], esi
lea ecx, [ebp - 0x1028]
add eax, esi
push eax
push edi
push ecx
call fcn.00471f40
add esp, 0xc
mov word [ebp + esi*2 - 0x1028], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1018]
cmp dword [ebp - 0x1014], 7
jbe 0x40bd91
mov edx, dword [ebp - 0x1028]
jmp 0x40bd97
lea edx, [ebp - 0x1028]
lea edi, [ebp - 0x1058]
mov ecx, edi
push eax
push edx
call fcn.00408f00
lea ebx, [ebp - 0x1040]
mov ecx, edi
push ebx
call fcn.0040aa50
mov ecx, esi
push ebx
call fcn.00409010
mov ecx, ebx
call fcn.00408fb0
mov ecx, edi
call fcn.00408fb0
mov ecx, dword [ebp - 0x1014]
cmp ecx, 8
jb 0x40be07
mov eax, dword [ebp - 0x1028]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x40bdfd
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x40be20
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0046d651
add esp, 8
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x104c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004798ba
int3
Function at 0x411120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x4d1028]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
je 0x41115d
mov edi, eax
cmp edi, dword [eax]
je 0x4111ad
cmp byte [edi + 0xd], 0
mov dword [ebp - 0x1c], ecx
je 0x4111c2
mov ebx, dword [edi + 8]
mov al, 1
jmp 0x4111f7
mov dword [ebp - 0x1c], ecx
mov cl, byte [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
mov esi, dword [edx + 0x10]
mov edi, edx
xor edx, edx
cmp esi, ebx
setge dl
xor eax, eax
cmp ebx, esi
setl al
test cl, cl
cmovne eax, edx
mov edx, eax
xor dl, 1
movzx edx, dl
mov edx, dword [edi + edx*8]
cmp byte [edx + 0xd], 0
je 0x411170
test al, al
je 0x4111f0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
cmp edi, dword [eax]
jne 0x41114a
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
push edi
push 1
push eax
call fcn.00410f00
mov eax, dword [ebp - 0x14]
jmp 0x411219
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x4111e0
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
je 0x411286
mov al, 1
mov ebx, edx
jmp 0x4111f7
mov ebx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x4111e0
jmp 0x411156
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx]
jge 0x411221
mov ecx, dword [ebp - 0x1c]
movzx eax, al
lea ebx, [ebp - 0x18]
push dword [ebp + 0x14]
push edx
push edi
push eax
push ebx
call fcn.00410f00
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov byte [esi + 4], 1
jmp 0x411270
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x28]
cmp eax, 0x10
jb 0x41125f
mov ecx, dword [ecx + 0x14]
mov edi, esi
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411250
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4112b0
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.0046d651
add esp, 8
mov ecx, dword [ebp + 0x14]
mov esi, edi
push 0x2c
push ecx
call fcn.0046d651
add esp, 8
mov dword [esi], ebx
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
cmp edi, dword [edx]
je 0x411294
mov ebx, edi
jmp 0x41129f
cmp ebx, dword [edx]
jne 0x41129f
mov ebx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x411290
cmp byte [ebx + 0xd], 0
mov al, 1
jne 0x4111f7
jmp 0x4111d7
call fcn.004798ba
int3
Function at 0x411360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x234
mov ecx, dword [0x4d1028]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
mov dword [ebp - 0x23c], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edi, [ebp - 0x240]
mov dword [ebp - 0x240], 0
mov ecx, edi
push eax
call fcn.00408e70
mov eax, dword [ebp - 0x240]
xor esi, esi
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4113f6
lea edi, [ebp - 0x23c]
push edi
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4113f0
nop
cmp dword [ebp - 0x234], ebx
je 0x4113ea
push edi
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4113d0
jmp 0x4113f0
mov esi, dword [ebp - 0x224]
lea edi, [ebp - 0x240]
mov eax, dword [ebp - 0x240]
inc eax
cmp eax, 2
jb 0x411432
call fcn.0041d920
push eax
push dword [ebp + 4]
push edi
push dword [ebp - 0x240]
call fcn.0041d980
add esp, 0x10
push dword [ebp - 0x240]
call fcn.0041d930
add esp, 4
mov dword [ebp - 0x240], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, esi
add esp, 0x234
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411510
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x103c
call fcn.0046d7d0
mov eax, dword [0x4d1028]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0041b4e0
cmp dword [eax], 2
mov ecx, 0x1000
jg 0x41155a
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
inc eax
mov ecx, 0x400
cmp eax, 1
ja 0x411566
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [edi + 1]
cmp eax, 2
jae 0x411586
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], 0
jmp 0x4116cf
lea esi, [ebp - 0x1012]
push 0x1002
push 0
push esi
call fcn.00472a40
add esp, 0xc
push 0x800
push esi
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x1012], 0
je 0x4115d0
xor eax, eax
nop dword [eax + eax]
cmp word [ebp + eax*2 - 0x1010], 0
lea eax, [eax + 1]
jne 0x4115c0
jmp 0x4115d2
xor eax, eax
lea ebx, [ebp - 0x102c]
mov ecx, ebx
push eax
push esi
call fcn.00408f00
lea edi, [ebp - 0x1044]
mov ecx, edi
call fcn.00408ee0
push edi
push ebx
call fcn.0040b6f0
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1030], 7
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x1034]
jbe 0x41161e
mov edi, dword [ebp - 0x1044]
cmp eax, 7
ja 0x41163f
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
mov ebx, dword [ebp + 8]
mov esi, 7
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
jmp 0x4116b3
mov dword [ebp - 0x1048], eax
or eax, 7
mov esi, 0x7ffffffe
cmp eax, 0x7ffffffe
cmovb esi, eax
lea eax, [esi + esi]
cmp esi, 0x7ff
jb 0x411687
add eax, 0x25
cmp esi, 0x7fffffed
mov ecx, 0xffffffff
cmovbe ecx, eax
push ecx
call fcn.0046d61c
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x411693
add eax, 2
push eax
call fcn.0046d61c
add esp, 4
mov ecx, dword [ebp - 0x1048]
mov ebx, dword [ebp + 8]
lea ecx, [ecx + ecx + 2]
mov dword [ebx], eax
push ecx
push edi
push eax
call fcn.00471f40
mov eax, dword [ebp - 0x1048]
add esp, 0xc
lea ecx, [ebp - 0x1044]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
call fcn.00408fb0
lea ecx, [ebp - 0x102c]
call fcn.00408fb0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
add esp, 0x103c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x4d1028]
mov edi, edx
xor eax, ebp
test ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ecx
je 0x413584
call fcn.0041b9c0
xor ecx, ecx
test eax, eax
setg cl
shl ecx, 0x10
mov esi, ecx
jmp 0x413586
xor esi, esi
push 0xc
call fcn.0046d61c
add esp, 4
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov ebx, eax
test edi, edi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
lea eax, [esp + 8]
push eax
call fcn.00413ac0
add esp, 4
push 0
push esi
push ebx
push 0x4136f0
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
mov esi, eax
call fcn.00413820
test esi, esi
je 0x4135dc
test edi, edi
je 0x4135e9
mov dword [edi], esi
jmp 0x4135f0
push ebx
call fcn.0046d64c
add esp, 4
xor ebx, ebx
jmp 0x4135f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.0046d691
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413c80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x4d1028]
mov ebx, ecx
lea esi, [ecx + 4]
lea edi, [ebp - 0x14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x490d70
mov dword [ecx + 4], 0x490d80
push edi
call fcn.0042f300
add esp, 4
mov ecx, edi
push ebx
call fcn.00430490
call fcn.00430670
mov ecx, eax
push esi
call fcn.00430af0
mov ecx, dword [ebx + 8]
add ecx, 4
mov dword [ebp - 0x28], ecx
call fcn.00431790
mov ecx, ebx
call fcn.00413e20
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ebx
push eax
call fcn.0042f300
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [esi + 0x1ac]
movzx eax, cl
movzx edx, ch
mov dword [ebp - 0x24], edi
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor edx, eax
imul eax, edx, 0x1000193
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor edx, eax
imul eax, edx, 0x1000193
mov edx, ecx
shr edx, 0x18
xor edx, eax
mov eax, dword [esi + 0x1a4]
imul edx, edx, 0x1000193
and edx, dword [esi + 0x1b8]
add esi, 0x1a0
mov dword [ebp - 0x1c], esi
mov esi, dword [edi + edx*8]
lea edx, [edx + edx + 1]
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
mov edi, esi
nop word cs:[eax + eax]
nop dword [eax]
cmp esi, eax
mov edx, eax
je 0x413d6e
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx]
cmp edx, edi
je 0x413d7b
cmp dword [edi + 8], ecx
je 0x413d82
mov edi, dword [edi]
jmp 0x413d60
mov ecx, dword [ebp - 0x1c]
mov esi, eax
jmp 0x413dca
mov edx, edi
mov dword [ebp - 0x30], esi
nop word [eax + eax]
cmp esi, eax
mov ebx, eax
je 0x413da8
mov esi, ecx
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebx + ecx*4]
mov ecx, esi
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebx]
cmp ebx, edx
je 0x413db5
cmp ecx, dword [edx + 8]
jne 0x413db5
mov edx, dword [edx]
jmp 0x413d90
mov ecx, dword [ebp - 0x1c]
cmp edi, edx
mov esi, eax
je 0x413dca
mov eax, edi
mov eax, dword [eax]
cmp edx, eax
jne 0x413dc0
mov eax, edx
mov esi, edi
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.00418830
mov ecx, dword [ebp - 0x28]
call fcn.00431860
mov esi, dword [ebp - 0x2c]
mov ecx, 0x188
add ecx, dword [esi + 8]
push 0
call fcn.00431d90
mov esi, dword [esi + 0xc]
test esi, esi
je 0x413e06
mov ecx, esi
call fcn.00432100
push esi
call fcn.0046d64c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d691
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret