joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ea8e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp word [0x520f64], 0
jne 0x42eb50
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x42eac3
mov word [0x520f64], di
jmp 0x42eacb
xor eax, eax
mov word [0x520f64], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x520f80], eax
test eax, eax
je 0x42eb4f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ee168
push eax
call esi
push 0x4ee174
push dword [0x520f80]
mov dword [0x520f70], eax
call esi
push str.getnameinfo
push dword [0x520f80]
mov dword [0x520f74], eax
call esi
push str.WSAStringToAddressA
push dword [0x520f80]
mov dword [0x520f78], eax
call esi
cmp dword [0x520f70], 0
mov dword [0x520f7c], eax
pop esi
je 0x42eb4f
cmp dword [0x520f74], 0
je 0x42eb4f
cmp dword [0x520f78], 0
je 0x42eb4f
test eax, eax
je 0x42eb4f
mov dword [0x520f68], edi
pop edi
movsx eax, word [0x520f64]
add esp, 0x190
ret

Function at 0x42f319
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x521dec]
call fcn.00440550
mov ebx, eax
test ebx, ebx
je 0x42f37d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42f342
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42f37d
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00440c30
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00440d10
pop edi
pop esi
pop ebx
ret 8
Function at 0x4337b9
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x521dd0]
call fcn.0043ff10
xor ebp, ebp
mov esi, eax
cmp dword [0x5215e8], ebp
jne 0x433895
xor ebx, ebx
inc ebx
mov dword [0x5215e8], ebx
call fcn.00435d0e
mov edi, 0xa4
push edi
push ebp
push 0x5215f0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5215f0], 0x13
lea eax, [esp + 0x10]
mov dword [0x5215f4], edi
mov dword [0x521600], 0x433704
mov dword [0x521604], 0x433a4f
push eax
mov dword [0x521658], 0x4336df
mov dword [0x52165c], 0x43399a
mov dword [0x5215fc], 0x4336ba
mov dword [0x521680], 0x43371f
mov dword [0x521694], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433895
cmp dword [esp + 0x20], ebx
je 0x43387d
cmp dword [esp + 0x20], 2
jne 0x433895
cmp dword [esp + 0x14], 5
jae 0x433885
mov dword [0x521694], ebp
jmp 0x433895
jne 0x433895
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x521694], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00437e7b
mov eax, dword [esp + 0x140]
push ebp
push dword [0x520bc0]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x43396b
push dword [esp + 0x128]
push dword [0x521dec]
call fcn.0044058f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x43393a
push edi
call fcn.0043b6b9
test eax, eax
je 0x43393a
push ebp
push ebp
push edi
call fcn.0043b303
mov dword [esi + 0x18], eax
jmp 0x43393d
mov dword [esi + 0x18], ebp
push 0x433409
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x5215f0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x5215ec], eax
call fcn.004353f5
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x437351
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4373cb
push 9
call esi
test al, al
jns 0x4373cb
push 0x11
call esi
test al, al
js 0x4373cb
push 0x10
call esi
test al, al
js 0x4373cb
push 0x12
call esi
test al, al
js 0x4373cb
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4373cb
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4373cb
xor eax, eax
jmp 0x43744c
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4373f3
push 0x11
call esi
test al, al
js 0x4373eb
push 0x10
call esi
test al, al
js 0x4373eb
push 0x12
call esi
test al, al
jns 0x4373f3
push 1
push edi
call fcn.00437454
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x437409
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x437449
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x437449
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x437449
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x437449
lea eax, [esi - 1]
push eax
push dword [0x521dfc]
call fcn.00440550
test eax, eax
je 0x437449
mov eax, dword [eax + 8]
jmp 0x43744b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x437f93
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4380db
xor ecx, ecx
cmp word [eax], cx
je 0x4380db
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x437fec
cmp eax, 3
jne 0x438026
cmp word [esp + 0xa], 0x3a
jne 0x438026
cmp eax, 2
jne 0x43800a
lea eax, [esp + 8]
push 0x4ee720
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4380db
push 0xfffffffffffffffe
pop edi
jmp 0x4380db
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x43803b
cmp ax, bx
jne 0x438045
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43802e
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x438084
test byte [esp + 0x21c], 0x10
je 0x43806b
push 0xfffffffffffffffe
pop edi
jmp 0x43807b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4380d9
cmp word [esp + 0x10], bp
jne 0x438092
cmp word [esp + 0x12], bp
je 0x4380b1
cmp word [esp + 0x10], bx
jne 0x4380a0
cmp word [esp + 0x12], bx
je 0x4380b1
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4380d9
cmp word [esp + 0x12], ax
jne 0x4380d9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4380c6
test al, 0x10
je 0x4380d9
jmp 0x4380d6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4380d9
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4380ea
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x43810a
cmp dword [esp + 8], 0
je 0x43810a
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x43810c
xor eax, eax
ret 8

Function at 0x438128
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x438151
test byte [esp + 8], 2
je 0x438145
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x438153
xor eax, eax
ret 8
Function at 0x4381e6
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x5218f8]
push esi
test eax, eax
jne 0x43820b
push 0x438313
push 0x10
push 0x258
call fcn.00440623
mov dword [0x5218f8], eax
push dword [esp + 0xc]
push eax
call fcn.0044058f
mov esi, eax
test esi, esi
je 0x43830c
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x43822d
mov edi, 0x4d9dc8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43823d
xor eax, eax
cmp word [ebx], ax
jne 0x438242
mov ebx, 0x4ee724
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4382f3
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4382a3
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4382a7
push 0x4ee720
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4382a7
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4382cb
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4382e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4382df
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x43830a
cmp dword [esp + 0x14], 0xffffffff
je 0x4382fe
mov esi, dword [esp + 0x14]
push esi
push dword [0x5218f8]
call fcn.00440501
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x438446
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4384be
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x43849f
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43849c
cmp ecx, 0x5c
je 0x43849c
cmp ecx, 0x2f
jne 0x4384a9
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x438489
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4384c0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x438540
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x43857c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x438880
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x438974
cmp word [edx], 0
je 0x438974
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x43890d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x4388e0
jmp 0x4388c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4388c0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004389f0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4388e0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00438b00
mov esi, eax
test esi, esi
je 0x43896b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x438948
push dword [esp + 0x10]
push esi
push eax
call fcn.004389f0
mov dword [esp + 4], eax
jmp 0x43895c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x4389f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x438af7
cmp dword [esi + 0x14], 1
jne 0x438a3b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x438ab8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x438aa3
dec eax
je 0x438a8c
sub eax, 2
je 0x438a77
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00438540
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x438ae5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x438a61
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4397d9
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x43984e
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4397f7
mov esi, 0x4d9dc8
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x439845
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x439845
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.DLL_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.DLL_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4

Function at 0x43a104
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43a188
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43a180
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a171
cmp dword [esp + 0x18], ebx
jne 0x43a171
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00439ce5
mov ebp, eax
push edi
push 0
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x43b817
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x521904], eax
test eax, eax
je 0x43b845
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x521900], eax
lea eax, [ebp - 0x114]
mov dword [0x521908], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43b8a7
cmp dword [ebp - 0x104], 1
jne 0x43b87c
and dword [0x521908], 0
jmp 0x43b8bf
cmp dword [ebp - 0x104], 2
jne 0x43b8a7
cmp dword [ebp - 0x110], 5
jb 0x43b873
jne 0x43b8a7
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x521908]
mov dword [0x521908], eax
jmp 0x43b8ac
mov eax, dword [0x521908]
test eax, eax
je 0x43b8bf
call fcn.0043b0f2
neg eax
sbb eax, eax
and dword [0x521908], eax
mov esp, ebp
pop ebp
ret
Function at 0x43c920
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x43c952
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c94d
cmp dword [esp + 0xc], esi
je 0x43c969
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x43ff10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x5219a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x43ff71
push esi
push dword [0x5219a4]
push 8
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x5219a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x5219a0]
jmp 0x43ff61
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43ff5f
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x43ff4f
push edi
push 0x43feae
call fcn.004d17bf
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x43ff7b
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x43ff91
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x5219a4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43ffc8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x520bbc]
mov dword [0x5219a8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x5219a8]
call ebx
mov eax, dword [0x5219a4]
mov edi, eax
add eax, esi
push eax
push dword [0x5219a8]
mov dword [0x5219a4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x5219a8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x440008
test ebx, ebx
je 0x440029
push 0x14
push 0x5219a0
call fcn.0044081b
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x440029
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x440910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x51e604]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x440956
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x521f4c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x440977
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x521f4c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00441520
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x440a00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51e604]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x440b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51e604]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret