joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44921a
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4836cc
call fcn.0045c5c4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CAction.0
lea ecx, [esi + 0xbc]
mov dword [ebp - 4], 0x1a
call fcn.0046c488
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 0x19
call fcn.0046c488
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 0x18
call fcn.0046c488
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 0x17
call fcn.0046c488
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 0x16
call fcn.0046c488
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 0x15
call fcn.0046c488
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 0x14
call fcn.0046c488
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 0x13
call fcn.0046c488
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x12
call fcn.0046c488
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 0x11
call fcn.0046c488
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x10
call fcn.0046c488
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xf
call fcn.0046c488
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xe
call fcn.0046c488
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xd
call fcn.0046c488
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xc
call fcn.0046c488
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xb
call fcn.0046c488
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x58]
call fcn.0046c488
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 9
call fcn.0046c488
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 8
call fcn.0046c488
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 7
call fcn.0046c488
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 6
call fcn.0046c488
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 5
call fcn.0046c488
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call fcn.0046c488
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call fcn.0046c488
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.0046c488
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.0046c488
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4506f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x45072a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a6f20]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x450708
pop esi
ret

Function at 0x450930
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ad1a8]
push esi
push edi
xor edi, edi
test eax, eax
je 0x450987
mov eax, dword [0x4af588]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x450987
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x45097f
push esi
call fcn.00451c60
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 0x450a60
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x4af588]
mov eax, dword [0x4a7364]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450abb
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450a89
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x450abb
cmp eax, 0x1a
jg 0x450abb
test eax, eax
jne 0x450a9f
call fcn.00450a50
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 0x450a82
xor eax, eax
pop ecx
ret

Function at 0x450b50
Capabilities:
Get thread local storage value

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

Disassembly:
push ecx
mov eax, dword [0x4af588]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x451075
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 0x451075
cmp dword [esp + 0xc], ebp
jne 0x451075
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x45106d
push 0x2e
push esi
call fcn.0045dba0
add esp, 8
test eax, eax
je 0x451066
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.0045dba0
add esp, 8
test eax, eax
jne 0x451054
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 0x4510c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4510d8
or eax, 0xffffffff
pop esi
ret
call fcn.00451080
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x451110
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45112a
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 0x4511b2
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x451199
push edi
call fcn.00459350
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.00458090
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x4511b2
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4511c0
Capabilities:
Get thread local storage value

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

Disassembly:
mov eax, dword [0x4af588]
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 0x451347
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.00455a80
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x451389
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.00458320
add esp, 8
push eax
push ebx
call fcn.00450990
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.00455c20
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x451407
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.00458320
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.00450990
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x4513f4
push eax
call fcn.0045c738
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x4514a8
jmp 0x451499
cmp dword [esi + 0x34], edi
je 0x45145a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.00451990
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x451449
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.00456930
add esp, 4
test eax, eax
jne 0x451439
inc dword [ebx + 0x4c]
call fcn.00451990
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x451429
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x45146a
mov dword [esi + 0x98a], edi
jmp 0x45146a
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 0x45148f
push eax
call fcn.0045c738
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x4514a8
push eax
call fcn.0045c738
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x4514c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4514f2
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 0x4515ea
test edi, edi
je 0x4515ea
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x4515c0
push edi
call ebx
test eax, eax
je 0x4515c0
push esi
call fcn.00451320
add esp, 4
test eax, eax
jne 0x45160a
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x451551
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.00452330
mov edi, eax
add esp, 4
test edi, edi
jne 0x451579
push esi
inc ebx
call fcn.00452330
mov edi, eax
add esp, 4
test edi, edi
je 0x451569
cmp edi, 0x30
je 0x4515aa
cmp edi, 2
push esi
jne 0x4515a2
call fcn.00451320
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.00451320
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.00458320
add esp, 8
push eax
push 0xb
call fcn.00450990
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.00458320
add esp, 8
push eax
push 0xb
call fcn.00450990
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x452c00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
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 0x452c20
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x452c55
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.00458320
add esp, 8
push eax
push 0x2f
call fcn.00450990
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.00455a80
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x452c8b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.00458320
add esp, 8
push eax
push edi
call fcn.00450990
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 0x452ca4
push eax
call fcn.0045c738
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x452cbd
push eax
call fcn.0045c738
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.00455c20
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x452d02
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.00458320
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.00450990
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 0x453380
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x45339c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.00459750
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.004596a0
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.004596d0
add esp, 4
inc edi
cmp edi, 0xc
jl 0x4533b2
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x4533e8
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x4533fd
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 0x45340e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x453420
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x45344c
lea edi, [eax + 1]
call fcn.004596a0
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.004596d0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x453430
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x453460
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x453480
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.004588f0
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x45348d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x4534d4
lea eax, [esp + 8]
push eax
call fcn.00453380
add esp, 4
test eax, eax
jne 0x4534d4
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x4537a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4537ba
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
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 0x455a80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
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 0x455c0b
cmp dword [ebp + 0x19c], ebx
jne 0x455bcd
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x4acd28
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.00451110
test eax, eax
je 0x455b43
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x455b50
cmp dword [ebp + 0xc7c], ebx
je 0x455b63
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 0x455b9b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x455b9b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x455bcd
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.00451c60
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.0045c821
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.0045c821
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x455c0b
cmp eax, ebx
je 0x455c0b
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 0x455c20
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x4af588]
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 0x455c42
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x455c51
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.00450bc0
add esp, 4
cmp eax, 0xfffffffd
jne 0x455cd4
cmp edx, edi
jne 0x455cd4
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.00451990
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x455ce9
cmp edx, edi
jne 0x455ce9
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 0x455e70
cmp eax, 0xfffffffe
jne 0x455d4d
cmp edx, edi
jne 0x455d4d
call fcn.00451080
push 0x4acd28
push edi
push ebx
push 1
push ebx
call fcn.00456210
add esp, 0x14
cmp eax, 1
jne 0x455d41
call fcn.00451110
test eax, eax
jne 0x455d38
call fcn.004510c0
test eax, eax
je 0x455d38
push 1
call fcn.00450bc0
add esp, 4
jmp 0x455cf5
mov eax, 0xfffffffe
mov edx, edi
jmp 0x455cf5
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 0x455e70
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.004592e0
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 0x455e61
cmp dword [esp + 0xc], ebx
je 0x455e61
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x455e28
lea edx, [esi + 0x8cfc]
push edx
call fcn.00450ac0
push eax
call fcn.00450a60
add esp, 8
test eax, eax
jne 0x455e0e
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x455e0e
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x455e0e
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 0x455e51
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x455e51
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 0x455e80
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov eax, dword [0x4af588]
sub esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x455ec7
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 0x455ec7
mov eax, dword [esp]
test eax, eax
je 0x455ec7
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x455ed0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x456078
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x45606f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x45606f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x455f0b
mov ecx, dword [esi + 0x5c]
jmp 0x455f11
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x455f2c
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x455f41
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x456078
test ecx, ecx
jne 0x455f49
xor edi, edi
jmp 0x455f7b
cmp ecx, 0x186a0
jbe 0x455f61
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x455f6a
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 0x455f7b
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x45601b
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 0x455fff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x455fff
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x45606f
push esi
mov dword [esi], 1
call fcn.004582c0
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.004582c0
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x45605a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45605a
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x45606f
push esi
mov dword [esi], 1
call fcn.004582c0
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.004582c0
add esp, 4
pop edi
pop esi
pop ebx
ret