joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b700
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 0x43b807
cmp dword [esi + 0x14], 1
jne 0x43b74b
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 0x43b7c8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x43b7b3
dec eax
je 0x43b79c
sub eax, 2
je 0x43b787
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.0043a8e0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x43b7f5
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 0x43b771
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x43b810
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x43b837
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043b570
mov dword [esp + 4], eax
jmp 0x43b851
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x43b85d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x43b879
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x43b889
mov esi, 2
jmp 0x43b8a5
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x43b898
mov esi, 3
jmp 0x43b8a5
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x43b902
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x43b8d4
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0043b570
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x43ccc5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x4a6de8]
call fcn.00443f4e
mov edi, eax
test edi, edi
je 0x43cd19
push esi
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x43cd19
push esi
push dword [edi]
call fcn.0043ce08
mov edi, eax
test edi, edi
je 0x43cd13
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push edi
push 8
call dword [sym.imp.USER32.DLL_SetClipboardData]
mov esi, eax
test esi, esi
jne 0x43cd13
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.DLL_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x43cd20
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4a6de8]
call fcn.00443f8d
push edi
mov esi, eax
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x43cda2
push 8
call dword [sym.imp.USER32.DLL_GetClipboardData]
test eax, eax
je 0x43cd98
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x43cd97
push dword [ebp + 0xc]
push ebx
call fcn.0043d192
mov ecx, eax
test ecx, ecx
je 0x43cd90
cmp dword [ebp + 8], 0xffffffff
mov edi, esi
mov dword [esi], ecx
mov ax, word [ebx + 4]
mov word [esi + 4], ax
mov ax, word [ebx + 8]
mov word [esi + 6], ax
mov eax, dword [ebp + 0xc]
mov byte [esi + 8], al
mov byte [esi + 9], al
je 0x43cd90
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.DLL_CloseClipboard]
test edi, edi
jne 0x43cdb7
cmp dword [ebp + 8], 0xffffffff
je 0x43cdab
mov esi, dword [ebp + 8]
push esi
push dword [0x4a6de8]
call fcn.00443eff
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x43d2cb
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 0x43d33c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x43d2e9
mov esi, 0x48900e
push esi
call sub.MSVCRT.dll_strlen
pop ecx
lea ebp, [eax + 1]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43d333
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43d333
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 1
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 0x43d88e
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x43d8eb
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x43d8eb
mov eax, dword [esi + 0x70]
test eax, eax
je 0x43d8ca
push ebx
push esi
call eax
push esi
push ebx
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x4a6dec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4a6df0], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x43d8f3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x4a6dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x43d91b
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x43d96c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x4a6dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x43d994
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xb0]
je 0x43d9a9
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [ebp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14
Function at 0x43d9c9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x4a6dec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov ecx, dword [eax + 0x90]
add ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
push eax
call dword [eax + 0x44]
pop ebp
ret 0x14

Function at 0x43eaaf
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4a6dec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4a6df0], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x43db8e
mov dword [esi + 4], 0x43dbae
mov dword [esi + 8], 0x43e8ad
mov dword [esi + 0xc], 0x43dc46
mov dword [esi + 0x10], 0x43e141
mov dword [esi + 0x14], 0x43e0d3
mov dword [esi + 0x18], 0x43e111
mov dword [esi + 0x1c], 0x43e129
mov dword [esi + 0x20], fcn.0043e19d
mov dword [esi + 0x24], 0x43dfa4
mov dword [esi + 0x28], fcn.0043ddf9
mov dword [esi + 0x2c], 0x43dd10
mov dword [esi + 0x30], 0x43e069
mov dword [esi + 0x34], 0x43dfc0
mov dword [esi + 0x38], 0x43e21a
mov dword [esi + 0x3c], 0x43e320
mov dword [esi + 0x40], 0x43e3c4
mov dword [esi + 0x44], 0x43e45b
mov dword [esi + 0x48], 0x43e54e
mov dword [esi + 0x4c], 0x43e72f
mov dword [esi + 0x50], 0x43e59f
mov dword [esi + 0x54], 0x43e7f1
mov dword [esi + 0x58], 0x43e8ec
mov dword [esi + 0x5c], 0x43e9a7
mov dword [esi + 0x60], 0x43ea1f
mov dword [esi + 0x64], 0x43ea64
pop esi
ret

Function at 0x4404d9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4a6ba4], eax
test eax, eax
je 0x440509
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a6ba0], eax
lea eax, [ebp - 0x1c]
mov dword [0x4a6ba8], 1
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x440559
cmp dword [ebp - 0xc], 1
jne 0x440537
and dword [0x4a6ba8], 0
jmp 0x440571
cmp dword [ebp - 0xc], 2
jne 0x440559
cmp dword [ebp - 0x18], 5
jb 0x44052e
jne 0x440559
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [0x4a6ba8]
mov dword [0x4a6ba8], eax
jmp 0x44055e
mov eax, dword [0x4a6ba8]
test eax, eax
je 0x440571
call fcn.0043fd4c
neg eax
sbb eax, eax
and dword [0x4a6ba8], eax
lea esp, [ebp + 0x78]
pop ebp
ret
Function at 0x4415e0
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 0x441612
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 0x44160d
cmp dword [esp + 0xc], esi
je 0x441629
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 0x441f5c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
mov ecx, dword [0x4a6c04]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x442130
mov edx, dword [esp + 0x28]
mov eax, dword [esi*4 + 0x4a6e74]
cmp dword [eax], edx
je 0x441f96
inc esi
mov dword [esp + 0x10], esi
cmp esi, ecx
jl 0x441f7d
jmp 0x442130
cmp dword [esp + 0x38], 0x20
jne 0x442104
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x44]
test eax, eax
je 0x441fda
cmp ebp, 0x20
je 0x441fb6
cmp ebp, 0xffffffff
jne 0x441fda
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x44212e
mov eax, dword [esp + 0x2c]
inc eax
imul ebx, eax, 3
and ebx, 0xfffffffc
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x442130
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x4420cf
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov ebp, edx
test eax, eax
jle 0x4420af
mov ebx, ecx
mov esi, eax
mov ecx, 0xff
movzx eax, byte [ebp + 2]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
sub eax, ecx
movzx ecx, byte [ebp - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx], al
lea ebx, [ebx + 3]
dec esi
jne 0x442040
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebx
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x44202d
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi*4 + 0x4a6e74]
mov esi, dword [esp + 0x18]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebx
push edi
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x4a5a70]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x442130
cmp dword [esp + 0x38], 0x18
jne 0x442130
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x443ddd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4a6c48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x443e3e
push esi
push dword [0x4a6c44]
push 8
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4a6c48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4a6c40]
jmp 0x443e2e
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x443e2c
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x443e1c
push edi
push 0x443d7b
call fcn.00481b7b
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x443e48
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 0x443e5e
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4a6c44]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x443e95
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x4a5a70]
mov dword [0x4a6c48], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4a6c48]
call ebx
mov eax, dword [0x4a6c44]
mov edi, eax
add eax, esi
push eax
push dword [0x4a6c48]
mov dword [0x4a6c44], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4a6c48]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x443ed5
test ebx, ebx
je 0x443ef6
push 0x14
push 0x4a6c40
call fcn.00444627
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x443ef6
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 0x4447c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3634]
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 0x444806
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x4a6ef8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x444827
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4a6ef8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
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.00444c60
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x444850
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a3634]
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, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x444950
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a3634]
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

Function at 0x444b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a3634]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x444b34
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x444b81
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x4a6ef8]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x444be0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a3634]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x444c1e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x444c1e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x444c20
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x444ce0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a3634]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x4451d0
Capabilities:
Get thread local storage value

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

Function at 0x44ccf0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44cd10
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44cd10
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44cd10
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45d120
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x45d159
mov eax, dword [esp]
cmp al, 2
jne 0x45d153
shr eax, 8
cmp al, 2
jne 0x45d153
call fcn.0046abf0
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret

Function at 0x466160
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x4c4]
push 0x4000
push ebp
call fcn.00475a40
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x4661b1
cmp byte [ebx + 0x84ec], 0
jne 0x4661b1
push ebp
push 0x48ccd4
push 0x100
push eax
call fcn.00475950
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x466228
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4661c0
sub edi, ecx
cmp edi, 0x3fff
jae 0x4661e1
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4661ff
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x48ccbc
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x466230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x4662dd
cmp byte [ebx + 0x284], 0
je 0x4662dd
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00475a40
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x466280
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x4662b0
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x48ccbc
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret