joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1cf
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov word [ebp - 0x80], si
call fcn.00437c90
add esp, 0xc
cmp edi, esi
je 0x40e26d
push 1
push 0x23
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x40e240
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40e26d
push str.All_UsersApplication_Data
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043a74b
add esp, 0xc
push str.KingsoftKISkich7
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043a74b
lea eax, [ebp - 0x80]
push eax
call fcn.00437547
add esp, 0x10
cmp eax, esi
jae 0x40e26d
lea eax, [ebp - 0x80]
push eax
push esi
push edi
call fcn.0043a74b
add esp, 0xc
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.00437538
add ebp, 0x18c
leave
ret

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

Disassembly:
push 4
mov eax, 0x469a0e
call fcn.0043eaab
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401673
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4127bb
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, esi
call fcn.0043eb83
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4127a5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4127a5
lea ecx, [ebp - 0x10]
call fcn.00412732
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4127f2
xor esi, esi
jmp 0x4127a8
push eax
call fcn.0041277b
test eax, eax
pop ecx
je 0x4127ee
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4127a5
call edi
cmp eax, ebx
jne 0x4127ee
jmp 0x4127a5
Function at 0x41339a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x413432
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x413428
cmp edi, 0x200000
ja 0x413428
lea eax, [edi + 2]
push esi
push eax
call fcn.00436e9c
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413427
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x413427
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc

Function at 0x415d73
Capabilities:
Get disk information

Disassembly:
push 0x2f8
mov eax, 0x4698a3
call fcn.0043eb14
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xd2
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0xe6]
push ebx
push eax
mov word [ebp - 0xe8], bx
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x415dc3
xor eax, eax
jmp 0x415ea3
cdq
and edx, 3
add eax, edx
mov esi, eax
push 0x208
lea eax, [ebp - 0x2f6]
push ebx
push eax
sar esi, 2
mov word [ebp - 0x2f8], bx
call fcn.00437c90
mov word [ebp - 0xf0], bx
mov ebx, dword [ebp - 0x2fc]
add ebx, 4
add esp, 0xc
mov eax, ebx
lea edi, [ebp - 0xe8]
call fcn.00417c1f
test esi, esi
jle 0x415ea0
and word [edi + 4], 0
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x415e96
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00401673
and dword [ebp - 4], 0
lea eax, [ebp - 0x300]
push eax
mov eax, ebx
call fcn.00404539
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.004023f7
push edi
lea eax, [ebp - 0x2fc]
push eax
call fcn.00401673
lea eax, [ebp - 0x2fc]
push eax
mov eax, ebx
mov dword [ebp - 4], 1
call fcn.00404539
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2fc]
add eax, 0xfffffff0
call fcn.004023f7
add edi, 8
dec esi
jne 0x415e0f
xor eax, eax
inc eax
call fcn.0043eb97
ret 4
Function at 0x415ee4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x415f65
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x415f65
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x415f60
cmp dword [esi + 4], ebx
je 0x415f60
cmp dword [esi + 8], ebx
je 0x415f60
cmp dword [esi + 0xc], ebx
je 0x415f60
cmp eax, ebx
je 0x415f60
xor eax, eax
inc eax
jmp 0x415f62
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret

Function at 0x416499
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x47a750
call fcn.0043e3e4
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x41651e
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x41651e
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x41651e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00416535
mov eax, dword [ebp - 0x20]
call fcn.0043e429
ret
Function at 0x416547
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x468b2b
call fcn.0043eaab
xor esi, esi
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp], si
call fcn.00437c90
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004073cc
push 0x472238
push eax
mov dword [ebp - 4], esi
call fcn.00402d3a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.004023f7
test bl, bl
je 0x41671e
mov ebx, str.___
push ebx
call fcn.00437547
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x18], eax
call fcn.00437547
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004073cc
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00402d3a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004023f7
test bl, bl
je 0x416641
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040737c
mov dword [ebp - 4], 2
call fcn.004018d4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4166ed
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004073cc
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00402d3a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004023f7
test bl, bl
je 0x4166f5
push 0x104
lea eax, [ebp]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040737c
mov esi, eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00401673
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00404433
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.004018d4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004023f7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x416708
mov esi, edi
call fcn.00401735
jmp 0x416725
cmp ecx, 1
jge 0x416717
push 0x80070057
call fcn.004023dc
cmp word [eax + 2], 0x3a
jne 0x4166ff
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00437538
add ebp, 0x20c
leave
ret
Function at 0x417147
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a3ce
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x480244]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x417184
mov eax, 0x80070057
jmp 0x41721f
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x44]
push eax
mov dword [esp + 0x1c], eax
call edi
mov byte [esp + 0x1c], 1
lea ecx, [ebp + 0xc]
lea eax, [esi + 0x5c]
push ecx
mov dword [esp + 0x3c], ebx
call fcn.00418030
test eax, eax
jne 0x4171cf
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x5c]
mov byte [esp + 0x18], bl
push eax
lea ebx, [esp + 0x28]
call fcn.00417f26
xor ebx, ebx
lea eax, [esi + 4]
push eax
mov dword [esp + 0x14], eax
call edi
cmp dword [esi + 0x1c], ebx
jne 0x41720b
push ebx
push ebx
push esi
push 0x4172c9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x41720b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x417209
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
push dword [esp + 0x18]
call esi
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41c546
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x41c5a9
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x41c657
mov eax, dword [ebp - 0x98]
dec eax
je 0x41c643
dec eax
jne 0x41c657
cmp dword [ebp - 0xa4], 6
jne 0x41c5f4
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x41c5dc
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
add ecx, 8
jmp 0x41c5f0
cmp dword [ebp - 0xa0], edi
jne 0x41c630
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x41c657
cmp dword [ebp - 0xa4], 5
jne 0x41c623
cmp dword [ebp - 0xa0], 2
jne 0x41c60a
push 5
jmp 0x41c640
cmp dword [ebp - 0xa0], 1
jne 0x41c617
push 6
jmp 0x41c640
cmp dword [ebp - 0xa0], edi
jne 0x41c657
push 3
jmp 0x41c640
cmp dword [ebp - 0xa4], 4
ja 0x41c657
push 4
jmp 0x41c640
cmp dword [ebp - 0xa0], 2
jne 0x41c657
cmp byte [ebp + 0x72], al
jne 0x41c657
push 0xa
pop edi
jmp 0x41c657
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00437538
add ebp, 0x78
leave
ret
Function at 0x41d028
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
push esi
push 0
push 2
mov dword [ebp - 0x80], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d068
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d117
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x74]
push edi
push eax
mov dword [ebp - 0x7c], 0x490
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push esi
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d0c6
lea eax, [ebp - 0x54]
push str.explorer.exe
push eax
call fcn.004379de
test eax, eax
pop ecx
pop ecx
je 0x41d0bd
lea eax, [ebp - 0x78]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d099
jmp 0x41d0cf
mov edi, dword [ebp - 0x70]
and dword [ebp - 0x7c], 0
jmp 0x41d0cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x41d0f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d116
push dword [ebp - 0x80]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41d110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
push edi
call esi
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
pop esi
call fcn.00437538
add ebp, 0x1b8
leave
ret

Function at 0x41d1c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x94], eax
test esi, esi
jne 0x41d1ea
or eax, 0xffffffff
jmp 0x41d230
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d21e
cmp dword [ebp - 0x7c], 5
jne 0x41d21e
cmp dword [ebp - 0x78], 0
je 0x41d229
push esi
call fcn.0041d12d
test eax, eax
pop ecx
je 0x41d230
push esi
call fcn.0041d028
pop ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00437538
add ebp, 0x98
leave
ret
Function at 0x41d245
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
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]
test eax, eax
je 0x41d311
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
test eax, eax
jne 0x41d2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41d311
push edi
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x41d305
cmp dword [edi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x41d305
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41d301
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 8
cmp eax, dword [edi]
jb 0x41d2e3
jmp 0x41d305
mov byte [ebp - 0xd], 1
cmp edi, ebx
je 0x41d310
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp - 0x18], ebx
pop esi
pop ebx
je 0x41d321
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
call fcn.00437538
leave
ret

Function at 0x41d384
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x480244]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x41d3f8
push 0x110
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d3f2
cmp dword [ebp - 0x74], 6
jne 0x41d3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d42d
mov dword [edi], esi
xor eax, eax
jmp 0x41d42d
mov ecx, dword [ebp - 0x80]
xor eax, eax
cmp dword [ebp - 0x7c], esi
push ebx
mov ebx, 0x490
jbe 0x41d424
lea edx, [ecx + 8]
cmp dword [edx], esi
je 0x41d41a
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x7c]
jb 0x41d40b
jmp 0x41d424
imul eax, eax, 0xc
mov eax, dword [eax + ecx]
mov dword [edi], eax
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00437538
add ebp, 0xa0
leave
ret
Function at 0x41d6da
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x41d6f3
mov eax, dword [ebp - 4]
jmp 0x41d7cd
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x41d7a8
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x472bb0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x472bb0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x472bb0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x472bb0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x472bb0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x472bb0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x472bb0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x472bb0]
dec ebp
jne 0x41d712
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x41d7c4
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x472bb0]
dec ecx
jne 0x41d7b2
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41de2d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41de5b
xor eax, eax
jmp 0x41deb2
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41dea9
push ebx
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x41dea8
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dea8
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x41e63b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ebx, ebx
push edi
mov edi, eax
jne 0x41e64c
mov eax, 0x80004005
jmp 0x41e6f0
cmp dword [edi + 0x58], 0
je 0x41e65a
xor eax, eax
inc eax
jmp 0x41e6f0
cmp dword [edi + 0x5c], 0
push esi
je 0x41e66c
mov eax, dword [edi + 0x60]
test eax, eax
je 0x41e66c
mov edi, eax
jmp 0x41e69a
mov esi, dword [edi + 0x64]
test esi, esi
je 0x41e693
call fcn.0041e5fd
test al, al
je 0x41e68e
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e693
test al, 0x10
jne 0x41e693
mov edi, dword [edi + 0x64]
jmp 0x41e69a
mov edi, dword [edi + 0x44]
test edi, edi
je 0x41e6d6
push edi
call fcn.00437547
cmp dword [esp + 0x10], 0
pop ecx
mov esi, eax
je 0x41e6bf
cmp dword [ebx], esi
jbe 0x41e6bf
lea eax, [esi + 1]
push eax
push edi
push dword [esp + 0x14]
call fcn.0043b1c5
add esp, 0xc
cmp dword [esp + 0xc], 0
lea eax, [esi + 1]
mov dword [ebx], eax
je 0x41e6ed
cmp eax, esi
ja 0x41e6ed
mov eax, 0x80004005
jmp 0x41e6ef
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e6e7
cmp dword [ebx], 0
je 0x41e6e7
and word [eax], 0
mov dword [ebx], 1
xor eax, eax
pop esi
pop edi
ret 4

Function at 0x41f3fa
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
je 0x41f406
and word [eax], 0
cmp dword [ebp + 0xc], 0
jne 0x41f413
xor eax, eax
jmp 0x41f4c2
test eax, eax
jne 0x41f4af
push ebx
push esi
push edi
mov esi, 0x200
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp + 0x10], esi
neg ecx
or ecx, eax
push ecx
call fcn.00436e9c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
mov dword [ebp - 4], eax
push esi
push eax
push dword [ebp + 0xc]
call ebx
mov edi, eax
lea eax, [edi + 2]
cmp eax, esi
jb 0x41f49e
push dword [ebp - 4]
add dword [ebp + 0x10], esi
call fcn.00437d0a
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436e9c
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call ebx
mov edi, eax
lea eax, [edi + 2]
cmp eax, dword [ebp + 0x10]
jae 0x41f45d
push dword [ebp - 4]
call fcn.00437d0a
pop ecx
lea eax, [edi + 2]
pop edi
pop esi
pop ebx
jmp 0x41f4c2
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
leave
ret 0xc