joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8fe0
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x122c
call fcn.004a5030
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4a9023
cmp dword [ebp - 0x88], 2
jne 0x4a9023
cmp dword [ebp - 0x94], 5
jb 0x4a9023
push 1
pop eax
jmp 0x4a9125
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push str.__MSVCRT_HEAP_SELECT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
or eax, eax
je 0x4a9112
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x4a9065
mov al, byte [ecx]
cmp al, 0x61
jl 0x4a9060
cmp al, 0x7a
jg 0x4a9060
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4a9052
lea eax, [ebp - 0x122c]
push 0x16
push eax
push str.__GLOBAL_HEAP_SELECTED
call fcn.004a3ea0
add esp, 0xc
or eax, eax
jne 0x4a9087
lea eax, [ebp - 0x122c]
jmp 0x4a90d0
lea eax, [ebp - 0x19c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x19c], bl
lea ecx, [ebp - 0x19c]
je 0x4a90bb
mov al, byte [ecx]
cmp al, 0x61
jl 0x4a90b6
cmp al, 0x7a
jg 0x4a90b6
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4a90a8
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.004a58e0
pop ecx
pop ecx
cmp eax, ebx
je 0x4a9112
push 0x2c
push eax
call fcn.004a56e0
pop ecx
cmp eax, ebx
pop ecx
je 0x4a9112
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x4a90f7
cmp byte [ecx], 0x3b
jne 0x4a90f2
mov byte [ecx], bl
jmp 0x4a90f3
inc ecx
cmp byte [ecx], bl
jne 0x4a90e9
push 0xa
push ebx
push eax
call fcn.004a7569
add esp, 0xc
cmp eax, 2
je 0x4a9125
cmp eax, 3
je 0x4a9125
cmp eax, 1
je 0x4a9125
lea eax, [ebp - 4]
push eax
call fcn.004a8fb3
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x4a91be
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
sub ecx, ecx
mov eax, 0x4f7ee8
cmp edx, dword [eax]
je 0x4a91e0
add eax, 8
inc ecx
cmp eax, 0x4f7f78
jb 0x4a91d1
push esi
push ecx
pop esi
shl esi, 3
cmp edx, dword [esi + 0x4f7ee8]
jne 0x4a930e
mov eax, dword [0x533d88]
cmp eax, 1
je 0x4a92e8
test eax, eax
jne 0x4a9211
cmp dword [0x4f7434], 1
je 0x4a92e8
cmp edx, 0xfc
je 0x4a930e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or eax, eax
jne 0x4a9248
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004abb50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a7d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a928b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a7d80
push eax
pop edi
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d5a4c
push edi
call fcn.004a5150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004abb50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004abb60
lea eax, [ebp - 0xa0]
push 0x4d5a2c
push eax
call fcn.004abb60
push dword [esi + 0x4f7eec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004abb60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004b0b30
add esp, 0x2c
pop edi
jmp 0x4a930e
lea eax, [ebp + 8]
lea esi, [esi + 0x4f7eec]
push 0
push eax
push dword [esi]
call fcn.004a7d80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4ab907
Capabilities:
Set environment variable

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4ab96b
push 0x3d
push dword [ebp + 8]
call fcn.004a7c57
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp - 8], esi
je 0x4ab96b
cmp dword [ebp + 8], esi
je 0x4ab96b
mov eax, dword [0x533e24]
sub ebx, ebx
cmp byte [esi + 1], bl
sete bl
cmp eax, dword [0x533e28]
jne 0x4ab951
push eax
call fcn.004abae6
pop ecx
mov dword [0x533e24], eax
cmp eax, edi
jne 0x4ab9a9
cmp dword [ebp + 0xc], edi
je 0x4ab973
cmp dword [0x533e2c], edi
je 0x4ab973
call fcn.004ab899
or eax, eax
je 0x4ab9a9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp ebx, edi
jne 0x4aba87
push 4
call fcn.004a5337
cmp eax, edi
pop ecx
mov dword [0x533e24], eax
je 0x4ab96b
mov dword [eax], edi
cmp dword [0x533e2c], edi
jne 0x4ab9a9
push 4
call fcn.004a5337
cmp eax, edi
pop ecx
mov dword [0x533e2c], eax
je 0x4ab96b
mov dword [eax], edi
sub esi, dword [ebp + 8]
mov edi, dword [0x533e24]
mov dword [ebp - 4], edi
push esi
push dword [ebp + 8]
call fcn.004aba8e
mov esi, eax
pop ecx
test esi, esi
pop ecx
jl 0x4aba09
cmp dword [edi], 0
je 0x4aba09
test ebx, ebx
je 0x4aba01
push dword [edi + esi*4]
lea edi, [edi + esi*4]
call fcn.004a524e
pop ecx
cmp dword [edi], 0
je 0x4ab9eb
mov eax, dword [edi + 4]
inc esi
mov dword [edi], eax
add edi, 4
jmp 0x4ab9db
mov eax, esi
shl eax, 2
push eax
push dword [ebp - 4]
call fcn.004a66bc
pop ecx
or eax, eax
pop ecx
je 0x4aba3b
jmp 0x4aba36
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
jmp 0x4aba3b
test ebx, ebx
jne 0x4aba87
test esi, esi
jge 0x4aba13
neg esi
lea eax, [esi*4 + 8]
push eax
push edi
call fcn.004a66bc
pop ecx
test eax, eax
pop ecx
je 0x4ab96b
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x533e24], eax
cmp dword [ebp + 0xc], 0
je 0x4aba87
push dword [ebp + 8]
call fcn.004a7d80
inc eax
inc eax
push eax
call fcn.004a5337
push eax
pop esi
pop ecx
test esi, esi
pop ecx
je 0x4aba87
push dword [ebp + 8]
push esi
call fcn.004abb50
push esi
pop eax
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call fcn.004a524e
pop ecx
sub eax, eax
jmp 0x4ab96e
Function at 0x4aee30
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x414
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x4aee50
sub eax, eax
jmp 0x4aefb6
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x537d20]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4aee80
push 2
push edi
push dword [ebp + 8]
call fcn.004b0658
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4aef4f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x4aef8a
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4aeeda
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x4aeec5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
push eax
pop ecx
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x4aeea6
push eax
pop edi
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x4aef44
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x4aef16
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x4aeea0
sub edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x4aefb3
cmp dword [ebp + 8], edi
je 0x4aef8a
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x4aef7c
call fcn.004a5dfd
mov dword [eax], 9
call fcn.004a5e06
mov dword [eax], esi
jmp 0x4aef85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4aef16
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4aef71
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x4aef18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4aef18
push dword [ebp + 8]
call fcn.004a5d8a
pop ecx
or eax, 0xffffffff
jmp 0x4aefb6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4aef9f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4aee49
call fcn.004a5dfd
mov dword [eax], 0x1c
call fcn.004a5e06
mov dword [eax], edi
jmp 0x4aef85
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4af020
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
pop edx
je 0x4af1f2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
mov eax, dword [ecx*4 + 0x537d20]
lea edi, [ecx*4 + 0x537d20]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4af1f2
test cl, 0x48
je 0x4af08b
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4af08b
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x4af0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4af0c5
call fcn.004a5dfd
mov dword [eax], 9
call fcn.004a5e06
mov dword [eax], esi
jmp 0x4af0d5
cmp eax, 0x6d
je 0x4af1f2
push eax
call fcn.004a5d8a
pop ecx
or eax, 0xffffffff
jmp 0x4af1f4
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [eax + esi + 4]
test al, 0x80
je 0x4af1ed
test edx, edx
je 0x4af102
cmp byte [ebx], 0xa
jne 0x4af102
or al, 4
jmp 0x4af104
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x4af1e7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4af1d7
cmp al, 0xd
je 0x4af138
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4af1c9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4af156
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4af14d
add dword [ebp + 0x10], 2
jmp 0x4af1ab
mov byte [ebx], 0xd
inc ebx
mov dword [ebp + 0x10], eax
jmp 0x4af1c9
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x4af17e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af1c5
cmp dword [ebp - 0xc], 0
je 0x4af1c5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4af1a0
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4af1ab
mov byte [ebx], 0xd
mov ecx, dword [edi]
inc ebx
mov byte [ecx + esi + 5], al
jmp 0x4af1c9
cmp ebx, dword [ebp + 0xc]
jne 0x4af1b0
cmp byte [ebp - 1], 0xa
jne 0x4af1b0
mov byte [ebx], 0xa
jmp 0x4af1c8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b0658
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4af1c9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4af11c
jmp 0x4af1e7
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4af1e7
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4af1f4
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b20dd
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1004
call fcn.004a5030
push ebx
push esi
xor esi, esi
push 1
push esi
push dword [ebp + 8]
call fcn.004b0658
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b21fc
push 2
push esi
push dword [ebp + 8]
call fcn.004b0658
add esp, 0xc
cmp eax, ebx
je 0x4b21fc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
or edi, edi
jle 0x4b219f
mov ebx, 0x1000
lea eax, [ebp - 0x1004]
push ebx
push esi
push eax
call fcn.004a7cf0
push 0x8000
push dword [ebp + 8]
call fcn.004b28d2
add esp, 0x14
mov dword [ebp + 0xc], eax
cmp edi, ebx
push ebx
pop eax
jge 0x4b2158
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004aee30
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b2178
sub edi, eax
test edi, edi
jle 0x4b2190
jmp 0x4b2150
call fcn.004a5e06
cmp dword [eax], 5
jne 0x4b218d
call fcn.004a5dfd
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b28d2
pop ecx
pop ecx
jmp 0x4b21e7
jge 0x4b21e7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b0658
push dword [ebp + 8]
call fcn.004b1e5b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4b21e7
call fcn.004a5dfd
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004a5e06
mov dword [eax], edi
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b0658
add esp, 0xc
push esi
pop eax
pop edi
jmp 0x4b21fe
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4b5f28
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
or edi, edi
je 0x4b5f6d
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b5f5c
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004baaac
cmp dword [ebp + 0xc], edi
je 0x4b5f6d
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.004bab6d
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b609f
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x28]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
pop esi
jne 0x4b60c8
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004baaac
ret 4
Function at 0x4b6785
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c486c
call fcn.004a7c38
sub esp, 0x18
push ebx
push esi
push ecx
pop esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004bec24
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4b67d2
call fcn.004bec24
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
pop edi
test edi, edi
je 0x4b67e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b67ee
or eax, 0xffffffff
jmp 0x4b68d6
mov ecx, esi
call fcn.004b6709
mov dword [ebp - 0x14], eax
call fcn.004b75c4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4b6825
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
or eax, eax
je 0x4b6825
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004b7578
push dword [ebp - 0x14]
call fcn.004b70aa
push ebx
push eax
push dword [ebp - 0x18]
push esi
pop ecx
call fcn.004b64a1
cmp eax, edi
je 0x4b6898
test byte [esi + 0x24], 0x10
je 0x4b6866
push 4
push esi
pop ecx
pop ebx
call fcn.004b9917
test ah, 1
je 0x4b685e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004b92b9
cmp dword [esi + 0x1c], edi
je 0x4b6898
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004b9a30
jmp 0x4b6898
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4b68ac
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4b68c5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4b68c5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
push esi
pop ecx
call dword [eax + 0x58]
mov ecx, esi
call fcn.004b6743
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4b7a75
Capabilities:
Get graphical window text

Disassembly:
push esi
push ecx
pop esi
mov ecx, dword [esi + 0x38]
or ecx, ecx
jne 0x4b7aad
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.004b5b02
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b5ada
jmp 0x4b7ab9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b9167
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b91a9
call fcn.004bec24
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b91a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b91a0
xor eax, eax
jmp 0x4b91b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b91b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bcc4f
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x100
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
pop esi
mov eax, 0x100
cmp esi, eax
ja 0x4bcc96
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4bcc96
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
or eax, eax
je 0x4bcca2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
leave
ret 8

Function at 0x4bedac
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ecx
pop esi
sub eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4bede0
call fcn.004b31c8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4befb4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ebx
push esi
push ecx
pop esi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
pop edi
test edi, edi
je 0x4befe5
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
cmp eax, dword [ebx]
jl 0x4bf08b
cmp dword [ebp + 0xc], 0
je 0x4bf08b
jmp 0x4bf027
push 0x10
call fcn.004bed7a
or eax, eax
je 0x4beffa
mov dword [eax], vtable.CThreadData.0
push eax
pop edi
jmp 0x4beffc
xor edi, edi
and dword [edi + 8], 0
and dword [edi + 0xc], 0
lea ebx, [edi + 8]
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [esi + 0x14]
call fcn.004bed21
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4bf03f
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4bf04f
mov ecx, dword [esi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [edi + 0xc], eax
jne 0x4bf05b
call fcn.004b31c8
mov eax, dword [ebx]
push eax
pop ecx
imul ecx, ecx, 0x3fffffff
add ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [edi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.004a7cf0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebx], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
leave
ret 8

Function at 0x4bf0ba
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push ecx
pop ebx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x4bf113
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4bf0f0
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x4bf0f0
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x4bf107
and dword [ebp - 4], 0
jmp 0x4bf107
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
or ecx, ecx
je 0x4bf100
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x4bf0d1
cmp dword [ebp - 4], 0
je 0x4bf14c
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x14]
call fcn.004bed34
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or esi, esi
je 0x4bf142
mov eax, dword [esi]
push 1
push esi
pop ecx
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4bf1ac
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4bf1e2
mov ecx, dword [0x533a28]
or ecx, ecx
jne 0x4bf1db
mov ecx, 0x533a2c
push ecx
pop eax
test eax, eax
je 0x4bf1d3
call fcn.004bedac
mov ecx, eax
jmp 0x4bf1d5
xor ecx, ecx
mov dword [0x533a28], ecx
call fcn.004bee45
mov dword [edi], eax
mov eax, dword [0x533a28]
mov esi, dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, eax
je 0x4bf202
cmp esi, dword [eax + 8]
jge 0x4bf202
mov eax, dword [eax + 0xc]
mov esi, dword [eax + esi*4]
jmp 0x4bf204
sub esi, esi
or esi, esi
jne 0x4bf21c
call dword [esp + 0xc]
mov ecx, dword [0x533a28]
push eax
pop esi
push esi
push dword [edi]
call fcn.004befb4
push esi
pop eax
pop edi
pop esi
ret 4