joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e8d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00420720
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x473b28]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0041fefb
mov ebx, eax
test ebx, ebx
je 0x41e9ee
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41e92e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041edd0
mov dword [esp + 0x14], eax
jmp 0x41e945
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x41e957
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x41e981
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00420720
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x41e9ed
cmp dword [esp + 0x14], 0
je 0x41e998
cmp al, 0xd
je 0x41e998
cmp al, 0xa
jne 0x41e910
sub ebp, 1
cmp al, 0xd
jne 0x41e9ed
cmp dword [ebx + 4], 0
je 0x41e9b4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041edd0
jmp 0x41e9cb
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41e9ed
cmp dword [ebx + 4], 0
je 0x41e9de
add dword [ebx + 0xc], 1
jmp 0x41e9ed
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.004207c0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x41ea70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x473b28]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0041fefb
mov esi, eax
test esi, esi
je 0x41eb42
mov ecx, dword [esp + 0x14]
test ecx, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x41eafa
cmp byte [ecx], 0
je 0x41eafa
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x41eae0
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41eac0
sub eax, edi
push eax
push ecx
push esi
call fcn.0041f200
mov dword [esp + 0xc], eax
jmp 0x41eaf9
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41eae0
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x41eb1d
push 2
push 0x4220b8
push esi
call fcn.0041f200
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x4220b8
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
Function at 0x41eb50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x473b28]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0041fefb
test eax, eax
je 0x41eb9a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x41eb87
push 1
push edx
push eax
call fcn.0041edd0
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x41ebb0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x473b28]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0041fefb
test eax, eax
je 0x41ebfb
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x41ebe8
push 2
push edx
push eax
call fcn.0041edd0
movsx eax, word [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp]
pop ecx
ret 4

Function at 0x41ec10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x41ec59
cmp byte [esi], al
je 0x41ec59
mov eax, dword [esp + 0xc]
mov ecx, dword [0x473b28]
push eax
push ecx
call fcn.0041fefb
test eax, eax
je 0x41ec87
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x41ec60
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x41ec45
sub ecx, edi
push ecx
push esi
push eax
call fcn.0041f200
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x41ec60
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x41ed70
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x41edc9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41edc8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x473b28]
push eax
push ecx
call fcn.0041fefb
test eax, eax
je 0x41edc4
cmp dword [eax + 4], 0
je 0x41edb2
push esi
push edi
push eax
call fcn.0041f200
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x41edd0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41edf1
push esi
call fcn.0041e420
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41ee6a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x41ee57
sub ecx, 1
je 0x41ee42
sub ecx, 2
je 0x41ee2f
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x41eeb3
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x41eed6
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x41ef00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x432c1c]
sub esp, 0xc
push esi
push edi
push 0x1000
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41f05b
push ebx
push ebp
mov ebx, edi
mov ebp, 0x1000
mov dword [esp + 0x18], 0x7ff
mov esi, dword [esp + 0x20]
cmp dword [esi + 4], 0
je 0x41ef51
push 2
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.0041edd0
mov dword [esp + 0x14], eax
jmp 0x41ef68
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 2
mov ax, word [esp + 0x10]
jne 0x41efd7
test ax, ax
je 0x41ef84
mov word [ebx], ax
mov ax, word [esp + 0x10]
add ebx, 2
mov esi, ebx
sub esi, edi
sar esi, 1
cmp esi, dword [esp + 0x18]
jle 0x41efb9
mov edx, dword [0x432c1c]
add dword [esp + 0x18], 0x800
add ebp, 0x1000
push ebp
push edi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov ax, word [esp + 0x10]
lea ebx, [edi + esi*2]
test ax, ax
je 0x41efd3
cmp ax, 0xd
je 0x41efd3
cmp ax, 0xa
jne 0x41ef34
sub ebx, 2
jmp 0x41f03e
mov esi, dword [esp + 0x20]
cmp ax, 0xa
jne 0x41efe2
sub ebx, 2
jmp 0x41f03e
cmp ax, 0xd
jne 0x41f03e
sub ebx, 2
cmp dword [esi + 4], 0
je 0x41f004
push 2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041edd0
mov dword [esp + 0x14], eax
jmp 0x41f01b
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x41f03e
cmp dword [esi + 4], 0
je 0x41f02f
add dword [esi + 0xc], 2
jmp 0x41f03e
mov ecx, dword [esi]
push 1
push 0
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
mov edx, ebx
sub edx, edi
sar edx, 1
pop ebp
mov dword [eax], edx
mov word [ebx], 0
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 8
Function at 0x41f070
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x432c1c]
sub esp, 8
push ebp
push esi
push edi
mov ebp, 0x1000
push ebp
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41f1ef
push ebx
mov ebx, edi
jmp 0x41f0a0
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 0
je 0x41f0bd
push 1
lea ecx, [esp + 0x17]
push ecx
push esi
call fcn.0041edd0
mov dword [esp + 0x14], eax
jmp 0x41f0d4
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 1
mov al, byte [esp + 0x13]
jne 0x41f146
test al, al
je 0x41f0ec
mov byte [ebx], al
mov al, byte [esp + 0x13]
add ebx, 1
mov esi, ebx
sub esi, edi
lea edx, [ebp - 1]
cmp esi, edx
jle 0x41f116
mov eax, dword [0x432c1c]
add ebp, 0x1000
push ebp
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov al, byte [esp + 0x13]
lea ebx, [esi + edi]
test al, al
je 0x41f142
cmp al, 0xd
je 0x41f142
cmp al, 0xa
jne 0x41f0a0
mov ecx, dword [esp + 0x20]
sub ebx, 1
mov eax, ebx
sub eax, edi
mov dword [ecx], eax
mov byte [ebx], 0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 8
mov esi, dword [esp + 0x1c]
cmp al, 0xa
jne 0x41f166
mov ecx, dword [esp + 0x20]
sub ebx, 1
mov eax, ebx
sub eax, edi
mov dword [ecx], eax
mov byte [ebx], 0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 8
cmp al, 0xd
jne 0x41f1d6
sub ebx, 1
cmp dword [esi + 4], 0
je 0x41f186
push 1
lea ecx, [esp + 0x17]
push ecx
push esi
call fcn.0041edd0
mov dword [esp + 0x14], eax
jmp 0x41f19d
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41f1d6
cmp dword [esi + 4], 0
je 0x41f1c7
add dword [esi + 0xc], 1
mov ecx, dword [esp + 0x20]
mov eax, ebx
sub eax, edi
mov dword [ecx], eax
mov byte [ebx], 0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 8
mov edx, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x20]
mov eax, ebx
sub eax, edi
mov dword [ecx], eax
mov byte [ebx], 0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 8
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 8
Function at 0x41f200
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x41f235
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x41f2ae
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x41f29b
sub ecx, 1
je 0x41f286
sub ecx, 2
je 0x41f273
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0041e420
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41f2db
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x41fc20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41fc91
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, ebp
push esi
push edi
jne 0x41fc3e
mov ebx, 0x42200b
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x41fc88
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41fc88
push edi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret 4
Function at 0x420056
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x433568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4200b7
push esi
push dword [0x433570]
push 8
push dword [0x432c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x433568]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x43356c]
jmp 0x4200a7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4200a5
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x420095
push edi
push 0x42001b
call fcn.00421156
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x433570], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
jne 0x4200fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push dword [ebp + 8]
mov dword [0x433568], eax
push 8
push dword [0x432c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x433568]
call esi
mov eax, dword [0x433570]
mov edi, eax
add eax, dword [ebp + 8]
push eax
push dword [0x433568]
mov dword [0x433570], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x432c1c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x433568]
call esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x42013d
cmp dword [ebp + 0x10], esi
je 0x420160
push 0x14
push 0x43356c
call fcn.00420228
test esi, esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x420160
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4203c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4315a4]
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 0x420450
Capabilities:
Get thread local storage value

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

Function at 0x420560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4315a4]
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 0x420590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4315a4]
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 0x4205d6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x433594]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4205f7
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 [0x433594]
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.00420870
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x420720
Capabilities:
Get thread local storage value

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

Function at 0x4207f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4315a4]
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 0x42082e
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 0x42082e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x420830
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4208c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4315a4]
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 0x421156
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x433590], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x42118c
push 0x433574
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x433590], 1
push 0x433574
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x43358c]
cmp eax, ebx
mov edi, eax
je 0x4211f0
cmp dword [ebp - 4], ebx
jne 0x421329
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x4211c3
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x4211b4
jmp 0x4211e1
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00420fa8
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x4211a2
cmp dword [ebp - 4], ebx
jne 0x421329
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x421329
mov edi, dword [0x43358c]
jmp 0x421230
cmp dword [edi + 0xc], 0x3f
jl 0x4212c3
mov edi, dword [edi]
cmp edi, ebx
jne 0x421224
push 0x310
push 8
push dword [0x432c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x421320
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x421312
push ebx
push ebx
push edi
push 0x420ff9
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x421309
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420fa8
mov eax, dword [0x43358c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x4212bb
mov dword [eax + 4], edi
mov dword [0x43358c], edi
jmp 0x421329
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00420fa8
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x421329
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x432c1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x433574
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8