joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6a1
Capabilities:
Receive http response

Disassembly:
push 0x98
mov eax, 0x43e0f5
call fcn.0040e38d
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x58]
push eax
call fcn.00405870
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a07f
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401e00
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x40a721
xor ecx, ecx
jmp 0x40a75f
push eax
lea ecx, [ebp - 0x88]
call fcn.00405870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov edx, eax
mov dword [ebp - 0x98], 1
call fcn.0040a07f
mov ecx, eax
push 3
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 8
pop ebx
mov dword [ebp - 0x98], ebx
jb 0x40a75f
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
push dword [ebp - 0x94]
cmovae eax, dword [ebp - 0x40]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.0040aab7
neg al
sbb al, al
inc al
mov byte [ebp - 0x89], al
test bl, 2
je 0x40a798
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.004056b0
mov dword [ebp - 4], 3
test bl, 1
je 0x40a7af
lea ecx, [ebp - 0x88]
call fcn.00401e00
cmp byte [ebp - 0x89], 0
je 0x40a7da
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, esi
jmp 0x40a8a3
mov ecx, edi
call fcn.0040aa4b
mov dword [edi + 4], eax
cmp eax, 0x194
je 0x40a8ab
push 0x1000
call fcn.00428679
pop ecx
mov esi, eax
xor bl, bl
jmp 0x40a851
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40a867
cmp eax, 0x1000
jbe 0x40a82c
push esi
call fcn.0042865e
push dword [ebp - 0x90]
call fcn.00428679
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x90]
pop ecx
lea ecx, [ebp - 0x9c]
push ecx
push eax
push esi
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40a869
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x28]
push esi
call fcn.00406920
lea eax, [ebp - 0x90]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a800
jmp 0x40a869
mov bl, 1
push esi
call fcn.0042865e
pop ecx
test bl, bl
jne 0x40a87e
push 0
lea ecx, [ebp - 0x28]
call fcn.00409d40
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, dword [ebp - 0xa4]
call fcn.0040e348
ret 0x14
push 0x453640
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 5
push eax
call fcn.00424cf2
int3
Function at 0x40a9d6
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0x30
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00425860
add esp, 0xc
mov dword [ebp - 0x38], 0x30
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 5
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40aa38
push 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0042e9f7
add esp, 0xc
mov dword [edi], eax
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d833
leave
ret 4

Function at 0x40aa4b
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
xor edi, edi
lea eax, [ebp - 0x34]
push edi
push eax
mov esi, ecx
call fcn.00425860
add esp, 0xc
mov dword [ebp - 0x38], 0x30
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push 0x13
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40aaa7
push 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0042e9f7
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040d833
leave
ret
Function at 0x40aab7
Capabilities:
Prepare http request
Receive http response

Disassembly:
push 0x44
mov eax, 0x43e15a
call fcn.0040e38d
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.0040a1cc
mov ecx, esi
call fcn.0040a18c
test al, al
je 0x40ac02
push 7
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea edx, [ebp - 0x44]
call fcn.00409eec
mov eax, 0x1bb
pop ecx
pop ecx
cmp word [ebp - 0x48], ax
jne 0x40ab2d
mov byte [esi + 8], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [esi + 0x10], edx
test edx, edx
jne 0x40ab5e
mov dword [esi + 0x84], 2
jmp 0x40abf0
xor ecx, ecx
mov eax, 0x800000
cmp byte [esi + 8], cl
cmovne ecx, eax
cmp dword [ebp - 0x18], 8
push ecx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
mov ecx, str.POST
cmovae eax, dword [ebp - 0x2c]
cmp dword [ebp + 0xc], 0
push eax
mov eax, 0x44df14
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x14], eax
test eax, eax
je 0x40abe2
cmp byte [esi + 8], 0
je 0x40abb7
push 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3301
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x50]
call fcn.0040ac0a
test al, al
jne 0x40abd4
mov dword [esi + 0x84], 3
jmp 0x40abf0
push ebx
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40abee
mov dword [esi + 0x84], 1
jmp 0x40abf0
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.004056b0
lea ecx, [ebp - 0x44]
call fcn.004056b0
mov al, bl
call fcn.0040e348
ret 0x10
Function at 0x4105b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x40107e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [0x8135a8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x8135ac]
xor esi, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.00401077
mov eax, dword [0x8135b0]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x8135b4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1e040f4], 0xc
mov dword [ebp - 4], eax
jne 0x401100
push esi
lea eax, [ebp - 0x40]
push eax
push esi
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1e040f4]
cmp eax, 0xfa9
jne 0x40111c
mov dword [0x1e040f0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401134
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1e04044], esi
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1e040ec], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub ebx, dword [ebp - 8]
cmp dword [0x1e040f4], 0xc
mov dword [ebp - 4], eax
jne 0x4011b8
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x458]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, dword [ebp - 0x18]
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x4010d0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
leave
ret 4
Function at 0x407c6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x812c40]
jne 0x407c79
repz ret
jmp fcn.0040c3ad

Function at 0x40b100
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.00405ea0
and dword [ebp - 4], 0
cmp dword [0x81c600], 0
mov ebx, eax
jne 0x40b1b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b262
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b262
push eax
call fcn.00405e2e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81c600], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81c604], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81c608], eax
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x81c610], eax
test eax, eax
je 0x40b1b1
push 0x80eec0
push edi
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x81c60c], eax
mov eax, dword [0x81c60c]
cmp eax, ebx
je 0x40b209
cmp dword [0x81c610], ebx
je 0x40b209
push eax
call fcn.00405ea9
push dword [0x81c610]
mov esi, eax
call fcn.00405ea9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b209
test edi, edi
je 0x40b209
call esi
test eax, eax
je 0x40b200
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b200
test byte [ebp - 0xc], 1
jne 0x40b209
or dword [ebp + 0x10], 0x200000
jmp 0x40b242
mov eax, dword [0x81c604]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b242
mov eax, dword [0x81c608]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81c600]
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b262
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b264
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c170
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x805568
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x805560]
sub esp, 4
test ebx, ebx
je 0x40c1bb
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 0x40c1b4
test esi, esi
je 0x40c1b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c190
mov dword [esp], 0x805568
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c3a0
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
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 0x40c3f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40c4c4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40c42e
cmp eax, 4
jne 0x40c450
test esi, esi
je 0x40c442
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40c434
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40c48f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40c481
cmp ecx, 0x40
je 0x40c442
cmp ecx, 4
je 0x40c442
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
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.0040c3a0
lea esi, [esi]
Function at 0x415d50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
test eax, eax
je 0x415e24
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sub.msvcrt.dll_strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00417ca0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0x4b4ec4
mov dword [esp], 2
mov esi, eax
call sub.msvcrt.dll_setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x415e30
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x415e20
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_GetCPInfo
sub esp, 8
test eax, eax
je 0x415e20
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x415e70
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x415de2
mov dword [esp], str.LC_CTYPE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x415de2
mov dword [esp], str.LANG
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x415de2
mov eax, esi
jmp 0x415de2
mov esp, ebx
jmp 0x415e24

Function at 0x418020
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x418050
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 sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x418078
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sub.KERNEL32.dll_GetLastError
Function at 0x41c260
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x805f84], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreW
sub esp, 0x10
mov dword [0x805f88], eax
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41c2c8
mov dword [esp + 4], 0x41c170
mov dword [esp], eax
mov dword [0x805f80], eax
call fcn.0041c8e0
test eax, eax
jne 0x4a8879
add esp, 0x1c
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x41c2b8
Function at 0x41c2d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x80554c]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x41c2f8
mov eax, dword [esi + 8]
test eax, eax
je 0x41c350
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x41c360
mov ebx, dword [0x805f80]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], ebx
mov ebp, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sub.KERNEL32.dll_SetLastError
sub esp, 4
test ebx, ebx
je 0x41c3f0
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x41c440
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x41c2ec
mov eax, esi
call fcn.0041c1c0
mov dword [ebx], eax
jmp 0x41c2ec
mov eax, esi
call fcn.0041c1c0
mov dword [esi + 8], eax
jmp 0x41c2ec
mov edi, dword [0x80554c]
test edi, edi
je 0x41c4c8
mov ebx, dword [0x4af0a8]
test ebx, ebx
je 0x41c498
mov dword [esp], 0x805f84
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
jne 0x41c50b
mov edi, dword [esi + 8]
test edi, edi
je 0x41c4d3
mov eax, dword [0x80554c]
test eax, eax
je 0x41c2ff
mov dword [esp], 0x805f84
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
test eax, eax
js 0x41c2ff
mov eax, dword [0x805f88]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
jmp 0x41c2ff
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x4a887e
mov dword [eax], ebp
mov eax, dword [0x805f80]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x41c336
call sub.KERNEL32.dll_GetLastError
jmp 0x41c336
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x41c44b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call fcn.0040fbb0
mov ebx, eax
test eax, eax
je 0x4a887e
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x41c412
mov dword [esp], 0x4af0ac
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
jne 0x41c4ff
call fcn.0041c260
mov dword [0x4af0a8], 1
mov edx, dword [0x80554c]
test edx, edx
jne 0x41c37c
mov edi, dword [esi + 8]
test edi, edi
jne 0x41c2ff
mov eax, dword [0x805f7c]
lea edi, [eax + 1]
mov dword [0x805f7c], edi
mov dword [esi + 8], edi
jmp 0x41c39e
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov ecx, dword [0x4af0a8]
test ecx, ecx
je 0x41c4f0
jmp 0x41c4ba
mov eax, dword [0x805f88]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x41c393
mov dword [esp], 0x805f84
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
jmp 0x41c393
Function at 0x41f490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4b1fad
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x4b2011]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.00417ca0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.004a7498
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b0b1c], 0
jne 0x4a8698
mov byte [0x4b0b1c], 1
call fcn.004a5770
test eax, eax
je 0x4a86ca
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0040b8a0
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41f568
mov dword [esp], esi
call sub.msvcrt.dll_fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b2d09
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a86c5
mov dword [esp], esi
call fcn.0040fc30
jmp 0x4a86c5
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
jmp 0x41f52c
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
add eax, 0x40
mov dword [esp], str.terminate_called_recursively_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
call fcn.004a5b40
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
add eax, 0x40
mov dword [esp], str.terminate_called_without_an_active_exception_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x4a8753
call fcn.004a5650
add edi, 0x40
mov ecx, eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xb
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp + 4], edi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.004a57c0
jmp 0x4a86f2
call fcn.004a5650
call fcn.004a57c0
jmp 0x4a86f2