joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc]
mov dword [esp + 0x1c], eax
add eax, 4
push eax
mov dword [esp + 0x1c], 0x48b5e4
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x854]
add esi, 0x84c
cmp dword [esi + 4], ebp
mov dword [esp + 0x30], 0
jbe 0x444ad4
call fcn.0044dcd5
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x444ae1
call fcn.0044dcd5
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x444aee
call fcn.0044dcd5
cmp edi, ebx
mov eax, esi
mov dword [esp + 0x24], edi
je 0x444b0b
mov ecx, dword [esp + 0x38]
lea esp, [esp]
cmp dword [edi], ecx
je 0x444b0b
add edi, 4
cmp edi, ebx
jne 0x444b00
test eax, eax
je 0x444b13
cmp eax, esi
je 0x444b18
call fcn.0044dcd5
cmp edi, ebp
jne 0x444b28
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00431d00
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x44baae
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x160]
sub esp, 0x1e0
mov eax, dword [0x49e058]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push ebx
push esi
mov esi, dword [ebp + 0x168]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x59]
push ebx
push eax
mov byte [ebp + 0x58], bl
call fcn.0044dd90
add esp, 0xc
push 0x104
lea eax, [ebp + 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x58]
push 0x5c
push eax
call fcn.00450d90
cmp eax, ebx
pop ecx
pop ecx
je 0x44bb47
push eax
call fcn.00452ac0
xor edi, edi
inc edi
sub edi, eax
lea eax, [ebp + 0x58]
push eax
call fcn.00452ac0
add eax, edi
cmp eax, ebx
pop ecx
pop ecx
jle 0x44bb2a
mov byte [ebp + eax + 0x58], bl
push 9
lea eax, [ebp + 0x58]
push str.crash.dmp
push eax
call fcn.004522d0
add esp, 0xc
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x74], eax
je 0x44bbfb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x7c], esi
push str.DbgHelp.dll
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44bbb6
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44bbb6
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xc7
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.0044dd90
push esi
push edi
push 0x48d0f8
lea eax, [ebp - 0x70]
push 0x77
push eax
call fcn.00451a75
add esp, 0x20
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, ebx
je 0x44bbf2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x15c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0044d7a0
add ebp, 0x160
leave
ret 4
Function at 0x44bf6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x44c04c
cmp byte [edi], bl
je 0x44c04c
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x44c04c
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x44c04c
push ebx
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
mov byte [esi], bl
je 0x44c03e
push edi
call fcn.0044de30
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x44c03e
push eax
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x44c035
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x48bc24
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x44c035
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x77
push esi
call fcn.00451a75
add esp, 0x1c
mov dword [ebp - 8], 1
push dword [ebp - 4]
call fcn.0044db18
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x44c04e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c053
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x49e058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov esi, edx
je 0x44c1f7
cmp byte [edi], bl
je 0x44c1f7
cmp esi, ebx
je 0x44c1f7
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
je 0x44c1f7
push ebx
push edi
mov dword [ebp - 0x58], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov byte [esi], bl
je 0x44c134
push eax
call fcn.0044de30
cmp eax, ebx
pop ecx
mov dword [ebp - 0x5c], eax
je 0x44c134
push eax
push dword [ebp - 0x48]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x44c12b
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x48bc24
push dword [ebp - 0x5c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x44c12b
push esi
call fcn.00452ac0
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + 0xc]
push edx
movzx edx, word [ecx + 0xe]
push edx
movzx edx, word [ecx + 8]
movzx ecx, word [ecx + 0xa]
push edx
push ecx
dec eax
push str._d._d._d._d
push eax
push esi
call fcn.00451a75
add esp, 0x20
mov dword [ebp - 0x58], 1
push dword [ebp - 0x5c]
call fcn.0044db18
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x44c1e9
cmp dword [ebp - 0x50], 0x40
jne 0x44c1e9
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x44c1e9
cmp dword [ebp - 0x50], 0xf8
jne 0x44c1e9
push esi
call fcn.00452ac0
add esi, eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ebx
call fcn.0044faf9
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
inc eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x77
push dword [ebp - 0x54]
call fcn.00451a75
add esp, 0x2c
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x44c1f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d7a0
leave
ret
Function at 0x44cd3a
Capabilities:
Parse pe header

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x49e058]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x118
mov eax, 0x487350
call fcn.00453cef
mov ebx, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa0]
mov eax, dword [ebp + 0xa4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xa8]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xac]
mov dword [ebp - 0x24], edx
and dword [ebp - 4], 0
mov byte [ebp + 0x40], 0
xor eax, eax
lea edi, [ebp + 0x41]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp]
push eax
push esi
push ebx
call edx
test eax, eax
je 0x44cdc2
cmp dword [ebp - 0x18], 0x40
mov byte [ebp - 0x14], 1
je 0x44cdc6
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0044ccff
cmp word [ebp], 0x5a4d
sete al
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0044ccff
lea eax, [ebp - 0x18]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp + 0x3c]
add eax, esi
push eax
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x44ce10
cmp dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 1
je 0x44ce14
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0044ccff
cmp dword [ebp - 0x124], 0x4550
jne 0x44ce45
cmp word [ebp - 0x120], 0x14c
jne 0x44ce45
cmp word [ebp - 0x10c], 0x10b
mov byte [ebp - 0x14], 1
je 0x44ce49
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0044ccff
mov eax, dword [ebp + 0x3c]
lea eax, [esi + eax + 0xf8]
mov dword [ebp - 0x1c], eax
movzx edi, word [ebp - 0x11e]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], edi
jae 0x44cef6
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp + 0x68]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x44ce94
cmp dword [ebp - 0x18], 0x28
mov byte [ebp - 0x14], 1
je 0x44ce98
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0044ccff
add dword [ebp - 0x1c], 0x28
push 0x28
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00453d7e
add esp, 0xc
test eax, eax
je 0x44cef6
mov ecx, dword [ebp + 0x8c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x44cee7
mov eax, dword [ebp + 0x74]
add eax, esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x78]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x44cef8
inc dword [ebp - 0x20]
jmp 0x44ce6c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0044d7a0
add ebp, 0x94
leave
ret

Function at 0x44d7a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49e058]
jne 0x44d7aa
repz ret
jmp fcn.0045683c
Function at 0x456a51
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49e238]
je 0x456a6c
inc edi
cmp edi, 0x17
jb 0x456a5d
cmp edi, 0x17
jae 0x456bec
push ebp
push 3
call fcn.004619b2
cmp eax, 1
pop ecx
je 0x456bb8
push 3
call fcn.004619b2
test eax, eax
pop ecx
jne 0x456aa0
cmp dword [0x49e130], 1
je 0x456bb8
cmp ebx, 0xfc
je 0x456beb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a0ca0
push ebp
call fcn.0044fcd5
add esp, 0xc
test eax, eax
je 0x456ad6
push esi
push esi
push esi
push esi
push esi
call fcn.0044dbb5
add esp, 0x14
push 0x104
mov esi, 0x4a0cb9
push esi
push 0
mov byte [0x4a0dbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x456b1a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044fcd5
add esp, 0xc
test eax, eax
je 0x456b1a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044dbb5
add esp, 0x14
push esi
call fcn.00452ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456b5f
push esi
call fcn.00452ac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a0fb4
push 0x48dedc
sub ecx, eax
push ecx
push eax
call fcn.0044e5cc
add esp, 0x14
test eax, eax
je 0x456b5f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044dbb5
add esp, 0x14
jmp 0x456b61
xor esi, esi
push 0x48ded8
push ebx
push ebp
call fcn.0044fe03
add esp, 0xc
test eax, eax
je 0x456b81
push esi
push esi
push esi
push esi
push esi
call fcn.0044dbb5
add esp, 0x14
push dword [edi*8 + 0x49e23c]
push ebx
push ebp
call fcn.0044fe03
add esp, 0xc
test eax, eax
je 0x456ba3
push esi
push esi
push esi
push esi
push esi
call fcn.0044dbb5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004617f5
add esp, 0xc
jmp 0x456beb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x456beb
cmp ebp, 0xffffffff
je 0x456beb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49e23c]
push dword [esi]
call fcn.00452ac0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4617f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004561d0
xor ebx, ebx
cmp dword [0x4a13a0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4618cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4619ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4619ab
push eax
call fcn.00456162
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a13a0], eax
call esi
push eax
call fcn.00456162
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a13a4], eax
call esi
push eax
call fcn.00456162
mov dword [0x4a13a8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045aee7
test eax, eax
pop ecx
pop ecx
je 0x461899
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044dbb5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4618cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00456162
cmp eax, ebx
pop ecx
mov dword [0x4a13b0], eax
je 0x4618cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00456162
pop ecx
mov dword [0x4a13ac], eax
mov eax, dword [0x4a13ac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x461950
cmp dword [0x4a13b0], ecx
je 0x461950
push eax
call fcn.004561d9
push dword [0x4a13b0]
mov esi, eax
call fcn.004561d9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x461950
cmp edi, ebx
je 0x461950
call esi
cmp eax, ebx
je 0x46191d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46191d
test byte [ebp - 0x18], 1
jne 0x461950
lea eax, [ebp - 0x10]
push eax
call fcn.0045af1e
test eax, eax
pop ecx
je 0x461938
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044dbb5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x461947
or dword [ebp + 0x10], 0x200000
jmp 0x46198b
or dword [ebp + 0x10], 0x40000
jmp 0x46198b
mov eax, dword [0x4a13a4]
cmp eax, dword [ebp - 8]
je 0x46198b
push eax
call fcn.004561d9
cmp eax, ebx
pop ecx
je 0x46198b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46198b
mov eax, dword [0x4a13a8]
cmp eax, dword [ebp - 8]
je 0x46198b
push eax
call fcn.004561d9
cmp eax, ebx
pop ecx
je 0x46198b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a13a0]
call fcn.004561d9
cmp eax, ebx
pop ecx
je 0x4619ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4619ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47e815
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49e058]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047e7aa
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044dd90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47e864
cmp dword [ebp - 0x1c], 5
jb 0x47e87c
jmp 0x47e878
cmp dword [ebp - 0x10], 1
jne 0x47e87c
cmp dword [ebp - 0x1c], 4
ja 0x47e878
jne 0x47e87c
cmp dword [ebp - 0x18], 0
jbe 0x47e87c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4905ec
call fcn.0040b570
test eax, eax
jge 0x47e89d
mov byte [0x4a0640], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044d7a0
add ebp, 0x78
leave
ret
Function at 0x47f750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4883a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0x47f3e0
push 0x4a1804
call fcn.0047f5f0
mov eax, dword [0x4a1808]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x47f7bc
jmp 0x47f7b0
cmp dword [esi + 0x14], 0
jne 0x47f81e
cmp dword [esi + 0x10], 0
jne 0x47f824
push 0x47f3e0
push 0x4a1804
call fcn.0047f5f0
mov eax, dword [0x4a1808]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x47f80a
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x47f80a
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x47f864
mov ebx, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x47f852
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x47f824
cmp dword [esi + 0x14], 0
je 0x47f7b6
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47f889
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x47f8ba
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47f8ba
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x47f8ba
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x47f86e
jmp 0x47f7b0
Function at 0x47f970
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x47f8e0
push 0
push 0
call fcn.0045054b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x47f9b0
lea ecx, [esp + 8]
call fcn.0047f360
push 0x494db8
lea edx, [esp + 0xc]
push edx
call fcn.0044dce5
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x47f9d9
cmp eax, 0xffffffff
je 0x47f9d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x480690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x48069f
mov eax, dword [eax + 4]
jmp 0x4806a2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48072b
push esi
mov esi, dword [0x4a1838]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x480710
cmp eax, 3
je 0x480710
cmp eax, 0x7b
je 0x480710
cmp eax, 0x57
je 0x480710
cmp eax, 0xa1
je 0x480710
cmp eax, 0x35
je 0x480710
cmp eax, 0x20
jne 0x480705
mov eax, dword [0x4a183c]
mov dword [ecx], eax
mov edx, dword [0x4a1840]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4a183c]
mov dword [ecx], eax
mov edx, dword [0x4a1840]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4a183c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4a1840]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x480758
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x480790
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4884fb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.004048d0
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x480883
lea esi, [eax - 1]
cmp esi, eax
jbe 0x480846
call fcn.0044dcd5
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x480855
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x48087c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x480867
call fcn.0044dcd5
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x480876
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x480883
mov edx, 0x48cbb0
jmp 0x480888
mov edx, 0x4907ac
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x480890
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00406100
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x4808b9
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x48090c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x4808e3
xor eax, eax
jmp 0x4808e5
call esi
cmp dword [esp + 0x34], 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x4a1838]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x480908
mov eax, dword [esp + 0x20]
push eax
call fcn.0044d7d9
add esp, 4
mov eax, esi
jmp 0x480985
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x480913
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.004049b0
test byte [esp + 0x38], 0x10
je 0x480948
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x48095c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x4a183c]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x4a1840]
mov dword [edi + 4], ecx
jb 0x480983
mov edx, dword [esp + 0x20]
push edx
call fcn.0044d7d9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x178
ret