joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030ab
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp word [esi], 0x7b
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], edi
jne 0x1003186
inc esi
inc esi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10030fa
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
cmp word [edi + esi - 2], 0x7d
je 0x1003122
mov dword [ebp - 0x208], 0x57
jmp 0x1003297
inc eax
mov dword [ebp - 0x20c], eax
cmp eax, 0x100
jbe 0x1003147
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100314d
jmp 0x10031f0
mov ebx, dword [ebp - 0x218]
push esi
push dword [ebp - 0x20c]
push ebx
call fcn.01002fb2
push dword [ebp - 0x21c]
xor eax, eax
push ebx
mov word [edi + ebx - 2], ax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x100326d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x100326d
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
push edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x214], edi
call ebx
test eax, eax
jne 0x1003297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
cmp eax, 0x534
je 0x10031d7
cmp eax, 0x7a
jne 0x1003297
push dword [ebp - 0x20c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call edi
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x10031ff
mov dword [ebp - 0x208], 8
jmp 0x1003297
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
push 0
call edi
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x1003224
mov dword [ebp - 0x208], 8
jmp 0x1003282
mov edi, dword [ebp - 0x208]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
push 0
call ebx
test eax, eax
jne 0x1003258
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x1003282
mov eax, dword [ebp - 0x21c]
and dword [ebp - 0x208], 0
mov ebx, dword [ebp - 0x218]
mov dword [eax], edi
test ebx, ebx
je 0x1003282
lea eax, [ebp - 0x204]
cmp ebx, eax
je 0x1003282
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x210], 0
je 0x1003297
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010093d4
leave
ret 8
Function at 0x100522d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x440], 4
mov dword [ebp - 0x434], edi
call fcn.0100721f
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43c]
push eax
push 0x20019
push edi
push 0x1001728
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100545a
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x444]
push eax
push edi
push ebx
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x42c], eax
cmp eax, 2
jne 0x10052c3
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], edi
push esi
cmp dword [ebp - 0x42c], edi
jne 0x1005447
call fcn.010034e7
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10014f4
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10052f3
and dword [ebp - 0x428], 0xff
cmp dword [ebp - 0x428], edi
je 0x100532a
cmp dword [ebp - 0x428], 1
je 0x100532a
cmp dword [ebp - 0x428], 2
jne 0x100531b
push 0x1001520
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x100532a
mov dword [ebp - 0x42c], 0xd
jmp 0x1005447
cmp dword [ebp - 0x430], 0
mov edi, 0x100149c
mov dword [ebp - 0x438], edi
jne 0x1005348
mov dword [ebp - 0x438], 0x1001490
cmp dword [ebp - 0x430], 0
mov esi, 0x200
je 0x1005399
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.01002c4c
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1005459
push esi
lea eax, [ebp - 0x424]
push eax
push 0x200c
call fcn.01002d3f
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1001714
call fcn.01007502
add esp, 0xc
push ebx
push dword [ebp - 0x438]
call fcn.01007502
cmp dword [ebp - 0x430], 0
pop ecx
pop ecx
mov ebx, 0x100170c
je 0x10053bc
push ebx
call fcn.01007502
pop ecx
mov eax, dword [ebp - 0x428]
sub eax, 0
je 0x10053e5
dec eax
je 0x10053d9
dec eax
jne 0x10053ef
mov dword [ebp - 0x434], 0x201c
jmp 0x10053ef
mov dword [ebp - 0x434], 0x2007
jmp 0x10053ef
mov dword [ebp - 0x434], 0x2008
push esi
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x434]
call fcn.01002d3f
lea eax, [ebp - 0x424]
push eax
push edi
call fcn.01007502
cmp dword [ebp - 0x430], 0
pop ecx
pop ecx
je 0x100543c
push ebx
call fcn.01007502
cmp dword [ebp - 0x430], 2
pop ecx
jne 0x100543c
push dword [ebp - 0x428]
push 0x1001704
call fcn.01007502
pop ecx
pop ecx
push 0x10016fc
call fcn.01007502
pop ecx
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x42c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010093d4
leave
ret 4
Function at 0x1005568
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
xor esi, esi
push esi
push 0x1001728
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10055cc
push 0x10014f4
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0xc]
jne 0x10055ad
push 1
push eax
push 3
jmp 0x10055b2
push 4
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x1005a2e
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.01002c4c
xor ebx, ebx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x1005b11
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], ebx
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x1001668]
mov dword [ebp - 0x30], ebx
call sub.ADVAPI32.dll_AuditQueryGlobalSaclW
test al, al
jne 0x1005a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, 2
jne 0x1005b0f
mov dword [ebp - 0x2c], ebx
jmp 0x1005af6
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor eax, eax
cmp dword [ebp - 0x30], ebx
push ebx
push dword [ebp - 0x30]
setne al
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
push ebx
lea eax, [ebp - 0x34]
push eax
push 8
push 1
lea eax, [ebp - 0x48]
push eax
call sub.ADVAPI32.dll_ConvertSecurityDescriptorToStringSecurityDescriptorW
push dword [ebp - 0x30]
mov edi, eax
call esi
cmp edi, ebx
je 0x1005b06
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x100166c]
lea eax, [ebp - 0x24]
push eax
push 0x1001774
call fcn.01007502
add esp, 0x10
push dword [ebp - 0x34]
call esi
add dword [ebp - 0x28], 8
cmp dword [ebp - 0x28], 0x10
jb 0x1005a64
jmp 0x1005b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
pop ebx
call fcn.010093d4
leave
ret
Function at 0x1007c0c
Capabilities:
Compare security identifiers

Disassembly:
push 0x24
mov eax, 0x100a0c1
call fcn.010095f3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x28], 0
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x1007c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007d18
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.01002c80
test eax, eax
je 0x1007c5d
mov esi, eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x1007d18
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x1007c7f
mov eax, dword [esi + 8]
push dword [eax]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1007c7f
mov esi, dword [esi]
cmp esi, dword [ebx + 0x14]
jne 0x1007c66
cmp esi, dword [ebx + 0x14]
jne 0x1007cea
push 0x100c630
push 0x10
call fcn.01009695
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x1007ca0
push 8
pop esi
jmp 0x1007c4d
xor eax, eax
and dword [ebp - 4], 0
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x10]
call fcn.01007aca
or dword [ebp - 4], 0xffffffff
jmp 0x1007cfa
pop eax
jmp 0x1007d18
push dword [ebp - 0x28]
mov esi, dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x10]
test eax, 0xfffffff0
je 0x1007d08
push 0xd
jmp 0x1007ce7
push esi
or eax, 0x10
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.01007aee
call fcn.0100965e
ret 0xc

Function at 0x1007f50
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1007fba
cmp dword [ebp + 0xc], esi
je 0x1007fba
push 2
push 0xc
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x1007fba
push ebx
mov ebx, dword [ebp - 0xc]
cmp ebx, esi
jbe 0x1007fb9
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
dec eax
dec eax
jne 0x1007fb4
lea eax, [ecx + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1007fb4
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec ebx
dec esi
inc esi
cmp esi, ebx
jb 0x1007f83
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x1007fc5
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call sub.ADVAPI32.dll_AuditSetGlobalSaclW
test al, al
jne 0x1007fed
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1007fec
call esi
mov edi, eax
pop esi
mov eax, edi
pop edi
pop ebp
ret 4
Function at 0x1007ff9
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea edi, [ebp - 0x418]
stosd dword es:[edi], eax
mov dword [ebp - 0x410], esi
stosd dword es:[edi], eax
call fcn.0100721f
test ebx, ebx
jne 0x1008051
mov dword [ebp - 0x40c], 0x57
jmp 0x100814b
lea eax, [ebp - 0x408]
push eax
push esi
call sub.ADVAPI32.dll_AuditQueryGlobalSaclW
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x1008073
call edi
cmp eax, 2
jne 0x1008143
cmp dword [ebp - 0x408], 0
je 0x10080be
mov esi, dword [sym.imp.ADVAPI32.dll_GetAclInformation]
push 2
push 0xc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x408]
call esi
test eax, eax
je 0x1008106
cmp dword [ebp - 0x41c], 0
jne 0x10080b5
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x408], 0
jne 0x10080e3
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x201d
call fcn.01002d3f
lea eax, [ebp - 0x404]
push eax
call fcn.01007502
pop ecx
jmp 0x100814b
push ebx
push dword [ebp - 0x408]
call fcn.01007f50
push 2
push 0xc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x408]
call esi
test eax, eax
jne 0x1008112
mov dword [ebp - 0x40c], 0x538
jmp 0x100814b
cmp dword [ebp - 0x41c], 0
jne 0x100812e
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x408], 0
push dword [ebp - 0x408]
push dword [ebp - 0x410]
call sub.ADVAPI32.dll_AuditSetGlobalSaclW
test al, al
jne 0x100814b
call edi
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x408], 0
pop edi
pop esi
pop ebx
je 0x1008163
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
xor ecx, ebp
call fcn.010093d4
leave
ret 8
Function at 0x10084ab
Capabilities:
Check if file exists
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x410], eax
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea edi, [ebp - 0x418]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0100721f
lea eax, [ebp - 0x408]
push eax
push ebx
call sub.ADVAPI32.dll_AuditQueryGlobalSaclW
test al, al
jne 0x100851b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x100851b
call esi
mov dword [ebp - 0x40c], eax
jmp 0x10085df
xor esi, esi
cmp dword [ebp - 0x408], esi
je 0x1008573
push 2
push 0xc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x100854f
mov dword [ebp - 0x40c], 0x538
jmp 0x10085df
cmp dword [ebp - 0x41c], esi
jne 0x1008569
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x408], esi
mov esi, dword [ebp - 0x408]
test esi, esi
jne 0x1008598
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x201d
call fcn.01002d3f
lea eax, [ebp - 0x404]
push eax
call fcn.01007502
pop ecx
jmp 0x10085df
xor edi, edi
add esi, 8
cmp dword [ebp - 0x41c], edi
jbe 0x10085df
movzx eax, byte [esi]
dec eax
dec eax
jne 0x10085d0
cmp dword [ebp - 0x410], eax
je 0x10085c8
lea eax, [esi + 8]
push eax
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10085d0
push esi
push ebx
push edi
call fcn.010082bc
movzx eax, word [esi + 2]
add esi, eax
inc edi
cmp edi, dword [ebp - 0x41c]
jb 0x10085a5
cmp dword [ebp - 0x408], 0
pop edi
pop esi
pop ebx
je 0x10085f7
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
xor ecx, ebp
call fcn.010093d4
leave
ret 8
Function at 0x1009c9b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
and ebx, 0x8000
neg ebx
sbb ebx, ebx
push 4
inc ebx
pop eax
inc ebx
call fcn.01009710
mov dword [ebp - 0x10], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009de7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
and dword [ebp - 8], 0
mov edi, dword [ebp - 0x58]
mov esi, ebx
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
mov dword [ebp - 0x14], edi
cmp ebx, 2
jne 0x1009d5e
and dword [ebp - 0xc], 0
push 0x1001d14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1009d35
push 0x1001cf8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009d5e
push 0x1001ce0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009d5e
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
call eax
cmp eax, 1
jne 0x1009d5e
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x1009d5e
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [edi - 1]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.01009c6d
test eax, eax
jl 0x1009de7
mov eax, dword [ebp - 0xc]
not eax
and dword [ebp - 8], eax
je 0x1009d90
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 8]
call fcn.01009c6d
test eax, eax
jl 0x1009de7
lea eax, [edi + edi]
cmp dword [ebp - 8], eax
jae 0x1009d9b
mov dword [ebp - 8], eax
dec edi
not edi
and edi, dword [ebp - 0x10]
sub edi, dword [ebp - 8]
cmp ebx, 1
jne 0x1009dae
push 0x11
pop eax
jmp 0x1009db1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
cmp edi, eax
jb 0x1009de7
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1009de7
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1009de7
xor eax, eax
inc eax
jmp 0x1009de9
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010093d4
leave
ret
Function at 0x1009ec9
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
cmp byte [edx + 2], 0
mov ecx, 0xdeadbeef
jne 0x1009f07
test eax, eax
je 0x1009f10
mov edx, dword [eax + 0x60]
sub edx, dword [eax + 0x64]
cmp edx, 0x2000
jae 0x1009f10
and dword [0x100c998], 0
jmp 0x1009f24
mov edx, dword [ebp + 8]
cmp edx, ecx
jne 0x1009f1e
test eax, eax
je 0x1009f07
mov edx, dword [eax + 0x64]
mov dword [0x100c998], edx
cmp dword [ebp + 0xc], ecx
jne 0x1009f37
test eax, eax
jne 0x1009f32
or eax, 0xffffffff
jmp 0x1009f3a
mov eax, dword [eax + 0x64]
jmp 0x1009f3a
mov eax, dword [ebp + 0xc]
mov dword [0x100c99c], eax
add eax, 8
cmp eax, 8
jae 0x1009f51
mov dword [0x100c99c], 0xfffffff7
mov eax, dword [ebp + 0x10]
mov dword [0x100c9a0], 0x1009e25
test eax, eax
je 0x1009f67
mov dword [0x100c9a0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100c9a4], 0x1009e00
test eax, eax
je 0x1009f7d
mov dword [0x100c9a4], eax
pop ebp
ret 0x10

Function at 0x408946
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
call fcn.0040896f
xor dword [ebx], edi
inc ebx
sub ecx, 0xaebea908
sub esp, 4
mov dword [esp], ecx
pop ecx
cmp ebx, esi
jne fcn.00408946
add eax, ecx
mov eax, 0xdf642928
ret
Function at 0x16f8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.016f81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x16f807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f806a
add dl, dl
jne 0x16f8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f80dc
xor eax, eax
add dl, dl
jne 0x16f8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f817d
add dl, dl
jne 0x16f80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16f80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x16f8075
mov eax, 1
add dl, dl
jne 0x16f80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f80e1
sub eax, ebx
mov ebx, 1
jne 0x16f8128
mov ecx, 1
add dl, dl
jne 0x16f810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16f813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f8136
cmp eax, 0x7d00
jae 0x16f816d
cmp eax, 0x500
jb 0x16f8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f8075
cmp eax, 0x7f
ja 0x16f8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x16f819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x16f8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40647b
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x480038
mov esi, eax
push edi
call fcn.00404d0d
push ebx
push edi
push esi
call fcn.0040b620
add esp, 0x14
call fcn.00404cf3
push ebp
push ebp
push 0x436038
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f9b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f657

Function at 0x41f9c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f7e6

Function at 0x41fdba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b5d0
mov eax, dword [0x480500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041cfc4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fdfc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ff58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429c70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482160]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420f8a
mov ecx, dword [esi*4 + 0x482160]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ff51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ff51
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ff51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420f8a
add esp, 0x14
test edx, edx
jl 0x41ff51
jg 0x41fec7
test eax, eax
jb 0x41ff51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ff51
jl 0x41fee1
cmp dword [ebp - 0x1008], eax
ja 0x41ff51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41feff
test ebx, ebx
je 0x41ff38
cmp ecx, edi
jae 0x41ff38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ff19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ff25
cmp byte [ecx + 1], 0xa
jne 0x41ff25
inc ecx
jmp 0x41ff25
movzx eax, al
movsx eax, byte [eax + 0x4807c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41feff
cmp edx, ebx
jne 0x41feff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ff56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a7e8
leave
ret