joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459b70
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x459c0e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x459c06
mov eax, dword [esi + 0x20]
test eax, eax
je 0x459ba9
mov al, byte [esi + 0x1c]
mov dword [esi + 0x20], 0
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
and eax, 0xff
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x459bd3
cmp eax, 0xffffffff
je 0x459bbf
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jge 0x459c06
mov ecx, dword [esi + 8]
mov edx, dword [esi]
xor eax, eax
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 8], ecx
pop esi
pop ecx
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459c06
mov eax, dword [esp + 4]
test eax, eax
je 0x459c06
mov eax, dword [esp + 0xc]
and eax, 0xff
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret
mov eax, 0xffffff69
mov dword [esi + 0x18], eax
pop esi
pop ecx
ret

Function at 0x459c20
Capabilities:
Write file on windows

Disassembly:
mov cl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov byte [esp + 0xc], cl
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x459ccd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x459c4a
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x20]
test eax, eax
je 0x459c63
mov eax, dword [esi + 8]
test eax, eax
je 0x459c63
dec eax
mov dword [esi + 0x20], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x459c9d
cmp eax, 0xffffffff
je 0x459c7e
cmp dword [esi + 8], eax
jl 0x459c7e
mov eax, 0xffffff6a
mov dword [esi + 0x18], eax
pop esi
ret
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp ecx, eax
jge 0x459c99
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459cc5
mov eax, dword [esp + 8]
test eax, eax
je 0x459cc5
xor eax, eax
pop esi
ret
mov eax, 0xffffff36
mov dword [esi + 0x18], eax
pop esi
ret
Function at 0x459d00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x459ddc
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x459d29
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x459d37
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x459d54
mov al, byte [ebx + 0x1c]
mov byte [edi], al
inc edi
dec ebp
mov dword [ebx + 0x20], 0
jne 0x459d54
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x459db1
cmp eax, 0xffffffff
je 0x459d8a
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add ecx, ebp
cmp ecx, eax
jle 0x459d8a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx]
mov ecx, ebp
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
pop esi
add eax, ebp
pop edi
mov dword [ebx + 8], eax
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459dd4
cmp dword [esp + 0x14], ebp
jne 0x459dd4
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff37
mov dword [ebx + 0x18], eax
pop edi
pop ebp
pop ebx
ret

Function at 0x459de0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x459e96
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x459dfc
pop ebp
pop ebx
ret
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x459e10
mov eax, dword [ebx + 8]
add eax, ebp
pop ebp
mov dword [ebx + 8], eax
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x459e68
cmp eax, 0xffffffff
je 0x459e30
mov ecx, dword [ebx + 8]
add ecx, ebp
cmp ecx, eax
jle 0x459e30
mov eax, 0xffffff6a
pop ebp
mov dword [ebx + 0x18], eax
pop ebx
ret
mov edx, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [ebx]
mov ecx, ebp
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
add edx, ebp
pop edi
mov eax, edx
mov dword [ebx + 8], edx
cmp ecx, eax
pop esi
jge 0x459e63
mov dword [ebx + 0xc], eax
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459e8e
cmp dword [esp + 0x10], ebp
jne 0x459e8e
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff36
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
Function at 0x45ae70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
mov ebx, dword [esi]
push esi
call fcn.0045afb0
mov edi, eax
add esp, 8
test edi, edi
jge 0x45ae91
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x40]
cmp ecx, 2
jne 0x45af22
test eax, eax
jne 0x45aead
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x45aed6
lea ecx, [edi*8]
push ecx
push esi
call eax
add esp, 8
test eax, eax
jne 0x45afa1
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x10]
lea edx, [edi*8]
push eax
push 0
push esi
push 0x45ade0
push 0
push 0
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x10], edx
call fcn.004f7625
add esp, 0x18
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
dec eax
pop ebx
ret
test eax, eax
je 0x45af58
lea ecx, [edi*8]
push ecx
push esi
call eax
add esp, 8
test eax, eax
jne 0x45afa1
mov edx, dword [esi + 4]
mov ecx, 1
cmp edx, ecx
jne 0x45af4e
mov dword [esi + 0x130], ecx
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x10c], ecx
pop edi
pop esi
pop ebx
ret
cmp ecx, 1
jne 0x45af7b
lea ebx, [esi + 8]
push edi
push ebx
call fcn.00452640
add esp, 8
test eax, eax
jne 0x45af7f
push edi
push ebx
push esi
call fcn.0045ad20
add esp, 0xc
jmp 0x45af7f
mov eax, dword [esp + 0x10]
cmp dword [esi + 4], 4
jne 0x45afa1
lea ebx, [esi + 8]
push edi
push ebx
call fcn.00452640
add esp, 8
test eax, eax
jne 0x45afa1
push edi
push ebx
push esi
call fcn.0045ad20
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x45b0e0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
cmp eax, 1
jl 0x45b0fb
cmp eax, 0x63
jg 0x45b0fb
mov ebp, 1
jmp 0x45b126
cmp eax, 0x64
jl 0x45b10e
cmp eax, 0xc7
jg 0x45b10e
mov ebp, 2
jmp 0x45b126
cmp eax, 0xc8
jl 0x45b121
cmp eax, 0x12b
mov ebp, 3
jle 0x45b126
mov ebp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test edx, edx
mov dword [ebx], 0xffffffff
je 0x45b14c
cmp eax, 7
je 0x45b142
cmp eax, 8
jne 0x45b14c
pop edi
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
ret
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x45b15d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x64e120
call esi
mov eax, dword [0x63fc7c]
test eax, eax
jne 0x45b18a
push 0x64e120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0xffffffcd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x64e100
call esi
push 0x64e120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, 1
je 0x45b1aa
cmp ebp, 4
je 0x45b1aa
xor eax, eax
jmp 0x45b1af
mov eax, 1
mov ecx, dword [esp + 0x20]
push 0x45b300
or eax, ecx
push eax
push 0x1d8
push 1
call fcn.00458f90
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x45b215
cmp edi, dword [0x62606c]
jge 0x45b1ef
mov ecx, dword [0x64e0f8]
mov eax, edi
shl eax, 5
add eax, ecx
cmp dword [eax], 1
jne 0x45b1ef
mov esi, dword [eax + 4]
jmp 0x45b1f1
xor esi, esi
lea ebx, [esi + 0x1bc]
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
mov dword [esi + 0x1d4], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x14]
jmp 0x45b219
mov esi, dword [esp + 0x14]
push 0x64e100
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jge 0x45b22f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [ebx], edi
mov edi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov edx, dword [ebx]
or eax, 0xffffffff
cmp ebp, 2
mov dword [esi + 0x1b4], edx
mov dword [esi + 0x19c], eax
mov dword [esi + 0x1a0], eax
jne 0x45b2a0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x10], 0
call fcn.00451d50
mov dword [esi + 0x28], eax
call fcn.00451d50
mov dword [esi + 0x2c], eax
call fcn.00451d50
mov dword [esi + 0x30], eax
call fcn.00451d50
mov dword [esi + 0x34], eax
call fcn.00451d50
mov dword [esi + 0x38], eax
call fcn.00451d50
mov dword [esi + 0x3c], eax
call fcn.00451d50
mov dword [esi + 0x40], eax
call fcn.00451d50
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x45b2e5
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
jge 0x45b2e5
add esi, 0x1bc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx]
push 0
push 0
push 0
push 0x13
push edx
call fcn.004591a0
add esp, 0x14
mov eax, edi
mov dword [ebx], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
add esi, 0x1bc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x46cef1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x5cd906
call fcn.004f8228
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov dword [ebp - 0x14], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x46cf93
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x46cf93
push 0x2f8
call fcn.00596900
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x46cf42
call fcn.0046d4ed
jmp 0x46cf44
xor eax, eax
push eax
mov byte [ebp - 4], bl
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x46cf6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x6079b8
push eax
call fcn.004f82ed
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 4]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0046d494
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x46f09f
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push ebx
xor edx, edx
push esi
mov dword [eax], edx
xor esi, esi
mov bl, 1
mov ecx, esi
shl bl, cl
inc esi
cmp esi, 8
mov byte [eax + esi + 3], bl
jl 0x46f0a9
mov bl, dl
mov cl, dl
shl bl, 4
shr cl, 4
xor cl, bl
and cl, 0xf
xor cl, bl
mov bl, cl
shl bl, 2
shr cl, 2
xor cl, bl
and cl, 0x33
xor cl, bl
mov bl, cl
add bl, bl
shr cl, 1
xor cl, bl
and cl, 0x55
xor cl, bl
mov byte [eax + edx + 0xc], cl
inc edx
cmp edx, 0x100
jl 0x46f0b9
pop esi
pop ebx
ret
Function at 0x471697
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], edx
jne 0x4716ac
xor eax, eax
jmp 0x47179a
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
imul esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub ecx, ebx
and edi, 7
pop eax
inc ecx
sub eax, edi
cmp eax, ecx
mov dword [ebp + 8], eax
jb 0x4716d6
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 8
jne 0x4716df
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x18]
and eax, 7
inc eax
cmp eax, ecx
mov dword [ebp + 0xc], eax
jb 0x4716f0
mov dword [ebp + 0xc], ecx
mov eax, ebx
xor eax, dword [ebp + 0x18]
test eax, 0xfffffff8
jne 0x4716ff
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
add eax, ebx
cmp ebx, eax
mov dword [ebp + 0x10], eax
jae 0x471734
mov edx, dword [ebp - 4]
mov edi, ebx
mov eax, ebx
not edi
shr eax, 3
and edi, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov dl, byte [edx + edi + 4]
je 0x47172a
or byte [eax], dl
jmp 0x47172e
not dl
and byte [eax], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x47170b
xor edi, edi
cmp ecx, 8
jbe 0x471766
sub ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
shr ecx, 3
mov edi, ecx
je 0x471766
mov eax, dword [ebp + 0x1c]
push edi
neg eax
sbb eax, eax
and eax, 0xff
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.004f8250
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x47178f
mov edi, dword [ebp - 4]
mov ecx, edx
mov eax, edx
not ecx
shr eax, 3
and ecx, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov cl, byte [edi + ecx + 4]
je 0x47178a
or byte [eax], cl
jmp 0x47178e
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x47176b
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret 0x18

Function at 0x473494
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x473531
dec ecx
je 0x4734f0
dec ecx
je 0x4734d6
dec ecx
je 0x4734b8
xor eax, eax
jmp 0x473544
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
jmp 0x473544
mov ecx, dword [eax + 0x130]
test ecx, ecx
je 0x4734b1
push dword [eax + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
jmp 0x473544
cmp byte [eax + 0x129], 0
mov edx, dword [eax + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
je 0x473505
mov ecx, dword [eax + 0x20]
jmp 0x473508
mov ecx, dword [eax + 0x18]
sub ecx, edx
cmp ecx, esi
jae 0x473510
mov esi, ecx
test esi, esi
jbe 0x47352c
mov eax, dword [eax + 0x14]
push esi
add eax, edx
push eax
push dword [ebp + 8]
call fcn.004f7e60
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, esi
pop esi
jmp 0x473544
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f5b4c
add esp, 0x10
pop edi
leave
ret 8
Function at 0x4737a4
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x473813
dec ecx
je 0x473801
dec ecx
je 0x4737e7
dec ecx
je 0x4737c7
xor al, al
jmp 0x473837
cmp byte [eax + 0x129], bl
je 0x4737d8
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x473833
mov ecx, dword [eax + 0x140]
cmp ecx, ebx
je 0x4737c3
push esi
push dword [eax + 0x14c]
call ecx
test eax, eax
setne al
jmp 0x473837
cmp byte [eax + 0x129], bl
je 0x47380e
mov eax, dword [eax + 0x20]
jmp 0x473833
mov eax, dword [eax + 0x18]
jmp 0x473833
cmp byte [eax + 0x129], bl
je 0x473824
push dword [eax + 8]
call fcn.004f8926
pop ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push dword [eax + 0x10]
call fcn.004f889c
pop ecx
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4738db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp byte [eax + 0x129], 0
je 0x473902
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4739a8
dec ecx
je 0x473968
dec ecx
je 0x473944
dec ecx
je 0x473909
xor al, al
jmp 0x4739c4
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul esi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x47393d
test al, al
je 0x47393d
xor eax, eax
inc eax
jmp 0x4739c4
xor eax, eax
jmp 0x4739c4
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x473902
push dword [eax + 0x14c]
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call ecx
test eax, eax
setne al
jmp 0x4739c4
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
imul esi, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x18]
jae 0x473902
mov eax, dword [eax + 0x14]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call fcn.004f7e60
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x4739a1
mov ecx, edx
mov dword [eax + 0x20], ecx
mov al, 1
jmp 0x4739c4
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f70e8
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4758a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x4758ea
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
jmp 0x4758f9
mov dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4792c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x1c], edx
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], al
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jge 0x47930d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00596900
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
je 0x47932a
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
jmp 0x479330
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x18], 0
je 0x479346
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
jmp 0x47934c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 8], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x487ecf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x5cdfce
call fcn.004f8228
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov dword [ebp - 0x14], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x487f6e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x487f6e
push 0x4c
call fcn.00596900
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x487f1d
call fcn.00487f8a
jmp 0x487f1f
xor eax, eax
push eax
mov byte [ebp - 4], bl
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x487f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x6079b8
push eax
call fcn.004f82ed
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
lea ecx, [esi + 4]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0046d494
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4ba130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push ebx
lea eax, [esp + 8]
push esi
xor ebx, ebx
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba1a9
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x20], 0x104
mov byte [esp + 0x2c], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ba19e
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.005980a0
mov eax, esi
pop esi
pop ebx
add esp, 0x114
ret

Function at 0x4ba1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push edx
mov dword [esp + 0x18], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba25b
push ebx
push ebp
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [esi], eax
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call ebp
test eax, eax
jne 0x4ba248
mov eax, dword [esi]
test eax, eax
jbe 0x4ba248
push eax
call fcn.004f5323
mov edi, eax
add esp, 4
test edi, edi
je 0x4ba248
mov eax, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x14]
push edi
push edx
push 0
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov eax, edi
pop ebx
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret

Function at 0x4ba260
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x4ba2a6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 3
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret