joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4239f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49e62c]
cmp byte [eax + 0x7f], 0
jne 0x423a47
cmp dword [0x49e658], 0
jne 0x423a23
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4239b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49e658], eax
cmp dword [0x49e65c], 0
jne 0x423a47
push esp
push 0
push 0
push 0x423960
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49e65c], eax
pop edx
ret

Function at 0x423a4c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x49e658], 0
je 0x423a60
mov eax, dword [0x49e658]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x49e658], eax
cmp dword [0x49e65c], 0
je 0x423a7d
push 0
mov eax, dword [0x49e65c]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x49e65c], eax
ret

Function at 0x423b1c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x423b33
add esp, 0xfffffff0
call fcn.00402d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004104c0
mov dl, 1
mov eax, 0x40a764
call fcn.00402b30
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x40a764
call fcn.00402b30
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x419e8c
call fcn.0041dea4
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423c74
mov eax, dword [0x49e014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e230
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424f34
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49e014]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00407950
test eax, eax
je 0x423c10
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004077b8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00407930
test eax, eax
je 0x423c24
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
cmp byte [0x49e034], 0
jne 0x423c54
mov eax, ebx
call fcn.00423d04
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x423c6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42470c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x42473e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004034e0
jmp 0x424748
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403494
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42510c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x425144
mov eax, esi
call fcn.00418808
test al, al
je 0x425144
mov eax, dword [ebx + 0x60]
call fcn.00418670
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x425144
push 0
mov eax, dword [ebx + 0x60]
call fcn.00418670
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42d15c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42d1a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042d050
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d1ab
lea eax, [ebp - 4]
call fcn.00403400
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42d1cd
test al, 0x10
je 0x42d1d1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42d21a
test al, 0x10
je 0x42d21a
test ah, 4
je 0x42d21e
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42d224
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00403728
xor eax, eax
push ebp
push 0x42d316
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403744
mov ebx, pe_nt_image_headers32
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x42d2a1
mov eax, dword [ebp + 0xc]
call fcn.00403738
push eax
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d2ca
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
test eax, eax
je 0x42d2da
mov eax, dword [esi]
call fcn.00403738
call fcn.00407750
mov edx, ebx
sub edx, 8
cmp eax, edx
jl 0x42d2eb
cmp ebx, 0x10000
jl 0x42d2f5
mov edx, esi
xchg edx, eax
call fcn.004038a4
jmp 0x42d300
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x42d25c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d31d
lea eax, [ebp - 0xc]
call fcn.00403400
ret

Function at 0x42d3ec
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x42d434
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00403738
push eax
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d458
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
push ebx
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
sete al
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42d4b8
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
mov byte [esp], 0
test ebx, ebx
je 0x42d4f4
mov eax, ebx
call fcn.00403738
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x42d524
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d512
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x42d524
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
cmp byte [esp], 0
sete al
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x42d8dc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d96a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x42d927
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.004034e0
jmp 0x42d954
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x42d93b
lea eax, [ebp - 4]
call fcn.00403400
jmp 0x42d94a
lea edx, [ebp - 4]
call fcn.0042d730
test ebx, ebx
je 0x42d94a
dec ebx
jmp 0x42d92c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d971
lea eax, [ebp - 4]
call fcn.00403400
ret

Function at 0x42dd28
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00407974
add esp, 0x104
pop ebx
ret

Function at 0x42dd54
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00407974
add esp, 0x104
pop ebx
ret

Function at 0x42de04
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42de81
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x42de5f
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 6
jb 0x42de5f
lea eax, [ebp - 8]
call fcn.0042dd54
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0042c88c
lea eax, [ebp - 4]
mov edx, 0x42de98
call fcn.0040357c
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0042cc94
jmp 0x42de66
mov eax, esi
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42de88
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403420
ret
Function at 0x42e090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42e1c8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x42e1b2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42e0ed
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42e1b2
cmp dword [ebp - 0x10], 0
jne 0x42e102
mov eax, dword [ebp - 8]
call fcn.00403400
mov bl, 1
jmp 0x42e1b2
cmp dword [ebp - 0x10], 0x70000000
jb 0x42e110
call fcn.00409090
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.004034e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403744
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x42e0b6
test eax, eax
jne 0x42e1b2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42e160
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42e1b2
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x42e16b
dec esi
test esi, esi
je 0x42e179
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x42e16a
cmp dword [ebp - 0xc], 7
jne 0x42e184
test esi, esi
je 0x42e184
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004038a4
cmp dword [ebp - 0xc], 7
jne 0x42e1a5
test esi, esi
je 0x42e1a5
lea eax, [ebp - 0x14]
call fcn.00403744
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00403450
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e1cf
lea eax, [ebp - 0x14]
call fcn.00403400
ret

Function at 0x42e1f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
push 0
push 0
push 0
push 0
push esi
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
test bl, bl
je 0x42e269
test esi, esi
je 0x42e21f
cmp byte [esi], 0
jne 0x42e269
cmp dword [0x49c0dc], 2
je 0x42e269
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x42e258
cmp eax, 0xea
jne 0x42e269
test eax, eax
jne 0x42e266
cmp byte [esp], 0
jne 0x42e266
mov bl, 1
jmp 0x42e269
inc esi
jmp 0x42e22c
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42e2d4
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x42e2e8
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyA
pop esi
pop ebx
ret
cmp dword [0x49e660], 0
jne 0x42e30b
push 0x42e330
push 0x42e340
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x49e660], eax
cmp dword [0x49e660], 0
je 0x42e325
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x49e660]
jmp 0x42e32a
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x42e2d5
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x42e2e8
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyA
pop esi
pop ebx
ret
cmp dword [0x49e660], 0
jne 0x42e30b
push 0x42e330
push 0x42e340
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x49e660], eax
cmp dword [0x49e660], 0
je 0x42e325
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x49e660]
jmp 0x42e32a
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x42e350
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x42e493
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x42e383
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x42e38d
mov ebx, 0x57
jmp 0x42e47d
cmp dword [0x49c0dc], 2
jne 0x42e46d
push 0
push 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 1]
call fcn.0042e2ac
test eax, eax
jne 0x42e46d
xor edx, edx
push ebp
push 0x42e466
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.004034e0
xor ebx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00403574
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0xea
jne 0x42e42f
mov eax, dword [ebp - 0x14]
call fcn.00403574
cmp eax, 0x10000
jge 0x42e44f
mov eax, dword [ebp - 0x14]
call fcn.00403574
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004034e0
jmp 0x42e3d7
test eax, eax
jne 0x42e44f
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 1]
call fcn.0042e350
test eax, eax
je 0x42e3d7
inc ebx
jmp 0x42e3d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e46d
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 1]
call fcn.0042e2d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e49a
lea eax, [ebp - 0x14]
call fcn.00403400
ret
Function at 0x42e4a4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov edi, edx
mov ebx, eax
push 0
push 1
lea eax, [esp + 8]
push eax
mov ecx, ebp
mov edx, edi
mov eax, ebx
call fcn.0042e2ac
mov esi, eax
test esi, esi
jne 0x42e522
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [esp + 0x2c]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov esi, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
test esi, esi
jne 0x42e522
cmp dword [esp + 4], 0
jne 0x42e51d
cmp dword [esp + 8], 0
jne 0x42e51d
mov ecx, ebp
mov edx, edi
mov eax, ebx
call fcn.0042e2d4
mov esi, eax
jmp 0x42e522
mov esi, 0x91
mov eax, esi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42e52c
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
cmp dword [0x49c0dc], 2
je 0x42e548
mov byte [ebp - 1], 1
jmp 0x42e717
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x49c788
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x42e717
xor eax, eax
push ebp
push 0x42e710
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 5
jb 0x42e5a9
push 0x42e720
push 0x42e738
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x42e5d2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x42e6f9
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
jmp 0x42e6f9
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x42e623
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
je 0x42e604
call fcn.004031bc
jmp 0x42e717
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x42e623
call fcn.004031bc
jmp 0x42e717
xor eax, eax
push ebp
push 0x42e6f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x42e666
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x42e666
call fcn.004031bc
call fcn.004031bc
jmp 0x42e717
mov eax, dword [ebp - 0x14]
call fcn.00402648
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x42e698
call fcn.004031bc
call fcn.004031bc
jmp 0x42e717
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x42e6d3
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x42e6cf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x42e6cf
mov byte [ebp - 1], 1
jmp 0x42e6d3
inc ebx
dec esi
jne 0x42e6a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e6f9
mov eax, dword [ebp - 0x18]
call fcn.00402660
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e717
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f118
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x42f1b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49c0dc], 2
jne 0x42f15c
push 1
mov eax, esi
call fcn.00403738
push eax
mov eax, edi
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileExA
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
jmp 0x42f1a2
mov eax, esi
call fcn.00403738
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040352c
mov eax, dword [ebp - 4]
call fcn.004073e0
mov ebx, eax
test bl, bl
jne 0x42f185
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
jne 0x42f1a2
mov eax, esi
call fcn.00403738
push eax
mov eax, edi
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileA
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f1bf
lea eax, [ebp - 4]
call fcn.00403400
ret

Function at 0x431248
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x435c18
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x435dc4
inc esi
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00434a6c
pop ecx
test al, al
jne 0x435c5d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00435ef8
xor ebx, ebx
jmp 0x435dc4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [ebp - 0x10]
ja 0x435c7c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00435ef8
xor ebx, ebx
jmp 0x435dc4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00447574
test eax, eax
jne 0x435cb4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00435ef8
xor ebx, ebx
jmp 0x435dc4
test byte [ebp - 0xc], 1
je 0x435dbd
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.00434a6c
pop ecx
test al, al
jne 0x435ce8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00435ef8
xor ebx, ebx
jmp 0x435dc4
mov edx, 0x432a50
mov eax, 0xc
call fcn.00403b80
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x435d90
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 8]
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004038a4
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00403744
mov edx, dword [ebp - 4]
call fcn.00434a6c
pop ecx
test al, al
jne 0x435d53
mov edx, 0x432a50
mov eax, dword [ebp - 8]
call fcn.00403b94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00435ef8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x435dc4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00431ef8
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00432190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x435dbd
dec esi
jne 0x435c33
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bb38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x44bb84
cmp dword [ebp - 0x84], 2
jne 0x44bb84
cmp dword [ebp - 0x90], 5
jg 0x44bb82
cmp dword [ebp - 0x90], 5
jne 0x44bb84
cmp dword [ebp - 0x8c], 1
jl 0x44bb84
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bb8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00407974
pop ebx
mov esp, ebp
pop ebp
ret