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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x460e9c
push ebx
push esi
call fcn.00460dc8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00460d5c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x460e49
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x460e9b
push edi
push eax
call fcn.0045bfcc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x460e69
call fcn.0045aa3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x460e9a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00460d5c
add esp, 0x20
test eax, eax
jne 0x460e88
push edi
call fcn.0045aa3e
jmp 0x460e90
push ebx
call fcn.0045aa3e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x460e9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x460eb0
pop esi
ret
push ebx
push edi
push esi
call fcn.00460dc8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045bfcc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x460ed8
push ebx
push esi
push edi
call fcn.00447fa0
add esp, 0xc
push 0
call fcn.0045aa3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x461632
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046114d

Function at 0x463c8f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045bae9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463cfe
cmp esi, dword [ebp - 4]
je 0x463cf9
cmp dword [ebp + 0xc], 0
je 0x463cf9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x463cd6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004637cc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x463d00
xor eax, eax
inc eax
jmp 0x463d00
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x463d65
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0045bae9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0045bae9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x463ddc
cmp word [ecx], dx
je 0x463ddc
mov eax, dword [0x47b094]
push edi
dec eax
push eax
push 0x47af80
call fcn.00463d04
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x463e4f
cmp word [eax], dx
je 0x463e4f
mov eax, dword [edi]
test eax, eax
je 0x463e00
cmp word [eax], dx
je 0x463e00
lea eax, [ebp - 0x10]
push eax
call fcn.004636d2
jmp 0x463e09
lea eax, [ebp - 0x10]
push eax
call fcn.0046376d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x463e79
mov eax, dword [0x47af7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x47ac70
call fcn.00463d04
add esp, 0xc
test al, al
je 0x463e79
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x463e44
cmp word [eax], di
je 0x463e44
lea eax, [ebp - 0x10]
push eax
call fcn.004636d2
pop ecx
jmp 0x463e7b
lea eax, [ebp - 0x10]
push eax
call fcn.0046376d
jmp 0x463e41
mov eax, dword [edi]
test eax, eax
je 0x463e66
cmp word [eax], dx
je 0x463e66
lea eax, [ebp - 0x10]
push eax
call fcn.00463687
pop ecx
jmp 0x463e79
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x463f44
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00463b89
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x463f44
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x463f44
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x463f44
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x463ed1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045c983
test ebx, ebx
je 0x463f3f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045c983
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463f44
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463f44
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00469da3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x463f46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e653
leave
ret
Function at 0x46b2a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46b2cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46b2cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ab0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401afb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401af4
test esi, esi
je 0x401af4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ad0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ce0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e08
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d6e
cmp eax, 4
jne 0x401d90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d7e
cmp edx, 4
je 0x401d7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ce0

Function at 0x40b002
Capabilities:
Encode data using xor

Disassembly:
pop eax
mov edx, eax
add eax, 8
mov ecx, 1
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
dec eax
cmp edx, eax
jle 0x40b010
inc eax
jmp eax
Function at 0x408220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00407e60
push eax
push esi
push dword [ebp + 8]
call fcn.00407e15
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00407e60
push eax
push esi
push dword [ebp + 8]
call fcn.00407e15
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00407e50
push es
sbb byte [ecx], 0x73
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00407e50
add dword [0x858d83b0], edx
jl 0x40833b
invalid
invalid
Function at 0x413d9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435b3c]
jne 0x413da7
repz ret
jmp fcn.00419b79

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x420e71
call fcn.00416911
mov dword [eax], esi
call fcn.004168fe
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00415dee
add esp, 0x14
push 0x16
pop eax
jmp 0x420ec6
test dword [ebp + 0xc], 0xfffffff9
jne 0x420e4d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416924
pop ecx
call fcn.004168fe
mov eax, dword [eax]
jmp 0x420ec6
test al, 0x10
jne 0x420ec4
test al, 1
je 0x420ec4
test byte [ebp + 0xc], 2
je 0x420ec4
call fcn.00416911
mov dword [eax], 5
call fcn.004168fe
mov dword [eax], 0xd
jmp 0x420e95
xor eax, eax
pop esi
pop ebp
ret

Function at 0x423f20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00418b7e
and dword [ebp - 4], 0
cmp dword [0x43a7d8], 0
mov ebx, eax
jne 0x423fd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424082
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42ec54
push edi
call esi
test eax, eax
je 0x424082
push eax
call fcn.00418b0c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43a7d8], eax
call esi
push eax
call fcn.00418b0c
mov dword [esp], 0x42ec30
push edi
mov dword [0x43a7dc], eax
call esi
push eax
call fcn.00418b0c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43a7e0], eax
call esi
push eax
call fcn.00418b0c
pop ecx
mov dword [0x43a7e8], eax
test eax, eax
je 0x423fd1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418b0c
pop ecx
mov dword [0x43a7e4], eax
mov eax, dword [0x43a7e4]
cmp eax, ebx
je 0x424029
cmp dword [0x43a7e8], ebx
je 0x424029
push eax
call fcn.00418b87
push dword [0x43a7e8]
mov esi, eax
call fcn.00418b87
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424029
test edi, edi
je 0x424029
call esi
test eax, eax
je 0x424020
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424020
test byte [ebp - 0xc], 1
jne 0x424029
or dword [ebp + 0x10], 0x200000
jmp 0x424062
mov eax, dword [0x43a7dc]
cmp eax, ebx
je 0x424062
push eax
call fcn.00418b87
pop ecx
test eax, eax
je 0x424062
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424062
mov eax, dword [0x43a7e0]
cmp eax, ebx
je 0x424062
push eax
call fcn.00418b87
pop ecx
test eax, eax
je 0x424062
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43a7d8]
call fcn.00418b87
pop ecx
test eax, eax
je 0x424082
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424084
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f7a8
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x78
mov dword [esp + 0x44], sym.___gxx_personality_sj0
mov dword [esp + 0x48], 0x470c94
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x40f915
mov dword [esp + 0x54], esp
lea eax, [esp + 0x2c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp byte [0x47f020], 0
jne 0x40f8da
mov byte [0x47f020], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x40f93a
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp byte [eax], 0x2a
sete al
movzx eax, al
add dword [esp + 0x18], eax
mov dword [esp + 0x6c], 0xffffffff
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0x30], 0xffffffff
call sym.___cxa_demangle
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x6c], 0
mov dword [esp + 4], eax
je 0x40f8cc
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x473b11
call sym._fwrite
cmp dword [esp + 0x6c], 0
je 0x40f907
mov dword [esp + 0x30], 1
call sym.___cxa_rethrow
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fputs
jmp 0x40f890
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._free
jmp 0x40f8bf
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x40f935

Function at 0x415e44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort
Function at 0x415e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x415eac
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x415f5c
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x415f50
cmp eax, 4
je 0x415f50
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x415ea1
cmp eax, 4
je 0x415ea1
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error

Function at 0x4164fc
Capabilities:
Allocate thread local storage

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x47f06c]
test ebx, ebx
je 0x416574
mov eax, dword [0x47f044]
test eax, eax
je 0x416532
test ebx, ebx
je 0x416532
mov edi, dword [ebx]
test edi, edi
je 0x416548
mov eax, dword [0x47f070]
test eax, eax
je 0x4165d8
mov eax, dword [eax]
test eax, eax
jns 0x416541
mov eax, dword [0x47f070]
test eax, eax
je 0x416584
mov dword [eax], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 4]
mov dword [esp], eax
call sym._InterlockedIncrement_4
push esi
test eax, eax
jne 0x416569
jmp 0x416590
mov dword [esp], 0
call sym._Sleep_4
push ecx
mov edx, dword [ebx]
test edx, edx
je 0x41655c
jmp 0x41651f
call dbg.__shmem_grabber_sjlj_once
mov ebx, eax
mov dword [0x47f06c], eax
jmp 0x41650c
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x41653b
mov esi, dword [0x47f070]
test esi, esi
je 0x4165fd
mov edi, dword [0x47f074]
test edi, edi
je 0x4165ef
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x4165e8
mov dword [edi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov dword [ebx], 1
jmp 0x41651f
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x41652c
call sym._GetLastError_0
jmp 0x4165c0
call dbg.__shmem_grabber_fc_key
mov edi, eax
mov dword [0x47f074], eax
jmp 0x4165a4
call dbg.__shmem_grabber_use_fc_key
mov esi, eax
mov dword [0x47f070], eax
jmp 0x41659a
Function at 0x4166e8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, eax
mov ebx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [ebx]
jmp 0x416734
mov eax, dword [0x47f074]
test eax, eax
je 0x416860
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x416804
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x4167f0
mov ebp, dword [eax + 0x18]
xor edi, edi
mov eax, 0xa
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [esp + 0x28]
test eax, eax
jne 0x41682c
cmp edi, 5
je 0x416831
test ebp, ebp
je 0x4167b9
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
mov edi, eax
cmp eax, 7
je 0x416831
cmp eax, 8
jne 0x41682c
mov eax, dword [ebx]
mov edi, dword [eax]
mov eax, dword [0x47f070]
test eax, eax
je 0x41683c
mov eax, dword [eax]
test eax, eax
js 0x416810
mov eax, dword [0x47f070]
test eax, eax
je 0x416820
mov eax, dword [eax]
test eax, eax
jne 0x416708
mov eax, dword [0x47f078]
test eax, eax
je 0x41684c
mov dword [eax], edi
jmp 0x41672e
xor ebp, ebp
mov edi, 5
mov eax, 0x1a
jmp 0x416746
call sym._GetLastError_0
jmp 0x41672e
call dbg.fc_key_init_once
mov eax, dword [0x47f070]
test eax, eax
jne 0x4167d5
nop
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x4167d5
mov edi, 2
mov eax, edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x4167c6
call dbg.__shmem_grabber_fc_static
mov dword [0x47f078], eax
mov dword [eax], edi
jmp 0x41672e
call dbg.__shmem_grabber_fc_key
mov dword [0x47f074], eax
jmp 0x416715
Function at 0x416870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x47f070]
test eax, eax
je 0x41692c
mov edi, dword [eax]
test edi, edi
js 0x416920
mov eax, dword [0x47f070]
test eax, eax
je 0x41693c
mov esi, dword [eax]
test esi, esi
je 0x4168fc
mov eax, dword [0x47f074]
test eax, eax
je 0x41694c
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov edi, eax
mov dword [esp], esi
call sym._SetLastError_4
push ecx
mov dword [ebx], edi
mov eax, dword [0x47f074]
test eax, eax
je 0x41697c
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x416914
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x47f078]
test eax, eax
je 0x41695c
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym._GetLastError_0
call dbg.fc_key_init_once
jmp 0x416891
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x416887
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x41689e
call dbg.__shmem_grabber_fc_key
mov dword [0x47f074], eax
jmp 0x4168b1
call dbg.__shmem_grabber_fc_static
mov dword [0x47f078], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x416909
call dbg.__shmem_grabber_fc_static
mov dword [0x47f078], eax
mov dword [eax], ebx
jmp 0x41690b
call dbg.__shmem_grabber_fc_key
mov dword [0x47f074], eax
jmp 0x4168dd

Function at 0x41698c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x47f070]
test eax, eax
je 0x416a08
mov eax, dword [eax]
test eax, eax
js 0x4169f4
mov eax, dword [0x47f070]
test eax, eax
je 0x4169fc
mov eax, dword [eax]
test eax, eax
je 0x4169d8
mov eax, dword [0x47f074]
test eax, eax
je 0x416a24
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x4169e8
add esp, 0x18
pop ebx
ret
mov eax, dword [0x47f078]
test eax, eax
je 0x416a14
mov dword [eax], ebx
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp sym._GetLastError_0
call dbg.fc_key_init_once
jmp 0x4169a5
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x4169ae
call dbg.__shmem_grabber_use_fc_key
mov dword [0x47f070], eax
jmp 0x41699f
call dbg.__shmem_grabber_fc_static
mov dword [0x47f078], eax
mov dword [eax], ebx
jmp 0x4169e3
call dbg.__shmem_grabber_fc_key
mov dword [0x47f074], eax
jmp 0x4169bd