joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cde9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x441168]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41ce61
push ebx
call fcn.0041cdb2
test eax, eax
pop ecx
jne 0x41ce30
call fcn.00416e23
mov dword [eax], 0xf
call fcn.00416e1a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00413df8
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
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
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41ce73
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41ce23
inc eax
cmp eax, 0x104
ja 0x41ce23
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41ceab
cmp eax, dword [ebp + 0x10]
jg 0x41ce8e
mov eax, dword [ebp + 0x10]
push eax
call fcn.00415028
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41cec0
call fcn.00416e1a
mov dword [eax], 0xc
jmp 0x41ce23
cmp eax, dword [ebp + 0x10]
jle 0x41cec0
call fcn.00416e1a
mov dword [eax], 0x22
jmp 0x41ce23
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004198d0
pop ecx
pop ecx
jmp 0x41ce25

Function at 0x41e443
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x444760], ebx
push esi
push edi
jne 0x41e4c3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e4fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437d8c
push edi
call esi
test eax, eax
mov dword [0x444760], eax
je 0x41e4fe
push 0x437d7c
push edi
call esi
push 0x437d68
push edi
mov dword [0x444764], eax
call esi
cmp dword [0x444310], 2
mov dword [0x444768], eax
jne 0x41e4c3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x444770], eax
je 0x41e4c3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44476c], eax
mov eax, dword [0x44476c]
test eax, eax
je 0x41e508
call eax
test eax, eax
je 0x41e4ef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x444770]
test eax, eax
je 0x41e4ef
test byte [ebp - 8], 1
jne 0x41e508
cmp dword [0x44431c], 4
jb 0x41e502
or byte [ebp + 0x12], 0x20
jmp 0x41e527
xor eax, eax
jmp 0x41e537
or byte [ebp + 0x12], 4
jmp 0x41e527
mov eax, dword [0x444764]
test eax, eax
je 0x41e527
call eax
mov ebx, eax
test ebx, ebx
je 0x41e527
mov eax, dword [0x444768]
test eax, eax
je 0x41e527
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x444760]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ec6b
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 0x41ee3f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4449a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41ee3f
test cl, 0x48
je 0x41ecd6
cmp byte [eax + 5], 0xa
je 0x41ecd6
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 0x41ed28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41ed10
call fcn.00416e1a
mov dword [eax], 9
call fcn.00416e23
mov dword [eax], esi
jmp 0x41ed20
cmp eax, 0x6d
je 0x41ee3f
push eax
call fcn.00416e2c
pop ecx
or eax, 0xffffffff
jmp 0x41ee41
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41ee3a
test eax, eax
je 0x41ed4f
cmp byte [ebx], 0xa
jne 0x41ed4f
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41ed58
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 0x41ee34
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41ee24
cmp al, 0xd
je 0x41ed8a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41ee16
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41eda4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41ed9f
add dword [ebp + 0x10], 2
jmp 0x41edf8
mov dword [ebp + 0x10], eax
jmp 0x41ee12
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 0x41edcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ee12
cmp dword [ebp - 0xc], 0
je 0x41ee12
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41eded
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41edf8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41ee15
cmp ebx, dword [ebp + 0xc]
jne 0x41edfd
cmp byte [ebp - 1], 0xa
jne 0x41edfd
mov byte [ebx], 0xa
jmp 0x41ee15
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1f8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41ee16
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41ed6e
jmp 0x41ee34
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41ee34
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 0x41ee41
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422453
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 0x42246c
or eax, 0xffffffff
jmp 0x4224cd
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4224c9
push 0x3d
push esi
call fcn.00413eb8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4224c9
cmp esi, eax
je 0x4224c9
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x444330]
sete cl
cmp eax, dword [0x444334]
mov dword [ebp - 8], ecx
jne 0x4224af
mov edi, eax
call fcn.004223f2
mov dword [0x444330], eax
cmp eax, ebx
jne 0x422508
cmp dword [ebp + 0xc], ebx
je 0x4224d1
cmp dword [0x444338], ebx
je 0x4224d1
call fcn.00421a5f
test eax, eax
je 0x422508
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4224da
xor eax, eax
jmp 0x4224cc
push 4
call fcn.00415028
cmp eax, ebx
pop ecx
mov dword [0x444330], eax
je 0x4224c9
mov dword [eax], ebx
cmp dword [0x444338], ebx
jne 0x422508
push 4
call fcn.00415028
cmp eax, ebx
pop ecx
mov dword [0x444338], eax
je 0x4224c9
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x444330]
call fcn.004223a5
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x422569
cmp dword [esi], ebx
je 0x422569
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041430d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42254c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4225aa
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x422543
mov eax, edi
shl eax, 2
push eax
push dword [0x444330]
call fcn.00415ab8
cmp eax, ebx
pop ecx
pop ecx
je 0x4225aa
jmp 0x4225a5
cmp dword [ebp - 8], ebx
jne 0x422615
cmp edi, ebx
jge 0x422578
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x444330]
call fcn.00415ab8
cmp eax, ebx
pop ecx
pop ecx
je 0x4224c9
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 [0x444330], eax
cmp dword [ebp + 0xc], ebx
je 0x4225ff
push dword [ebp - 4]
call fcn.00415790
inc eax
inc eax
push eax
call fcn.00415028
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4225ff
push dword [ebp - 4]
push esi
call fcn.004198d0
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 0x4225f8
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041430d
pop ecx
cmp dword [ebp - 8], ebx
je 0x42260d
push dword [ebp - 4]
call fcn.0041430d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4224cc
push dword [ebp - 4]
call fcn.0041430d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4224d6
Function at 0x422628
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x438d88
call fcn.00416888
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4447e4], edi
jne 0x42266c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422657
mov dword [0x4447e4], ebx
jmp 0x42266c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42266c
mov dword [0x4447e4], 2
mov eax, dword [0x4447e4]
cmp eax, ebx
jne 0x42268c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x42274f
cmp eax, 2
je 0x422695
cmp eax, edi
jne 0x4226bd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4226a8
mov eax, dword [0x444740]
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 0x4226c4
xor eax, eax
jmp 0x42274f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00415120
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4226f7
cmp esi, edi
jne 0x42270d
push dword [ebp - 0x20]
call fcn.00415028
pop ecx
mov esi, eax
cmp esi, edi
je 0x4226bd
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 0x422740
cmp dword [ebp + 0x14], edi
jne 0x42272a
push edi
push edi
jmp 0x422730
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 0x42274c
push esi
call fcn.0041430d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004168c3
ret
Function at 0x422758
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x438d98
call fcn.00416888
xor esi, esi
cmp dword [0x4447e8], esi
jne 0x42279c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422787
mov dword [0x4447e8], edi
jmp 0x42279c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42279c
mov dword [0x4447e8], 2
mov eax, dword [0x4447e8]
cmp eax, 2
je 0x42287d
cmp eax, esi
je 0x42287d
cmp eax, 1
jne 0x4227e1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4227ca
mov eax, dword [0x444740]
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 0x4227e8
xor eax, eax
jmp 0x42288f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00415120
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x42281e
cmp edi, esi
jne 0x422839
lea eax, [ebx + ebx]
push eax
call fcn.00415028
pop ecx
mov edi, eax
cmp edi, esi
je 0x4227e1
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 0x42286c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x422856
push esi
push esi
jmp 0x42285c
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 0x422878
push edi
call fcn.0041430d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42288f
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.004168c3
ret
Function at 0x4241bd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00415120
mov eax, dword [0x441168]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041a1f8
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4242f0
push 2
push esi
push dword [ebp + 8]
call fcn.0041a1f8
add esp, 0xc
cmp eax, ebx
je 0x4242f0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x424290
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004159a0
push 0x8000
push dword [ebp + 8]
call fcn.004242fe
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x424246
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00419c06
add esp, 0xc
cmp eax, 0xffffffff
je 0x424266
sub edi, eax
test edi, edi
jg 0x42423e
jmp 0x42427e
call fcn.00416e23
cmp dword [eax], 5
jne 0x42427b
call fcn.00416e1a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004242fe
pop ecx
pop ecx
jmp 0x4242d8
jge 0x4242d8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a1f8
push dword [ebp + 8]
call fcn.0041e9ec
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 0x4242d8
call fcn.00416e1a
mov dword [eax], 0xd
call fcn.00416e23
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.0041a1f8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4242f2
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00413df8
leave
ret
Function at 0x4257b5
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.004159a0
add esp, 0xc
call fcn.0042eb79
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 0x425885
cmp dword [ebp - 8], ebx
je 0x425880
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x425687
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0041590c
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42588f
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 0x425858
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x425872
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 0x42588a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x425891
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x42588f
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x425898
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.0042a4ee
mov esi, eax
test esi, esi
jne 0x4258af
call fcn.004243e3
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.004257b5
test eax, eax
jne 0x4258d6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x4258f3
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x4258f1
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x42626b
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 0x4262a2
call fcn.0042eb89
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 0x4262b3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4262ec
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4262d1
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4262d9
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4262ea
test ax, ax
jne 0x4262ea
test si, si
je 0x4262ec
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4262fb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42654d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x432348
call fcn.00415424
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.0042eb89
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42659b
call fcn.0042eb89
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 0x4265ac
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4265b8
or eax, 0xffffffff
jmp 0x4266bb
mov ecx, esi
call fcn.0042608d
mov dword [ebp - 0x14], eax
call fcn.004285cb
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4265fb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4265fb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4265fb
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.00429816
push dword [ebp - 0x14]
call fcn.00428523
push edi
push eax
push ebx
mov ecx, esi
call fcn.00426340
xor ebx, ebx
cmp eax, ebx
je 0x42666f
test byte [esi + 0x38], 0x10
je 0x42663d
push 4
pop edi
mov ecx, esi
call fcn.00426852
test ah, 1
je 0x426635
push 5
pop edi
push edi
mov ecx, esi
call fcn.00427fc7
cmp dword [esi + 0x1c], ebx
je 0x42666f
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00426a76
jmp 0x42666f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x426683
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x42669c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42669c
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.004260c7
cmp dword [esi + 0x54], ebx
je 0x4266b8
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 0x426ee2
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4323b8
call fcn.00415424
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x426efc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x426f48
call fcn.0042a430
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.00401040
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x42a182
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 0x42a1c5
call fcn.0042eb89
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42a1c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42a1e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004292e7
test ebx, ebx
mov esi, eax
je 0x42a1de
test edi, edi
je 0x42a1de
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42aa94
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43259c
call fcn.00415424
sub esp, 0x150
mov eax, dword [0x441168]
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 0x42aadc
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x42aae0
cmp eax, esi
jb 0x42aae7
xor eax, eax
jmp 0x42abbc
call fcn.0042a430
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.0042aa52
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42abac
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 0x42ab3b
xor esi, esi
jmp 0x42abaf
test byte [ebp - 0x158], 2
jne 0x42ab4b
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x42abac
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42abac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x42ab37
cmp dword [ebp - 0x154], edi
jbe 0x42ab37
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 0x42ab37
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.00401040
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.00413df8
leave
ret 8