joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4250b4
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 0x425288
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x456680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x425288
test cl, 0x48
je 0x42511f
cmp byte [eax + 5], 0xa
je 0x42511f
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 0x425171
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x425159
call fcn.0041cc7f
mov dword [eax], 9
call fcn.0041cc88
mov dword [eax], esi
jmp 0x425169
cmp eax, 0x6d
je 0x425288
push eax
call fcn.0041cc91
pop ecx
or eax, 0xffffffff
jmp 0x42528a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x425283
test eax, eax
je 0x425198
cmp byte [ebx], 0xa
jne 0x425198
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4251a1
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 0x42527d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42526d
cmp al, 0xd
je 0x4251d3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42525f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4251ed
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4251e8
add dword [ebp + 0x10], 2
jmp 0x425241
mov dword [ebp + 0x10], eax
jmp 0x42525b
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 0x425215
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42525b
cmp dword [ebp - 0xc], 0
je 0x42525b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x425236
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x425241
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42525e
cmp ebx, dword [ebp + 0xc]
jne 0x425246
cmp byte [ebp - 1], 0xa
jne 0x425246
mov byte [ebx], 0xa
jmp 0x42525e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00423ce5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42525f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4251b7
jmp 0x42527d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42527d
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 0x42528a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42695f
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 0x426978
or eax, 0xffffffff
jmp 0x4269d9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4269d5
push 0x3d
push esi
call fcn.0041b3db
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4269d5
cmp esi, eax
je 0x4269d5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x455130]
sete cl
cmp eax, dword [0x455134]
mov dword [ebp - 8], ecx
jne 0x4269bb
mov edi, eax
call fcn.004268fe
mov dword [0x455130], eax
cmp eax, ebx
jne 0x426a14
cmp dword [ebp + 0xc], ebx
je 0x4269dd
cmp dword [0x455138], ebx
je 0x4269dd
call fcn.0042600b
test eax, eax
je 0x426a14
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4269e6
xor eax, eax
jmp 0x4269d8
push 4
call fcn.0041af0b
cmp eax, ebx
pop ecx
mov dword [0x455130], eax
je 0x4269d5
mov dword [eax], ebx
cmp dword [0x455138], ebx
jne 0x426a14
push 4
call fcn.0041af0b
cmp eax, ebx
pop ecx
mov dword [0x455138], eax
je 0x4269d5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x455130]
call fcn.004268b1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x426a75
cmp dword [esi], ebx
je 0x426a75
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041af1d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x426a58
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x426ab6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x426a4f
mov eax, edi
shl eax, 2
push eax
push dword [0x455130]
call fcn.0041bd2b
cmp eax, ebx
pop ecx
pop ecx
je 0x426ab6
jmp 0x426ab1
cmp dword [ebp - 8], ebx
jne 0x426b21
cmp edi, ebx
jge 0x426a84
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x455130]
call fcn.0041bd2b
cmp eax, ebx
pop ecx
pop ecx
je 0x4269d5
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 [0x455130], eax
cmp dword [ebp + 0xc], ebx
je 0x426b0b
push dword [ebp - 4]
call fcn.0041bc80
inc eax
inc eax
push eax
call fcn.0041af0b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x426b0b
push dword [ebp - 4]
push esi
call fcn.00422140
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 0x426b04
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041af1d
pop ecx
cmp dword [ebp - 8], ebx
je 0x426b19
push dword [ebp - 4]
call fcn.0041af1d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4269d8
push dword [ebp - 4]
call fcn.0041af1d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4269e2
Function at 0x426f80
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040bef0
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x426fbd
cmp dword [esi + 0x28], 1
jne 0x426fa8
mov ecx, esi
call fcn.00426ef0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 3
je 0x426fbd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x426fce
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x426fda
xor eax, eax
jmp 0x426fdd
mov eax, dword [eax + 0x1c]
push ebx
push 4
push ebx
push ebx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
push esi
push 0x426ed0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
call fcn.0042e969
mov edx, dword [edi]
mov ecx, edi
mov dword [esi + 0x24], eax
mov byte [esi + 0x2c], bl
call dword [edx + 0x14]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x42702e
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 1
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebx
ret 8

Function at 0x427040
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov ebx, 0xfffffffe
call fcn.0040bef0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x427133
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esi + 0x28], 1
jne 0x4270bd
mov ecx, edi
call fcn.0040bef0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4270ae
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
mov ecx, edi
jne 0x4270a2
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, 1
jmp 0x4270ba
mov edx, dword [edi]
call dword [edx + 0x14]
mov eax, 3
jmp 0x4270ba
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, 4
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x4270ee
mov ecx, dword [esi + 0x24]
or eax, 0xffffffff
test ecx, ecx
je 0x4270e3
mov ecx, dword [ecx + 0x28]
push ecx
call ebp
test eax, eax
je 0x4270dc
cmp eax, 1
jne 0x4270e3
mov dword [esi + 0x28], 1
cmp eax, 0xffffffff
mov ebx, eax
jne 0x427067
cmp dword [esi + 0x28], 1
pop ebp
jne 0x4270ff
mov ecx, esi
call fcn.00426ef0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 1
je 0x42710a
cmp ebx, 0xfffffffe
jne 0x427133
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x28]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x427133
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x427133
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24], ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 4
Function at 0x427be3
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x440050
call fcn.0041bd0c
sub esp, 0x9c
mov eax, dword [0x451fe0]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.0042ead2
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00407910
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x427c74
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0041bf30
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x427c6d
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x427c74
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0041af0b
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x427c89
call fcn.00427963
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0041bf30
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x427d06
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0043b8c8
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x427db4
je 0x427d32
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x427d68
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004019c0
push ebx
mov ecx, edi
call fcn.00401480
jmp 0x427d51
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0041b3db
cmp eax, ebx
pop ecx
pop ecx
jne 0x427d4e
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00419c7f
leave
ret 0x1c

Function at 0x42c34d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42c386
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.00418542
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407580
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x42d5dd
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 0x42d620
call fcn.0043b8c8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42d620
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42d63b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042c742
test ebx, ebx
mov esi, eax
je 0x42d639
test edi, edi
je 0x42d639
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42db19
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x43fcee
call fcn.0041bd0c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42db3e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42db8a
call fcn.00429587
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.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42e886
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.0041bf30
add esp, 0xc
call fcn.0043b8b8
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 0x42e956
cmp dword [ebp - 8], ebx
je 0x42e951
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42e758
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0041c166
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42e960
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 0x42e929
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x42e943
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 0x42e95b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x42e962
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x42e960
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e969
Capabilities:
Resume thread

Disassembly:
mov eax, 0x43fd59
call fcn.0041bd0c
push ecx
push esi
push 0x40
call fcn.00429cbe
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x42e998
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043b96e
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.0042e886
test eax, eax
jne 0x42e9bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x42e9dc
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x42e9da
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
Function at 0x42ee7c
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 0x42eeb3
call fcn.0043b8c8
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 0x42eec4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x42eefd
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x42eee2
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42eeea
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42eefb
test ax, ax
jne 0x42eefb
test si, si
je 0x42eefd
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x42ef0c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42f16c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43fdd7
call fcn.0041bd0c
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.0043b8c8
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42f1ac
call fcn.0043b8c8
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 0x42f1bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42f1c9
or eax, 0xffffffff
jmp 0x42f2cc
mov ecx, esi
call fcn.0042ec9e
mov dword [ebp - 0x14], eax
call fcn.0042b6fc
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x42f20c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42f20c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42f20c
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.0042cc71
push dword [ebp - 0x14]
call fcn.0042b654
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042ef51
xor ebx, ebx
cmp eax, ebx
je 0x42f280
test byte [esi + 0x38], 0x10
je 0x42f24e
push 4
pop edi
mov ecx, esi
call fcn.0042d912
test ah, 1
je 0x42f246
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042b0f8
cmp dword [esi + 0x1c], ebx
je 0x42f280
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042da9c
jmp 0x42f280
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x42f294
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x42f2ad
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42f2ad
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.0042ecd8
cmp dword [esi + 0x54], ebx
je 0x42f2c9
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 0x430160
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4400a9
call fcn.0041bd0c
sub esp, 0x150
mov eax, dword [0x451fe0]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x4301a8
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4301ac
cmp eax, esi
jb 0x4301b3
xor eax, eax
jmp 0x430288
call fcn.00429587
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
push edi
mov dword [ebp - 4], ebx
call fcn.0043011e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x430278
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x430207
xor esi, esi
jmp 0x43027b
test byte [ebp - 0x158], 2
jne 0x430217
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x430278
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x430278
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x430203
cmp dword [ebp - 0x154], edi
jbe 0x430203
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x430203
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00419c7f
leave
ret 8