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

Disassembly:
mov eax, dword [0x6edbc0]
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 0x5aed7b
cmp dword [ebp + 0x19c], ebx
jne 0x5aed3d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x6a0f60
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.005aa280
test eax, eax
je 0x5aecb3
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x5aecc0
cmp dword [ebp + 0xc7c], ebx
je 0x5aecd3
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 0x5aed0b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x5aed0b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x5aed3d
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.005aadd0
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.005ce37a
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.005ce37a
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x5aed7b
cmp eax, ebx
je 0x5aed7b
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 0x5aed90
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x6edbc0]
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 0x5aedb2
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x5aedc1
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.005a9d30
add esp, 4
cmp eax, 0xfffffffd
jne 0x5aee44
cmp edx, edi
jne 0x5aee44
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.005aab00
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x5aee59
cmp edx, edi
jne 0x5aee59
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 0x5aefe0
cmp eax, 0xfffffffe
jne 0x5aeebd
cmp edx, edi
jne 0x5aeebd
call fcn.005aa1f0
push 0x6a0f60
push edi
push ebx
push 1
push ebx
call fcn.005af380
add esp, 0x14
cmp eax, 1
jne 0x5aeeb1
call fcn.005aa280
test eax, eax
jne 0x5aeea8
call fcn.005aa230
test eax, eax
je 0x5aeea8
push 1
call fcn.005a9d30
add esp, 4
jmp 0x5aee65
mov eax, 0xfffffffe
mov edx, edi
jmp 0x5aee65
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 0x5aefe0
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.005bfdc0
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 0x5aefd1
cmp dword [esp + 0xc], ebx
je 0x5aefd1
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x5aef98
lea edx, [esi + 0x8cfc]
push edx
call fcn.005a9c30
push eax
call fcn.005a9bd0
add esp, 8
test eax, eax
jne 0x5aef7e
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x5aef7e
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x5aef7e
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 0x5aefc1
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x5aefc1
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 0x5aeff0
Capabilities:
Get thread local storage value
Read file on windows

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

Function at 0x5af040
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5af1e8
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x5af1df
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5af1df
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5af07b
mov ecx, dword [esi + 0x5c]
jmp 0x5af081
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x5af09c
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x5af0b1
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x5af1e8
test ecx, ecx
jne 0x5af0b9
xor edi, edi
jmp 0x5af0eb
cmp ecx, 0x186a0
jbe 0x5af0d1
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x5af0da
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 0x5af0eb
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x5af18b
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 0x5af16f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5af16f
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5af1df
push esi
mov dword [esi], 1
call fcn.005b1360
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.005b1360
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x5af1ca
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5af1ca
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x5af1df
push esi
mov dword [esi], 1
call fcn.005b1360
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.005b1360
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5af1f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5af207
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x5af21d
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x5af21d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x5af22b
xor edi, edi
jmp 0x5af25e
cmp ecx, 0x186a0
jle 0x5af24c
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x5af259
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
cmp edi, 0x64
mov ebp, eax
jle 0x5af273
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x5af30c
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x1ac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x1a8]
lea eax, [esi + 0x30c]
mov dword [esi + 0x314], ecx
push eax
mov dword [ecx], edi
mov ecx, dword [esi + 0x1a4]
cmp ecx, 0xc8
push 0
mov dword [eax], 0
mov dword [esi + 0x310], 0x164
push 0x4a
jl 0x5af2f2
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5af36f
push esi
mov dword [esi], 1
call fcn.005b1360
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.005b1360
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x5af35c
sub eax, 0x64
je 0x5af34d
sub eax, 0x64
je 0x5af34d
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x5af36f
push esi
mov ebp, 1
call fcn.005b1360
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esi + 0xabe]
mov edx, dword [esp + 0x14]
push ecx
push edi
push edx
jmp 0x5af32e
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.005b1360
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x5afce0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x5afd48
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x5afd2f
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x67422c
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 5
push str.____r_n
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop esi
ret

Function at 0x5afd50
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x20c
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5afefd
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x5afefd
lea ecx, [esp + 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.005b13c0
add esp, 8
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5afdc7
lea eax, [esp + 0x110]
push 0x6713a0
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push edx
call esi
mov esi, dword [esp + 0x218]
push 1
lea eax, [esi + 0xf]
push eax
call fcn.005b13c0
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.005b13c0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x14]
push eax
push str._s__d__s__r_n
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5afefd
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x1c]
push eax
push edx
push esi
call edi
mov eax, dword [esp + 0x224]
mov ecx, dword [eax + 0x4c]
push ecx
push 0
push 0x4a
call fcn.005b13c0
add esp, 8
lea edx, [esp + 0x18]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x1c]
push eax
push edx
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x67422c
push esi
call edi
mov ecx, dword [esp + 0x224]
mov edx, dword [ecx + 0x50]
push edx
push 0
push 0x4b
call fcn.005b13c0
add esp, 8
push eax
lea eax, [esp + 0x1c]
push str._s__lx__r_n
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push ecx
push edx
call ebx
push eax
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20c
ret
Function at 0x5aff10
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x20c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b0013
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x5b0013
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.005b13c0
add esp, 8
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x10c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5aff86
lea eax, [esp + 8]
push 0x6713a0
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call esi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b0013
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x67422c
push esi
call edi
mov ebx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x67422c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x20c
ret
Function at 0x5b0900
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b09fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5b09fe
cmp dword [esi + 0x1c], 0xffffffff
jne 0x5b09b7
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x8f
call fcn.005b13c0
add esp, 8
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5b0983
lea eax, [esp + 0xc]
push 0x6713a0
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x5b09fe
mov ecx, dword [esi + 0x1c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x218]
lea edx, [esp + 8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 8]
push 0
push ecx
push 2
push 0x67422c
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x5b0e20
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x164
mov al, byte [0x6a0f60]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6edbc0]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x5b0f41
cmp dword [esi + 0x44], ebp
jne 0x5b0f41
cmp dword [esi + 0x40], ebp
jne 0x5b0f41
push ebx
mov ebx, dword [esp + 0x178]
mov eax, ebx
lea edx, [esi + 0x70]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32___c__u__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0x30], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x24], ebp
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 0x10
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
lea ecx, [esp + 0x8c]
push ebp
push ecx
push ebp
mov dword [esp + 0x54], 0x44
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x5b0f34
mov edx, dword [esp + 0x1c]
push 0x2710
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push 0x5b0de0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x5b0f34
mov edi, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x164
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x164
ret

Function at 0x5b0f50
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b0fd1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5b0fd1
push ebx
push ebp
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x2c]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b0fbf
test edi, edi
jne 0x5b0fbf
push esi
call fcn.005b1360
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x5b0fb1
mov edi, 1
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5b0f94
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5b13c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5b13fb
mov eax, dword [esp + 0x18]
push 0x6a0f60
mov ecx, eax
shl ecx, 6
add ecx, eax
lea esi, [ecx*4 + 0x91a6]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jge 0x5b1407
xor edi, edi
jmp 0x5b1411
cmp edi, 2
jle 0x5b1411
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x5b14c9
mov ecx, dword [ebp*8 + 0x699110]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x5b1464
mov edx, edi
mov eax, dword [ebp*8 + 0x699114]
shl edx, 6
add edx, edi
push 0x103
push eax
lea esi, [ebx + edx*4]
lea ecx, [esi + 0x91a6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x92a9], 0
mov eax, 1
test ecx, ecx
jne 0x5b146d
or ebp, 0xffffffff
jmp 0x5b146e
inc ebp
test eax, eax
je 0x5b1415
mov eax, dword [ebx + 0xace]
test eax, eax
je 0x5b14b6
lea esi, [ebx + 0x94b2]
push 0x673c88
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xad2]
mov ecx, edi
shl ecx, 6
add ecx, edi
push eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [ebx + ecx*4 + 0x91a6]
push edx
push 0
push eax
push 0
push 0xd
call dword [ebx + 0xace]
mov ecx, edi
shl ecx, 6
add ecx, edi
pop edi
pop esi
pop ebp
lea eax, [ebx + ecx*4 + 0x91a6]
pop ebx
ret
test eax, eax
jne 0x5b1472
mov edx, edi
push 0x6a0f60
shl edx, 6
add edx, edi
lea esi, [ebx + edx*4 + 0x91a6]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5b1570
Capabilities:
Check if file exists
Delete file
Get file attributes
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5b158c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x5b15c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5b15c4
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x5b15bc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5b15c4
pop edi
mov eax, 0x1c
pop esi
ret
push 0
push 0x8000020
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x9068], eax
inc eax
neg eax
sbb eax, eax
pop edi
and al, 0xe4
pop esi
add eax, 0x1c
ret