joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x43af15
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x43af2d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x43af5c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x43af9e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x43b072
sub edx, 0x10000
js 0x43b072
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x43af84
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x43af84
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x43aff5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x43aff2
add edx, 8
jne 0x43afd9
jmp 0x43b063
add edx, 4
test eax, 0xffff
jne 0x43b002
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x43b063
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x43b036
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x43af84
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x43b072
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x43af84
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x43b083
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b10f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c7c0
push 0x40b296
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
sub ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x440fac], 0xffffffff
or dword [0x440fb0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x440fa0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x440f9c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x440fa8], eax
call fcn.0040b295
cmp dword [0x440ec0], ebx
jne 0x40b192
push 0x40b292
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040b280
push 0x40e014
push 0x40e010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x440f98]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x440f94]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40e00c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40b225
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40b1f9
cmp al, 0x22
jne 0x40b1eb
cmp byte [esi], 0x22
jne 0x40b202
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40b20c
cmp al, 0x20
jbe 0x40b1fe
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40b230
movzx eax, word [ebp - 0x2c]
jmp 0x40b233
cmp byte [esi], 0x20
jbe 0x40b202
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40b225
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4123a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412219
Function at 0x10015ba
Capabilities:
Terminate process

Disassembly:
push dword [0x1005cb4]
push 0x2710
push 1
call fcn.01002a8e
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001707
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x34]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x100177b
push 2
mov edi, 0x1001184
mov esi, ebx
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100177b
lea eax, [ebp + 8]
push eax
push ebx
call fcn.010013f3
cmp dword [ebp + 8], 1
mov dword [ebp - 4], eax
je 0x1001779
push ebx
push dword [0x1005cb4]
push 0x2711
push 2
call fcn.01002a8e
add esp, 0x10
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x10017bf
lea eax, [ebp + 8]
push eax
push 2
call fcn.01003c04
mov edi, eax
test edi, edi
jne 0x1001799
mov eax, dword [ebp + 8]
jmp 0x100187c
push dword [ebp + 0xc]
call fcn.01001379
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10017b9
push dword [ebp + 0xc]
push dword [0x1005cb4]
push 0x2712
jmp 0x1001767
push edi
call fcn.01002c30
lea eax, [ebp + 8]
push eax
push 4
call fcn.01003c04
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1001791
mov esi, dword [edi]
jmp 0x1001859
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x10017e6
cmp eax, dword [esi + 8]
jne 0x1001857
cmp dword [ebp - 4], ebx
je 0x10017fc
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01002a55
test eax, eax
je 0x1001857
push 0xc8
call sub.snmpapi.dll_SnmpUtilMemAlloc
cmp eax, ebx
je 0x1001883
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xf
push dword [esi + 8]
lea edx, [esi + 0x18]
push 4
call fcn.01001305
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xa3
mov byte [ebp - 0x2c], 2
mov dword [ebp - 0x28], 2
call dword [0x1005cd0]
push dword [ebp - 0x30]
call sub.snmpapi.dll_SnmpUtilMemFree
cmp dword [ebp - 8], ebx
jne 0x100189d
mov dword [ebp - 0x10], 1
mov esi, dword [esi]
cmp esi, edi
jne 0x10017d9
push edi
call fcn.01002c30
cmp dword [ebp - 0x10], ebx
jne 0x100187a
push 0x271c
push 2
call fcn.01002a8e
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [0x1005cb4]
push 0x2714
push 2
call fcn.01002a8e
add esp, 0xc
jmp 0x1001771
push dword [ebp - 8]
call fcn.01002c5e
jmp 0x100187c
Function at 0x1001dcf
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x45], 0
test edi, edi
jne 0x1001e06
cmp byte [ebp + 0x10], 0
je 0x1001e06
and dword [ebp - 0x54], edi
and dword [ebp - 0x50], edi
jmp 0x1001e40
mov dword [ebp - 0x54], esi
test esi, esi
je 0x1001e3e
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.010013f3
cmp dword [ebp - 0x4c], 1
mov dword [ebp - 0x50], eax
je 0x1001e3e
push esi
push dword [0x1005cb4]
push 0x2712
push 2
call fcn.01002a8e
add esp, 0x10
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov esi, edi
lea eax, [ebp - 0x4c]
push eax
push 2
call fcn.01003c04
mov edi, eax
test edi, edi
jne 0x1001e59
mov eax, dword [ebp - 0x4c]
jmp 0x1001f8c
test esi, esi
je 0x1001e6a
push esi
call fcn.01001379
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001e20
lea eax, [ebp - 0x4c]
push eax
push 4
call fcn.01003c04
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1001e51
mov esi, dword [eax]
jmp 0x1001f62
cmp byte [ebp + 0x14], 0
je 0x1001eb2
cmp dword [esi + 0x1c], 2
je 0x1001f5d
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [esi + 8]
call fcn.010013bf
test eax, eax
jne 0x1001f5d
cmp byte [ebp - 0x5c], 0x7f
je 0x1001f5d
cmp dword [ebp - 0x54], 0
je 0x1001ecd
lea eax, [ebp - 0x50]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.01002a55
test eax, eax
je 0x1001f5d
cmp byte [ebp + 0x10], 0
je 0x1001edc
cmp ebx, dword [esi + 8]
jne 0x1001f5d
mov eax, dword [esi + 8]
cmp dword [ebp - 0x58], eax
je 0x1001f53
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x58], ecx
or ebx, 0xffffffff
jmp 0x1001ef7
cmp ecx, dword [eax + 0xc]
je 0x1001efd
mov eax, dword [eax]
cmp eax, edi
jne 0x1001ef0
jmp 0x1001f05
mov ebx, dword [eax + 0xc]
cmp ebx, 0xffffffff
jne 0x1001f09
xor eax, eax
jmp 0x1001f0c
mov eax, dword [eax + 8]
push ebx
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
push ecx
movzx eax, al
push eax
push 0x10011a0
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.010016a8
add esp, 0x20
test eax, eax
jl 0x1001f53
lea eax, [ebp - 0x44]
push eax
push 0x2713
push 1
call fcn.01002a8e
add esp, 0xc
push esi
mov byte [ebp - 0x45], 1
call fcn.01001cd8
mov esi, dword [esi]
mov eax, dword [ebp - 0x60]
cmp esi, eax
jne 0x1001e83
push eax
call fcn.01002c30
push edi
call fcn.01002c30
cmp byte [ebp - 0x45], 0
jne 0x1001f8a
push 0x2722
push 1
call fcn.01002a8e
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010024ef
leave
ret 0x10
Function at 0x1002971
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100299d
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100299a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100299d
or eax, 0xffffffff
pop ebp
ret 4

Function at 0x10029a6
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1002a17
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1002a05
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
je 0x1002a17
mov al, 1
jmp 0x1002a19
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010024ef
leave
ret 4

Function at 0x1003586
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.msvcrt.dll_time]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x118]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10035cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100369a
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035d5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, edx
cmp dword [0x1005cac], 0
push edi
lea edi, [ebp + eax - 0x118]
je 0x100362c
push 0x1001214
lea eax, [ebp - 4]
sub eax, edi
push eax
push edi
call fcn.0100351e
test eax, eax
jl 0x1003641
lea eax, [ebp - 0x118]
push eax
call ebx
test eax, eax
je 0x100362c
push 0x1001204
push eax
call esi
mov dword [0x1005cd4], eax
push 0x10011f4
lea eax, [ebp - 4]
sub eax, edi
push eax
push edi
call fcn.0100351e
test eax, eax
jge 0x1003645
push 8
jmp 0x1003678
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1003676
push 0x10011e0
push edi
call esi
mov dword [0x1005ccc], eax
test eax, eax
je 0x1003676
push 0x10011cc
push edi
call esi
mov dword [0x1005cd0], eax
test eax, eax
jne 0x100367b
push 2
pop eax
jmp 0x1003697
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
call dword [0x1005ccc]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010024ef
leave
ret
Function at 0x405a0b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd6
test bl, 8
mov dword [ebp - 8], eax
je 0x405a4a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405bc7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a64
test eax, eax
je 0x405b75
test bl, 2
je 0x405b75
mov esi, 0x4256f0
push edi
push esi
call fcn.004062f9
cmp dword [ebp + 8], 0
je 0x405a83
push 0x40a54c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a89
push edi
call fcn.00405c1a
cmp word [edi], 0
jne 0x405a99
cmp word [0x4256f0], 0x5c
jne 0x405aa4
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6a
cmp word [ebp - 0x22c], 0x2e
jne 0x405aee
cmp word [ebp - 0x22a], 0
je 0x405b4d
cmp word [ebp - 0x22a], 0x2e
jne 0x405aee
cmp word [ebp - 0x228], 0
je 0x405b4d
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004062f9
test byte [ebp - 0x258], 0x10
je 0x405b19
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b4d
push dword [ebp + 0xc]
push edi
call fcn.00405a0b
jmp 0x405b4d
push dword [ebp - 4]
push edi
call fcn.004059c3
test eax, eax
jne 0x405b45
cmp dword [ebp - 4], eax
je 0x405b3d
push edi
push 0xfffffffffffffff1
call fcn.00405361
push 0
push edi
call fcn.004060bf
jmp 0x405b4d
inc dword [0x42a2a8]
jmp 0x405b4d
push edi
push 0xfffffffffffffff2
call fcn.00405361
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ac6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b75
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bc7
cmp dword [ebp - 8], esi
jne 0x405b89
inc dword [0x42a2a8]
jmp 0x405bc7
push edi
call fcn.0040663c
test eax, eax
je 0x405bc7
push edi
call fcn.00405bce
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059c3
test eax, eax
jne 0x405bbf
cmp dword [ebp - 4], esi
je 0x405b81
push edi
push 0xfffffffffffffff1
call fcn.00405361
push esi
push edi
call fcn.004060bf
jmp 0x405bc7
push edi
push 0xffffffffffffffe5
call fcn.00405361
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x466600
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x466628
jl 0x401115
mov dword [0x465a00], 0x63
mov dword [0x468bcc], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x465a00], eax
mov dword [eax*4 + 0x468a40], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x465a00]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x468640], eax
ror eax, 8
mov dword [ecx + 0x468240], eax
ror eax, 8
mov dword [ecx + 0x467e40], eax
ror eax, 8
mov dword [ecx + 0x467a40], eax
mov al, byte [ecx + 0x468a40]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x467640], eax
ror eax, 8
mov dword [ecx + 0x467240], eax
ror eax, 8
mov dword [ecx + 0x466200], eax
ror eax, 8
mov dword [ecx + 0x465e00], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e2a
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ad08
push 0x419130
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42d520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x405f7b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x405f61
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x405f7b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00412e2a
mov esp, ebp
pop ebp
ret

Function at 0x405fa0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ae68
push 0x419130
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x42d520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x120], al
push 0x103
push eax
lea eax, [ebp - 0x11f]
push eax
call fcn.00415120
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40607d
mov edx, 6
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x120]
or eax, 0xffffffff
mov dword [ebp - 0x124], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x130], edx
test esi, esi
je 0x40605c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x429608]
inc ecx
jmp 0x406031
not eax
xor ecx, ecx
cmp eax, 0x39b5d60d
sete cl
mov esi, ecx
jmp 0x406077
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00412e2a
mov esp, ebp
pop ebp
ret
Function at 0x407020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4638a0
call fcn.00411cb7
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4070d4
test esi, esi
jne 0x4070d4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4070b8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4070b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4070b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x4070a1
cmp esi, eax
jae 0x4070a5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407093
cmp esi, eax
jb 0x4070a9
xor eax, eax
jmp 0x4070b2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x4070dd
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4638a0
call fcn.00411cb7
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x407045
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4071e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4071f8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40722a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407226
cmp esi, eax
jae 0x40722a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407218
cmp esi, eax
jb 0x407230
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret