joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548d98
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.0057ffe0
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x548f09
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x548efe
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x548efe
lea eax, [ebp - 0x2a8]
push eax
call fcn.0057ffe0
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00580e20
pop ecx
test eax, eax
pop ecx
jne 0x548de5
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x548eef
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x548ee6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x548edd
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005803a0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x548edd
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x548de5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret

Function at 0x5584f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6711f4]
push esi
push edi
xor edi, edi
test eax, eax
je 0x558547
mov eax, dword [0x684f20]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x558547
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x55853f
push esi
call fcn.00559810
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x558610
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x684f20]
mov eax, dword [0x62fb0c]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55866b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x558639
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x55866b
cmp eax, 0x1a
jg 0x55866b
test eax, eax
jne 0x55864f
call fcn.0056c830
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 0x558632
xor eax, eax
pop ecx
ret

Function at 0x558700
Capabilities:
Get thread local storage value

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

Disassembly:
push ecx
mov eax, dword [0x684f20]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x558c25
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 0x558c25
cmp dword [esp + 0xc], ebp
jne 0x558c25
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x558c1d
push 0x2e
push esi
call fcn.0057f990
add esp, 8
test eax, eax
je 0x558c16
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.0057f990
add esp, 8
test eax, eax
jne 0x558c04
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 0x558c70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x558c88
or eax, 0xffffffff
pop esi
ret
call fcn.00558c30
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x558cc0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x558cda
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 0x558d62
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x558d49
push edi
call fcn.0056e820
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.0055fc40
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x558d62
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x558d70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x558dde
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 0x558dde
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00558df0
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 0x558ed0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
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 0x558ef7
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.0055d630
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x558f39
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.0055fed0
add esp, 8
push eax
push ebx
call fcn.00558550
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.0055d7d0
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x558fb7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.0055fed0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.00558550
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x558fa4
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x559058
jmp 0x559049
cmp dword [esi + 0x34], edi
je 0x55900a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.00559540
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x558ff9
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.0055e4e0
add esp, 4
test eax, eax
jne 0x558fe9
inc dword [ebx + 0x4c]
call fcn.00559540
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x558fd9
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x55901a
mov dword [esi + 0x98a], edi
jmp 0x55901a
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 0x55903f
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x559058
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x559070
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5590a2
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 0x55919a
test edi, edi
je 0x55919a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x559170
push edi
call ebx
test eax, eax
je 0x559170
push esi
call fcn.00558ed0
add esp, 4
test eax, eax
jne 0x5591ba
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x559101
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.00559ee0
mov edi, eax
add esp, 4
test edi, edi
jne 0x559129
push esi
inc ebx
call fcn.00559ee0
mov edi, eax
add esp, 4
test edi, edi
je 0x559119
cmp edi, 0x30
je 0x55915a
cmp edi, 2
push esi
jne 0x559152
call fcn.00558ed0
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.00558ed0
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.0055fed0
add esp, 8
push eax
push 0xb
call fcn.00558550
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.0055fed0
add esp, 8
push eax
push 0xb
call fcn.00558550
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x55a7b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
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 0x55a7d0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x55a805
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.0055fed0
add esp, 8
push eax
push 0x2f
call fcn.00558550
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.0055d630
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x55a83b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.0055fed0
add esp, 8
push eax
push edi
call fcn.00558550
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 0x55a854
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x55a86d
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.0055d7d0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x55a8b2
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.0055fed0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.00558550
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
Function at 0x55af30
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x55af4c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.00561070
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.00560fc0
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.00560ff0
add esp, 4
inc edi
cmp edi, 0xc
jl 0x55af62
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x55af98
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x55afad
mov eax, dword [ebx + 0xc4a]
xor ecx, ecx
shr eax, 0x10
mov cl, ah
and ecx, 0xff
mov eax, ecx
and esi, 0xffff
cmp esi, eax
je 0x55afbe
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x55afd0
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x55affc
lea edi, [eax + 1]
call fcn.00560fc0
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.00560ff0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x55afe0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x55b010
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x55b030
mov eax, 4
pop edi
add esp, 0x10
ret
push esi
mov dword [edi + 0xc84], 0
xor esi, esi
lea ecx, [esp + 0xa]
push edi
push ecx
call fcn.00560260
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x55b03d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x55b084
lea eax, [esp + 8]
push eax
call fcn.0055af30
add esp, 4
test eax, eax
jne 0x55b084
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x55b350
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x55b36a
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
dec edx
mov dword [esi + 0x8cf8], eax
and edx, 9
pop esi
mov eax, edx
ret
Function at 0x55d630
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x55d7bb
cmp dword [ebp + 0x19c], ebx
jne 0x55d77d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x638420
push ecx
mov dword [ebp + 0x99e], ebx
mov dword [ebp + 0x996], ebx
mov dword [ebp + 0x96a], ebx
mov dword [ebp + 0x9a6], ebx
mov dword [ebp + 0x9aa], ebx
mov dword [ebp + 0x8f58], ebx
mov dword [ebp + 0x8cea], ebx
mov dword [ebp + 0x8cee], ebx
mov dword [ebp + 0x8cf2], ebx
mov byte [ebp + 0x8cf6], bl
mov dword [ebp + 0x9060], ebx
mov dword [ebp + 0x9064], ebx
mov dword [ebp + 0x906c], ebx
mov dword [ebp + 0x982], ebx
mov dword [ebp + 0x986], ebx
mov dword [ebp + 0x98a], ebx
mov dword [ebp + 0x8f4c], ebx
call esi
mov edx, dword [esp + 0x14]
lea eax, [ebp + 0x8cfc]
push edx
push eax
call esi
call fcn.00558cc0
test eax, eax
je 0x55d6f3
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x55d700
cmp dword [ebp + 0xc7c], ebx
je 0x55d713
lea esi, [ebp + 0x8f04]
lea edi, [ebp + 0x8f28]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x8cfc]
lea esi, [ebp + 0x8e00]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x55d74b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x55d74b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x55d77d
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.00559810
add esp, 4
mov dword [ebp + 0x976], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp + 0x8f28]
mov dword [ebp + 0xc36], ebx
mov dword [ebp + 0x97a], ebx
mov byte [esi], bl
rep stosd dword es:[edi], eax
push 0x2804
call fcn.0057ca98
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.0057ca98
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x55d7bb
cmp eax, ebx
je 0x55d7bb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
Function at 0x55d7d0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x684f20]
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 0x55d7f2
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x55d801
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
or edi, 0xffffffff
mov dword [esi + 0x96e], edi
push ecx
mov dword [esi + 0xc7c], ebx
mov dword [esi + 0xc80], ebx
mov dword [esi + 0x972], edi
call fcn.00558770
add esp, 4
cmp eax, 0xfffffffd
jne 0x55d884
cmp edx, edi
jne 0x55d884
mov eax, 1
mov word [esi + 0xc24], di
mov word [esi + 0xc26], bx
mov word [esi + 0xc28], bx
mov word [esi + 0xc2a], 0x7fff
mov dword [esi + 0xc2c], ebx
mov dword [esi + 0xc30], ebx
mov word [esi + 0xc34], bx
mov dword [esi + 0xc20], eax
mov dword [esi + 0xc7c], eax
mov dword [esi + 0xc80], ebx
call fcn.00559540
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x55d899
cmp edx, edi
jne 0x55d899
mov ebx, 5
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov ecx, eax
and ecx, edx
cmp ecx, edi
je 0x55da20
cmp eax, 0xfffffffe
jne 0x55d8fd
cmp edx, edi
jne 0x55d8fd
call fcn.00558c30
push 0x638420
push edi
push ebx
push 1
push ebx
call fcn.0055ddc0
add esp, 0x14
cmp eax, 1
jne 0x55d8f1
call fcn.00558cc0
test eax, eax
jne 0x55d8e8
call fcn.00558c70
test eax, eax
je 0x55d8e8
push 1
call fcn.00558770
add esp, 4
jmp 0x55d8a5
mov eax, 0xfffffffe
mov edx, edi
jmp 0x55d8a5
mov ebx, 0x30
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov ecx, eax
and ecx, edx
cmp ecx, edi
je 0x55da20
mov dword [esi + 0x96e], eax
add eax, 4
mov dword [esi + 0x972], edx
push ebx
adc edx, ebx
push edx
mov edx, dword [esi + 0x97e]
push eax
push edx
call fcn.00560c50
mov ecx, dword [esi + 0x97e]
add esp, 0x10
lea eax, [esp + 0xc]
lea edi, [esi + 0xc24]
push ebx
push eax
push 0x12
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55da11
cmp dword [esp + 0xc], ebx
je 0x55da11
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x55d9d8
lea edx, [esi + 0x8cfc]
push edx
call fcn.00558670
push eax
call fcn.00558610
add esp, 8
test eax, eax
jne 0x55d9be
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x55d9be
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x55d9be
movsx edx, bx
mov word [edi], bx
mov dword [esi + 0xc7c], ebx
mov word [esi + 0xc26], bx
mov dword [esi + 0xc80], edx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
movsx edx, word [edi]
mov dword [esi + 0xc7c], 1
mov dword [esi + 0xc80], edx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
cmp word [esi + 0xc26], bx
mov dword [esi + 0xc7c], ebx
je 0x55da01
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x55da01
mov word [edi], bx
mov word [esi + 0xc26], bx
movsx ecx, word [edi]
mov dword [esi + 0xc80], ecx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
or eax, 0xffffffff
mov dword [esi + 0x96e], eax
mov dword [esi + 0x972], eax
mov ebx, 3
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x55da30
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov eax, dword [0x684f20]
sub esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55da77
mov eax, dword [eax + 0x97e]
lea ecx, [esp]
push 0
push ecx
lea edx, [esp + 0xc]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55da77
mov eax, dword [esp]
test eax, eax
je 0x55da77
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x55da80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x684f20]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x55dc28
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x55dc1f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x55dc1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x55dabb
mov ecx, dword [esi + 0x5c]
jmp 0x55dac1
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x55dadc
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x55daf1
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x55dc28
test ecx, ecx
jne 0x55daf9
xor edi, edi
jmp 0x55db2b
cmp ecx, 0x186a0
jbe 0x55db11
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x55db1a
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 2
xor edx, edx
div ecx
mov edi, eax
inc edi
cmp edi, 0x64
jle 0x55db2b
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x55dbcb
lea edx, [esi + 0x9ae]
lea eax, [esi + 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x1a8]
lea ecx, [esi + 0x30c]
mov dword [esi + 0x314], eax
mov dword [esi + 0x310], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0x1a4]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x55dbaf
mov eax, dword [esi + 0xc]
test eax, eax
je 0x55dbaf
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x55dc1f
push esi
mov dword [esi], 1
call fcn.0055fe70
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0x2c]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0055fe70
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x55dc0a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x55dc0a
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x55dc1f
push esi
mov dword [esi], 1
call fcn.0055fe70
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0xb18]
lea eax, [esi + 0x9ae]
push edx
push edi
push eax
call dword [esi + 0xb14]
push esi
call fcn.0055fe70
add esp, 4
pop edi
pop esi
pop ebx
ret