joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42944b
Capabilities:
Identify system language via api

Disassembly:
push 0x18
mov eax, 0x474dd7
call fcn.0047412d
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x14], edi
and dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x10], esi
lea ebx, [eax + 8]
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
test ecx, ecx
je 0x42947d
call fcn.0042986c
and dword [ebx], esi
push ebx
call fcn.0042452b
mov ebx, eax
test ebx, ebx
jns 0x429495
mov ecx, ebx
call fcn.004298bc
jmp 0x4295dc
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 8], 0
jne 0x4294b3
mov ebx, 0x80070002
mov ecx, 0x409f78
push 2
mov edx, ebx
call fcn.004278fa
jmp 0x429489
push 0xaa
lea eax, [ebx + 0xc]
push 0
push eax
mov dword [ebp - 0x18], eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebx + 0xb6]
push 0x55
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
jne 0x4294ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov ebx, eax
jmp 0x429489
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, dword [ebp - 0x18]
movzx ecx, ax
push 0x55
call fcn.00429b2f
test eax, eax
je 0x4294dc
lea ecx, [ebp - 0x14]
call fcn.00424921
mov ebx, eax
test ebx, ebx
jns 0x429521
mov ecx, ebx
call fcn.004298bc
mov edi, dword [ebp - 0x14]
jmp 0x4295dc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push 0x55
pop edx
call fcn.00427450
mov ebx, eax
test ebx, ebx
js 0x429512
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
and dword [esi + 0x160], 0
call fcn.00424a1a
mov edi, dword [ebp - 0x14]
mov ebx, eax
test ebx, ebx
jns 0x429564
mov ecx, ebx
call fcn.004298bc
mov esi, dword [ebp - 0x10]
jmp 0x4295d1
cmp dword [ebp - 0x20], 0
jne 0x42957b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov ebx, eax
jmp 0x429558
lea ebx, [esi + 0x160]
mov ecx, ebx
call fcn.00429e4b
mov ecx, dword [esi + 8]
mov edx, ebx
push 0
call fcn.00425e01
mov ebx, eax
test ebx, ebx
js 0x429558
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x4295b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x18]
call fcn.0042845e
mov ebx, eax
test ebx, ebx
jns 0x4295d1
mov ecx, ebx
call fcn.004298bc
test esi, esi
je 0x4295dc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, ebx
call fcn.004298d9
mov byte [ebp - 4], 0
test esi, esi
je 0x4295f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x429609
mov ecx, edi
call fcn.0042986c
and dword [ebp - 0x14], 0
mov eax, ebx
call fcn.00474100
ret 0xc
Function at 0x42aa42
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47a008]
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 0x42ab48
xor eax, eax
cmp ax, word [ecx]
je 0x42ab48
test edi, edi
je 0x42ab48
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 0x42ab37
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x42ab12
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 0x42ab12
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 0x42aaee
cmp dword [ebp - 8], esi
jne 0x42aaee
mov eax, dword [ebp - 0xc]
mov dword [edi], esi
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
jmp 0x42ab21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x42aafd
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 0x42ab21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x42ab21
push 0x1f
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x42ab4b
movzx esi, si
or esi, 0x80070000
jmp 0x42ab4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x42ab2a
push 0x1f
pop esi
jmp 0x42ab2c
push 0x57
pop esi
lea ecx, [ebp - 0x18]
call fcn.0042e3b3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459020
mov esp, ebp
pop ebp
ret

Function at 0x42b710
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 0x42b751
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x42b761
mov ecx, dword [edi]
test ecx, ecx
js 0x42b761
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42b761
mov eax, dword [esi + 0xc]
mov dword [edx], eax
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0xc
Function at 0x43b2ba
Capabilities:
Check http status code
Read http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47a008]
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 0x43b328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov edx, dword [edi + 0x5c]
mov ebx, eax
push 0x2f2
push 0x410390
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [edi + 0x5c]
jmp 0x43b4e9
mov eax, dword [ebp - 8]
cmp eax, 0x64
je 0x43b51a
cmp eax, 0xc7
jbe 0x43b35c
cmp eax, 0xce
jbe 0x43b51a
cmp eax, 0x130
je 0x43b51a
cmp eax, 0x133
je 0x43b51a
add edi, 0x5c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
mov ecx, edi
call esi
test eax, eax
je 0x43b398
push dword [ebp - 8]
mov eax, dword [edi]
push 0x4103e8
push 4
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
mov ecx, edi
call esi
push eax
call fcn.0044dce2
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, 0x19a
cmp eax, ecx
ja 0x43b464
je 0x43b458
add ecx, 0xfffffff6
cmp eax, ecx
ja 0x43b40e
je 0x43b4ae
cmp eax, 0x65
je 0x43b3ff
cmp eax, 0xcc
je 0x43b458
mov ecx, 0x12c
cmp eax, ecx
je 0x43b502
jbe 0x43b4cb
cmp eax, 0x12f
jbe 0x43b458
cmp eax, 0x131
jne 0x43b4cb
mov ebx, 0x800704d0
push 0x35b
jmp 0x43b4d5
mov ebx, 0x8007045d
push 0x316
jmp 0x43b4d5
cmp eax, 0x193
jbe 0x43b44c
cmp eax, 0x194
je 0x43b458
cmp eax, 0x195
jbe 0x43b4cb
cmp eax, 0x197
jbe 0x43b44c
cmp eax, 0x198
je 0x43b4f6
cmp eax, 0x199
jne 0x43b4cb
push 0x21
pop ebx
jmp 0x43b557
mov ebx, 0x80070005
push 0x33b
jmp 0x43b4d5
mov ebx, 0x80070002
push 0x367
jmp 0x43b4d5
mov ecx, 0x1f4
cmp eax, ecx
ja 0x43b4ba
je 0x43b502
cmp eax, 0x19c
jbe 0x43b4ae
add ecx, 0xffffffa9
cmp eax, ecx
je 0x43b4a4
jbe 0x43b4cb
cmp eax, 0x19f
jbe 0x43b4ae
cmp eax, 0x1a0
je 0x43b50e
cmp eax, 0x1c1
jne 0x43b4cb
mov ebx, 0x800704d5
push 0x342
jmp 0x43b4d5
mov ebx, 0xdf
jmp 0x43b557
mov ebx, 0x8007000d
push 0x330
jmp 0x43b4d5
sub eax, 0x1f5
je 0x43b50e
dec eax
dec eax
je 0x43b502
dec eax
je 0x43b4f6
dec eax
je 0x43b50e
mov ebx, 0x80004005
push 0x372
mov eax, dword [edi]
push 0x410390
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
mov ecx, edi
call esi
mov edx, ebx
mov ecx, eax
call fcn.0044dc99
jmp 0x43b557
mov ebx, 0x800705b4
push 0x31e
jmp 0x43b4d5
mov ebx, 0x8007001f
push 0x34b
jmp 0x43b4d5
mov ebx, 0x80070032
push 0x354
jmp 0x43b4d5
mov eax, dword [edi + 0x5c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [edi + 0x5c]
call esi
test eax, eax
je 0x43b557
push dword [ebp - 8]
mov eax, dword [edi + 0x5c]
push 0x4103e8
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [edi + 0x5c]
call esi
push eax
call fcn.0044dce2
add esp, 0x10
mov ecx, ebx
call fcn.004298d9
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459020
mov esp, ebp
pop ebp
ret 4
Function at 0x446b54
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x475f84
call fcn.00474165
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
push eax
push eax
push ebx
push 0x4403a0
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f2f4
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x446bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov edx, dword [ebx + 0x60]
push 0xbae
push 0x412280
mov dword [ebp - 0x14], eax
mov edi, dword [edx + 4]
mov ecx, edi
call dword [0x47d4cc]
lea ecx, [ebx + 0x60]
call edi
mov ebx, dword [ebp - 0x14]
jmp 0x446cd8
add ebx, 0x60
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47d4cc]
mov ecx, ebx
call edi
test eax, eax
je 0x446bfb
mov eax, dword [ebx]
push 0x4122b8
push 2
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47d4cc]
mov ecx, ebx
call edi
push eax
call fcn.0044dce2
add esp, 0xc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x446c46
cmp eax, 0xffffffff
je 0x446c22
mov eax, dword [ebp - 0x14]
mov ebx, 0x8000ffff
push 0xbc6
mov eax, dword [eax + 0x60]
jmp 0x446cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x446c39
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x446ce1
push 0xbc1
jmp 0x446cba
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47d4cc]
mov ecx, ebx
call edi
test eax, eax
je 0x446c7c
mov eax, dword [ebx]
push 0x412300
push 2
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x47d4cc]
mov ecx, ebx
call edi
push eax
call fcn.0044dce2
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x446ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov ebx, eax
push 0xbbc
jmp 0x446cba
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x446cb3
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x446ce1
push 0xbbd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x60]
mov edi, dword [eax + 4]
mov ecx, edi
push 0x412280
call dword [0x47d4cc]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0x60]
call edi
mov edx, ebx
mov ecx, eax
call fcn.0044dc99
mov ecx, ebx
call fcn.004298d9
test esi, esi
je 0x446cf3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00474119
ret
Function at 0x447efd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
mov eax, 0x476096
call fcn.00474165
mov ebx, ecx
lea eax, [ebx + 0xe0]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044d7ad
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 [0x47d4cc]
mov ecx, ebx
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x447f6c
mov edx, dword [ebx + 0x60]
push 0xdf2
mov esi, dword [edx + 4]
push 0x4129d8
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [ebx + 0x60]
call esi
mov esi, dword [ebp - 0x14]
mov edx, esi
mov ecx, eax
call fcn.0044dc99
jmp 0x4480b0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x310]
jne 0x44807a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 0x314]
jne 0x44807a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x304]
cmp eax, dword [ebx + 0x2f8]
jb 0x4480ad
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x88]
call fcn.0043291b
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x447fc5
mov eax, dword [ebx + 0x60]
push 0xe04
mov esi, dword [eax + 4]
jmp 0x447f49
cmp dword [ebp - 0x18], 3
je 0x447fff
cmp dword [ebp - 0x18], 5
je 0x447fff
mov eax, dword [ebx + 0x60]
push 0xe06
push 0x4129d8
mov dword [ebp - 0x14], 0x8000ffff
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [ebx + 0x60]
call esi
mov esi, 0x8000ffff
jmp 0x447f5e
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 0x44805a
push 3
call dword [0x47d4cc]
lea ecx, [ebx + 8]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x4480b0
push 0xe0f
mov eax, dword [ebx + 0x60]
push 0x4129d8
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x47d4cc]
lea ecx, [ebx + 0x60]
call esi
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.0044dc99
jmp 0x4480ad
push 0x10002
call dword [0x47d4cc]
lea ecx, [ebx + 8]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x4480b0
push 0xe15
jmp 0x448036
mov ecx, ebx
call fcn.004485c4
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x44808f
push 0xdfa
jmp 0x448036
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.004298d9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x4067dc
call fcn.0044d84c
mov eax, dword [ebp - 0x14]
call fcn.00474119
ret
Function at 0x44df24
Capabilities:
Shutdown system

Disassembly:
push 8
mov eax, 0x4765c3
call fcn.0047412d
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 0x44df60
cmp edi, 1
je 0x44df60
cmp edi, 2
je 0x44df60
cmp edi, 3
je 0x44df60
mov esi, 0x80070057
jmp 0x44dfed
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041aeda
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
js 0x44dfed
test edi, edi
je 0x44dfad
cmp edi, 1
je 0x44dfad
cmp edi, 2
je 0x44df8a
cmp edi, 3
jne 0x44dff4
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.00420185
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x44dfed
jmp 0x44dff4
test ebx, ebx
jne 0x44dfb6
mov ebx, 0x80030002
mov ecx, 0x413ae0
test edi, edi
je 0x44dfc4
mov ecx, 0x413b0c
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 0x44dff4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
mov ecx, esi
call fcn.004298bc
mov ecx, esi
call fcn.004298d9
lea ecx, [ebp - 0x14]
call fcn.0041cb21
lea ecx, [ebp - 0x14]
call fcn.0041cb21
mov eax, esi
call fcn.00474100
ret

Function at 0x44ea9c
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 0x44eace
xor ecx, ecx
mov ebx, edi
call fcn.004298bc
jmp 0x44eb6d
dec ebx
je 0x44eaf6
dec ebx
je 0x44eaef
dec ebx
je 0x44eae8
dec ebx
je 0x44eae1
mov esi, 0x413b70
jmp 0x44eafb
mov esi, 0x413b64
jmp 0x44eafb
mov esi, 0x413b54
jmp 0x44eafb
mov esi, 0x413b48
jmp 0x44eafb
mov esi, 0x413b3c
lea ecx, [ebp - 8]
call fcn.0044f69b
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
push esi
test eax, eax
js 0x44eb39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 4]
push 0x413b80
push eax
call fcn.004271d1
mov ebx, eax
add esp, 0x18
test ebx, ebx
jns 0x44eb63
mov ecx, ebx
call fcn.004298bc
mov esi, dword [ebp - 4]
jmp 0x44eb6d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 4]
push 0x413bc0
push eax
call fcn.004271d1
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x44eb63
mov ecx, ebx
call fcn.004298bc
mov edi, dword [ebp - 8]
jmp 0x44eb34
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.004298d9
test esi, esi
je 0x44eb7f
mov ecx, esi
call fcn.0042986c
test edi, edi
je 0x44eb8a
mov ecx, edi
call fcn.0042986c
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4500af
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 [0x47a008]
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 0x45012e
cmp eax, ebx
ja 0x45012e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x450144
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x450144
xor eax, eax
jmp 0x45017c
lea eax, [ebp - 0x414]
push eax
push 0
push 0x413fe4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x450140
lea eax, [ebp - 0x414]
mov edx, esi
push eax
mov ecx, edi
call fcn.004248e3
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.00459020
mov esp, ebp
pop ebp
ret
Function at 0x450192
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x34
push 0x4789f8
call fcn.00459844
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 [0x47cee0]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x450273
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x450209
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 [0x47cee8]
mov ecx, esi
call dword [0x47d4cc]
call esi
test eax, eax
je 0x450273
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x450273
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 0x450273
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.004502ba
test edi, edi
je 0x4502aa
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x450295
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 0x4502a1
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4502aa
mov dword [eax], ebx
mov eax, edi
call fcn.0045988c
ret 0xc
Function at 0x450e96
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x478ac8
call fcn.004599bc
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x20], ebx
push dword [0x47a06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x450fec
push 0x47ce74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp dword [0x47cec0], esi
jne 0x450f09
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x47cec0], eax
test eax, eax
je 0x450f91
mov ecx, edi
mov dword [0x47cec4], ecx
mov dword [0x47ceb4], 1
jmp 0x450f49
mov ecx, dword [0x47cec4]
mov eax, dword [0x47ceb4]
cmp ecx, eax
jne 0x450f49
lea eax, [eax*4 + 4]
push eax
push dword [0x47cec0]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x450f91
mov dword [0x47cec0], eax
inc dword [0x47ceb4]
mov ecx, dword [0x47cec4]
mov eax, dword [0x47cec0]
mov dword [eax + ecx*4], edi
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x450f91
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x47a06c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x450f91
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00450fc0
test ebx, ebx
je 0x450fc1
mov ecx, dword [0x47cec4]
mov eax, dword [0x47cec0]
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x47cec4], ecx
jmp 0x450fdf
push edi
push dword [0x47a06c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
push 0x47ce74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.00459a01
ret

Function at 0x451138
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x47a070]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x451171
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x451171
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x451171
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x451171
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x451171
mov eax, dword [eax]
test eax, eax
jne 0x451176
mov eax, 0x413cbc
ret
Function at 0x45122c
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
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 dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x45129e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x45128b
mov ebx, dword [ebp - 0x14]
jmp 0x451293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4512a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00459020
mov esp, ebp
pop ebp
ret