joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4143ad
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 0x414583
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43ebe0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x414583
test cl, 0x48
je 0x414418
cmp byte [eax + 5], 0xa
je 0x414418
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 0x41446a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x414452
call fcn.00412875
mov dword [eax], 9
call fcn.0041287e
mov dword [eax], esi
jmp 0x414462
cmp eax, 0x6d
je 0x414583
push eax
call fcn.00412887
pop ecx
or eax, 0xffffffff
jmp 0x414585
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41457e
test eax, eax
je 0x414491
cmp byte [ebx], 0xa
jne 0x414491
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41449a
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 0x414578
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x414568
cmp al, 0xd
je 0x4144cc
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41455a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4144e6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4144e1
add dword [ebp + 0x10], 2
jmp 0x41453a
mov dword [ebp + 0x10], eax
jmp 0x414556
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 0x41450e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414556
cmp dword [ebp - 0xc], 0
je 0x414556
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41452f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41453a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x414559
cmp ebx, dword [ebp + 0xc]
jne 0x41453f
cmp byte [ebp - 1], 0xa
jne 0x41453f
mov byte [ebx], 0xa
jmp 0x414559
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a3af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41455a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4144b0
jmp 0x414578
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x414578
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 0x414585
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41532f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43a15c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41536b
xor eax, eax
jmp 0x4154d5
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43ebe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4153a9
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041a3af
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415443
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4154a6
jmp 0x4153cd
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x415408
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4153f9
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4153d9
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415467
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x415470
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4153cb
jmp 0x415470
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415467
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x415470
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4154d0
cmp dword [ebp - 0x68], eax
je 0x4154a3
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x415498
call fcn.00412875
mov dword [eax], 9
call fcn.0041287e
mov dword [eax], esi
jmp 0x4154cb
push dword [ebp - 0x68]
call fcn.00412887
pop ecx
jmp 0x4154cb
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4154b8
cmp byte [edi], 0x1a
jne 0x4154b8
xor eax, eax
jmp 0x4154d3
call fcn.00412875
mov dword [eax], 0x1c
call fcn.0041287e
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4154d3
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004100eb
add ebp, 0x3a4
leave
ret
Function at 0x4185d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4185fe
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x418605
cmp ebx, dword [eax + 4]
jae 0x418605
xor eax, eax
jmp 0x4187f5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x418616
xor eax, eax
inc eax
jmp 0x4187f4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41862c
cmp ecx, edx
jae 0x418771
cmp dword [eax + 4], 0
je 0x418635
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41861d
cmp dword [ebp + 8], 0
je 0x418657
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x418771
cmp eax, esi
jae 0x418771
mov eax, dword [0x43d858]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41867c
cmp dword [esi*4 + 0x43d860], edi
je 0x418775
inc esi
cmp esi, eax
jl 0x41866a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4187f1
cmp dword [ebp - 8], 0x1000000
jne 0x4187f1
test byte [ebp - 0xc], 0xcc
je 0x4186fa
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4187f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4187f1
cmp word [eax + 0x18], 0x10b
jne 0x4187f1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4187f1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4186fa
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4186fa
test byte [ecx + 0x27], 0x80
jne 0x418771
push 1
push 0x43d8a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41860e
mov ecx, dword [0x43d858]
test ecx, ecx
mov edx, ecx
jle 0x41872e
lea eax, [ecx*4 + 0x43d85c]
cmp dword [eax], edi
je 0x41872e
dec edx
sub eax, 4
test edx, edx
jg 0x418722
test edx, edx
jne 0x41875f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41873b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418753
lea eax, [edx*4 + 0x43d860]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x418741
cmp ecx, 0x10
jge 0x41875f
inc ecx
mov dword [0x43d858], ecx
push 0
push 0x43d8a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41860e
xor eax, eax
jmp 0x4187f4
test esi, esi
jle 0x41860e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43d8a0
call ebx
test eax, eax
jne 0x41860e
cmp dword [esi*4 + 0x43d860], edi
je 0x4187cb
mov eax, dword [0x43d858]
lea esi, [eax - 1]
test esi, esi
jl 0x4187b9
cmp dword [esi*4 + 0x43d860], edi
je 0x4187b5
dec esi
jns 0x4187a9
test esi, esi
jge 0x4187c9
cmp eax, 0x10
jge 0x4187c4
inc eax
mov dword [0x43d858], eax
lea esi, [eax - 1]
jmp 0x4187cb
je 0x4187e3
xor ecx, ecx
test esi, esi
jl 0x4187e3
lea eax, [ecx*4 + 0x43d860]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4187d1
push 0
push 0x43d8a0
call ebx
jmp 0x41860e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4193a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43a15c]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x41942d
push esi
call fcn.0041b018
test eax, eax
pop ecx
jne 0x4193f5
call fcn.0041287e
mov dword [eax], 0xf
call fcn.00412875
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004100eb
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x419440
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4193e5
inc eax
cmp eax, esi
ja 0x4193e5
test edi, edi
mov ecx, edi
jne 0x419476
cmp eax, dword [ebp + 0x10]
jg 0x419457
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0041194f
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41948b
call fcn.00412875
mov dword [eax], 0xc
jmp 0x4193e5
cmp eax, dword [ebp + 0x10]
jle 0x41948b
call fcn.00412875
mov dword [eax], 0x22
jmp 0x4193e5
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004110ab
pop ecx
pop ecx
jmp 0x4193e7

Function at 0x419c0b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43d8b0], ebx
push esi
push edi
jne 0x419c8b
push 0x432944
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419cc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432938
push edi
call esi
test eax, eax
mov dword [0x43d8b0], eax
je 0x419cc6
push 0x432928
push edi
call esi
push 0x432914
push edi
mov dword [0x43d8b4], eax
call esi
cmp dword [0x43d318], 2
mov dword [0x43d8b8], eax
jne 0x419c8b
push 0x4328f8
push edi
call esi
test eax, eax
mov dword [0x43d8c0], eax
je 0x419c8b
push 0x4328e0
push edi
call esi
mov dword [0x43d8bc], eax
mov eax, dword [0x43d8bc]
test eax, eax
je 0x419cd0
call eax
test eax, eax
je 0x419cb7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43d8c0]
test eax, eax
je 0x419cb7
test byte [ebp - 8], 1
jne 0x419cd0
cmp dword [0x43d324], 4
jb 0x419cca
or byte [ebp + 0x12], 0x20
jmp 0x419cef
xor eax, eax
jmp 0x419cff
or byte [ebp + 0x12], 4
jmp 0x419cef
mov eax, dword [0x43d8b4]
test eax, eax
je 0x419cef
call eax
mov ebx, eax
test ebx, ebx
je 0x419cef
mov eax, dword [0x43d8b8]
test eax, eax
je 0x419cef
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43d8b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b018
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b046
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41b04b
cmp eax, 1
je 0x41b04b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41d113
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 0x41d12c
or eax, 0xffffffff
jmp 0x41d18d
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41d189
push 0x3d
push esi
call fcn.0041d5d8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41d189
cmp esi, eax
je 0x41d189
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43d338]
sete cl
cmp eax, dword [0x43d33c]
mov dword [ebp - 4], ecx
jne 0x41d16f
mov edi, eax
call fcn.0041d0b2
mov dword [0x43d338], eax
cmp eax, ebx
jne 0x41d1c8
cmp dword [ebp + 0xc], ebx
je 0x41d191
cmp dword [0x43d340], ebx
je 0x41d191
call fcn.0041c32d
test eax, eax
je 0x41d1c8
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41d19a
xor eax, eax
jmp 0x41d18c
push 4
call fcn.0041194f
cmp eax, ebx
pop ecx
mov dword [0x43d338], eax
je 0x41d189
mov dword [eax], ebx
cmp dword [0x43d340], ebx
jne 0x41d1c8
push 4
call fcn.0041194f
cmp eax, ebx
pop ecx
mov dword [0x43d340], eax
je 0x41d189
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x43d338]
sub edi, esi
push esi
call fcn.0041d065
mov edi, eax
test edi, edi
pop ecx
jl 0x41d22f
cmp dword [ebx], 0
je 0x41d22f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00411837
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41d20f
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41d270
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41d206
mov eax, edi
shl eax, 2
push eax
push dword [0x43d338]
call fcn.00411961
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41d270
jmp 0x41d26b
cmp dword [ebp - 4], 0
jne 0x41d2d7
test edi, edi
jge 0x41d23f
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43d338]
call fcn.00411961
test eax, eax
pop ecx
pop ecx
je 0x41d189
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x43d338], eax
cmp dword [ebp + 0xc], 0
je 0x41d2c2
push esi
call fcn.00411b20
inc eax
inc eax
push eax
call fcn.0041194f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41d2c2
push esi
push edi
call fcn.00418080
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41d2bb
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00411837
pop ecx
cmp dword [ebp - 4], 0
je 0x41d2cf
push esi
call fcn.00411837
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41d18c
push esi
call fcn.00411837
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41d196
Function at 0x41eda0
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 0x41edd7
call fcn.00427e23
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ede8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41ee21
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41ee06
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41ee0e
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41ee1f
test ax, ax
jne 0x41ee1f
test si, si
je 0x41ee21
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41ee30
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41f082
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42bcb0
call fcn.004114a0
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.00427e23
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41f0d0
call fcn.00427e23
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41f0e1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41f0ed
or eax, 0xffffffff
jmp 0x41f1f0
mov ecx, esi
call fcn.0041ebc4
mov dword [ebp - 0x14], eax
call fcn.0042139a
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41f130
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41f130
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f130
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.00422788
push dword [ebp - 0x14]
call fcn.004212f2
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041ee75
xor ebx, ebx
cmp eax, ebx
je 0x41f1a4
test byte [esi + 0x38], 0x10
je 0x41f172
push 4
pop edi
mov ecx, esi
call fcn.0041f41d
test ah, 1
je 0x41f16a
push 5
pop edi
push edi
mov ecx, esi
call fcn.00420d96
cmp dword [esi + 0x1c], ebx
je 0x41f1a4
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041f688
jmp 0x41f1a4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41f1b8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41f1d1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f1d1
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.0041ebfe
cmp dword [esi + 0x54], ebx
je 0x41f1ed
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 0x41fb33
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42bd12
call fcn.004114a0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x41fb4d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41fb99
call fcn.004233ae
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_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4230f5
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 0x423138
call fcn.00427e23
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423138
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423153
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422269
test ebx, ebx
mov esi, eax
je 0x423151
test edi, edi
je 0x423151
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x424e1f
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42c0b1
call fcn.004114a0
sub esp, 0x264
mov eax, dword [0x43a15c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x424e66
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x424e6a
cmp eax, esi
jb 0x424e71
xor eax, eax
jmp 0x424f59
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00424ddd
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x424f46
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x424ed2
xor esi, esi
jmp 0x424f49
test byte [ebp - 0x26c], 2
jne 0x424ee2
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x424f46
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x424f46
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x424ece
cmp dword [ebp - 0x268], edi
jbe 0x424ece
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x424ece
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004100eb
leave
ret 8