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

Disassembly:
mov eax, dword [0x6eeaa0]
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 0x5af68b
cmp dword [ebp + 0x19c], ebx
jne 0x5af64d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x6a1e40
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.005aab90
test eax, eax
je 0x5af5c3
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x5af5d0
cmp dword [ebp + 0xc7c], ebx
je 0x5af5e3
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 0x5af61b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x5af61b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x5af64d
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.005ab6e0
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.005cec99
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.005cec99
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x5af68b
cmp eax, ebx
je 0x5af68b
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 0x5af6a0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x6eeaa0]
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 0x5af6c2
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x5af6d1
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.005aa640
add esp, 4
cmp eax, 0xfffffffd
jne 0x5af754
cmp edx, edi
jne 0x5af754
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.005ab410
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x5af769
cmp edx, edi
jne 0x5af769
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 0x5af8f0
cmp eax, 0xfffffffe
jne 0x5af7cd
cmp edx, edi
jne 0x5af7cd
call fcn.005aab00
push 0x6a1e40
push edi
push ebx
push 1
push ebx
call fcn.005afc90
add esp, 0x14
cmp eax, 1
jne 0x5af7c1
call fcn.005aab90
test eax, eax
jne 0x5af7b8
call fcn.005aab40
test eax, eax
je 0x5af7b8
push 1
call fcn.005aa640
add esp, 4
jmp 0x5af775
mov eax, 0xfffffffe
mov edx, edi
jmp 0x5af775
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 0x5af8f0
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.005b2d20
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 0x5af8e1
cmp dword [esp + 0xc], ebx
je 0x5af8e1
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x5af8a8
lea edx, [esi + 0x8cfc]
push edx
call fcn.005aa540
push eax
call fcn.005aa4e0
add esp, 8
test eax, eax
jne 0x5af88e
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x5af88e
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x5af88e
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 0x5af8d1
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x5af8d1
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 0x5af900
Capabilities:
Get thread local storage value
Read file on windows

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

Function at 0x5af950
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5afaf8
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x5afaef
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5afaef
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5af98b
mov ecx, dword [esi + 0x5c]
jmp 0x5af991
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x5af9ac
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x5af9c1
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x5afaf8
test ecx, ecx
jne 0x5af9c9
xor edi, edi
jmp 0x5af9fb
cmp ecx, 0x186a0
jbe 0x5af9e1
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x5af9ea
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 0x5af9fb
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x5afa9b
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 0x5afa7f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5afa7f
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5afaef
push esi
mov dword [esi], 1
call fcn.005b1d40
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.005b1d40
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x5afada
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5afada
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x5afaef
push esi
mov dword [esi], 1
call fcn.005b1d40
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.005b1d40
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5afb00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5afb17
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x5afb2d
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x5afb2d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x5afb3b
xor edi, edi
jmp 0x5afb6e
cmp ecx, 0x186a0
jle 0x5afb5c
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 0x5afb69
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 0x5afb83
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x5afc1c
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 0x5afc02
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5afc7f
push esi
mov dword [esi], 1
call fcn.005b1d40
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.005b1d40
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x5afc6c
sub eax, 0x64
je 0x5afc5d
sub eax, 0x64
je 0x5afc5d
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x5afc7f
push esi
mov ebp, 1
call fcn.005b1d40
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 0x5afc3e
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.005b1d40
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x5b05f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x5b0658
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x5b063f
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 0x67522c
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 0x5b0660
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6eeaa0]
sub esp, 0x20c
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b080d
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x5b080d
lea ecx, [esp + 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.005b1da0
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 0x5b06d7
lea eax, [esp + 0x110]
push 0x6723a0
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.005b1da0
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.005b1da0
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 0x5b080d
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.005b1da0
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 0x67522c
push esi
call edi
mov ecx, dword [esp + 0x224]
mov edx, dword [ecx + 0x50]
push edx
push 0
push 0x4b
call fcn.005b1da0
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 0x5b0820
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6eeaa0]
sub esp, 0x20c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b0923
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x5b0923
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.005b1da0
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 0x5b0896
lea eax, [esp + 8]
push 0x6723a0
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 0x5b0923
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 0x67522c
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 0x67522c
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 0x5b1210
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6eeaa0]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b130e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5b130e
cmp dword [esi + 0x1c], 0xffffffff
jne 0x5b12c7
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x8f
call fcn.005b1da0
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 0x5b1293
lea eax, [esp + 0xc]
push 0x6723a0
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 0x5b130e
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 0x67522c
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x5b1730
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x164
mov al, byte [0x6a1e40]
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 [0x6eeaa0]
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 0x5b1851
cmp dword [esi + 0x44], ebp
jne 0x5b1851
cmp dword [esi + 0x40], ebp
jne 0x5b1851
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 0x5b1844
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 0x5b16f0
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 0x5b1844
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 0x5b1860
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b18e1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5b18e1
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 0x5b18cf
test edi, edi
jne 0x5b18cf
push esi
call fcn.005b1d40
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x5b18c1
mov edi, 1
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5b18a4
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 0x5b1da0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5b1ddb
mov eax, dword [esp + 0x18]
push 0x6a1e40
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 0x5b1de7
xor edi, edi
jmp 0x5b1df1
cmp edi, 2
jle 0x5b1df1
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x5b1ea9
mov ecx, dword [ebp*8 + 0x699ff0]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x5b1e44
mov edx, edi
mov eax, dword [ebp*8 + 0x699ff4]
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 0x5b1e4d
or ebp, 0xffffffff
jmp 0x5b1e4e
inc ebp
test eax, eax
je 0x5b1df5
mov eax, dword [ebx + 0xace]
test eax, eax
je 0x5b1e96
lea esi, [ebx + 0x94b2]
push 0x674c88
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 0x5b1e52
mov edx, edi
push 0x6a1e40
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 0x5b2240
Capabilities:
Check if file exists
Delete file
Get file attributes
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5b225c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x5b2294
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5b2294
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x5b228c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5b2294
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