joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100517d0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x18]
mov dword [esp + 8], 0
call fcn.10057e50
cmp dword [esi + 0x10], 0x25
jge 0x1005190f
cmp dword [esi + 0x2a0], 0xffffffff
je 0x1005190f
push 0x400
push esi
push edi
call fcn.1004af50
test eax, eax
jne 0x10051855
mov ecx, dword [0x1007eed0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [esp + 0xc]
push eax
push 0x400
push ecx
call ebx
mov edx, dword [eax + 0x38]
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x298]
push edx
push eax
push ecx
call dword [0x1007f05c]
test eax, eax
jge 0x1005185b
mov edx, dword [esi + 0x298]
push 0
push edx
push esi
push eax
call fcn.1005a1e0
pop ebx
pop edi
pop esi
pop ecx
ret 8
cmp eax, 0x64e
je 0x1005187d
cmp eax, 0x651
je 0x1005187d
cmp eax, 0x658
je 0x1005187d
mov eax, dword [esi + 0x274]
and eax, 0xfffffeff
jmp 0x10051888
mov eax, dword [esi + 0x274]
or eax, 0x100
test al, al
mov dword [esi + 0x274], eax
jns 0x100518a6
test al, 1
mov edi, 2
je 0x100518ab
and eax, 0xfffffffd
mov dword [esi + 0x274], eax
jmp 0x100518ab
mov edi, 4
mov eax, dword [esp + 0xc]
cmp eax, 0x400
mov dword [esi + 0x248], 0
ja 0x100518e8
push eax
mov eax, dword [0x1007eed0]
push eax
call ebx
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [esi + 0x240]
push edx
push esi
call fcn.10055d10
test eax, eax
je 0x100518e8
mov dword [esi + 0x248], 0
mov eax, dword [esi + 0x290]
and dword [esi + 0x274], 0xffffff1f
test eax, eax
je 0x10051906
mov ecx, dword [esi + 0x294]
push edi
push ecx
call eax
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push 1
push 0
push esi
push 0xffff8abf
call fcn.1005a550
pop edi
pop esi
pop ecx
ret 8

Function at 0x10051c00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
call fcn.10020570
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov edi, eax
add edi, edi
push edi
push esi
push ebp
call fcn.1004af50
test eax, eax
jne 0x10051ce7
cmp edi, 1
je 0x10051ce5
push edi
push ebx
call fcn.10020560
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
mov eax, dword [0x1007eed0]
push eax
call ebx
mov ecx, dword [eax + 0x38]
push ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [0x1007eed0]
add esp, 0xc
push edi
push edx
call ebx
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + 0x2a0]
mov edx, dword [esi + 0x298]
push eax
push ecx
push edx
call dword [0x1007efd0]
test eax, eax
jge 0x10051c9c
mov ecx, dword [esi + 0x298]
push 0
push ecx
push esi
push eax
call fcn.1005a1e0
push ebp
mov esi, eax
call fcn.1004b060
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
cmp dword [esi + 0x2f0], 0
je 0x10051cd8
mov edx, dword [esi + 0x2a0]
mov eax, dword [esi + 0x298]
push 2
push 0
push edx
push eax
call dword [0x1007efe4]
test eax, eax
jge 0x10051cd8
mov ecx, dword [esi + 0x298]
push 0
push ecx
push esi
push eax
call fcn.1005a1e0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
and dword [esi + 0x274], 8
push ebp
call fcn.1004b060
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10051cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
push edi
movzx edi, word [eax + 0x34]
push 0x400
push esi
push eax
call fcn.1004af50
mov ebx, eax
test ebx, ebx
jne 0x10051d82
mov edx, dword [0x1007eed0]
movzx ecx, di
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call edi
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + 0x2a0]
mov edx, dword [esi + 0x298]
push eax
push ecx
push edx
call dword [0x1007ef7c]
test eax, eax
jge 0x10051d59
mov ecx, dword [esi + 0x298]
push ebx
push ecx
push esi
push eax
call fcn.1005a1e0
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [esp + 0x10]
mov eax, dword [0x1007eed0]
push edx
push eax
call edi
mov ecx, dword [eax + 0x38]
push ecx
call fcn.100204a0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
cmp word [ecx + 2], 0xffff
movzx eax, ax
je 0x10051d82
mov eax, ebx
pop edi
pop esi
pop ebx
ret 8
Function at 0x100539d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov ebx, dword [esi + 0x18]
xor ebp, ebp
push edi
mov dword [esp + 0x10], 0x20000
mov dword [esp + 0x18], ebp
mov dword [esp + 0x4c], ebp
call fcn.10057e50
movzx eax, word [esp + 0x60]
cmp eax, 3
ja case.default.0x10053a03
jmp dword [eax*4 + 0x10053b80]
cmp dword [esi + 0x48c], ebp
jne 0x10053a48
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x494]
push ebp
push 0x28
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x4a0]
push ecx
push str.Tables
push ebp
push edx
push eax
call dword [0x1007efa0]
test eax, eax
jl 0x10053a48
mov ebp, 1
cmp dword [esp + 0x20], ebp
je 0x10053a55
mov ebp, 2
xor edi, edi
jmp 0x10053a74
mov ebp, dword [esp + 0x58]
xor edi, edi
jmp 0x10053a74
mov edi, dword [esp + 0x5c]
cmp di, bp
je 0x10053a70
lea ecx, [esp + 0x10]
movzx edx, di
push ecx
push edx
call fcn.1004add0
mov ebp, dword [esp + 0x58]
movzx eax, bp
sub eax, 1
je 0x10053aad
sub eax, 1
je 0x10053a9f
sub eax, 2
je 0x10053a8f
push 1
push 0
jmp 0x10053b6b
mov eax, dword [esp + 0x10]
and eax, 0xffffff75
or eax, 0x1260
jmp 0x10053ab6
mov eax, dword [esp + 0x10]
and eax, 0xfffffffd
or eax, 0x1270
jmp 0x10053ab6
mov eax, dword [esp + 0x10]
and eax, 0xfffff777
test edi, 0x100
mov dword [esp + 0x10], eax
je 0x10053ac9
and eax, 0xffffffdf
mov dword [esp + 0x10], eax
push esi
call fcn.1005e5f0
test eax, eax
jne 0x10053b76
mov edi, dword [esp + 0x54]
test edi, edi
je 0x10053b21
lea eax, [esp + 0x14]
push eax
push edi
call fcn.1004df10
lea ecx, [esp + 0x4c]
push ecx
push edi
push ebx
call fcn.1004b7f0
test eax, eax
jge 0x10053b0f
push 1
push 0
push esi
push eax
call fcn.1005a550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c
mov edx, dword [0x1007eed0]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x38]
jmp 0x10053b2d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0xffffffff
movzx ecx, word [esp + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x1c]
push ebp
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push esi
push edx
push 0xffffffffffffffff
push ebx
call fcn.10053540
push ebx
mov esi, eax
call fcn.1004b060
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c
push 1
push ebp
push esi
push 0xfffffc15
call fcn.1005a550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c
Function at 0x10054270
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x18]
mov dword [esp + 8], 0x20000
mov dword [esp + 0x14], ebx
call fcn.10057e50
cmp dword [edi + 0x10], 0x25
jge 0x10054376
cmp dword [edi + 0x498], 0
je 0x100542a9
cmp word [edi + 8], 1
je 0x10054376
mov ax, word [esp + 0x20]
cmp ax, 1
jae 0x100542c9
push 1
push 0
push edi
push 0xfffffc15
call fcn.1005a550
pop edi
pop ebx
pop ecx
ret 0x14
jbe 0x100542fa
mov cx, word [esp + 0x1c]
movzx eax, cx
cmp eax, 0xffffffff
jne 0x100542e2
mov dword [esp + 8], 2
jmp 0x100542fa
test cx, cx
je 0x100542fa
lea ecx, [esp + 8]
push ecx
push eax
call fcn.1004add0
and dword [esp + 8], 0xfffff777
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push ebp
call fcn.10020570
mov esi, eax
add esi, 1
lea edx, [esi + esi]
push edx
push edi
push ebx
call fcn.1004af50
mov ebx, eax
test ebx, ebx
je 0x10054331
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.1004ae90
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
pop ecx
ret 0x14
mov ecx, dword [0x1007eed0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x38]
push esi
push ebx
push ebp
call fcn.100205a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x1001
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push ebx
push edi
push eax
push 0xffffffffffffffff
push ecx
call fcn.10053540
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 0x14
push 1
push 0
push edi
push 0xffff8abf
call fcn.1005a550
pop edi
pop ebx
pop ecx
ret 0x14
Function at 0x10054390
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, dword [edi + 0x18]
mov dword [esp + 0x14], 0x21270
call fcn.10057e50
cmp dword [edi + 0x10], 0x25
mov ebx, 1
jge 0x100544da
cmp dword [edi + 0x498], 0
je 0x100543c9
cmp word [edi + 8], bx
je 0x100544da
push esi
mov si, word [esp + 0x38]
cmp si, bx
jb 0x100544c5
mov eax, dword [esp + 0x1c]
and eax, 0x7fff
cmp eax, 8
jne 0x100544c5
cmp si, bx
jbe 0x1005442e
mov ax, word [esp + 0x30]
cmp ax, 0xffff
jne 0x10054400
or dword [esp + 0x18], ebx
jmp 0x10054418
test ax, ax
je 0x10054418
lea ecx, [esp + 0x18]
movzx edx, ax
push ecx
push edx
call fcn.1004add0
and dword [esp + 0x18], 0xfffffffd
cmp si, 2
jbe 0x1005442e
cmp word [esp + 0x34], 0xffff
jne 0x1005442e
or dword [esp + 0x18], 0x80
push edi
call fcn.1005e5f0
mov esi, eax
test esi, esi
je 0x1005444e
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.1004aeb0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret 0x28
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10020570
mov esi, eax
add esi, ebx
lea edx, [esi + esi]
push edx
push edi
push ebp
call fcn.1004af50
mov ebx, eax
test ebx, ebx
je 0x10054481
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.1004ae90
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
ret 0x28
mov ecx, dword [0x1007eed0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x38]
mov edx, dword [esp + 0x20]
push esi
push ebx
push edx
call fcn.100205a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x1002
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push ebx
push edi
push ecx
push 0xffffffffffffffff
push ebp
call fcn.10053540
pop esi
pop edi
pop ebp
pop ebx
ret 0x28
push ebx
push 0
push edi
push 0xfffffc15
call fcn.1005a550
pop esi
pop edi
pop ebp
pop ebx
ret 0x28
push ebx
push 0
push edi
push 0xffff8abf
call fcn.1005a550
pop edi
pop ebp
pop ebx
ret 0x28
Function at 0x100544f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 0x18]
mov dword [esp + 0x10], 0x21260
call fcn.10057e50
cmp dword [edi + 0x10], 0x25
jge 0x10054619
cmp dword [edi + 0x498], 0
je 0x10054524
cmp word [edi + 8], 1
je 0x10054619
mov ax, word [esp + 0x2c]
cmp ax, 1
jb 0x10054605
mov ecx, dword [esp + 0x14]
and ecx, 0x7fff
cmp ecx, 8
jne 0x10054605
cmp ax, 1
jbe 0x1005456c
mov ax, word [esp + 0x28]
test ax, ax
je 0x1005456c
lea edx, [esp + 0x10]
movzx eax, ax
push edx
push eax
call fcn.1004add0
and dword [esp + 0x10], 0xffffff75
push esi
push edi
call fcn.1005e5f0
mov esi, eax
test esi, esi
je 0x1005458c
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.1004aeb0
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x24
mov edx, dword [esp + 0x1c]
push ebx
push edx
call fcn.10020570
mov esi, eax
add esi, 1
lea eax, [esi + esi]
push eax
push edi
push ebp
call fcn.1004af50
mov ebx, eax
test ebx, ebx
je 0x100545c1
mov ecx, dword [esp + 0x20]
push ecx
push ebp
call fcn.1004ae90
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
mov edx, dword [0x1007eed0]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x38]
mov eax, dword [esp + 0x20]
push esi
push ebx
push eax
call fcn.100205a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x1004
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push ebx
push edi
push edx
push 0xffffffffffffffff
push ebp
call fcn.10053540
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
push 1
push 0
push edi
push 0xfffffc15
call fcn.1005a550
pop edi
pop ebp
ret 0x24
push 1
push 0
push edi
push 0xffff8abf
call fcn.1005a550
pop edi
pop ebp
ret 0x24
Function at 0x10055c80
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x10055cc1
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
jne 0x10055cc1
pop edi
pop esi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xfffffc0d
jmp fcn.1005a550
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x10055cd3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
neg esi
sbb esi, esi
and esi, edi
mov dword [ebx], esi
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x10057ef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x1007e5f0]
xor eax, esp
mov dword [esp + 0x310], eax
mov eax, dword [esp + 0x318]
push ebp
mov ebp, dword [esp + 0x320]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x29
push 0
mov dword [esp + 0x18], eax
mov dword [ebp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10057fd0
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10057f40
sub eax, edx
mov edx, eax
mov eax, ebx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10057f53
sub eax, esi
lea edx, [eax + edx + 2]
cmp edx, 0x104
jae 0x10057fcf
push edi
lea edi, [esp + 0x10]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10057f72
mov ax, word [0x10076a54]
mov word [edi], ax
mov eax, ebx
mov ecx, ebx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10057f90
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10057fa4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 8
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp], eax
pop edi
pop esi
cmp dword [ebp], 0
pop ebp
jne 0x10058059
cmp dword [esp + 0x320], 0
je 0x1005803f
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov word [esp + 0x120], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp]
push 1
lea ecx, [esp + 0x10c]
push ecx
push edx
push 0xffff8ab5
call fcn.1005a550
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.1006ac47
add esp, 0x314
ret 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.1006ac47
add esp, 0x314
ret 0xc
mov ecx, dword [esp + 0x310]
xor ecx, esp
xor eax, eax
call fcn.1006ac47
add esp, 0x314
ret 0xc

Function at 0x10058c20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1007eed0]
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x5c], edi
lea esi, [eax + 0x5c]
jne 0x10058ccf
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push esi
push ebp
mov ebx, str.MSJTER40.DLL
call fcn.10057ef0
mov ebx, eax
test ebx, ebx
je 0x10058c6b
push edi
push edi
push ebp
push 0xffff8ab5
call fcn.1005a550
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
push ecx
call edi
test eax, eax
je 0x10058c9c
mov dword [0x1007eee0], eax
mov edx, dword [esi]
push 3
push edx
call edi
test eax, eax
je 0x10058c9c
mov dword [0x1007eee4], eax
mov eax, dword [esi]
push 5
push eax
call edi
test eax, eax
jne 0x10058cc1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0
push ebp
push 0xfffffc17
mov dword [esi], 0
call fcn.1005a550
pop ebp
pop ebx
pop edi
pop esi
ret 4
pop ebp
mov dword [0x1007eee8], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x10058ce0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1007eed0]
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x64], edi
lea esi, [eax + 0x64]
jne 0x10058d4b
push ebx
push edi
push esi
push edi
mov ebx, str.ODBCCP32.DLL
call fcn.10057ef0
mov edi, eax
test edi, edi
pop ebx
jne 0x10058d4d
mov ecx, dword [esi]
push str.SQLConfigDataSource
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10058d46
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
push 1
push 0
push eax
push 0xfffff82a
mov dword [esi], 0
call fcn.1005a550
pop edi
pop esi
ret 4
mov dword [0x1007f0f0], eax
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x10058d60
Capabilities:
Get thread local storage value
Link many functions at runtime

Disassembly:
mov eax, dword [0x1007eed0]
push ebp
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
cmp dword [ebp + 0x50], edi
lea esi, [ebp + 0x50]
jne 0x10058eaf
cmp dword [ebp + 0x54], edi
push ebx
jne 0x10058e5c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edx
mov ebx, str.MSREPL40.DLL
call fcn.10057ef0
mov ebx, eax
test ebx, ebx
jne 0x10058e5c
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7fa
push eax
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f060], eax
mov ecx, dword [esi]
push 0x7d1
push ecx
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f064], eax
mov edx, dword [esi]
push 0x803
push edx
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f068], eax
mov eax, dword [esi]
push 0x804
push eax
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f06c], eax
mov ecx, dword [esi]
push 0x7e8
push ecx
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f070], eax
mov edx, dword [esi]
push 0x80d
push edx
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f074], eax
mov eax, dword [esi]
push 0x80e
push eax
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f078], eax
mov ecx, dword [esi]
push 0x80f
push ecx
call edi
test eax, eax
je 0x10058e5c
mov dword [0x1007f07c], eax
mov edx, dword [esi]
push 0x834
push edx
call edi
test eax, eax
jne 0x10058ea1
mov eax, dword [esi]
test eax, eax
mov dword [ebp + 0x54], 1
je 0x10058e70
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x18], 0
mov dword [esi], 0
je 0x10058e97
mov eax, dword [esp + 0x14]
push 1
push 0
push eax
push 0xfffffc17
call fcn.1005a550
pop ebx
pop edi
pop esi
pop ebp
ret 8
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret 8
mov dword [0x1007f080], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x1005a550
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x38
mov eax, dword [0x1007eed0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x50]
xor ecx, ecx
mov esi, eax
xor ebx, ebx
cmp ebp, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
je 0x1005a5a3
mov eax, dword [ebp + 0x10]
cdq
mov edi, 0x25
idiv edi
cmp dword [edx*4 + 0x100746d0], ecx
mov ebx, dword [edx*4 + 0x10076508]
jne 0x1005a5a3
lea ecx, [ebp + 0x3a]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x4c]
cmp edi, 0xfffffae2
jne 0x1005a5b4
mov edi, 0xffff8abf
push 0x400
push esi
call fcn.10069dc0
mov esi, eax
test esi, esi
jne 0x1005a5d2
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x10
mov edx, dword [esp + 0x54]
xor eax, eax
cmp dword [esp + 0x58], 0
mov word [esi], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
je 0x1005a656
push ebp
call fcn.10058c20
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1005a656
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x200
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call dword [0x1007eee8]
jmp 0x1005a65e
mov dword [esp + 0x10], 0xe31
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
push 0x10076de0
push edx
push ebp
call fcn.1005a040
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.1006a020
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x10
Function at 0x1005a6a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x38
mov eax, dword [0x1007eed0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x50]
xor edi, edi
mov esi, eax
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
je 0x1005a6f7
mov eax, dword [ebx + 0x10]
cdq
mov ecx, 0x25
idiv ecx
cmp dword [edx*4 + 0x100746d0], edi
mov ebp, dword [edx*4 + 0x10076508]
jne 0x1005a6f7
lea edx, [ebx + 0x3a]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x4c]
xor edx, edx
and eax, 0xffff
cmp eax, 0x9c63
setge dl
xor ecx, ecx
sub edx, 1
and edx, 0xffffffb4
add edx, 0xffffbfe7
add edx, eax
cmp edx, 0x5e1e
je 0x1005a73c
mov eax, 0x5e1e
cmp eax, 0x7fffffff
je 0x1005a73c
mov eax, dword [ecx*8 + 0x10076bf0]
add ecx, 1
cmp eax, edx
jne 0x1005a727
mov edi, dword [ecx*8 + 0x10076bec]
cmp edi, 0xfffff82f
jne 0x1005a751
push ebx
call fcn.10054f90
push 0x400
push esi
call fcn.10069dc0
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1005a773
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x38
ret 8
mov word [esi], ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
push ebx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
call fcn.10058c20
test eax, eax
mov dword [esp + 0x10], eax
je 0x1005a7cc
push ebx
call fcn.10019ae0
mov dword [esp + 0x10], eax
jmp 0x1005a80e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x200
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call dword [0x1007eee8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
push 0x10076de0
push edx
push ebx
call fcn.1005a040
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.1006a020
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8