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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 0xdd4a34
push edi
call fcn.00dbd87f
mov esi, eax
add esp, 8
test esi, esi
je 0xdba403
push ebx
push 2
push 0
push esi
call fcn.00dbdcea
push esi
call fcn.00dbdbfb
push 0
push 0
push esi
mov ebx, eax
call fcn.00dbdcea
push esi
call fcn.00dbddd3
add esp, 0x20
cmp ebx, 0x7d000
pop ebx
jle 0xdba403
push edi
call fcn.00dbde47
add esp, 4
push 0xdd4a38
push edi
call fcn.00dbd87f
mov esi, eax
add esp, 8
test esi, esi
jne 0xdba41e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xdba426
push esi
sub eax, edi
push eax
push 1
push edx
call fcn.00dbd9ed
push esi
call fcn.00dbddd3
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0xdba960
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xdd7024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00dc1d20
push 0xdd4740
lea ecx, [ebp - 0x108]
push 0xdd4700
push ecx
call fcn.00dbd196
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10c], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10c]
cmp eax, 0xc8
jae 0xdbaa0a
lea edx, [ebp - 0x108]
push edx
push 0
push 0xf001f
call edi
push 0x64
mov esi, eax
call ebx
test esi, esi
je 0xdba9c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret
test esi, esi
je 0xdbaa28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret
Function at 0xdbb4b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0xdd7024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0xdd80ac], 0
jne 0xdbb4df
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00dc1d20
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0xdbb57f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xdbb525
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
je 0xdbb564
cmp word [eax], 0x2f
je 0xdbb564
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0xdbb564
xor edx, edx
mov word [eax], dx
sub eax, 2
cmp word [eax], 0x5c
jne 0xdbb546
lea eax, [ebp - 0x20c]
push 0xdd45ec
push eax
push 0xdd4ad0
mov edx, eax
call fcn.00dbaa40
add esp, 0xc
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0xdbb590
mov ecx, dword [0xdd45e8]
lea eax, [ebp - 0x20c]
mov dword [edi], ecx
add eax, 0xfffffffe
pop edi
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0xdbb5b0
mov edx, dword [0xdd4a60]
mov ecx, dword [0xdd4a64]
mov dword [eax], edx
mov edx, dword [0xdd4a68]
mov dword [eax + 4], ecx
mov ecx, dword [0xdd4a6c]
mov dword [eax + 8], edx
mov dx, word [0xdd4a70]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret

Function at 0xdbbcb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0xdbbccf
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x1c]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0xdbbced
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
movzx edx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
mov dword [ebp - 4], eax
test eax, eax
je 0xdbbd31
lea eax, [ecx + 0x10]
mov edi, edi
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edx, esi
ja 0xdbbd1e
mov edx, esi
cmp edi, ecx
jb 0xdbbd28
add edx, ecx
cmp edi, edx
jbe 0xdbbd3a
inc ebx
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0xdbbd10
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc ebx
mov dword [eax], ebx
sub edi, ecx
mov ecx, dword [ebp + 0x10]
pop ebx
pop esi
mov dword [ecx], edi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0xdbc640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0xdd7024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x404]
push edx
call fcn.00dbe7da
mov edx, dword [0xdd99e8]
add esp, 0xc
push 0
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push esi
lea ecx, [ebp - 0x404]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00dbc69c
mov esp, ebp
pop ebp
ret

Function at 0xdbc69c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xdd7024]
jne 0xdbc6a6
repz ret
jmp fcn.00dbea41

Function at 0xdbd238
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xdbd25f
call fcn.00dbf1e6
mov dword [eax], esi
call fcn.00dbf1d3
push 0x16
pop esi
mov dword [eax], esi
call fcn.00dbf181
mov eax, esi
jmp 0xdbd2b4
test dword [ebp + 0xc], 0xfffffff9
jne 0xdbd245
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xdbd28c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00dbf1f9
pop ecx
call fcn.00dbf1d3
mov eax, dword [eax]
jmp 0xdbd2b4
test al, 0x10
jne 0xdbd2b2
test al, 1
je 0xdbd2b2
test byte [ebp + 0xc], 2
je 0xdbd2b2
call fcn.00dbf1e6
mov dword [eax], 5
call fcn.00dbf1d3
mov dword [eax], 0xd
jmp 0xdbd283
xor eax, eax
pop esi
pop ebp
ret
Function at 0xdc949d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xdd7024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00dc5a45
and dword [ebp - 0x14], 0
cmp dword [0xdd95ac], 0
mov dword [ebp - 0x18], eax
jne 0xdc9550
push 0xdd33c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xdc95f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xdd33b8
push ebx
call edi
test eax, eax
je 0xdc95f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0xdd33a8
push ebx
mov dword [0xdd95ac], eax
call edi
push eax
call esi
push 0xdd3394
push ebx
mov dword [0xdd95b0], eax
call edi
push eax
call esi
push 0xdd3378
push ebx
mov dword [0xdd95b4], eax
call edi
push eax
call esi
mov dword [0xdd95bc], eax
test eax, eax
je 0xdc9550
push 0xdd3360
push ebx
call edi
push eax
call esi
mov dword [0xdd95b8], eax
mov eax, dword [0xdd95b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0xdc95a9
cmp dword [0xdd95bc], ecx
je 0xdc95a9
push eax
call esi
push dword [0xdd95bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xdc95a9
test ebx, ebx
je 0xdc95a9
call edi
test eax, eax
je 0xdc95a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xdc95a0
test byte [ebp - 8], 1
jne 0xdc95a9
or dword [ebp + 0x10], 0x200000
jmp 0xdc95dc
mov eax, dword [0xdd95b0]
cmp eax, dword [ebp - 0x18]
je 0xdc95dc
push eax
call esi
test eax, eax
je 0xdc95dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xdc95dc
mov eax, dword [0xdd95b4]
cmp eax, dword [ebp - 0x18]
je 0xdc95dc
push eax
call esi
test eax, eax
je 0xdc95dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xdd95ac]
call esi
test eax, eax
je 0xdc95f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xdc95fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00dbc69c
leave
ret
Function at 0x406a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x406aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x406ac6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x406b6b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x406b40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x406ab9
cmp eax, 0x40
je 0x406ab9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x406af0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x406af0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00406a50
lea esi, [esi]
lea edi, [edi]
Function at 0x406de0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00406dc0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406e16
jmp 0x406e66
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x406e13
cmp dl, 0x20
je 0x406e13
cmp dl, 0x22
je 0x406eb0
cmp dl, 9
mov eax, edx
je 0x406e54
cmp dl, 0x20
je 0x406e58
test dl, dl
jne 0x406e4a
lea esi, [esi]
jmp 0x406e66
cmp al, 0x20
je 0x406e58
test al, al
je 0x406e66
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x406e42
cmp al, 0x20
jne 0x406eca
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x406e58
cmp al, 0x20
je 0x406e58
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x406e75
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004015c4
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x406ebe
cmp al, 0x22
jne 0x406eb0
cmp al, 0x22
jne 0x406e54
add ebx, 1
movzx eax, byte [ebx]
jmp 0x406e54
cmp al, 9
je 0x406e58
nop
jmp 0x406e66

Function at 0x407220
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x407254
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x41c060], eax
call fcn.00407f90
test eax, eax
sete al
movzx eax, al
mov dword [0x41508c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x41508c], eax
leave
ret
Function at 0x407370
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x40739c
mov dword [0x41c05c], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x407461
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x407480
cmp edi, 5
je 0x407485
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x407426
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x407485
cmp eax, 8
jne 0x407480
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x41508c]
test eax, eax
js 0x407474
test eax, eax
je 0x407390
mov eax, dword [0x41c060]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x407396
call sub.KERNEL32.dll_GetLastError
jmp 0x407396
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x4073b1
call fcn.00407270
mov eax, dword [0x41508c]
jmp 0x407433
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41508c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x40777d
test eax, eax
jne 0x407711
mov eax, dword [0x41c05c]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x407704
lea esi, [ebp - 0x20]
jmp 0x4076c4
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4076fb
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x407740
cmp eax, 8
jne 0x407770
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x4076c1
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x41c060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x4076b2
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.004072e0
cmp eax, 7
jne 0x407709
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00407490
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00407270
mov eax, dword [0x41508c]
jmp 0x4076a9

Function at 0x407790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4077c0
mov dword [esp], ebx
call fcn.00407690
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41508c]
test eax, eax
js 0x407820
test eax, eax
jne 0x4077f0
mov eax, dword [0x41c05c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00407370
cmp eax, 7
je 0x407830
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x41c060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x4077d2
call fcn.00407270
mov eax, dword [0x41508c]
jmp 0x4077c9
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00407490
lea esi, [esi]
Function at 0x407840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41508c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
js 0x4078d0
test eax, eax
jne 0x4078a2
mov eax, dword [0x41c05c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x407887
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.004072e0
cmp eax, 7
je 0x407898
call sub.msvcrt.dll_abort
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.00407370
cmp eax, 7
jne 0x407882
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00407490
mov edi, dword [0x41c060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x407864
call fcn.00407270
mov eax, dword [0x41508c]
jmp 0x40785b

Function at 0x407cd0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov esi, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x407d04
mov dword [esi], eax
mov esi, dword [esp + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp]
mov dword [ebp + 8], eax
mov esp, ebp
pop ebp
jmp fcn.00407f90
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp sub.KERNEL32.dll_GetLastError
Function at 0x404bb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.0056ae30
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xb00]
mov dword [ebp - 0x14], esi
test eax, eax
mov dword [ebp - 4], 0
push 0x7cf
je 0x404c38
mov ecx, dword [esi + 0xafc]
lea eax, [ebp - 0x1784]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404c4c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.004040c0
add esp, 0xc
jmp 0x404c4c
mov edx, dword [esi + 0xafc]
lea ecx, [ebp - 0x7e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, esi
push eax
call fcn.00404860
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.0056ae30
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 4], 0
test eax, eax
push 0x7cf
je 0x406705
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x406719
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.004040c0
add esp, 0xc
jmp 0x406719
mov edx, dword [esi + 0x4f4]
lea ecx, [ebp - 0x7e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e0]
lea ecx, [esi + 0x4d0]
push eax
push 0x636fa0
push ecx
call fcn.0057f8fb
add esp, 0xc
mov ecx, esi
call fcn.00406d70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074b0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5982b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x407636
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x637270
push eax
call fcn.0057f8fb
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.00580c67
inc edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov ecx, 0x58
xor eax, eax
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x1a8]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x1a4]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x661c04
jne 0x4075d3
mov eax, 0x661c00
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.00580d62
mov edx, dword [esi + 0x98]
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + ebx]
push ebx
lea ebx, [esi + 0x5c]
push 2
push edi
mov ecx, ebx
call fcn.00580d62
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, ebx
call fcn.00580ce9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x4074f1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret