joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x401011
xor eax, eax
pop edi
ret
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x40103e
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4270d0]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x40101d
pop ebx
pop esi
pop edi
ret

Function at 0x4011b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42010b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push 0
lea ecx, [esp + 0x10]
call fcn.00407d00
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4275c4
mov dword [esp + 0x12c], 0
call esi
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0x4275c4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.00407c40
add esp, 0xc
test eax, eax
je 0x401233
mov eax, dword [esp + 4]
test eax, eax
ja 0x40122c
cmp dword [esp + 8], 0x40000
jbe 0x401233
push 0x4275c4
call esi
mov eax, dword [0x4274d0]
or esi, 0xffffffff
cmp eax, esi
jne 0x401261
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push 0x4275c4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4274d0], eax
mov eax, dword [0x42ef4c]
test eax, eax
jne 0x40127e
push 0x427590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x42ef4c], eax
push 0x42ee48
call fcn.004075d0
add esp, 4
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x14]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x38]
push 0x427558
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x40]
push ecx
call fcn.00401320
add esp, 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], esi
call fcn.00407de0
mov ecx, dword [esp + 0x120]
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4201af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push 0
lea ecx, [esp + 8]
call fcn.00407d00
push 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x830], 0
call fcn.00407d00
push 2
lea ecx, [esp + 0x10]
mov byte [esp + 0x830], 1
call fcn.00407d00
push 3
lea ecx, [esp + 0x14]
mov byte [esp + 0x830], 2
call fcn.00407d00
push 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x830], 3
call fcn.00407d00
push 5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x830], 4
call fcn.00407d00
push 6
lea ecx, [esp + 0x20]
mov byte [esp + 0x830], 5
call fcn.00407d00
mov dword [esp + 0x82c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x4274d0]
cmp eax, 0xffffffff
je 0x401495
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call fcn.00407550
test eax, eax
mov eax, 0x4275e8
jne 0x401402
mov eax, 0x4275d4
mov ecx, dword [esp + 0x83c]
push 0xa
push 0xd
push ecx
push edi
push esi
push 0x42ee48
lea edx, [esp + 0x44]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
mov eax, dword [0x42ef4c]
push 0xbb8
not ecx
dec ecx
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x4274d0]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x4274d0]
lea edx, [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x34]
push esi
push eax
push ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x42ef4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4274d0]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x82c], 0xc
call fcn.00407de0
lea ecx, [esp + 0x18]
mov byte [esp + 0x82c], 0xb
call fcn.00407de0
lea ecx, [esp + 0x14]
mov byte [esp + 0x82c], 0xa
call fcn.00407de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x82c], 9
call fcn.00407de0
lea ecx, [esp + 0xc]
mov byte [esp + 0x82c], 8
call fcn.00407de0
lea ecx, [esp + 8]
mov byte [esp + 0x82c], 7
call fcn.00407de0
lea ecx, [esp + 4]
mov dword [esp + 0x82c], 0xffffffff
call fcn.00407de0
mov ecx, dword [esp + 0x824]
pop ebx
mov dword fs:[0], ecx
add esp, 0x82c
ret

Function at 0x4015c0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
dec eax
ret
Function at 0x4017f0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push edi
push 4
push ebp
call esi
test eax, eax
jne 0x401878
mov ebx, dword [esp + 0x11c]
push 4
push ebx
call esi
test eax, eax
jne 0x401878
mov dword [ebp], eax
mov eax, dword [esp + 0x118]
push eax
lea ecx, [esp + 0x14]
push 0x427624
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 4
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x401878
push 4
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x401885
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
push edi
jne 0x4018b9
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov dword [ebp], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x404900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x7d4
lea ebx, [ebp + 0xbc]
xor eax, eax
mov edi, ebx
push str.Binary
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42f01c]
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404951
push 0x79
push 1
call fcn.004010d0
push str.InitLoaderRes:_invalid_resources
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [0x42f01c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x1f52
jae 0x404985
push 0x7a
push 1
call fcn.004010d0
push str.InitLoaderRes:_invalid_resource_size
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edx, dword [0x42f01c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4049b6
push 0x7b
push 1
call fcn.004010d0
push str.InitLoaderRes:_cannot_load_resources__1_
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4049e0
push 0x7c
push 1
call fcn.004010d0
push str.InitLoaderRes:_cannot_load_resources__2_
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, 0x7d4
mov esi, eax
mov edi, ebx
push 0
rep movsd dword es:[edi], dword [esi]
push 0x1b4e
push ebx
movsw word es:[edi], word [esi]
call fcn.00401000
mov ecx, dword [ebp + 0x1c0a]
add esp, 0xc
cmp eax, ecx
je 0x404a26
push 0x7d
push 1
call fcn.004010d0
push str.InitLoaderRes:_bad_CRC
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
lea eax, [ebp + 0x1c0e]
push 0x3fc
push eax
call fcn.00401000
mov ecx, dword [ebp + 0x200a]
add esp, 0xc
cmp eax, ecx
je 0x404a5b
push 0x7e
push 1
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edi, dword [esp + 0x14]
push 0x1f52
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x404a7a
mov ecx, 0x7d4
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 1
pop edi
mov dword [ebp + 0x200e], eax
pop esi
pop ebp
pop ebx
ret 4
Function at 0x405150
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
lea esi, [ecx + 0x2412]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], eax
push str.StartManager:_starting_HCPS_Manager_with_full_filename__s
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
mov word [esp + 0x64], ax
call ebx
lea edx, [esp + 0x78]
push edx
call fcn.00401320
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea eax, [edx + 0x2012]
push ecx
push eax
push 0
push 0x80
push 1
push 0
push 0
push esi
push 0
call ebp
test eax, eax
jne 0x405264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov edi, eax
call fcn.00404e20
test eax, eax
je 0x40522d
mov ecx, dword [esp + 0x10]
call fcn.00405730
test eax, eax
je 0x40522d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 5
mov dword [esp + 0x14], eax
jle 0x405178
jmp 0x40528f
push edi
push edi
lea eax, [esp + 0x74]
push str.StartManager:_starting_HCPS_Manager_failed_with_the_system_error___d___0x08X_
push eax
call ebx
lea ecx, [esp + 0x7c]
push ecx
call fcn.00401320
add esp, 0x14
push 0x97
push 7
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
mov edx, dword [esp + 0x18]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
cmp dword [esp + 0x14], 5
jle 0x4052ab
push 0x98
push 7
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
push str._____StartManager:_create_process_finished_successfully
call fcn.00401320
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
call fcn.00405100
test eax, eax
jne 0x4052f9
push str._____StartManager:_IsManagerStarted_failed
call fcn.00401320
add esp, 4
push 0x99
push 7
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x160
ret
Function at 0x405660
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
push str._____StartCD:_started
call fcn.00401320
mov eax, dword [ebx + 0x200e]
add esp, 4
test eax, eax
je 0x40571a
mov al, byte [ebx + 0xcc]
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esi, [ebx + 0xcc]
push edi
test al, al
je 0x4056db
lea edi, [ebx + 0x1d0]
lea eax, [esp + 0x10]
push edi
push esi
push str._____StartCD:_starting_EXE_file__s_with_cmd_line__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push ecx
call fcn.00401320
mov al, byte [edi]
add esp, 0x14
test al, al
push 1
push 0
je 0x4056cf
push edi
jmp 0x4056d1
push 0
push esi
push str.open
push 0
call ebp
mov al, byte [ebx + 0x2d4]
lea esi, [ebx + 0x2d4]
test al, al
pop edi
je 0x40571a
push esi
lea edx, [esp + 0x10]
push str._____StartCD:_starting_content__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
call fcn.00401320
add esp, 0x10
push 1
push 0
push 0
push esi
push str.open
push 0
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x405730
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0x2012]
lea ebp, [edi + 0x2012]
test al, al
jne 0x405765
push str.ExtractManagerToDir:_invalid_manager_installation_path
call fcn.00401320
add esp, 4
push 0x8d
push 6
jmp 0x4058ab
mov eax, dword [0x42f01c]
push 0x42a8c4
push 0x67
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40578a
push 0x8e
push 1
jmp 0x4058ab
mov ecx, dword [0x42f01c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4057c6
push 0x8f
push 1
call fcn.004010d0
push str.ExtractManagerToDir:_invalid_resource_size
call fcn.00401320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov edx, dword [0x42f01c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4057e4
push 0x90
push 1
jmp 0x4058ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4057fd
push 0x91
push 1
jmp 0x4058ab
push 0x42a4d4
lea esi, [edi + 0x2412]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push 0x42a4cc
push esi
call edi
push esi
call fcn.004015c0
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405867
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str._____ExtractManagerToDir:_CreateFile_failed_with_error__u
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call fcn.00401320
add esp, 0x10
push 0x92
jmp 0x4058a9
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4058a4
cmp dword [esp + 0x10], edi
jne 0x4058a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
push 0x93
push 5
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x405bd0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], 0x9c
push eax
call esi
test eax, eax
jne 0x405c39
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc4], 0x94
push ecx
call esi
test eax, eax
jne 0x405c39
pop edi
mov eax, 7
pop esi
add esp, 0x158
ret
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xc8], 6
jne 0x405c5c
pop edi
mov eax, 7
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0xd4]
mov ecx, 0x25
sub eax, 2
lea edi, [esp + 0x30]
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x94
push eax
call esi
test eax, eax
jne 0x405c94
pop edi
mov eax, 7
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0x40]
cmp eax, 1
mov eax, dword [esp + 0x34]
jne 0x405cef
cmp eax, 4
jne 0x405ce2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405cd4
cmp eax, 0xa
je 0x405cc6
cmp eax, 0x5a
jne 0x405ce2
pop edi
mov eax, 3
pop esi
add esp, 0x158
ret
pop edi
mov eax, 2
pop esi
add esp, 0x158
ret
pop edi
mov eax, 1
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x158
ret
cmp eax, 5
je 0x405d15
cmp eax, 4
je 0x405d07
pop edi
mov eax, 7
pop esi
add esp, 0x158
ret
pop edi
mov eax, 4
pop esi
add esp, 0x158
ret
mov esi, dword [esp + 0x38]
xor ecx, ecx
cmp ecx, esi
pop edi
sbb eax, eax
pop esi
neg eax
add eax, 5
add esp, 0x158
ret

Function at 0x406430
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8210
call fcn.004090c0
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x188]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x84]
push 0
push 0x400
lea ecx, [ebp - 0x10c]
push esi
push ecx
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4064b1
push 0xab
push 8
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00401000
push 0x7f8
push eax
call fcn.00409424
mov dword [ebp - 4], edx
lea edx, [ebp - 0x8210]
add esp, 0x14
mov esi, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
call fcn.00406506
test eax, 0x4f01fc4f
hlt
Function at 0x407d00
Capabilities:
Allocate thread local storage
Check mutex on windows
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
or ebx, 0xffffffff
push edi
mov dword [esi], eax
mov ecx, dword [eax*4 + 0x42b390]
cmp ecx, ebx
jne 0x407d94
push 0x42b3d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x407dcf
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
cmp dword [eax*4 + 0x42b390], ebx
jne 0x407d86
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esi]
mov dword [ecx*4 + 0x42b390], eax
mov edx, dword [esi]
mov eax, dword [edx*4 + 0x42b390]
cmp eax, ebx
jne 0x407d7d
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax*4 + 0x42b390]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
call ebx
test eax, eax
jne 0x407dc8
mov edx, dword [esi]
inc ebp
push ebp
mov eax, dword [edx*4 + 0x42b390]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x415a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004090c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415adb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x415adb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415a8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415a99
or bh, 8
and edi, 0x8000000
je 0x415ab4
mov eax, dword [0x43281c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x415adb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x415edb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x415eff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x415f1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4184e9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x418521
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004168ab
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00416883
jmp 0x41852d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4