joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47be0c
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4e4d64
call fcn.004b0604
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.004c6cb5
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.004c6822
mov eax, dword [str.pRdR]
mov dword [ebp - 0x2c], eax
or dword [ebp - 0x30], 0xffffffff
mov ebx, vtable.CFileException.0
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], esi
call fcn.004c76f3
mov eax, dword [str.pRdR]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea esi, [edi + 8]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004c76f3
push 0x5c
mov ecx, esi
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x47beb3
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004c76a3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004c756a
push 0x511870
lea ecx, [ebp - 0x10]
call fcn.004c430d
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.004c72df
mov ecx, edi
call fcn.0047bf6e
test eax, eax
je 0x47bed8
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004c72df
call fcn.0040c99a
cmp dword [ebp + 0xc], 0
mov esi, dword [esi]
pop ecx
lea eax, [ebp - 0x3c]
push eax
je 0x47bf00
push 0x1002
jmp 0x47bf05
push 0x3002
push esi
lea ecx, [ebp - 0x28]
call fcn.004c6dc7
mov esi, eax
test esi, esi
jne 0x47bf19
and dword [edi + 0xc], eax
jmp 0x47bf28
lea ecx, [ebp - 0x28]
call fcn.004c6fe2
mov dword [edi + 0xc], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c756a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c756a
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004c6d0a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x47bf6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47bf87
test al, 1
je 0x47bf87
push 1
pop esi
lea ecx, [esp + 8]
call fcn.004c756a
mov eax, esi
pop esi
ret 4
Function at 0x47cd04
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e4f60
call fcn.004b0604
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [str.pRdR]
and dword [ebp - 4], 0
lea edi, [esi + 4]
mov dword [edi], eax
lea ecx, [esi + 0x14]
push 0xa
mov byte [ebp - 4], 1
call fcn.004c5554
mov eax, dword [str.pRdR]
lea ebx, [esi + 0x30]
mov dword [ebx], eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.0047bf96
push str.New_Package
mov ecx, edi
mov byte [ebp - 4], 4
mov dword [esi], vtable.CSUFPackage.0
call fcn.004c76f3
push 1
xor edi, edi
pop eax
lea ecx, [esi + 0x40]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edi
push eax
call fcn.0047bfca
mov dword [esi + 0x38], edi
push 0x524a50
mov ecx, ebx
mov dword [esi + 0x3c], edi
call fcn.004c76f3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x482313
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e559d
call fcn.004b0604
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x482342
lea edi, [esi + 4]
mov ecx, edi
call fcn.004c55ff
cmp eax, ebx
je 0x48233d
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
cmp dword [esi + 8], ebx
jne 0x482329
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x482357
xor esi, esi
jmp 0x48240f
lea ecx, [ebp - 0x38]
call fcn.0041d1cb
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x51be58
mov byte [ebp - 4], 1
call fcn.004c75d8
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004c72df
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0041d261
cmp eax, ebx
jne 0x482400
cmp dword [ebp - 0x28], ebx
jne 0x4823a1
xor esi, esi
jmp 0x482403
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x482400
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
test esi, esi
je 0x4823a4
push 0xc
call fcn.004c67ee
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x4823d1
mov ecx, eax
call fcn.00481f79
mov edi, eax
jmp 0x4823d3
xor edi, edi
lea eax, [esi + 0x2a]
mov byte [ebp - 4], 1
push eax
lea eax, [edi + 4]
push 0x512890
push eax
call fcn.004c42fa
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
push edi
lea ecx, [eax + 4]
call fcn.004c5d35
jmp 0x4823a4
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0041d1fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x48a460
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x48a480
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.004b60e4
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.004b3264
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x48a750
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebp, ebx
push edi
mov ecx, dword [esi + 0x1c]
sub ebp, ecx
cmp eax, 6
je 0x48a776
push ebx
push esi
call fcn.0048aa60
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x48a78c
push esi
call fcn.0048a8d0
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x48a848
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x48a7b7
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.0048a920
add esp, 0xc
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
mov al, byte [edi + 0x47]
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x48a7d7
push eax
push esi
call fcn.0048a650
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea ecx, [edx + ebp + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edx, edx
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x48a83b
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x48a821
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x48a862
push 0x14
push esi
call fcn.0048a650
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add edi, 0x18
mov eax, edi
lea edx, [ecx + ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
mov al, byte [esi + 0x30]
test cl, al
je 0x48a8a6
push 0xffffffffffffffff
push 0
push esi
call fcn.0048a680
add esp, 0xc
mov edx, dword [esi + 0xc]
push esi
mov eax, dword [edx - 8]
call dword [eax + 0xc]
add esp, 4
shl eax, 4
mov ecx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret
Function at 0x48b370
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.0048e1e0
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.0048a1b0
push esi
push edi
call fcn.0048a190
add esp, 0x18
pop edi
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 6
ja case.default.0x48b381
jmp dword [ecx*4 + 0x48b3f0]
mov dword [esp + 8], eax
jmp 0x48e290
mov dword [esp + 8], eax
jmp 0x48e330
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.0048f410
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x48e7d0
mov dword [esp + 8], eax
jmp 0x48a160
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0048f410
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
add ecx, 0x10
push 0
push ecx
push eax
push edx
call fcn.0048f410
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0048f410
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0048f410
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.0048f410
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0048f410
mov eax, dword [esi + 0x38]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0048f410
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.0048f410
push 0
push 0x48
push esi
push edi
call fcn.0048f410
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x48e356
xor eax, eax
push 0
mov al, byte [ecx + 7]
inc eax
shl eax, 4
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0048f410
add esp, 0x10
ret
xor eax, eax
push 0
mov al, byte [ecx + 7]
lea eax, [eax*4 + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0048f410
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [esi + 7]
test cl, cl
je 0x48e7fe
mov eax, 1
push 0
shl eax, cl
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call fcn.0048f410
add esp, 0x10
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
shl edx, 4
push 0
push edx
push eax
push edi
call fcn.0048f410
push 0
push 0x20
push esi
push edi
call fcn.0048f410
add esp, 0x20
pop edi
pop esi
ret
Function at 0x48b940
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 6]
test al, al
je 0x48b98d
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x48b9ff
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x48b97b
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x48b97b
push eax
push ebx
call fcn.0048b5f0
add esp, 8
xor eax, eax
inc ebp
mov al, byte [edi + 7]
add esi, 0x10
cmp ebp, eax
jl 0x48b963
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x48b9a4
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0048b5f0
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x48b9bb
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.0048b5f0
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x48b9ff
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x48b9f2
cmp dword [esi + 0x10], 4
jl 0x48b9ee
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x48b9ee
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0048b5f0
add esp, 8
mov byte [esi + 5], 1
xor ecx, ecx
inc ebx
mov cl, byte [edi + 7]
add ebp, 4
cmp ebx, ecx
jl 0x48b9c7
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48df90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
push esi
shr eax, 5
inc eax
push edi
cmp ebp, eax
mov edx, ebp
mov esi, ebp
jb 0x48dfc6
xor ecx, ecx
mov edi, edx
mov cl, byte [ebx + esi - 1]
sub esi, eax
shl edi, 5
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x48dfaa
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x48dff8
cmp dword [eax + 0xc], ebp
jne 0x48dff2
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x48e008
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x48dfdc
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.0048e010
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x49bd10
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x527af4]
mov eax, dword [0x51df4c]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49bd6b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49bd39
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x49bd6b
cmp eax, 0x1a
jg 0x49bd6b
test eax, eax
jne 0x49bd4f
call fcn.0049bd00
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x49bd32
xor eax, eax
pop ecx
ret

Function at 0x49be00
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x527af4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49be62
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.004a1130
mov bl, al
call fcn.004a1130
mov byte [esp + 6], al
call fcn.004a1130
mov byte [esp + 7], al
call fcn.004a1130
cmp bl, 0x50
pop ebx
jne 0x49be62
cmp byte [esp + 2], 0x4b
jne 0x49be62
cmp byte [esp + 3], 1
jne 0x49be62
cmp al, 2
jne 0x49be62
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x49c2a0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x527af4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x49c325
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c325
cmp dword [esp + 0xc], ebp
jne 0x49c325
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x49c31d
push 0x2e
push esi
call fcn.004b38f0
add esp, 8
test eax, eax
je 0x49c316
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.004b38f0
add esp, 8
test eax, eax
jne 0x49c304
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x49c370
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49c388
or eax, 0xffffffff
pop esi
ret
call fcn.0049c330
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x49c3c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49c3da
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x49c462
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c449
push edi
call fcn.004a4600
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.004a3340
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x49c462
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x49c470
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x49c4de
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x49c4de
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0049c4f0
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x49c5d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x49c5f7
mov ecx, dword [esp + 0x10]
mov eax, 4
mov dword [ecx + 0x4c], edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0x318]
mov dword [esi + 0x98e], edi
push edx
call fcn.004a0d30
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x49c639
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.004a35d0
add esp, 8
push eax
push ebx
call fcn.0049bc40
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.004a0ed0
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x49c6b7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.004a35d0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.0049bc40
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x49c6a4
push eax
call fcn.004b0778
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x49c758
jmp 0x49c749
cmp dword [esi + 0x34], edi
je 0x49c70a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.0049cc40
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x49c6f9
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.004a1be0
add esp, 4
test eax, eax
jne 0x49c6e9
inc dword [ebx + 0x4c]
call fcn.0049cc40
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x49c6d9
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x49c71a
mov dword [esi + 0x98a], edi
jmp 0x49c71a
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 0xc2a]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x8ce2]
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x49c73f
push eax
call fcn.004b0778
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x49c758
push eax
call fcn.004b0778
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x49c770
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49c7a2
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x4c], eax
mov eax, 4
add esp, 0x138
ret
mov esi, dword [esp + 0x148]
add eax, 0x318
test eax, eax
mov edi, dword [esi + 0x10]
je 0x49c89a
test edi, edi
je 0x49c89a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x49c870
push edi
call ebx
test eax, eax
je 0x49c870
push esi
call fcn.0049c5d0
add esp, 4
test eax, eax
jne 0x49c8ba
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x49c801
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x138
ret
lea edx, [esp + 0xc]
push esi
xor ebx, ebx
mov dword [esi + 0xc], edx
call fcn.0049d5e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x49c829
push esi
inc ebx
call fcn.0049d5e0
mov edi, eax
add esp, 4
test edi, edi
je 0x49c819
cmp edi, 0x30
je 0x49c85a
cmp edi, 2
push esi
jne 0x49c852
call fcn.0049c5d0
add esp, 4
mov edi, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
call fcn.0049c5d0
add esp, 4
mov eax, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x69
call fcn.004a35d0
add esp, 8
push eax
push 0xb
call fcn.0049bc40
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x68
call fcn.004a35d0
add esp, 8
push eax
push 0xb
call fcn.0049bc40
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x49deb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x49ded0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x49df05
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.004a35d0
add esp, 8
push eax
push 0x2f
call fcn.0049bc40
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.004a0d30
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49df3b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.004a35d0
add esp, 8
push eax
push edi
call fcn.0049bc40
add esp, 0xc
mov eax, edi
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x8ce2]
cmp eax, ebx
je 0x49df54
push eax
call fcn.004b0778
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x49df6d
push eax
call fcn.004b0778
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.004a0ed0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x49dfb2
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.004a35d0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.0049bc40
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0xc34]
pop edi
mov dword [eax + 0x4c], edx
pop esi
xor eax, eax
pop ebx
ret