joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413bc6
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 0x413d8c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x432fc0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x413d8c
test cl, 0x48
je 0x413c2c
mov al, byte [eax + 5]
cmp al, 0xa
je 0x413c2c
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 0x413c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x413c66
call fcn.0040df5c
mov dword [eax], 9
call fcn.0040df65
mov dword [eax], esi
jmp 0x413c76
cmp eax, 0x6d
je 0x413d8c
push eax
call fcn.0040df6e
pop ecx
or eax, 0xffffffff
jmp 0x413d8e
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x413d87
test edx, edx
je 0x413ca1
cmp byte [ebx], 0xa
jne 0x413ca1
or al, 4
jmp 0x413ca3
and al, 0xfb
mov byte [ecx], al
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 0x413d81
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x413d71
cmp al, 0xd
je 0x413cd7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x413d63
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x413cf1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x413cec
add dword [ebp + 0x10], 2
jmp 0x413d45
mov dword [ebp + 0x10], eax
jmp 0x413d5f
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 0x413d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413d5f
cmp dword [ebp - 0xc], 0
je 0x413d5f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x413d3a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413d45
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x413d62
cmp ebx, dword [ebp + 0xc]
jne 0x413d4a
cmp byte [ebp - 1], 0xa
jne 0x413d4a
mov byte [ebx], 0xa
jmp 0x413d62
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414140
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x413d63
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x413cbb
jmp 0x413d81
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x413d81
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x413d8e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413e3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42fc3c]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x413e67
xor eax, eax
jmp 0x413fd5
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x432fc0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413e9a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00410d92
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413f6c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x413fa7
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x413ef5
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413ee6
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x413ec9
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413f35
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x413f3e
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x413eba
jmp 0x413f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x413fd0
cmp dword [ebp - 8], edi
je 0x413fa7
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x413f99
call fcn.0040df5c
mov dword [eax], 9
call fcn.0040df65
mov dword [eax], esi
jmp 0x413fa2
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413f8e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x413f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x413f40
push dword [ebp - 8]
call fcn.0040df6e
pop ecx
or eax, 0xffffffff
jmp 0x413fd3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413fbc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x413fbc
xor eax, eax
jmp 0x413fd3
call fcn.0040df5c
mov dword [eax], 0x1c
call fcn.0040df65
mov dword [eax], edi
jmp 0x413fa2
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040bcfc
leave
ret
Function at 0x4157e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42fc3c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x415864
push ebx
call fcn.004157b2
test eax, eax
pop ecx
jne 0x415836
call fcn.0040df65
mov dword [eax], 0xf
call fcn.0040df5c
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040bcfc
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x415876
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415826
inc eax
cmp eax, 0x104
ja 0x415826
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4158ae
cmp eax, dword [ebp + 0x10]
jg 0x415891
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040d30c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4158c3
call fcn.0040df5c
mov dword [eax], 0xc
jmp 0x415826
cmp eax, dword [ebp + 0x10]
jle 0x4158c3
call fcn.0040df5c
mov dword [eax], 0x22
jmp 0x415826
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00414de0
pop ecx
pop ecx
jmp 0x415828

Function at 0x415f20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x432ea0], ebx
push esi
push edi
jne 0x415fa0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415fdb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429c4c
push edi
call esi
test eax, eax
mov dword [0x432ea0], eax
je 0x415fdb
push 0x429c3c
push edi
call esi
push 0x429c28
push edi
mov dword [0x432ea4], eax
call esi
cmp dword [0x432aa4], 2
mov dword [0x432ea8], eax
jne 0x415fa0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x432eb0], eax
je 0x415fa0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x432eac], eax
mov eax, dword [0x432eac]
test eax, eax
je 0x415fe5
call eax
test eax, eax
je 0x415fcc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x432eb0]
test eax, eax
je 0x415fcc
test byte [ebp - 8], 1
jne 0x415fe5
cmp dword [0x432ab0], 4
jb 0x415fdf
or byte [ebp + 0x12], 0x20
jmp 0x416004
xor eax, eax
jmp 0x416014
or byte [ebp + 0x12], 4
jmp 0x416004
mov eax, dword [0x432ea4]
test eax, eax
je 0x416004
call eax
mov ebx, eax
test ebx, ebx
je 0x416004
mov eax, dword [0x432ea8]
test eax, eax
je 0x416004
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x432ea0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416b81
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c070
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416c16
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x432aa4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x416c16
cmp eax, 1
je 0x416c2e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416c16
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x416beb
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x416c12
xor eax, eax
inc eax
jmp 0x416c4a
cmp esi, ebx
jae 0x416c1a
xor eax, eax
jmp 0x416c4a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x432aa4]
jmp 0x416c30
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417970
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040c070
mov eax, dword [0x42fc3c]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00414140
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x417a9a
push 2
push esi
push dword [ebp + 8]
call fcn.00414140
add esp, 0xc
cmp eax, ebx
je 0x417a9a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x417a3d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040d730
push 0x8000
push dword [ebp + 8]
call fcn.004183f0
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4179f6
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00413e3e
add esp, 0xc
cmp eax, 0xffffffff
je 0x417a16
sub edi, eax
test edi, edi
jg 0x4179ee
jmp 0x417a2e
call fcn.0040df65
cmp dword [eax], 5
jne 0x417a2b
call fcn.0040df5c
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004183f0
pop ecx
pop ecx
jmp 0x417a85
jge 0x417a85
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414140
push dword [ebp + 8]
call fcn.0040dc90
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 0x417a85
call fcn.0040df5c
mov dword [eax], 0xd
call fcn.0040df65
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00414140
add esp, 0xc
mov eax, esi
pop edi
jmp 0x417a9c
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040bcfc
leave
ret
Function at 0x4188a6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x418911
push 0x3d
push dword [ebp + 8]
call fcn.0040d01b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x418911
cmp dword [ebp + 8], esi
je 0x418911
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x432ac4]
cmp eax, dword [0x432ac8]
jne 0x4188f7
mov edi, eax
call fcn.00418845
mov dword [0x432ac4], eax
cmp eax, ebx
jne 0x418950
cmp dword [ebp + 0xc], ebx
je 0x418919
cmp dword [0x432acc], ebx
je 0x418919
call fcn.00417af9
test eax, eax
je 0x418950
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x418a54
push 4
call fcn.0040d30c
cmp eax, ebx
pop ecx
mov dword [0x432ac4], eax
je 0x418911
mov dword [eax], ebx
cmp dword [0x432acc], ebx
jne 0x418950
push 4
call fcn.0040d30c
cmp eax, ebx
pop ecx
mov dword [0x432acc], eax
je 0x418911
mov dword [eax], ebx
mov ebx, dword [0x432ac4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004187f8
mov edi, eax
test edi, edi
pop ecx
jl 0x4189a9
cmp dword [ebx], 0
je 0x4189a9
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040d31e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x418991
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4189df
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x418988
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040e91f
test eax, eax
pop ecx
pop ecx
je 0x4189df
jmp 0x4189da
cmp dword [ebp - 4], 0
jne 0x418a4d
test edi, edi
jge 0x4189b9
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040e91f
test eax, eax
pop ecx
pop ecx
je 0x418911
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x432ac4], eax
cmp dword [ebp + 0xc], 0
je 0x418a36
push dword [ebp + 8]
call fcn.0040dad0
inc eax
inc eax
push eax
call fcn.0040d30c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x418a36
push dword [ebp + 8]
push esi
call fcn.00414de0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x418a2f
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040d31e
pop ecx
cmp dword [ebp - 4], 0
je 0x418a45
push dword [ebp + 8]
call fcn.0040d31e
pop ecx
mov eax, dword [ebp - 8]
jmp 0x418914
push esi
call fcn.0040d31e
pop ecx
xor eax, eax
jmp 0x418914
Function at 0x41a49c
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.0040d730
add esp, 0xc
call fcn.00423d59
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 0x41a56c
cmp dword [ebp - 8], ebx
je 0x41a567
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41a36e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040d6a0
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x41a576
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 0x41a53f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x41a559
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 0x41a571
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x41a578
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x41a576
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41a57f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.0041a5e5
mov esi, eax
test esi, esi
jne 0x41a596
call fcn.00418f50
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.0041a49c
test eax, eax
jne 0x41a5bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x41a5da
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x41a5d8
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x41b9b8
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 0x41b9ef
call fcn.00423d69
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 0x41ba00
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41ba39
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41ba1e
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41ba26
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41ba37
test ax, ax
jne 0x41ba37
test si, si
je 0x41ba39
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41ba48
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41bc9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4256b1
call fcn.0040d5ac
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.00423d69
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41bce8
call fcn.00423d69
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 0x41bcf9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41bd05
or eax, 0xffffffff
jmp 0x41be08
mov ecx, esi
call fcn.0041b7e2
mov dword [ebp - 0x14], eax
call fcn.0041d4c2
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41bd48
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41bd48
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41bd48
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.0041e707
push dword [ebp - 0x14]
call fcn.0041d41a
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041ba8d
xor ebx, ebx
cmp eax, ebx
je 0x41bdbc
test byte [esi + 0x38], 0x10
je 0x41bd8a
push 4
pop edi
mov ecx, esi
call fcn.0041f456
test ah, 1
je 0x41bd82
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041cebe
cmp dword [esi + 0x1c], ebx
je 0x41bdbc
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041f576
jmp 0x41bdbc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41bdd0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41bde9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41bde9
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.0041b81c
cmp dword [esi + 0x54], ebx
je 0x41be05
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 0x41de51
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x41de8b
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.0040a59f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401a00
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x41f074
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 0x41f0b7
call fcn.00423d69
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f0b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f0d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041e1db
test ebx, ebx
mov esi, eax
je 0x41f0d0
test edi, edi
je 0x41f0d0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41f21b
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x426748
mov ecx, edi
call fcn.004022c0
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x41f26e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x41f281
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040a59f
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401a00
jmp 0x41f281
mov ecx, esi
call fcn.0041f395
test eax, eax
je 0x41f281
push edi
mov ecx, eax
call fcn.0041de51
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8
Function at 0x41fec6
Capabilities:
Get disk information

Disassembly:
mov eax, 0x425914
call fcn.0040d5ac
sub esp, 0x14c
mov eax, dword [0x42fc3c]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x41ff10
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x41ffa5
push ebx
call fcn.0041ac55
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0041fe84
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x41ff97
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41ff9a
test byte [ebp + 8], 2
jne 0x41ff65
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x41ff97
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41ff97
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401850
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0040bcfc
leave
ret 8