joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457abd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x457c91
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4b0920]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x457c91
test cl, 0x48
je 0x457b28
cmp byte [eax + 5], 0xa
je 0x457b28
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x457b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x457b62
call fcn.0044f6f1
mov dword [eax], 9
call fcn.0044f6fa
mov dword [eax], esi
jmp 0x457b72
cmp eax, 0x6d
je 0x457c91
push eax
call fcn.0044f703
pop ecx
or eax, 0xffffffff
jmp 0x457c93
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x457c8c
test eax, eax
je 0x457ba1
cmp byte [ebx], 0xa
jne 0x457ba1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x457baa
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x457c86
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x457c76
cmp al, 0xd
je 0x457bdc
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x457c68
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x457bf6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x457bf1
add dword [ebp + 0x10], 2
jmp 0x457c4a
mov dword [ebp + 0x10], eax
jmp 0x457c64
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x457c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x457c64
cmp dword [ebp - 0xc], 0
je 0x457c64
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x457c3f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x457c4a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x457c67
cmp ebx, dword [ebp + 0xc]
jne 0x457c4f
cmp byte [ebp - 1], 0xa
jne 0x457c4f
mov byte [ebx], 0xa
jmp 0x457c67
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455bca
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x457c68
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x457bc0
jmp 0x457c86
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x457c86
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x457c93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x457f36
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4b06f4], ebx
push esi
push edi
jne 0x457fb6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x457ff1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x499b24
push edi
call esi
test eax, eax
mov dword [0x4b06f4], eax
je 0x457ff1
push 0x499b14
push edi
call esi
push 0x499b00
push edi
mov dword [0x4b06f8], eax
call esi
cmp dword [0x4b02a8], 2
mov dword [0x4b06fc], eax
jne 0x457fb6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4b0704], eax
je 0x457fb6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4b0700], eax
mov eax, dword [0x4b0700]
test eax, eax
je 0x457ffb
call eax
test eax, eax
je 0x457fe2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4b0704]
test eax, eax
je 0x457fe2
test byte [ebp - 8], 1
jne 0x457ffb
cmp dword [0x4b02b4], 4
jb 0x457ff5
or byte [ebp + 0x12], 0x20
jmp 0x45801a
xor eax, eax
jmp 0x45802a
or byte [ebp + 0x12], 4
jmp 0x45801a
mov eax, dword [0x4b06f8]
test eax, eax
je 0x45801a
call eax
mov ebx, eax
test ebx, ebx
je 0x45801a
mov eax, dword [0x4b06fc]
test eax, eax
je 0x45801a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4b06f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b806
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x49aa40
call fcn.0044ea28
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4b0778], edi
jne 0x45b84a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b835
mov dword [0x4b0778], ebx
jmp 0x45b84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45b84a
mov dword [0x4b0778], 2
mov eax, dword [0x4b0778]
cmp eax, ebx
jne 0x45b86a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x45b92d
cmp eax, 2
je 0x45b873
cmp eax, edi
jne 0x45b89b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x45b886
mov eax, dword [0x4b06ec]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x45b8a2
xor eax, eax
jmp 0x45b92d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044c250
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x45b8d5
cmp esi, edi
jne 0x45b8eb
push dword [ebp - 0x20]
call fcn.0044d990
pop ecx
mov esi, eax
cmp esi, edi
je 0x45b89b
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45b91e
cmp dword [ebp + 0x14], edi
jne 0x45b908
push edi
push edi
jmp 0x45b90e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x45b92a
push esi
call fcn.0044c404
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0044ea63
ret
Function at 0x45b936
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x49aa50
call fcn.0044ea28
xor esi, esi
cmp dword [0x4b077c], esi
jne 0x45b97a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b965
mov dword [0x4b077c], edi
jmp 0x45b97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45b97a
mov dword [0x4b077c], 2
mov eax, dword [0x4b077c]
cmp eax, 2
je 0x45ba5b
cmp eax, esi
je 0x45ba5b
cmp eax, 1
jne 0x45b9bf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x45b9a8
mov eax, dword [0x4b06ec]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x45b9c6
xor eax, eax
jmp 0x45ba6d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0044c250
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x45b9fc
cmp edi, esi
jne 0x45ba17
lea eax, [ebx + ebx]
push eax
call fcn.0044d990
pop ecx
mov edi, eax
cmp edi, esi
je 0x45b9bf
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ba4a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x45ba34
push esi
push esi
jmp 0x45ba3a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x45ba56
push edi
call fcn.0044c404
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x45ba6d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0044ea63
ret
Function at 0x45bec4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45bedd
or eax, 0xffffffff
jmp 0x45bf3e
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x45bf3a
push 0x3d
push esi
call fcn.0044bb0f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45bf3a
cmp esi, eax
je 0x45bf3a
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4b02c8]
sete cl
cmp eax, dword [0x4b02cc]
mov dword [ebp - 8], ecx
jne 0x45bf20
mov edi, eax
call fcn.0045be63
mov dword [0x4b02c8], eax
cmp eax, ebx
jne 0x45bf79
cmp dword [ebp + 0xc], ebx
je 0x45bf42
cmp dword [0x4b02d0], ebx
je 0x45bf42
call fcn.0045aefc
test eax, eax
je 0x45bf79
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x45bf4b
xor eax, eax
jmp 0x45bf3d
push 4
call fcn.0044d990
cmp eax, ebx
pop ecx
mov dword [0x4b02c8], eax
je 0x45bf3a
mov dword [eax], ebx
cmp dword [0x4b02d0], ebx
jne 0x45bf79
push 4
call fcn.0044d990
cmp eax, ebx
pop ecx
mov dword [0x4b02d0], eax
je 0x45bf3a
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4b02c8]
call fcn.0045be16
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45bfda
cmp dword [esi], ebx
je 0x45bfda
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044c404
cmp dword [ebp - 8], ebx
pop ecx
jne 0x45bfbd
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x45c01b
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x45bfb4
mov eax, edi
shl eax, 2
push eax
push dword [0x4b02c8]
call fcn.0044dc78
cmp eax, ebx
pop ecx
pop ecx
je 0x45c01b
jmp 0x45c016
cmp dword [ebp - 8], ebx
jne 0x45c086
cmp edi, ebx
jge 0x45bfe9
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4b02c8]
call fcn.0044dc78
cmp eax, ebx
pop ecx
pop ecx
je 0x45bf3a
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4b02c8], eax
cmp dword [ebp + 0xc], ebx
je 0x45c070
push dword [ebp - 4]
call fcn.0044e8c0
inc eax
inc eax
push eax
call fcn.0044d990
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45c070
push dword [ebp - 4]
push esi
call fcn.00455310
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45c069
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044c404
pop ecx
cmp dword [ebp - 8], ebx
je 0x45c07e
push dword [ebp - 4]
call fcn.0044c404
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45bf3d
push dword [ebp - 4]
call fcn.0044c404
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45bf47
Function at 0x45e097
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c250
mov eax, dword [0x4ac588]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00455bca
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x45e1ca
push 2
push esi
push dword [ebp + 8]
call fcn.00455bca
add esp, 0xc
cmp eax, ebx
je 0x45e1ca
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x45e16a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044e500
push 0x8000
push dword [ebp + 8]
call fcn.0045e3fd
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45e120
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004555d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x45e140
sub edi, eax
test edi, edi
jg 0x45e118
jmp 0x45e158
call fcn.0044f6fa
cmp dword [eax], 5
jne 0x45e155
call fcn.0044f6f1
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0045e3fd
pop ecx
pop ecx
jmp 0x45e1b2
jge 0x45e1b2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00455bca
push dword [ebp + 8]
call fcn.0044f3ab
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 0x45e1b2
call fcn.0044f6f1
mov dword [eax], 0xd
call fcn.0044f6fa
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00455bca
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45e1cc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044af18
leave
ret

Function at 0x4618d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x46190e
call fcn.0047b66b
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46191f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x461958
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x46193d
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x461945
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x461956
test ax, ax
jne 0x461956
test si, si
je 0x461958
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x461967
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x461bb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x48520d
call fcn.0044e560
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0047b66b
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x461c07
call fcn.0047b66b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x461c18
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x461c24
or eax, 0xffffffff
jmp 0x461d27
mov ecx, esi
call fcn.004616f9
mov dword [ebp - 0x14], eax
call fcn.00463de1
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x461c67
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x461c67
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x461c67
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0046562e
push dword [ebp - 0x14]
call fcn.00463d39
push edi
push eax
push ebx
mov ecx, esi
call fcn.004619ac
xor ebx, ebx
cmp eax, ebx
je 0x461cdb
test byte [esi + 0x38], 0x10
je 0x461ca9
push 4
pop edi
mov ecx, esi
call fcn.004663d2
test ah, 1
je 0x461ca1
push 5
pop edi
push edi
mov ecx, esi
call fcn.004637dd
cmp dword [esi + 0x1c], ebx
je 0x461cdb
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00466643
jmp 0x461cdb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x461cef
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x461d08
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x461d08
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00461733
cmp dword [esi + 0x54], ebx
je 0x461d24
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x461d61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0047b66b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x461d98
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004619ac
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x464c0f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x464c48
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.0043ff22
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b9a0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x465f9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x465fdd
call fcn.0047b66b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x465fdd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x465ff8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004650ff
test ebx, ebx
mov esi, eax
je 0x465ff6
test edi, edi
je 0x465ff6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x466143
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x488a08
mov ecx, edi
call fcn.00401970
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x466196
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4661a9
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0043ff22
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b9a0
jmp 0x4661a9
mov ecx, esi
call fcn.004662e9
test eax, eax
je 0x4661a9
push edi
mov ecx, eax
call fcn.00464c0f
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x466aa4
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x485389
call fcn.0044e560
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x466ac9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x466b15
call fcn.00461fc6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4680e8
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0044e500
add esp, 0xc
call fcn.0047b65b
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4681b8
cmp dword [ebp - 8], ebx
je 0x4681b3
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x467fba
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0044f1e8
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4681c2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x46818b
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4681a5
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x4681bd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x4681c4
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x4681c2
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4681cb
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4858f6
call fcn.0044e560
push ecx
push esi
push 0x40
call fcn.0046702b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4681fa
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047b782
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.004680e8
test eax, eax
jne 0x468221
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x46823e
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x46823c
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18