joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f130
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
je 0x47f25f
call fcn.00472b10
push dword [edi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
cmp byte [edi + 4], 0
je 0x47f25f
push esi
lea ecx, [edi + 8]
mov dword [edi + 0x34], 2
call fcn.00477680
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x47f208
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 8], 3
je 0x47f208
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
nop dword [eax]
cmp dword [eax + 8], 5
je 0x47f202
inc esi
cmp esi, 0x12c
jne 0x47f1d2
call fcn.00472b10
mov ecx, dword [edi + 0x28]
mov edx, dword [eax]
push dword [ecx + 4]
push str.forcing_the_job___d__to_terminate.
push eax
call dword [edx + 0x14]
mov ecx, dword [edi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x47f1da
cmp esi, 0x3e8
je 0x47f1e9
push 0xa
call ebx
mov eax, dword [edi + 0x28]
cmp dword [eax + 8], 3
jne 0x47f1a0
jmp 0x47f202
call fcn.00472b10
mov edx, dword [edi + 0x28]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [esi + 0x14]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [edi + 8]
call fcn.004776a0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x47f257
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x47f24b
call fcn.00472b10
push esi
push dword [edi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi + 0x24]
call ebx
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 3
pop esi
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x47ef70
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x47f29c
call fcn.00472b10
push str.failed_to_create_a_new_thread._Fatal_Error
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x47f2d4
call fcn.00472b10
push str.thread_failed_to_resumed._fatal_error
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
push dword [edi + 0x24]
call ebx
mov dword [edi + 0x24], 0
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [edi + 0x38], eax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f490
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x47f58e
push esi
lea ecx, [edi + 8]
mov dword [edi + 0x34], 2
call fcn.00477680
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x47f533
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 8], 3
je 0x47f533
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
nop dword [eax + eax]
cmp dword [eax + 8], 5
je 0x47f532
inc esi
cmp esi, 0x12c
jne 0x47f502
call fcn.00472b10
mov ecx, dword [edi + 0x28]
mov edx, dword [eax]
push dword [ecx + 4]
push str.forcing_the_job___d__to_terminate.
push eax
call dword [edx + 0x14]
mov ecx, dword [edi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x47f50a
cmp esi, 0x3e8
je 0x47f519
push 0xa
call ebx
mov eax, dword [edi + 0x28]
cmp dword [eax + 8], 3
jne 0x47f4d0
jmp 0x47f532
call fcn.00472b10
mov edx, dword [edi + 0x28]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [esi + 0x14]
add esp, 0xc
pop ebx
lea ecx, [edi + 8]
call fcn.004776a0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x47f586
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x47f576
call fcn.00472b10
push esi
push dword [edi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 3
pop esi
mov al, 1
pop edi
ret
Function at 0x481f60
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
je 0x4820ec
cmp byte [esi + 0x28], 0
je 0x4820ec
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0
mov dword [ebx], 0
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x481fd6
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.00482a50
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x482008
push dword [esi + 0x24]
push dword [esi + 0xac]
call fcn.00483770
add esp, 8
test al, al
je 0x481fcd
mov eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x482066
push 0x654204
push ecx
call fcn.005d0f26
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x482063
call fcn.00472b10
push dword [ebp + 0xc]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x65fe6c
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x65fe6c
call fcn.0040bb30
push 0
push 0x13
mov ecx, esi
call fcn.004836d0
mov eax, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push dword [edi]
call fcn.005d5480
add esp, 0xc
push ebx
push dword [ebp + 0xc]
push dword [edi]
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4820b8
call fcn.00472b10
push str.Error__u_in_WinHttpReadData._n
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00482a50
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 0
je 0x4820ca
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push dword [esi + 0x24]
push dword [esi + 0xac]
call fcn.00483770
movzx eax, al
add esp, 8
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
call fcn.00472b10
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xorps xmm0, xmm0
mov ecx, esp
push 0
movups xmmword [ecx], xmm0
push 0x65fe6c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040c3f0
push 0
push 0x12
mov ecx, esi
call fcn.004836d0
pop edi
pop esi
mov eax, 3
pop ebx
pop ebp
ret 0x10
Function at 0x482570
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push dword [ebp + 8]
mov edi, ecx
push dword [edi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x4825b5
push eax
mov ecx, edi
call fcn.00482a50
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4825de
call fcn.00472b10
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x654204
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d0f26
mov esi, eax
add esp, 8
test esi, esi
jne 0x48263c
call fcn.00472b10
push str.failed_to_allocate_memory
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.0040bb30
push esi
push 0x13
mov ecx, edi
call fcn.004836d0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0
push dword [ebp + 8]
push dword [edi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x482679
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, edi
call fcn.00482a50
push esi
call fcn.0048deb8
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0040bac0
push esi
call fcn.0048deb8
add esp, 4
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4827a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x482828
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049ce4b
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x48281a
call fcn.00472b10
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x482827
push esi
call fcn.0048deb8
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x489fd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x48a023
push esi
push dword [ebp + 8]
call fcn.0048a1b9
mov edi, eax
test edi, edi
je 0x48a01e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48a01e
mov eax, dword [ebp - 8]
jmp 0x48a035
mov eax, dword [ebp + 0x10]
jmp 0x48a035
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x48a03b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611aa9
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.005d11a0
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x48a16c
push ebx
push edx
call fcn.0048a1b9
mov ebx, eax
test ebx, ebx
jne 0x48a0a3
push esi
jmp 0x48a194
lea ecx, [ebp - 0x2014]
call fcn.00486d0e
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x48a12b
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00412740
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0048a2f5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x48a159
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00488a0e
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004104b0
jmp 0x48a19b
push esi
mov ecx, edi
call fcn.00412230
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x48a152
test esi, esi
jne 0x48a175
mov esi, 0x65fe6c
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00412230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
leave
ret 0x10
Function at 0x48b2aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x48b2f2
call fcn.0049b3b0
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x48b2f2
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x48b2ff
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x48b33b
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x48b31e
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x48b327
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x48b339
test di, di
jne 0x48b339
test dx, dx
je 0x48b33b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48b3a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0049b3b0
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x48b3e4
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x48b3e4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0048b3ec
jmp 0x48b3e6
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x48b6dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x611c1b
call fcn.005d1297
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0049b3b0
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x48b73b
call fcn.0049b3b0
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x48b74f
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x48b74b
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x48b757
or eax, 0xffffffff
jmp 0x48b8a9
mov ecx, edi
call fcn.0048bce7
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0049193e
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x48b7e3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x48b7e3
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48b7e3
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00487ae6
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x48b7e0
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x6216c4]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x48b7e0
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00498290
test eax, eax
je 0x48b7e0
push 0
mov ecx, esi
call fcn.00497bb0
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.004915c1
push ebx
call fcn.00492cb8
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0048b67f
test eax, eax
jne 0x48b82c
cmp dword [edi + 0x9c], eax
jne 0x48b82c
call fcn.0049b3b0
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00492cb8
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0048b67f
and dword [edi + 0x9c], 0
jmp 0x48b857
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x48b86b
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00497bb0
test esi, esi
je 0x48b878
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x48b88e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x48b88e
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x6216c4]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0048bc9e
mov eax, dword [edi + 0x68]
call fcn.005d11fc
ret
Function at 0x48cce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x48cd25
call fcn.0049b3b0
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x48cd22
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x48cd6c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x48cd48
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6216c4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x48cd69
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x6216c4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x492c4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x492c8a
call fcn.0049b3b0
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x492c8a
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x492c92
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004a3edf
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4936b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x49373e
cmp dword [esi + 0x20], 0
je 0x49373e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49373e
cmp dword [ebp + 8], 0
je 0x49373e
xor edi, edi
mov ebx, edi
call fcn.0049b3b0
push 0x62a848
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x493722
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x49373e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004b1427
mov edi, eax
add esp, 0xc
test edi, edi
je 0x49373a
mov ecx, esi
call fcn.00493450
mov eax, edi
jmp 0x493740
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x498150
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6119d1
call fcn.005d122e
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x498176
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4981d0
lea ecx, [ebp - 0x10]
call fcn.00486d0e
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x6216c4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005e8b63
push eax
call fcn.00410390
add esp, 0x14
test esi, esi
je 0x4981c3
push esi
call fcn.005e8c90
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004104b0
mov eax, ebx
call fcn.005d11fc
ret 8

Function at 0x49d91e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x49d995
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x49d95b
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x49d95b
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x49d988
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x49d98b
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x49d981
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6216c4]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x49d93e
test eax, eax
je 0x49d9dc
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.0049dc0d
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6216c4]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49dc60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x612820
call fcn.005d1297
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x49dd57
cmp edi, dword [ebx + 0xc]
jge 0x49dd57
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
je 0x49dcb7
cmp edi, dword [esi + 8]
jl 0x49dd45
cmp dword [ebp + 0xc], 0
je 0x49dd45
xor edi, edi
jmp 0x49dce9
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0049d71d
mov esi, eax
test esi, esi
je 0x49dcd1
mov dword [esi], vtable.CThreadData.0
jmp 0x49dcd3
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0049894c
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x49dd05
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x49dd11
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x49dd7e
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005d5480
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x49dd57
cmp edi, dword [esi + 8]
jge 0x49dd57
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.005d11fc
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.00487831
int3