joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d5e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x41d608
mov esi, 0x80070057
jmp 0x41d65d
push 0x410
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x407848
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41d64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov esi, eax
jmp 0x41d65d
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.00418e2d
mov esi, eax
test esi, esi
jns 0x41d664
mov ecx, esi
call fcn.00419094
mov ecx, esi
call fcn.004190b1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00451d90
mov esp, ebp
pop ebp
ret

Function at 0x41db03
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x410
lea eax, [ebp - 0x418]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x408718
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41db5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov esi, eax
jmp 0x41db70
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.00418e2d
mov esi, eax
test esi, esi
jns 0x41db77
mov ecx, esi
call fcn.00419094
mov ecx, esi
call fcn.004190b1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00451d90
mov esp, ebp
pop ebp
ret
Function at 0x4218ea
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor edx, edx
mov dword [ebp - 8], ecx
push esi
mov esi, edx
mov dword [ebp - 0xc], edx
push edi
mov edi, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], edx
jne 0x42191d
mov ecx, 0x80070057
mov ebx, ecx
call fcn.00419094
jmp 0x421a4e
cmp dword [ebp + 0xc], edx
je 0x42190c
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
cmp dword [ecx + 0x20], edx
jne 0x421933
mov ebx, edx
jmp 0x421a4e
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
call fcn.00418e2d
mov ebx, eax
test ebx, ebx
jns 0x421948
mov ecx, ebx
jmp 0x421913
xor eax, eax
push eax
push eax
push eax
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
lea ecx, [ebp - 4]
call fcn.0041507b
mov esi, dword [ebp - 4]
test esi, esi
jne 0x421977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov ebx, eax
jmp 0x421944
push 0
push 0x50
push dword [ebp + 8]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041507b
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x421966
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0xc]
push 0x408cc4
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 4], eax
test eax, eax
je 0x421966
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4219db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x421a33
movzx ebx, bx
or ebx, 0x80070000
jmp 0x421a33
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
sub eax, 0xffffff80
and dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00414a11
mov ecx, dword [ebp - 8]
push dword [ebp - 4]
add ecx, 0x38
push dword [ecx + 4]
call fcn.0042231c
cmp dword [ebp - 0x10], 0
je 0x421a15
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x421a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov ebx, eax
mov ecx, ebx
call fcn.00419094
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00422068
mov ecx, ebx
call fcn.004190b1
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x421a61
call fcn.00418f57
test edi, edi
je 0x421a6c
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x421a77
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42215a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor esi, esi
and dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 0x14], esi
jne 0x42218c
mov ecx, 0x80070057
mov edi, ecx
call fcn.00419094
jmp 0x42229a
cmp dword [ebp + 0x18], esi
je 0x42217b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.0041a739
mov edi, eax
test edi, edi
jns 0x4221a7
mov ecx, edi
jmp 0x422182
cmp dword [ebp - 0xc], esi
je 0x422291
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], esi
push ecx
push eax
push dword [ebp + 0x10]
call fcn.0041c436
mov edi, eax
test edi, edi
js 0x4221a3
cmp dword [ebp - 0xc], esi
je 0x422291
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.0041c248
mov edi, eax
test edi, edi
jns 0x4221f7
mov ecx, edi
call fcn.00419094
mov esi, dword [ebp - 8]
jmp 0x42229a
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004222bc
mov edi, eax
test edi, edi
js 0x4221a3
test esi, esi
je 0x422219
mov ecx, esi
call fcn.00418f57
and dword [ebp - 8], 0
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push 0x408ec0
push eax
call fcn.00414b49
mov edi, eax
add esp, 0x34
test edi, edi
js 0x4221e8
mov esi, dword [ebp - 8]
test esi, esi
je 0x422271
mov ebx, dword [esi - 4]
jmp 0x422273
xor ebx, ebx
xor ecx, ecx
call fcn.004190b1
xor edi, edi
mov ecx, esi
test ebx, ebx
je 0x422291
mov edx, dword [ebp + 0x18]
mov ax, word [ecx]
lea ecx, [ecx + 2]
xor word [edx], ax
dec ebx
jne 0x422285
mov ecx, dword [ebp + 0x14]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
mov ecx, edi
call fcn.004190b1
test esi, esi
je 0x4222ac
mov ecx, esi
call fcn.00418f57
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x423b2b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
push edi
mov edi, edx
test ecx, ecx
je 0x423c31
xor eax, eax
cmp ax, word [ecx]
je 0x423c31
test edi, edi
je 0x423c31
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x423c20
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x423bfb
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x423bfb
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423bd7
cmp dword [ebp - 8], esi
jne 0x423bd7
mov eax, dword [ebp - 0xc]
mov dword [edi], esi
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
jmp 0x423c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x423be6
push 0x1f
pop esi
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x423c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x423c0a
push 0x1f
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x423c34
movzx esi, si
or esi, 0x80070000
jmp 0x423c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x423c13
push 0x1f
pop esi
jmp 0x423c15
push 0x57
pop esi
lea ecx, [ebp - 0x18]
call fcn.00427493
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451d90
mov esp, ebp
pop ebp
ret

Function at 0x4247f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push dword [ebp + 8]
lea edi, [esi + 8]
push dword [ebp + 0xc]
push edi
push ebx
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x424831
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x424841
mov ecx, dword [edi]
test ecx, ecx
js 0x424841
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x424841
mov eax, dword [esi + 0xc]
mov dword [edx], eax
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0xc
Function at 0x4343fa
Capabilities:
Check http status code
Read http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], 4
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov edi, ecx
push eax
push ebx
push 0x20000013
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x434468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov edx, dword [edi + 0x5c]
mov ebx, eax
push 0x2f2
push 0x40f2c0
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x47547c]
lea ecx, [edi + 0x5c]
jmp 0x434629
mov eax, dword [ebp - 8]
cmp eax, 0x64
je 0x43465a
cmp eax, 0xc7
jbe 0x43449c
cmp eax, 0xce
jbe 0x43465a
cmp eax, 0x130
je 0x43465a
cmp eax, 0x133
je 0x43465a
add edi, 0x5c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
mov ecx, edi
call esi
test eax, eax
je 0x4344d8
push dword [ebp - 8]
mov eax, dword [edi]
push 0x40f318
push 4
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
mov ecx, edi
call esi
push eax
call fcn.00446f24
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, 0x19a
cmp eax, ecx
ja 0x4345a4
je 0x434598
add ecx, 0xfffffff6
cmp eax, ecx
ja 0x43454e
je 0x4345ee
cmp eax, 0x65
je 0x43453f
cmp eax, 0xcc
je 0x434598
mov ecx, 0x12c
cmp eax, ecx
je 0x434642
jbe 0x43460b
cmp eax, 0x12f
jbe 0x434598
cmp eax, 0x131
jne 0x43460b
mov ebx, 0x800704d0
push 0x35b
jmp 0x434615
mov ebx, 0x8007045d
push 0x316
jmp 0x434615
cmp eax, 0x193
jbe 0x43458c
cmp eax, 0x194
je 0x434598
cmp eax, 0x195
jbe 0x43460b
cmp eax, 0x197
jbe 0x43458c
cmp eax, 0x198
je 0x434636
cmp eax, 0x199
jne 0x43460b
push 0x21
pop ebx
jmp 0x434697
mov ebx, 0x80070005
push 0x33b
jmp 0x434615
mov ebx, 0x80070002
push 0x367
jmp 0x434615
mov ecx, 0x1f4
cmp eax, ecx
ja 0x4345fa
je 0x434642
cmp eax, 0x19c
jbe 0x4345ee
add ecx, 0xffffffa9
cmp eax, ecx
je 0x4345e4
jbe 0x43460b
cmp eax, 0x19f
jbe 0x4345ee
cmp eax, 0x1a0
je 0x43464e
cmp eax, 0x1c1
jne 0x43460b
mov ebx, 0x800704d5
push 0x342
jmp 0x434615
mov ebx, 0xdf
jmp 0x434697
mov ebx, 0x8007000d
push 0x330
jmp 0x434615
sub eax, 0x1f5
je 0x43464e
dec eax
dec eax
je 0x434642
dec eax
je 0x434636
dec eax
je 0x43464e
mov ebx, 0x80004005
push 0x372
mov eax, dword [edi]
push 0x40f2c0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
mov ecx, edi
call esi
mov edx, ebx
mov ecx, eax
call fcn.00446ed9
jmp 0x434697
mov ebx, 0x800705b4
push 0x31e
jmp 0x434615
mov ebx, 0x8007001f
push 0x34b
jmp 0x434615
mov ebx, 0x80070032
push 0x354
jmp 0x434615
mov eax, dword [edi + 0x5c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
lea ecx, [edi + 0x5c]
call esi
test eax, eax
je 0x434697
push dword [ebp - 8]
mov eax, dword [edi + 0x5c]
push 0x40f318
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
lea ecx, [edi + 0x5c]
call esi
push eax
call fcn.00446f24
add esp, 0x10
mov ecx, ebx
call fcn.004190b1
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451d90
mov esp, ebp
pop ebp
ret 4
Function at 0x43fd52
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x46eacd
call fcn.0046cef5
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
push eax
push eax
push ebx
push 0x439500
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042b18f
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x43fdc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov edx, dword [ebx + 0x60]
push 0xbae
push 0x4111b0
mov dword [ebp - 0x14], eax
mov edi, dword [edx + 4]
mov ecx, edi
call dword [0x47547c]
lea ecx, [ebx + 0x60]
call edi
mov ebx, dword [ebp - 0x14]
jmp 0x43fed6
add ebx, 0x60
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47547c]
mov ecx, ebx
call edi
test eax, eax
je 0x43fdf9
mov eax, dword [ebx]
push 0x4111e8
push 2
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47547c]
mov ecx, ebx
call edi
push eax
call fcn.00446f24
add esp, 0xc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43fe44
cmp eax, 0xffffffff
je 0x43fe20
mov eax, dword [ebp - 0x14]
mov ebx, 0x8000ffff
push 0xbc6
mov eax, dword [eax + 0x60]
jmp 0x43febe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x43fe37
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x43fedf
push 0xbc1
jmp 0x43feb8
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47547c]
mov ecx, ebx
call edi
test eax, eax
je 0x43fe7a
mov eax, dword [ebx]
push 0x411230
push 2
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47547c]
mov ecx, ebx
call edi
push eax
call fcn.00446f24
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x43fe9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov ebx, eax
push 0xbbc
jmp 0x43feb8
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x43feb1
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x43fedf
push 0xbbd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x60]
mov edi, dword [eax + 4]
mov ecx, edi
push 0x4111b0
call dword [0x47547c]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0x60]
call edi
mov edx, ebx
mov ecx, eax
call fcn.00446ed9
mov ecx, ebx
call fcn.004190b1
test esi, esi
je 0x43fef1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0046cea9
ret
Function at 0x4410fb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
mov eax, 0x46ebdf
call fcn.0046cef5
mov ebx, ecx
lea eax, [ebx + 0xe0]
push eax
lea ecx, [ebp - 0x30]
call fcn.004469ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov esi, dword [eax + 0x64]
mov ecx, esi
call dword [0x47547c]
mov ecx, ebx
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x44116a
mov edx, dword [ebx + 0x60]
push 0xdf2
mov esi, dword [edx + 4]
push 0x411908
mov ecx, esi
call dword [0x47547c]
lea ecx, [ebx + 0x60]
call esi
mov esi, dword [ebp - 0x14]
mov edx, esi
mov ecx, eax
call fcn.00446ed9
jmp 0x4412ae
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x310]
jne 0x441278
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 0x314]
jne 0x441278
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x304]
cmp eax, dword [ebx + 0x2f8]
jb 0x4412ab
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x88]
call fcn.0042b9f8
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x4411c3
mov eax, dword [ebx + 0x60]
push 0xe04
mov esi, dword [eax + 4]
jmp 0x441147
cmp dword [ebp - 0x18], 3
je 0x4411fd
cmp dword [ebp - 0x18], 5
je 0x4411fd
mov eax, dword [ebx + 0x60]
push 0xe06
push 0x411908
mov dword [ebp - 0x14], 0x8000ffff
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
lea ecx, [ebx + 0x60]
call esi
mov esi, 0x8000ffff
jmp 0x44115c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x18], 3
mov dword [ebx + 0x304], eax
mov eax, dword [ebx + 8]
push 0
mov esi, dword [eax + 0xc]
mov ecx, esi
jne 0x441258
push 3
call dword [0x47547c]
lea ecx, [ebx + 8]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x4412ae
push 0xe0f
mov eax, dword [ebx + 0x60]
push 0x411908
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47547c]
lea ecx, [ebx + 0x60]
call esi
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.00446ed9
jmp 0x4412ab
push 0x10002
call dword [0x47547c]
lea ecx, [ebx + 8]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x4412ae
push 0xe15
jmp 0x441234
mov ecx, ebx
call fcn.004417c4
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x44128d
push 0xdfa
jmp 0x441234
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x310], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x314], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x304], eax
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004190b1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x409390
call fcn.00446a8c
mov eax, dword [ebp - 0x14]
call fcn.0046cea9
ret
Function at 0x447164
Capabilities:
Shutdown system

Disassembly:
push 8
mov eax, 0x46f10c
call fcn.0046cebd
mov ebx, edx
mov edi, ecx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x13
test edi, edi
je 0x4471a0
cmp edi, 1
je 0x4471a0
cmp edi, 2
je 0x4471a0
cmp edi, 3
je 0x4471a0
mov esi, 0x80070057
jmp 0x44722d
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b84d
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
js 0x44722d
test edi, edi
je 0x4471ed
cmp edi, 1
je 0x4471ed
cmp edi, 2
je 0x4471ca
cmp edi, 3
jne 0x447234
xor eax, eax
cmp edi, 2
setne al
inc eax
push eax
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.0041b9cf
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x44722d
jmp 0x447234
test ebx, ebx
jne 0x4471f6
mov ebx, 0x80030002
mov ecx, 0x412a10
test edi, edi
je 0x447204
mov ecx, 0x412a3c
xor eax, eax
test edi, edi
push ebx
sete al
push eax
push 1
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x447234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00418df2
mov esi, eax
mov ecx, esi
call fcn.00419094
mov ecx, esi
call fcn.004190b1
lea ecx, [ebp - 0x14]
call fcn.0041e051
lea ecx, [ebp - 0x14]
call fcn.0041e051
mov eax, esi
call fcn.0046ce90
ret

Function at 0x447d0c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov esi, edi
mov dword [ebp - 8], edi
mov ebx, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x447d3e
xor ecx, ecx
mov ebx, edi
call fcn.00419094
jmp 0x447ddd
dec ebx
je 0x447d66
dec ebx
je 0x447d5f
dec ebx
je 0x447d58
dec ebx
je 0x447d51
mov esi, 0x412aa0
jmp 0x447d6b
mov esi, 0x412a94
jmp 0x447d6b
mov esi, 0x412a84
jmp 0x447d6b
mov esi, 0x412a78
jmp 0x447d6b
mov esi, 0x412a6c
lea ecx, [ebp - 8]
call fcn.0044890b
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
push esi
test eax, eax
js 0x447da9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 4]
push 0x412ab0
push eax
call fcn.00414b49
mov ebx, eax
add esp, 0x18
test ebx, ebx
jns 0x447dd3
mov ecx, ebx
call fcn.00419094
mov esi, dword [ebp - 4]
jmp 0x447ddd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 4]
push 0x412af0
push eax
call fcn.00414b49
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x447dd3
mov ecx, ebx
call fcn.00419094
mov edi, dword [ebp - 8]
jmp 0x447da4
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.004190b1
test esi, esi
je 0x447def
mov ecx, esi
call fcn.00418f57
test edi, edi
je 0x447dfa
mov ecx, edi
call fcn.00418f57
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44938b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x20c], ax
mov edi, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44940a
cmp eax, ebx
ja 0x44940a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x449420
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x449420
xor eax, eax
jmp 0x449458
lea eax, [ebp - 0x414]
push eax
push 0
push 0x412f14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x44941c
lea eax, [ebp - 0x414]
mov edx, esi
push eax
mov ecx, edi
call fcn.004145b1
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451d90
mov esp, ebp
pop ebp
ret
Function at 0x44946e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x34
push 0x471208
call fcn.004525c4
mov eax, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
xor edi, edi
mov dword [ebp - 0x30], edi
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
push edi
push 0x100
push 2
push edi
push edi
push 0xc0000000
push eax
mov esi, dword [0x474ed0]
mov ecx, esi
call dword [0x47547c]
call esi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x44954f
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4494e5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
push edi
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x3c]
and esi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov esi, dword [0x474ed8]
mov ecx, esi
call dword [0x47547c]
call esi
test eax, eax
je 0x44954f
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x44954f
push edi
push eax
push dword [ebp - 0x24]
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44954f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00449596
test edi, edi
je 0x449586
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x449571
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44957d
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x449586
mov dword [eax], ebx
mov eax, edi
call fcn.0045260c
ret 0xc