joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x412bc8
cmp word [edx], 0
je 0x412bc8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x412aee
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x412b4d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x412b20
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b00
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00412c00
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b20
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 + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004132e0
mov edi, eax
test edi, edi
je 0x412b43
cmp dword [esi + 4], 0
je 0x412b9b
push dword [esp + 0x14]
push edi
push esi
call fcn.00412c00
push edi
push 0
push dword [0x6a8604]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
push 0
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x412c00
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 0x412d07
cmp dword [esi + 0x14], 1
jne 0x412c4b
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 0x412cc8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x412cb3
dec eax
je 0x412c9c
sub eax, 2
je 0x412c87
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.004121c0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x412cf5
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 0x412c71
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x412d10
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x412d31
push esi
call fcn.004121c0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x412da5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x412d92
dec ecx
je 0x412d7d
sub ecx, 2
je 0x412d6a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x412dea
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x412e0b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x413350
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 0x413377
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00412d10
mov dword [esp + 4], eax
jmp 0x413391
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 0x41339d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4133b9
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 0x4133c9
mov esi, 2
jmp 0x4133e5
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x4133d8
mov esi, 3
jmp 0x4133e5
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x413442
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x413414
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00412d10
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 0x414807
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x417050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x45a970
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x6a95a4], eax
test eax, eax
je 0x41707e
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x6a95a0], eax
lea eax, [ebp - 0x114]
mov dword [0x6a95a8], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4170e0
cmp dword [ebp - 0x104], 1
jne 0x4170b5
and dword [0x6a95a8], 0
jmp 0x4170f8
cmp dword [ebp - 0x104], 2
jne 0x4170e0
cmp dword [ebp - 0x110], 5
jb 0x4170ac
jne 0x4170e0
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x6a95a8]
mov dword [0x6a95a8], eax
jmp 0x4170e5
mov eax, dword [0x6a95a8]
test eax, eax
je 0x4170f8
call fcn.00416a93
neg eax
sbb eax, eax
and dword [0x6a95a8], eax
mov esp, ebp
pop ebp
ret
Function at 0x418160
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 0x418192
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 0x41818d
cmp dword [esp + 0xc], esi
je 0x4181a9
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 0x4189e7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x418a17
cmp esi, 2
je 0x418a17
cmp esi, 4
je 0x418a17
cmp esi, 8
je 0x418a17
cmp esi, 0x18
je 0x418a17
cmp esi, 0x20
je 0x418a17
xor eax, eax
jmp 0x418be1
mov ecx, dword [0x6a9604]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x418bdd
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x6a9810]
cmp dword [eax], edx
je 0x418a4a
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x418a31
jmp 0x418bdd
cmp dword [esp + 0x38], 0x20
jne 0x418bb4
mov eax, dword [eax + 8]
test eax, eax
je 0x418a8a
cmp esi, 0x20
je 0x418a66
cmp esi, 0xffffffff
jne 0x418a8a
push esi
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 0x418bdb
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x418bdd
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x418b7f
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], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x418b5f
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x418af0
mov ebp, 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, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x418add
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x6a9810]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x6a8604]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x418bdd
cmp dword [esp + 0x38], 0x18
jne 0x418bdd
push esi
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 ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x41c1bb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x6a9648]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41c21c
push esi
push dword [0x6a9644]
push 8
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
push edi
push dword [0x6a9648]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov esi, dword [0x6a9640]
jmp 0x41c20c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41c20a
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41c1fa
push edi
push 0x41c159
call fcn.0044cc74
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x41c226
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 0x41c23c
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x6a9644]
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x41c273
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
push 8
push dword [0x6a8604]
mov dword [0x6a9648], eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push eax
push dword [0x6a9648]
call ebx
mov eax, dword [0x6a9644]
mov edi, eax
add eax, esi
push eax
push dword [0x6a9648]
mov dword [0x6a9644], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
push 8
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x6a9648]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x41c2b3
test ebx, ebx
je 0x41c2d4
push 0x14
push 0x6a9640
call fcn.0041ca9b
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x41c2d4
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 0x41cbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6a5980]
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 0x41cbf6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x6a9894]
push edx
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41cc17
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 [0x6a9894]
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.0041d2e0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cd40
Capabilities:
Get thread local storage value

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a5980]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41cff4
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]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41d044
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6a9894]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41d08c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41d08c
cmp dword [ebp - 8], 0x100000
jge 0x41d060
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6a9894]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x41d0b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6a5980]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41d230
Capabilities:
Get thread local storage value

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

Function at 0x41d330
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6a5980]
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 0x436730
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.00438850
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.00438820
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x436777
push edi
call fcn.00438860
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.004363c0
mov dword [esi + 4], fcn.00436250
mov dword [esi + 8], fcn.00436320
mov dword [esi + 0xc], fcn.004361a0
mov dword [esi + 0x10], 0x436a90
mov dword [esi + 0x14], 0x436a20
mov dword [esi + 0x18], 0x436880
mov dword [esi + 0x1c], 0x436050
mov dword [esi + 0x20], 0x435f00
mov dword [esi + 0x24], 0x436630
mov dword [esi + 0x28], 0x436b00
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x43685a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x43685a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x436849
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x436851
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x44cc74
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6a9688], 0
push ebx
push esi
mov esi, 0x6a9690
jne 0x44cca0
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
mov dword [0x6a96a8], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x6a9688], 1
push dword [0x6a96a8]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x44cd3d
push 0x14
push 8
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x44cd67
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x6a968c]
test eax, eax
je 0x44cce2
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6a968c], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x44cd6c
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
push ebx
push dword [0x6a96a8]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x44cd67
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x44d249
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x6a8604]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
push esi
push dword [0x6a977c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
push dword [esp + 8]
mov dword [0x6a9780], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0044fe45
mov dword [esi + 0x58], 0x44de5c
mov eax, esi
mov dword [esi + 0x5c], 0x44dea8
mov dword [esi + 0x10], fcn.0044d9fd
mov dword [esi + 0x30], 0x44d8ef
mov dword [esi + 0x64], 0x44df32
mov dword [esi + 0x60], 0x44deea
mov dword [esi + 0x34], 0x44d59f
mov dword [esi + 0x24], 0x44d576
mov dword [esi + 0x28], 0x44d54b
mov dword [esi + 0x2c], 0x44d49d
mov dword [esi + 0x44], 0x44dc62
pop esi
ret 4