joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009bb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
push 2
push 0
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x10009bf9
lea eax, [esp + 0x14]
push 0x100597e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x120]
push 0xff
push ecx
lea edx, [esp + 0x1d]
jmp 0x10009c1a
lea eax, [esp + 0x14]
push 0x100597f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x120]
push 0xff
push ecx
lea edx, [esp + 0x1f]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x14]
push 0x100597e4
push eax
mov byte [esp + 0x11b], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009c80
lea ecx, [esp + 0x14]
push ecx
call ebp
cmp dword [esp + 0x10], eax
jne 0x10009c80
push 0
push 0
push esi
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret

Function at 0x10009c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x100597f0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x128]
push 0x101
lea edx, [esp + 0x1a]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x14]
push 0x100597ec
push eax
mov byte [esp + 0x11d], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
push 0x100597f4
push esi
push ecx
call fcn.10009ff0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x10009d1d
lea edx, [esp + 0x14]
push edx
call ebp
push eax
push esi
push edi
call fcn.10009d90
add esp, 0xc
jmp 0x10009d26
push 2
push 0
push 0
push esi
call ebx
mov edi, eax
test edi, edi
jl 0x10009d81
push 0
push 0
push edi
push esi
call ebx
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
lea edx, [esp + 0x1c]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009d73
lea eax, [esp + 0x14]
push eax
call ebp
cmp dword [esp + 0x10], eax
jne 0x10009d73
push 0
push 0
push edi
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x10009ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push edi
push 0x400
mov dword [esp + 0x10], 0
call fcn.10039ff8
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x1000a0c4
mov eax, dword [esp + 0x20]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x400
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a05b
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
cmp edx, esi
jb 0x1000a0ad
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jne 0x1000a0a3
sub edx, esi
cmp ebp, edx
jg 0x1000a0cd
xor eax, eax
test esi, esi
jle 0x1000a094
mov ecx, dword [esp + 0x18]
add ecx, ebp
mov ebx, dword [esp + 0x28]
mov bl, byte [eax + ebx]
cmp bl, byte [ecx + eax]
jne 0x1000a090
inc eax
cmp eax, esi
jl 0x1000a07f
mov ebx, dword [esp + 0x24]
cmp eax, esi
je 0x1000a09b
inc ebp
jmp 0x1000a06f
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
add edi, ebp
test eax, eax
je 0x1000a05b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10039f0f
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop esi
pop ebx
jne 0x1000a102
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0xc
ret
lea edi, [edi + edx + 1]
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a05b
jmp 0x1000a053
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x1000b7c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
push ebx
push esi
mov esi, dword [esp + 0x50]
xor ebx, ebx
test esi, esi
je 0x1000b86f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1000b86f
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000b86f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x54]
push ebx
push eax
lea ecx, [esp + 0x18]
push 0x40
push ecx
push esi
call edi
test eax, eax
je 0x1000b85f
cmp dword [esp + 0x54], 0x40
jne 0x1000b85f
mov edx, dword [esp + 0x4c]
push ebx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x4c]
jne 0x1000b85f
lea eax, [esp + 0x54]
push ebx
push eax
lea ecx, [esp + 0x14]
push 4
push ecx
push esi
call edi
test eax, eax
je 0x1000b85f
cmp dword [esp + 0x54], 4
jne 0x1000b85f
cmp dword [esp + 0xc], 0x4550
jne 0x1000b85f
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x44
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x1000cf70
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
mov esi, dword [esp + 0x210]
push edi
xor edi, edi
push edi
push edi
push edi
push eax
push esi
call fcn.10039d4e
add esp, 0x14
lea ecx, [esp + 8]
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x10]
push edx
push edi
push esi
call fcn.10039d4e
add esp, 0x14
lea eax, [esp + 0x10c]
lea ecx, [esp + 8]
push eax
push edi
push 0x10059804
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1000cfe7
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
mov eax, edi
pop edi
pop esi
add esp, 0x208
ret
Function at 0x1000fb80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1004fa68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push 0x1005981c
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
xor ebp, ebp
call fcn.100461b1
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x1000fbfc
test bl, 1
je 0x1000fbed
mov al, byte [esp + 0xc]
lea ecx, [esp + 0x10]
add al, 0x41
push eax
push 0
call fcn.10046597
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1000fc30
test eax, eax
je 0x1000fbed
inc ebp
mov ecx, dword [esp + 0xc]
shr ebx, 1
inc ecx
test ebx, ebx
mov dword [esp + 0xc], ecx
jne 0x1000fbc5
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10046143
mov ecx, dword [esp + 0x14]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1000fc30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1004fa88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1005d878]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x1000fc74
jmp dword [eax*4 + 0x1000fd6c]
mov edi, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 1
add esi, 0x60
push 1
jmp 0x1000fcc7
mov eax, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 5
push 5
jmp 0x1000fd07
mov edi, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 2
add esi, 0x60
push 2
push edi
push 0x23
mov ecx, esi
call fcn.1004547d
push 0xffff0002
push eax
push 0
push 0
push 0
push 3
push 3
push 0x1006161c
push 0x23
mov ecx, esi
call fcn.1004547d
jmp 0x1000fd1b
mov eax, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push eax
push 0x23
lea ecx, [esi + 0x60]
call fcn.1004547d
push edi
push eax
mov ecx, esi
call fcn.1000fd80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.10046143
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.10046143
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1000fd80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1004fab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x1005d878]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x174]
xor edi, edi
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], edi
mov dword [esp + 0x1c], edi
call fcn.10046230
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x18]
call fcn.10044e52
mov eax, dword [eax]
mov esi, 0x100596b4
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000fe09
test cl, cl
je 0x1000fe05
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000fe09
add eax, 2
add esi, 2
test cl, cl
jne 0x1000fde1
xor eax, eax
jmp 0x1000fe0e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea ecx, [esp + 0x14]
setne bl
call fcn.10046143
test bl, bl
je 0x1000fe2e
push 0x100596b4
lea ecx, [esp + 0x14]
call fcn.1004645f
push 0x10059818
lea ecx, [esp + 0x14]
call fcn.1004645f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1000fe6a
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], eax
call fcn.10046143
xor eax, eax
jmp 0x1000ff81
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x20], 0x10
je 0x1000ff0e
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
push edx
call fcn.100461b1
mov edi, dword [esp + 0x14]
mov byte [esp + 0x168], 1
mov esi, 0x10059824
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000fec0
test cl, cl
je 0x1000febc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000fec0
add eax, 2
add esi, 2
test cl, cl
jne 0x1000fe9c
xor eax, eax
jmp 0x1000fec5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000fefd
mov esi, 0x10059820
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000fef4
test cl, cl
je 0x1000fef0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000fef4
add eax, 2
add esi, 2
test cl, cl
jne 0x1000fed0
xor eax, eax
jmp 0x1000fef9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000ff1f
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 0
call fcn.10046143
lea eax, [esp + 0x20]
push eax
push ebp
call ebx
test eax, eax
je 0x1000ff62
jmp 0x1000fe70
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x1c]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 3
push 3
push 0x1006161c
push 0x23
lea ecx, [edx + 0x60]
call fcn.1004547d
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
mov byte [esp + 0x168], 0
call fcn.10046143
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call fcn.10046143
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 8
Function at 0x10012180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
call fcn.10011ff0
mov eax, dword [esp + 0x10]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x10012272
push ebx
push ebx
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x10012272
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x10012272
cmp word [eax], 0x5a4d
jne 0x10012272
cmp word [eax + 0x18], 0x40
jb 0x10012272
mov edi, dword [eax + 0x3c]
push 0xf8
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10012272
cmp dword [edi], 0x4550
jne 0x10012272
mov ecx, dword [esi + 0x28]
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x88]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x10012272
xor edx, edx
xor ecx, ecx
mov dword [esi], eax
mov dx, word [edi + 0x14]
mov cx, word [edi + 6]
push ebp
cmp ecx, ebx
lea eax, [edx + edi + 0x18]
jbe 0x1001225f
mov edi, dword [esi + 4]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x10012257
mov ebp, dword [eax + 8]
add ebp, edx
cmp edi, ebp
jb 0x1001225f
add eax, 0x28
inc ebx
cmp ebx, ecx
jb 0x10012247
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub ecx, edx
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.10012020
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x100135a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1040
call fcn.10039ee0
mov eax, dword [esp + 0x1044]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp]
push ecx
call fcn.10013650
add esp, 4
lea edx, [esp]
push edx
push 0
push 0x2be
call fcn.10020fb0
add esp, 8
push eax
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80c]
push ecx
call fcn.10014b10
add esp, 0x1050
ret

Function at 0x100136a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c00]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100137ee
mov ebp, dword [esi + 0xab0]
test ebp, ebp
jne 0x100136d0
mov eax, dword [esi + 0x3dfc]
test eax, eax
je 0x100137ee
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
or ecx, ebx
jne 0x100136e4
xor edi, edi
jmp 0x1001370c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
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
cmp edi, 0x64
jle 0x1001370c
mov edi, 0x64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0x3df8], edi
je 0x1001379b
mov ebx, dword [esp + 0x14]
lea ecx, [esi + 0x944]
push ebx
push ecx
call ebp
lea eax, [esi + 0x940]
lea ecx, [esi + 0xaa4]
mov dword [esi + 0xaac], eax
mov dword [esi + 0xaa8], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0x3e24]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x10013787
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x10013787
mov edx, dword [esi + 0xab8]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x100137d9
mov dword [esi + 0xa0], 1
jmp 0x100137d9
mov eax, dword [esi + 0xab8]
push ecx
push 0
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x100137d9
cmp dword [esi + 0x3e24], 0xc8
jl 0x100137c6
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x100137c6
mov ecx, dword [esi + 0x3e00]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0x3dfc]
jmp 0x10013777
mov edx, dword [esi + 0x3e00]
mov ebx, dword [esp + 0x14]
push edx
push edi
push ebx
call dword [esi + 0x3dfc]
lea eax, [esi + 0x2df8]
push ebx
push eax
call ebp
push esi
call fcn.10014e00
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10013800
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c00]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10013817
pop esi
pop ebx
ret
mov ebx, dword [esi + 0xab0]
test ebx, ebx
jne 0x10013830
mov eax, dword [esi + 0x3e08]
test eax, eax
jne 0x10013830
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x1001383e
xor edi, edi
jmp 0x1001387b
cmp ecx, 0x186a0
jle 0x1001385f
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 0x1001386c
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
cmp edi, 0x64
jle 0x1001387b
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0x3e04], edi
test ebx, ebx
je 0x100138f7
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x944]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x940]
lea ecx, [esi + 0xaa4]
mov dword [esi + 0xaac], eax
push ecx
mov dword [eax], edi
mov eax, dword [esi + 0x3e24]
cmp eax, 0xc8
push ebp
mov dword [ecx], ebp
mov dword [esi + 0xaa8], 0x164
push 0x4a
jl 0x100138e8
mov ecx, dword [esi + 0xab8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x1001395a
mov ebp, 1
mov dword [esi + 0xa0], ebp
jmp 0x1001395a
mov edx, dword [esi + 0xab8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1001395a
mov eax, dword [esi + 0x3e24]
cmp eax, 0x12c
jg 0x10013930
je 0x10013945
sub eax, 0x64
je 0x10013919
sub eax, 0x64
je 0x10013945
mov ecx, dword [esi + 0x3e0c]
push ecx
jmp 0x1001394c
mov eax, dword [esi + 0x3e0c]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0x3e08]
xor ebp, ebp
jmp 0x1001395a
sub eax, 0x190
je 0x10013945
sub eax, 0x64
je 0x10013945
mov ecx, dword [esi + 0x3e0c]
push ecx
jmp 0x1001394c
mov edx, dword [esi + 0x3e0c]
push edx
mov ebx, dword [esp + 0x18]
push edi
push ebx
call dword [esi + 0x3e08]
mov ebp, eax
lea eax, [esi + 0x35f8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.10014e00
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x10013ad0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.10039ee0
mov eax, dword [esp + 0x100c]
push esi
mov ecx, dword [eax + 0x3e20]
test ecx, ecx
je 0x10013bca
lea ecx, [esp + 8]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 2
push 0x6c
call fcn.10020fb0
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 0x10013b3d
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 0x10013bca
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 0x10014b10
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.10039ee0
mov eax, dword [0x10063c00]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10014c24
mov eax, dword [esi + 0x920]
test eax, eax
je 0x10014c24
cmp dword [esi + 0x934], 0xffffffff
jne 0x10014bd4
lea ecx, [esp + 0xc]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 0
push 0x2bd
call fcn.10020fb0
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 0x10014b9d
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 + 0x934], eax
je 0x10014c24
mov ecx, dword [esi + 0x934]
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 + 0x934]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x934]
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 0x10014c30
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x160
mov al, byte [0x1006161c]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10063c00]
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
jne 0x10014c73
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x160
ret
push ebx
mov ebx, dword [esp + 0x174]
mov eax, ebx
lea edx, [esi + 0xac0]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32.exe___c__z__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0xabc], ebp
mov dword [esi + 0xab8], ebp
mov dword [esi + 0xab0], 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 0x10014d4f
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 0x10014d4f
mov edi, 1
mov dword [esi + 0xab8], eax
mov dword [esi + 0xab0], edi
mov dword [esi + 0xabc], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x160
ret

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

Disassembly:
mov eax, dword [0x10063c00]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10014df0
mov eax, dword [esi + 0xab8]
test eax, eax
je 0x10014df0
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 + 0xab8]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10014dd8
test edi, edi
jne 0x10014dd8
push esi
call fcn.10014e00
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x10014dc7
mov edi, 1
mov edx, dword [esi + 0xab8]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10014daa
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0xab0], eax
mov dword [esi + 0xabc], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret