joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e630
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x49e64c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.004a4a00
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.004a4950
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.004a4980
add esp, 4
inc edi
cmp edi, 0xc
jl 0x49e662
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x49e698
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x49e6ad
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 0x49e6be
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x49e6d0
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x49e6fc
lea edi, [eax + 1]
call fcn.004a4950
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.004a4980
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x49e6e0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x49e710
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x49e730
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.004a3ba0
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x49e73d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x49e784
lea eax, [esp + 8]
push eax
call fcn.0049e630
add esp, 4
test eax, eax
jne 0x49e784
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x49ea50
Capabilities:
Get thread local storage value

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

Disassembly:
mov eax, dword [0x527af4]
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 0x4a0ebb
cmp dword [ebp + 0x19c], ebx
jne 0x4a0e7d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x524a50
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.0049c3c0
test eax, eax
je 0x4a0df3
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x4a0e00
cmp dword [ebp + 0xc7c], ebx
je 0x4a0e13
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 0x4a0e4b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x4a0e4b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x4a0e7d
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.0049cf10
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.004b0861
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.004b0861
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x4a0ebb
cmp eax, ebx
je 0x4a0ebb
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 0x4a0ed0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x527af4]
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 0x4a0ef2
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x4a0f01
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.0049be70
add esp, 4
cmp eax, 0xfffffffd
jne 0x4a0f84
cmp edx, edi
jne 0x4a0f84
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.0049cc40
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x4a0f99
cmp edx, edi
jne 0x4a0f99
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 0x4a1120
cmp eax, 0xfffffffe
jne 0x4a0ffd
cmp edx, edi
jne 0x4a0ffd
call fcn.0049c330
push 0x524a50
push edi
push ebx
push 1
push ebx
call fcn.004a14c0
add esp, 0x14
cmp eax, 1
jne 0x4a0ff1
call fcn.0049c3c0
test eax, eax
jne 0x4a0fe8
call fcn.0049c370
test eax, eax
je 0x4a0fe8
push 1
call fcn.0049be70
add esp, 4
jmp 0x4a0fa5
mov eax, 0xfffffffe
mov edx, edi
jmp 0x4a0fa5
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 0x4a1120
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.004a4590
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 0x4a1111
cmp dword [esp + 0xc], ebx
je 0x4a1111
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x4a10d8
lea edx, [esi + 0x8cfc]
push edx
call fcn.0049bd70
push eax
call fcn.0049bd10
add esp, 8
test eax, eax
jne 0x4a10be
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x4a10be
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x4a10be
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 0x4a1101
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x4a1101
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 0x4a1130
Capabilities:
Get thread local storage value
Read file on windows

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

Function at 0x4a1180
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a1328
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4a131f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4a131f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a11bb
mov ecx, dword [esi + 0x5c]
jmp 0x4a11c1
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x4a11dc
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x4a11f1
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x4a1328
test ecx, ecx
jne 0x4a11f9
xor edi, edi
jmp 0x4a122b
cmp ecx, 0x186a0
jbe 0x4a1211
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x4a121a
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 0x4a122b
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x4a12cb
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 0x4a12af
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a12af
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a131f
push esi
mov dword [esi], 1
call fcn.004a3570
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.004a3570
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x4a130a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a130a
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x4a131f
push esi
mov dword [esi], 1
call fcn.004a3570
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.004a3570
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a1330
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4a1347
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x4a135d
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x4a135d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x4a136b
xor edi, edi
jmp 0x4a139e
cmp ecx, 0x186a0
jle 0x4a138c
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 0x4a1399
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 0x4a13b3
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x4a144c
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 0x4a1432
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a14af
push esi
mov dword [esi], 1
call fcn.004a3570
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.004a3570
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x4a149c
sub eax, 0x64
je 0x4a148d
sub eax, 0x64
je 0x4a148d
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x4a14af
push esi
mov ebp, 1
call fcn.004a3570
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 0x4a146e
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.004a3570
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x4a1e20
Capabilities:
Write file on windows

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

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x20c
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a203d
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x4a203d
lea ecx, [esp + 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.004a35d0
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 0x4a1f07
lea eax, [esp + 0x110]
push 0x511870
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.004a35d0
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.004a35d0
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 0x4a203d
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.004a35d0
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 0x512394
push esi
call edi
mov ecx, dword [esp + 0x224]
mov edx, dword [ecx + 0x50]
push edx
push 0
push 0x4b
call fcn.004a35d0
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 0x4a2050
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x20c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2153
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x4a2153
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.004a35d0
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 0x4a20c6
lea eax, [esp + 8]
push 0x511870
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 0x4a2153
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 0x512394
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 0x512394
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 0x4a2a40
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a2b3e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2b3e
cmp dword [esi + 0x1c], 0xffffffff
jne 0x4a2af7
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x8f
call fcn.004a35d0
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 0x4a2ac3
lea eax, [esp + 0xc]
push 0x511870
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 0x4a2b3e
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 0x512394
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x4a2f60
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x164
mov al, byte [0x524a50]
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 [0x527af4]
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 0x4a3081
cmp dword [esi + 0x44], ebp
jne 0x4a3081
cmp dword [esi + 0x40], ebp
jne 0x4a3081
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 0x4a3074
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 0x4a2f20
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 0x4a3074
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 0x4a3090
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a3111
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a3111
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 0x4a30ff
test edi, edi
jne 0x4a30ff
push esi
call fcn.004a3570
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x4a30f1
mov edi, 1
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4a30d4
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 0x4a35d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4a360b
mov eax, dword [esp + 0x18]
push 0x524a50
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 0x4a3617
xor edi, edi
jmp 0x4a3621
cmp edi, 2
jle 0x4a3621
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x4a36d9
mov ecx, dword [ebp*8 + 0x51ec70]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x4a3674
mov edx, edi
mov eax, dword [ebp*8 + 0x51ec74]
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 0x4a367d
or ebp, 0xffffffff
jmp 0x4a367e
inc ebp
test eax, eax
je 0x4a3625
mov eax, dword [ebx + 0xace]
test eax, eax
je 0x4a36c6
lea esi, [ebx + 0x94b2]
push 0x511928
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 0x4a3682
mov edx, edi
push 0x524a50
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 0x4a3ab0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get thread local storage value
Set file attributes

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