joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4384b8
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 0x43868c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x46f040]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43868c
test cl, 0x48
je 0x438523
cmp byte [eax + 5], 0xa
je 0x438523
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 0x438575
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43855d
call fcn.00431077
mov dword [eax], 9
call fcn.00431080
mov dword [eax], esi
jmp 0x43856d
cmp eax, 0x6d
je 0x43868c
push eax
call fcn.00431089
pop ecx
or eax, 0xffffffff
jmp 0x43868e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x438687
test eax, eax
je 0x43859c
cmp byte [ebx], 0xa
jne 0x43859c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4385a5
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 0x438681
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x438671
cmp al, 0xd
je 0x4385d7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x438663
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4385f1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4385ec
add dword [ebp + 0x10], 2
jmp 0x438645
mov dword [ebp + 0x10], eax
jmp 0x43865f
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 0x438619
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43865f
cmp dword [ebp - 0xc], 0
je 0x43865f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43863a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x438645
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x438662
cmp ebx, dword [ebp + 0xc]
jne 0x43864a
cmp byte [ebp - 1], 0xa
jne 0x43864a
mov byte [ebx], 0xa
jmp 0x438662
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00437ee1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x438663
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4385bb
jmp 0x438681
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x438681
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 0x43868e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439063
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46b600]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x46c140]
je 0x439098
inc eax
cmp eax, 0x13
jb 0x439089
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46c140]
jne 0x4391be
mov eax, dword [0x46e9cc]
cmp eax, 1
je 0x439196
cmp eax, edx
jne 0x4390c8
cmp dword [0x46baec], 1
je 0x439196
cmp ecx, 0xfc
je 0x4391be
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4390fe
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00437210
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00431c80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x439132
mov eax, edi
push eax
call fcn.00431c80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45f764
push edi
call fcn.0042f7b0
add esp, 0x10
push edi
call fcn.00431c80
push dword [esi + 0x46c144]
mov ebx, eax
call fcn.00431c80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042f240
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00437210
push edi
push ebx
call fcn.00437220
push 0x45f760
push ebx
call fcn.00437220
push dword [esi + 0x46c144]
push ebx
call fcn.00437220
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043a9a3
add esp, 0x2c
jmp 0x4391be
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46c144]
push dword [esi]
call fcn.00431c80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042f2ae
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43a9a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46edec], ebx
push esi
push edi
jne 0x43aa23
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43aa5e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4609f4
push edi
call esi
test eax, eax
mov dword [0x46edec], eax
je 0x43aa5e
push 0x4609e4
push edi
call esi
push 0x4609d0
push edi
mov dword [0x46edf0], eax
call esi
cmp dword [0x46e97c], 2
mov dword [0x46edf4], eax
jne 0x43aa23
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46edfc], eax
je 0x43aa23
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46edf8], eax
mov eax, dword [0x46edf8]
test eax, eax
je 0x43aa68
call eax
test eax, eax
je 0x43aa4f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46edfc]
test eax, eax
je 0x43aa4f
test byte [ebp - 8], 1
jne 0x43aa68
cmp dword [0x46e988], 4
jb 0x43aa62
or byte [ebp + 0x12], 0x20
jmp 0x43aa87
xor eax, eax
jmp 0x43aa97
or byte [ebp + 0x12], 4
jmp 0x43aa87
mov eax, dword [0x46edf0]
test eax, eax
je 0x43aa87
call eax
mov ebx, eax
test ebx, ebx
je 0x43aa87
mov eax, dword [0x46edf4]
test eax, eax
je 0x43aa87
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46edec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e026
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042f240
mov eax, dword [0x46b600]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00437ee1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x43e159
push 2
push esi
push dword [ebp + 8]
call fcn.00437ee1
add esp, 0xc
cmp eax, ebx
je 0x43e159
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43e0f9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00431820
push 0x8000
push dword [ebp + 8]
call fcn.0043ea64
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x43e0af
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00437431
add esp, 0xc
cmp eax, 0xffffffff
je 0x43e0cf
sub edi, eax
test edi, edi
jg 0x43e0a7
jmp 0x43e0e7
call fcn.00431080
cmp dword [eax], 5
jne 0x43e0e4
call fcn.00431077
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0043ea64
pop ecx
pop ecx
jmp 0x43e141
jge 0x43e141
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437ee1
push dword [ebp + 8]
call fcn.00438de4
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 0x43e141
call fcn.00431077
mov dword [eax], 0xd
call fcn.00431080
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.00437ee1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43e15b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042f2ae
leave
ret
Function at 0x43e167
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x461878
call fcn.004323ec
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x46ee74], edi
jne 0x43e1ab
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43e196
mov dword [0x46ee74], ebx
jmp 0x43e1ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43e1ab
mov dword [0x46ee74], 2
mov eax, dword [0x46ee74]
cmp eax, ebx
jne 0x43e1cb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x43e28e
cmp eax, 2
je 0x43e1d4
cmp eax, edi
jne 0x43e1fc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x43e1e7
mov eax, dword [0x46edbc]
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 0x43e203
xor eax, eax
jmp 0x43e28e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042f240
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x43e236
cmp esi, edi
jne 0x43e24c
push dword [ebp - 0x20]
call fcn.0042efc5
pop ecx
mov esi, eax
cmp esi, edi
je 0x43e1fc
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 0x43e27f
cmp dword [ebp + 0x14], edi
jne 0x43e269
push edi
push edi
jmp 0x43e26f
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 0x43e28b
push esi
call fcn.0042efd7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00432427
ret
Function at 0x43e297
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x461888
call fcn.004323ec
xor esi, esi
cmp dword [0x46ee78], esi
jne 0x43e2db
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43e2c6
mov dword [0x46ee78], edi
jmp 0x43e2db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43e2db
mov dword [0x46ee78], 2
mov eax, dword [0x46ee78]
cmp eax, 2
je 0x43e3bc
cmp eax, esi
je 0x43e3bc
cmp eax, 1
jne 0x43e320
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x43e309
mov eax, dword [0x46edbc]
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 0x43e327
xor eax, eax
jmp 0x43e3ce
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042f240
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x43e35d
cmp edi, esi
jne 0x43e378
lea eax, [ebx + ebx]
push eax
call fcn.0042efc5
pop ecx
mov edi, eax
cmp edi, esi
je 0x43e320
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 0x43e3ab
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43e395
push esi
push esi
jmp 0x43e39b
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 0x43e3b7
push edi
call fcn.0042efd7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x43e3ce
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.00432427
ret
Function at 0x43e88f
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 0x43e8a8
or eax, 0xffffffff
jmp 0x43e909
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43e905
push 0x3d
push esi
call fcn.004322ed
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43e905
cmp esi, eax
je 0x43e905
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46e99c]
sete cl
cmp eax, dword [0x46e9a0]
mov dword [ebp - 8], ecx
jne 0x43e8eb
mov edi, eax
call fcn.0043e82e
mov dword [0x46e99c], eax
cmp eax, ebx
jne 0x43e944
cmp dword [ebp + 0xc], ebx
je 0x43e90d
cmp dword [0x46e9a4], ebx
je 0x43e90d
call fcn.0043d898
test eax, eax
je 0x43e944
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43e916
xor eax, eax
jmp 0x43e908
push 4
call fcn.0042efc5
cmp eax, ebx
pop ecx
mov dword [0x46e99c], eax
je 0x43e905
mov dword [eax], ebx
cmp dword [0x46e9a4], ebx
jne 0x43e944
push 4
call fcn.0042efc5
cmp eax, ebx
pop ecx
mov dword [0x46e9a4], eax
je 0x43e905
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46e99c]
call fcn.0043e7e1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43e9a5
cmp dword [esi], ebx
je 0x43e9a5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042efd7
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43e988
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43e9e6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43e97f
mov eax, edi
shl eax, 2
push eax
push dword [0x46e99c]
call fcn.00431d0b
cmp eax, ebx
pop ecx
pop ecx
je 0x43e9e6
jmp 0x43e9e1
cmp dword [ebp - 8], ebx
jne 0x43ea51
cmp edi, ebx
jge 0x43e9b4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46e99c]
call fcn.00431d0b
cmp eax, ebx
pop ecx
pop ecx
je 0x43e905
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 [0x46e99c], eax
cmp dword [ebp + 0xc], ebx
je 0x43ea3b
push dword [ebp - 4]
call fcn.00431c80
inc eax
inc eax
push eax
call fcn.0042efc5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43ea3b
push dword [ebp - 4]
push esi
call fcn.00437210
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 0x43ea34
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042efd7
pop ecx
cmp dword [ebp - 8], ebx
je 0x43ea49
push dword [ebp - 4]
call fcn.0042efd7
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43e908
push dword [ebp - 4]
call fcn.0042efd7
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43e912
Function at 0x44192a
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 0x441961
call fcn.0044aef1
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 0x441972
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4419ab
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x441990
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x441998
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4419a9
test ax, ax
jne 0x4419a9
test si, si
je 0x4419ab
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4419ba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x441c0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44f703
call fcn.00431880
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.0044aef1
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x441c5a
call fcn.0044aef1
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 0x441c6b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x441c77
or eax, 0xffffffff
jmp 0x441d7a
mov ecx, esi
call fcn.0044174c
mov dword [ebp - 0x14], eax
call fcn.00443ec3
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x441cba
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x441cba
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x441cba
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.00445153
push dword [ebp - 0x14]
call fcn.00443e1b
push edi
push eax
push ebx
mov ecx, esi
call fcn.004419ff
xor ebx, ebx
cmp eax, ebx
je 0x441d2e
test byte [esi + 0x38], 0x10
je 0x441cfc
push 4
pop edi
mov ecx, esi
call fcn.00442200
test ah, 1
je 0x441cf4
push 5
pop edi
push edi
mov ecx, esi
call fcn.004438bf
cmp dword [esi + 0x1c], ebx
je 0x441d2e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00442429
jmp 0x441d2e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x441d42
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x441d5b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x441d5b
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.00441786
cmp dword [esi + 0x54], ebx
je 0x441d77
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 0x442895
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x44f75b
call fcn.00431880
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4428af
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4428fb
call fcn.00441eeb
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.00401050
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x444898
Capabilities:
Get graphical window text

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

Function at 0x445abf
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 0x445b02
call fcn.0044aef1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x445b02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x445b1d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00444c24
test ebx, ebx
mov esi, eax
je 0x445b1b
test edi, edi
je 0x445b1b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4476f9
Capabilities:
Get disk information

Disassembly:
mov eax, 0x44fe48
call fcn.00431880
sub esp, 0x150
mov eax, dword [0x46b600]
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 0x447741
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x447745
cmp eax, esi
jb 0x44774c
xor eax, eax
jmp 0x447821
call fcn.00441eeb
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.004476b7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x447811
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 0x4477a0
xor esi, esi
jmp 0x447814
test byte [ebp - 0x158], 2
jne 0x4477b0
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x447811
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x447811
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x44779c
cmp dword [ebp - 0x154], edi
jbe 0x44779c
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 0x44779c
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.00401050
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.0042f2ae
leave
ret 8