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

Disassembly:
mov eax, dword [0x10063c04]
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 0x1002efd9
cmp dword [ebp + 0x1cc], ebx
jne 0x1002ef93
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x3d44]
push 0x1006161c
mov dword [ebp + 0x3cf0], ebx
mov dword [ebp + 0x3d38], ebx
push ecx
mov dword [ebp + 0x3d28], ebx
mov dword [ebp + 0x3d20], ebx
mov dword [ebp + 0x3cf4], ebx
mov dword [ebp + 0x3d3c], ebx
mov dword [ebp + 0x3d40], ebx
mov dword [ebp + 0x15fb4], ebx
mov dword [ebp + 0x14f50], ebx
mov dword [ebp + 0x14f54], ebx
mov dword [ebp + 0x14f58], ebx
mov byte [ebp + 0x14f5c], bl
mov dword [ebp + 0x167b8], ebx
mov dword [ebp + 0x167bc], ebx
mov dword [ebp + 0x167c4], ebx
mov dword [ebp + 0x3d0c], ebx
mov dword [ebp + 0x3d10], ebx
mov dword [ebp + 0x3d14], ebx
call esi
mov edx, dword [esp + 0x14]
lea eax, [ebp + 0x14f64]
push edx
push eax
call esi
call fcn.100297a0
test eax, eax
je 0x1002ef09
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x4c], ebx
jne 0x1002ef16
cmp dword [ebp + 0x4ed8], ebx
je 0x1002ef29
lea esi, [ebp + 0x15f64]
lea edi, [ebp + 0x15f88]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x14f64]
lea esi, [ebp + 0x15764]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002ef61
mov eax, dword [ebp + 0x15f78]
mov ecx, dword [ebp + 0x15f9c]
cmp eax, ecx
jne 0x1002ef61
mov ecx, dword [ebp + 0x15f80]
mov eax, dword [ebp + 0x15fa4]
cmp ecx, eax
je 0x1002ef93
push ebp
mov dword [ebp + 0x4e08], ebx
call fcn.1002a440
add esp, 4
mov dword [ebp + 0x3d00], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp + 0x15f88]
mov dword [ebp + 0x4e70], ebx
mov dword [ebp + 0x3d04], ebx
mov byte [esi], bl
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x98]
add edx, 4
push edx
call fcn.10039ff8
mov dword [ebp + 0x14f48], eax
mov eax, dword [ebp + 0x9c]
inc eax
push eax
call fcn.10039ff8
mov ecx, dword [ebp + 0x14f48]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x15fac], eax
mov dword [ebp + 0x15fb4], eax
je 0x1002efd9
cmp eax, ebx
je 0x1002efd9
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 0x1002f640
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002f687
mov eax, dword [eax + 0x3d08]
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 0x1002f687
mov eax, dword [esp]
test eax, eax
je 0x1002f687
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret
Function at 0x1002f690
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1002f887
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x1002f87e
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x1002f87e
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1002f6dd
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0x68]
mov ebx, dword [esi + 0x8c]
mov eax, dword [esi + 0x6c]
add edi, ecx
jmp 0x1002f6f7
mov edi, dword [esi + 0x4550]
mov ecx, dword [esi + 0x88]
mov ebx, dword [esi + 0x4554]
mov eax, dword [esi + 0x8c]
add edi, ecx
mov edx, dword [esp + 0x18]
mov ecx, edi
adc ebx, eax
add ecx, 0x3e8
mov eax, ebx
adc eax, 0
cmp edx, eax
mov eax, dword [esp + 0x14]
jl 0x1002f725
jg 0x1002f718
cmp eax, ecx
jbe 0x1002f725
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebp, dword [esi + 0x24]
test ebp, ebp
jne 0x1002f73a
mov ecx, dword [esi + 0x4600]
test ecx, ecx
je 0x1002f887
mov ecx, edi
or ecx, ebx
jne 0x1002f748
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x1002f77e
push 0
push 0x64
push edx
push eax
call fcn.1003a570
push ebx
push edi
push edx
push eax
call fcn.1003a4c0
mov edi, eax
add edi, 1
adc edx, 0
mov dword [esp + 0x18], edx
js 0x1002f77e
jg 0x1002f771
cmp edi, 0x64
jbe 0x1002f77e
mov edi, 0x64
mov dword [esp + 0x18], 0
mov eax, edi
cdq
mov dword [esi + 0x3cf0], eax
mov dword [esi + 0x3cf4], edx
test ebp, ebp
je 0x1002f829
lea edx, [esi + 0x3d44]
lea eax, [esi + 0x1dc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x1d8]
lea ecx, [esi + 0x33c]
mov dword [esi + 0x344], eax
mov dword [esi + 0x340], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0x1d4]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x1002f80c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1002f80c
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x1002f87e
push esi
mov dword [esi], 1
call fcn.10031cc0
add esp, 4
pop edi
pop esi
pop ebp
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.10031cc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [esi + 0x1d4], 0xc8
jl 0x1002f869
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1002f869
mov eax, dword [esi + 0x4604]
lea ecx, [esi + 0x3d44]
push eax
push edi
push ecx
call dword [esi + 0x4600]
test eax, eax
je 0x1002f87e
push esi
mov dword [esi], 1
call fcn.10031cc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 0x4604]
lea eax, [esi + 0x3d44]
push edx
push edi
push eax
call dword [esi + 0x4600]
push esi
call fcn.10031cc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1002f890
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1002f8a7
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x1002f8bd
mov eax, dword [esi + 0x4558]
test eax, eax
jne 0x1002f8bd
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x1002f8cb
xor edi, edi
jmp 0x1002f8fe
cmp ecx, 0x186a0
jle 0x1002f8ec
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 0x1002f8f9
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 0x1002f913
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x3d40], edi
je 0x1002f9ac
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x1dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x1d8]
lea eax, [esi + 0x33c]
mov dword [esi + 0x344], ecx
push eax
mov dword [ecx], edi
mov ecx, dword [esi + 0x1d4]
cmp ecx, 0xc8
push 0
mov dword [eax], 0
mov dword [esi + 0x340], 0x164
push 0x4a
jl 0x1002f992
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x1002fa2b
push esi
mov dword [esi], 1
call fcn.10031cc0
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.10031cc0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1d4]
cmp eax, 0x12c
jg 0x1002f9ea
je 0x1002fa0f
sub eax, 0x64
je 0x1002f9c7
sub eax, 0x64
je 0x1002fa0f
jmp 0x1002f9f6
mov edx, dword [esi + 0x455c]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0x4558]
push esi
call fcn.10031cc0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
sub eax, 0x190
je 0x1002fa0f
sub eax, 0x64
je 0x1002fa0f
mov ecx, dword [esi + 0x455c]
mov edx, dword [esp + 0x14]
push ecx
push edi
push edx
call dword [esi + 0x4558]
test eax, eax
je 0x1002fa2b
jmp 0x1002fa26
mov eax, dword [esi + 0x455c]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0x4558]
test eax, eax
je 0x1002fa2b
mov ebp, 1
push esi
call fcn.10031cc0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x100303b0
Capabilities:
Write file on windows

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

Disassembly:
mov eax, 0x1004
call fcn.10039ee0
mov eax, dword [0x10063c04]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100305d1
mov ecx, dword [eax + 0x4568]
test ecx, ecx
je 0x100305d1
lea ecx, [esp + 0x80c]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 0
push 0x65
call fcn.10033300
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 0x1003049b
lea eax, [esp + 0x80c]
push 0x100596b4
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call esi
mov esi, dword [esp + 0x1010]
push 1
lea eax, [esi + 0xf]
push eax
call fcn.10033300
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.10033300
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 + 0x80c]
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 0x100305d1
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 + 0x101c]
mov ecx, dword [eax + 0x4c]
push ecx
push 0
push 0x4a
call fcn.10033300
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 0x100597f0
push esi
call edi
mov ecx, dword [esp + 0x101c]
mov edx, dword [ecx + 0x50]
push edx
push 0
push 0x4b
call fcn.10033300
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, 0x1004
ret
Function at 0x100305e0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.10039ee0
mov eax, dword [0x10063c04]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100306e7
mov ecx, dword [eax + 0x4568]
test ecx, ecx
je 0x100306e7
lea ecx, [esp + 8]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 0
push 0x65
call fcn.10033300
add esp, 8
lea edx, [esp + 0x80c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x808]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x1003065a
lea eax, [esp + 8]
push 0x100596b4
push eax
call esi
lea ecx, [esp + 0x808]
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 0x100306e7
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 0x100597f0
push esi
call edi
mov ebx, dword [esp + 0x1014]
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 0x100597f0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1004
call fcn.10039ee0
mov eax, dword [0x10063c04]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10031232
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10031232
cmp dword [esi + 0x1c], 0xffffffff
jne 0x100311eb
lea ecx, [esp + 0xc]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 0
push 0x8f
call fcn.10033300
add esp, 8
lea edx, [esp + 0x810]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x80c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x100311b7
lea eax, [esp + 0xc]
push 0x100596b4
push eax
call edi
lea ecx, [esp + 0x80c]
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 0x10031232
mov ecx, dword [esi + 0x1c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1010]
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 0x100597f0
push edx
call edi
pop edi
pop esi
add esp, 0x1004
ret
Function at 0x10031240
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 8
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003126c
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x18904], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
mov dword [esp + 8], ecx
push eax
push 0x100312c0
mov dword [esp + 0x14], edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x1006162c]
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test esi, esi
mov edi, eax
je 0x100312b3
mov esi, dword [esi + 0x18904]
test esi, esi
je 0x100312b3
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x100316b0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x860
mov al, byte [0x1006161c]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10063c04]
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 0x100317d4
cmp dword [esi + 0x4c], ebp
jne 0x100317d4
cmp dword [esi + 0x48], ebp
jne 0x100317d4
push ebx
mov ebx, dword [esp + 0x874]
mov eax, ebx
lea edx, [esi + 0xa0]
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 0x100317c7
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 0x10031670
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 0x100317c7
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, 0x860
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x860
ret
Function at 0x100317e0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10031861
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10031861
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 0x1003184f
test edi, edi
jne 0x1003184f
push esi
call fcn.10031cc0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x10031841
mov edi, 1
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10031824
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 0x10031d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x82c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, dword [esp + 0x840]
push edi
mov dword [esp + 0xc], 2
mov ecx, dword [esi + 0x456c]
mov eax, 7
test ecx, ecx
je 0x10031d88
lea eax, [esi + 0xb48]
lea edi, [esi + 0x348]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x4570]
mov eax, dword [esp + 0x840]
lea edx, [esi + 0x18103]
push ecx
push edx
push edi
mov edi, dword [esp + 0x848]
push eax
push edi
push 3
push 0xf
call dword [esi + 0x456c]
jmp 0x10031d8f
mov edi, dword [esp + 0x83c]
sub eax, 2
je 0x10031f1d
sub eax, 4
je 0x10031eeb
test edi, edi
jne 0x10031db3
lea ecx, [esp + 0x14]
push str..zip
push ecx
call ebp
jmp 0x10031dd8
cmp edi, 0x64
push edi
jl 0x10031dc5
lea edx, [esp + 0x18]
push str..zip._03d
push edx
jmp 0x10031dcf
lea eax, [esp + 0x18]
push str..zip.z_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + 0xb48]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
lea edx, [esp + 0x38]
lea edi, [esi + 0x348]
push edx
push edi
call ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [esp + 0x38]
push str..zip
push ecx
call fcn.10033400
mov ebx, eax
test ebx, ebx
je 0x10031e34
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
sub eax, ecx
push edx
lea edx, [eax + esi + 0x348]
push edx
call ebp
mov dword [esp + 0x14], 1
jmp 0x10031e48
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x840]
test ecx, ecx
je 0x10031eca
cmp eax, 0xffffffff
jne 0x10031eca
cmp ecx, 0x64
push ecx
jl 0x10031e71
lea ecx, [esp + 0x1c]
push str.._03d
push ecx
jmp 0x10031e7b
lea edx, [esp + 0x1c]
push str..z_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
lea eax, [esp + 0x18]
push eax
je 0x10031ea3
lea ecx, [esp + 0x3c]
sub ebx, ecx
lea edx, [ebx + esi + 0x348]
push edx
call ebp
jmp 0x10031eaa
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
cmp eax, 0xffffffff
jne 0x10031eca
lea eax, [esi + 0xb48]
push eax
push edi
call ebp
push edi
call ebx
cmp eax, 0xffffffff
je 0x10031edc
add esi, 0x14f64
push edi
push esi
mov dword [esp + 0x18], 1
call ebp
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x82c
ret
lea edi, [esi + 0x348]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10031f0f
add esi, 0x14f64
push edi
push esi
call ebp
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x82c
ret
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 0x82c
ret
Function at 0x10033300
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1003331f
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jge 0x10033327
xor esi, esi
jmp 0x10033331
cmp esi, 2
jle 0x10033331
mov esi, 2
mov ecx, esi
mov edx, ebx
shl ecx, 0xb
add edx, ecx
push 0x1006161c
lea ebp, [esi + edx]
lea edi, [ebp + 0x16900]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
xor eax, eax
test esi, esi
jl 0x100333dd
mov ecx, dword [esi*8 + 0x1005c8f8]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x10033392
mov eax, dword [esi*8 + 0x1005c8fc]
push 0x7ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [ebp + 0x170ff], 0
mov eax, 1
test ecx, ecx
jne 0x1003339b
or esi, 0xffffffff
jmp 0x1003339c
inc esi
test eax, eax
je 0x10033353
mov eax, dword [ebx + 0x456c]
test eax, eax
je 0x100333d6
lea esi, [ebx + 0x18103]
push 0x1006161c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebx + 0x4570]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edi
push 0
push edx
push 0
push 0xd
call dword [ebx + 0x456c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
jne 0x100333a0
push 0x1006161c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [0x10063c04]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1003374c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x10033784
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10033784
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1003377c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10033784
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 + 0x167c0], eax
inc eax
neg eax
sbb eax, eax
pop edi
and al, 0xe4
pop esi
add eax, 0x1c
ret