joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410635
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
mov ebx, 0x400
mov ecx, ebx
call fcn.004105ee
test eax, eax
je 0x4106a8
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x410686
call dword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.004105ee
mov ecx, dword [esi]
test eax, eax
je 0x41069c
jmp 0x4106a3
cmp eax, 6
je 0x4106a1
cmp eax, 0x17
je 0x4106a1
cmp eax, 0xa
je 0x4106a1
cmp eax, 8
je 0x4106a1
mov ecx, dword [esi]
or ecx, 0x10
jmp 0x4106a6
mov ecx, dword [esi]
or ecx, 0x20
mov dword [esi], ecx
pop esi
pop ebx
leave
ret

Function at 0x4107e6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x410812
sub esi, edx
mov ax, word [edx]
movzx ecx, byte [edx + 1]
shl ax, 8
xor cx, ax
mov word [esi + edx], cx
lea edx, [edx + 2]
sub edi, 1
jne 0x4107f8
pop edi
pop esi
pop ebp
ret 4

Function at 0x41081e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x429d8c]
mov dword [ebp - 8], eax
xor eax, eax
push esi
mov esi, edx
cmp dword [ebp + 0x10], eax
jne 0x41083e
inc eax
jmp 0x4108c8
push ebx
mov ebx, eax
cmp esi, 0xfde9
je 0x410854
cmp esi, 0xd698
je 0x410854
lea ebx, [ebp - 0xc]
push ebx
push eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x4108c7
push edi
inc eax
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x41088c
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x4108c6
push ebx
mov ebx, dword [ebp - 4]
push 0
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x4108bd
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x411cdf
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], ebx
mov eax, ebx
mov dword [ebp - 0x10], eax
mov esi, edx
mov dword [ebp - 4], ebx
push 4
pop edi
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x411d2b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x411d28
cmp dword [ebp - 0xc], edi
je 0x411d60
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x401f28
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyW]
test eax, eax
jne 0x411d60
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov word [esi], ax
mov eax, dword [ebp + 0x10]
lea edi, [eax + eax]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x411daf
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x411daf
cmp dword [ebp - 4], 1
je 0x411dbc
push edi
push dword [ebp + 8]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
pop edi
pop esi
leave
ret 0xc
Function at 0x422d05
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], 0x4011ec
mov eax, dword [edx]
mov dword [ebx + 8], eax
mov dword [edx], ecx
mov byte [ebx + 0xc], cl
push ecx
lea ecx, [ebp - 4]
call fcn.0040c1ab
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x40520c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x422da7
mov edx, dword [ebp - 4]
test edx, edx
je 0x422db6
mov edi, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x422d58
sub edi, ecx
lea ecx, [ebp - 8]
sar edi, 1
lea eax, [edi + 9]
push eax
call fcn.0040c996
mov esi, dword [ebp - 8]
push 0x4028ac
push 9
pop edx
lea ecx, [esi + edi*2]
call fcn.0040675d
test eax, eax
js 0x422d9c
lea eax, [ebp - 8]
lea ecx, [ebx + 4]
cmp ecx, eax
je 0x422d9c
push esi
call fcn.0040c1ab
xor esi, esi
test esi, esi
je 0x422da7
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
je 0x422db6
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4234d8
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.004235ac
test al, al
je 0x4235a1
mov eax, dword [edi + 4]
xor ebx, ebx
mov esi, eax
mov dword [ebp - 4], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4234ff
sub esi, ecx
xor edx, edx
sar esi, 1
lea ecx, [ebp - 8]
add esi, 0x10
push esi
call fcn.0040c996
push 0x402954
push dword [ebp - 4]
push 0x402974
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00406803
add esp, 0x14
test eax, eax
js 0x423594
push ebx
push 0x82
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x423594
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x423594
push ebx
push ebx
push 0xe
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [eax*2 + 2]
cmp ebx, dword [ebp - 0xc]
ja 0x423594
jb 0x423592
cmp eax, dword [ebp - 0x10]
ja 0x423594
mov bl, 1
test esi, esi
je 0x42359f
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4235ac
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
push ebx
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x4235cc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x4235ce
mov bl, 1
mov al, bl
pop ebx
ret
Function at 0x423d50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x429100], 4
push esi
push edi
mov esi, edx
mov edi, ecx
jbe 0x423e95
push 0x2000
push 0
call fcn.0040634a
test al, al
je 0x423e95
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ax, word [edi + 0x20]
mov word [ebp - 2], ax
mov ax, word [edi + 0x1e]
mov word [ebp - 4], ax
mov ax, word [edi + 0x1c]
mov word [ebp - 6], ax
mov ax, word [edi + 0x1a]
mov word [ebp - 8], ax
mov ax, word [edi + 0x18]
mov word [ebp - 0xa], ax
mov ax, word [edi + 0x16]
mov word [ebp - 0xc], ax
mov ax, word [edi + 0x14]
mov word [ebp - 0xe], ax
mov ax, word [edi + 0x12]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0x10]
mov word [ebp - 0x12], ax
mov ax, word [edi + 0xe]
mov word [ebp - 0x14], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x16], ax
mov ax, word [edi + 0xa]
mov word [ebp - 0x18], ax
mov ax, word [edi + 8]
mov word [ebp - 0x1a], ax
mov ax, word [edi + 6]
mov word [ebp - 0x1c], ax
mov ax, word [edi + 4]
mov word [ebp - 0x1e], ax
mov ax, word [edi + 2]
mov word [ebp - 0x20], ax
mov ax, word [edi]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
add dword [0x42a908], 1
push eax
lea eax, [ebp - 0x30]
adc dword [0x42a90c], 0
push eax
lea eax, [ebp - 2]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x34], 0x42a908
push eax
lea eax, [ebp - 6]
mov dword [ebp - 0x38], 0x42a8f4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x22]
mov edx, 0x405607
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
call fcn.00406020
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
pop esi
leave
ret 8
Function at 0x42436d
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4291b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x26a
xor ebx, ebx
lea eax, [ebp - 0x276]
push ebx
push eax
mov esi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x276]
mov edx, 0x135
push 0x22
pop eax
mov word [ebp - 0x278], ax
call fcn.004242d6
mov edi, 0x136
lea ecx, [ebp - 0x278]
push 0x402ad4
mov edx, edi
call fcn.00406792
push esi
mov edx, edi
lea ecx, [ebp - 0x278]
call fcn.00406792
push 0x44
pop esi
push esi
lea eax, [ebp - 0x2d0]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov dword [ebp - 0x2d0], esi
lea edi, [ebp - 0x288]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x2d0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
lea eax, [ebp - 0x288]
push eax
setne bl
call fcn.00424336
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f20
leave
ret

Function at 0x424510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x42459b
call fcn.00424485
test eax, eax
je 0x42459b
mov edx, ebx
mov ecx, esi
call fcn.004245a8
test eax, eax
je 0x42459b
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42459b
push 8
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x42459b
test dword [esi + 0xc], 0x100
je 0x424567
mov ecx, dword [esi + 0x20]
mov dword [0x42a924], ecx
push edi
push 0x424620
mov dword [edi + 4], esi
mov dword [edi], ebx
push dword [esi + 4]
push dword [ebp - 4]
push dword [0x429d88]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov esi, eax
test esi, esi
jne 0x424597
and dword [0x42a924], eax
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, esi
jmp 0x42459d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4245a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push esi
mov esi, ecx
test dword [esi + 0xc], 0x200
je 0x4245ce
push 5
push dword [esi + 0x24]
push dword [esi + 8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
test eax, eax
je 0x42460b
push eax
push dword [esi + 8]
jmp 0x424601
test dword [esi + 0xc], 0x2000
je 0x4245dc
mov eax, dword [esi + 8]
jmp 0x424607
push 0x409
test edx, edx
jne 0x4245ec
push 0x604
jmp 0x4245f1
push 0x605
call fcn.0042444d
test eax, eax
je 0x42460b
push eax
push dword [0x429d88]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
jne 0x42460d
xor eax, eax
pop esi
ret
Function at 0x425d49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425db6
xor ebx, ebx
test eax, 0x4000
je 0x425d8b
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x425d8b
mov ecx, dword [ebp + 4]
mov edx, 0xd6
push 0x405004
call fcn.0040752b
jmp 0x425db8
cmp word [edi], bx
je 0x425db6
mov edx, edi
mov ecx, esi
call fcn.004255a2
mov esi, eax
test esi, esi
jns 0x425db6
mov ecx, dword [ebp + 4]
mov edx, 0xdc
push esi
push 0x405004
call fcn.0040750c
mov eax, esi
jmp 0x425db8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x427154
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x427191
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x42718a
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x427196
add edx, 0x28
cmp edx, esi
jne 0x42717b
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x427193

Function at 0x427740
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x42777f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42777f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42777f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42777f
cmp dword [ecx + 0x74], 0xe
jbe 0x42777f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x6998a570
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6999ab80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6999ab80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6998a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x69aae054]
test esi, esi
jle 0x6998a6f0
mov eax, dword [0x69aae058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6998a604
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6998a687
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6998a5f0
mov dword [esp], ebx
call fcn.6998ad30
mov edi, eax
test eax, eax
je 0x6998a717
mov eax, dword [0x69aae058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6998ae70
mov edx, dword [0x69aae058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6998a6f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6998a680
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6998a690
add dword [0x69aae054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x69aae058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6998a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6998a570
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6998a60e
mov eax, dword [0x69aae058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6998a570
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6998a570
lea esi, [esi]
nop
Function at 0x6998a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x69aae064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x69aae05c]
sub esp, 4
test ebx, ebx
je 0x6998aa05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6998a9fe
test esi, esi
je 0x6998a9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6998a9e0
mov dword [esp], 0x69aae064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6998ad30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x69980000], 0x5a4d
jne 0x6998ad55
mov ecx, dword [0x6998003c]
cmp dword [ecx + 0x69980000], 0x4550
lea edx, [ecx + 0x69980000]
je 0x6998ad60
ret
cmp word [ecx + 0x69980018], 0x10b
jne 0x6998ad55
push esi
movzx eax, word [ecx + 0x69980014]
push ebx
movzx esi, word [ecx + 0x69980006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x69980000
test esi, esi
je 0x6998ada8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6998ad9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6998adaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6998ad90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6998b320
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x69aae060]
test eax, eax
jne 0x6998aa30
ret
push ebx
sub esp, 0x18
mov dword [esp + 4], 0xc
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x6998aa90
mov eax, dword [esp + 0x20]
mov dword [esp], 0x69aae064
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x69aae05c]
mov dword [0x69aae05c], ebx
sub esp, 4
mov dword [ebx + 8], eax
mov dword [esp], 0x69aae064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
or eax, 0xffffffff
jmp 0x6998aa8b
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6998b350
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp 0x6999ad80
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
jne 0x6999ad90
xor eax, eax
ret
jmp 0x6998aa20

Function at 0x6998b390
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6998b3d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6998b3f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6999b0d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [0x69aae02c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6999b138
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x69a68432
mov ecx, eax
call fcn.69a26e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c30
jmp 0x6999b2a8
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6999b18a
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x69a68432
mov ecx, eax
call fcn.69a26e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c30
jmp 0x6999b2a8
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_GetClipboardData]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x6999b1e5
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x69a68432
mov ecx, eax
call fcn.69a26e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c30
jmp 0x6999b2a8
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x6999b23d
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x69a68432
mov ecx, eax
call fcn.69a26e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c30
jmp 0x6999b2a8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c00
lea eax, [esp + 0x34]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ecx, eax
call fcn.69a26e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.699e9c30
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.69a26d50
sub esp, 4
lea eax, [esp + 0x34]
mov ecx, eax
call fcn.69a27940
mov eax, dword [esp + 0x4c]
sub eax, dword [0x69aae02c]
je 0x6999b2b9
call fcn.699815c0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
ret