joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc8a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x455e64]
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 + 0x456408]
je 0x42ccbf
inc eax
cmp eax, 0x13
jb 0x42ccb0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x456408]
jne 0x42cde5
mov eax, dword [0x56a670]
cmp eax, 1
je 0x42cdbd
cmp eax, edx
jne 0x42ccef
cmp dword [0x455e74], 1
je 0x42cdbd
cmp ecx, 0xfc
je 0x42cde5
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 0x42cd25
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042fa40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00428e80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42cd59
mov eax, edi
push eax
call fcn.00428e80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x448738
push edi
call fcn.00428770
add esp, 0x10
push edi
call fcn.00428e80
push dword [esi + 0x45640c]
mov ebx, eax
call fcn.00428e80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00427d50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042fa40
push edi
push ebx
call fcn.0042fa50
push 0x444f34
push ebx
call fcn.0042fa50
push dword [esi + 0x45640c]
push ebx
call fcn.0042fa50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043053a
add esp, 0x2c
jmp 0x42cde5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45640c]
push dword [esi]
call fcn.00428e80
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.00427501
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43053a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56aa98], ebx
push esi
push edi
jne 0x4305ba
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4305f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x449554
push edi
call esi
test eax, eax
mov dword [0x56aa98], eax
je 0x4305f5
push 0x449544
push edi
call esi
push 0x449530
push edi
mov dword [0x56aa9c], eax
call esi
cmp dword [0x56a624], 2
mov dword [0x56aaa0], eax
jne 0x4305ba
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56aaa8], eax
je 0x4305ba
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56aaa4], eax
mov eax, dword [0x56aaa4]
test eax, eax
je 0x4305ff
call eax
test eax, eax
je 0x4305e6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56aaa8]
test eax, eax
je 0x4305e6
test byte [ebp - 8], 1
jne 0x4305ff
cmp dword [0x56a630], 4
jb 0x4305f9
or byte [ebp + 0x12], 0x20
jmp 0x43061e
xor eax, eax
jmp 0x43062e
or byte [ebp + 0x12], 4
jmp 0x43061e
mov eax, dword [0x56aa9c]
test eax, eax
je 0x43061e
call eax
mov ebx, eax
test ebx, ebx
je 0x43061e
mov eax, dword [0x56aaa0]
test eax, eax
je 0x43061e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56aa98]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430ab5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x455e64]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x430ae6
xor eax, eax
jmp 0x430c6f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x56bbe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x430b22
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00432381
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x430bfd
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x430c3b
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x430b86
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x430b77
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x430b57
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430bc6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x430bcf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x430b48
jmp 0x430bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x430c6a
cmp dword [ebp - 0x6c], edi
je 0x430c3b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x430c30
call fcn.00429cda
mov dword [eax], 9
call fcn.00429ce3
mov dword [eax], esi
jmp 0x430c65
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430c25
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x430bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x430bd1
push dword [ebp - 0x6c]
call fcn.00429cec
pop ecx
jmp 0x430c65
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x430c53
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x430c53
xor eax, eax
jmp 0x430c6d
call fcn.00429cda
mov dword [eax], 0x1c
call fcn.00429ce3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x430c6d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00427501
add ebp, 0x3a0
leave
ret
Function at 0x432fdd
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 0x4331b1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x56bbe0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4331b1
test cl, 0x48
je 0x433048
cmp byte [eax + 5], 0xa
je 0x433048
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 0x43309a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x433082
call fcn.00429cda
mov dword [eax], 9
call fcn.00429ce3
mov dword [eax], esi
jmp 0x433092
cmp eax, 0x6d
je 0x4331b1
push eax
call fcn.00429cec
pop ecx
or eax, 0xffffffff
jmp 0x4331b3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4331ac
test eax, eax
je 0x4330c1
cmp byte [ebx], 0xa
jne 0x4330c1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4330ca
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 0x4331a6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x433196
cmp al, 0xd
je 0x4330fc
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x433188
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x433116
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x433111
add dword [ebp + 0x10], 2
jmp 0x43316a
mov dword [ebp + 0x10], eax
jmp 0x433184
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 0x43313e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x433184
cmp dword [ebp - 0xc], 0
je 0x433184
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43315f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43316a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x433187
cmp ebx, dword [ebp + 0xc]
jne 0x43316f
cmp byte [ebp - 1], 0xa
jne 0x43316f
mov byte [ebx], 0xa
jmp 0x433187
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430996
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x433188
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4330e0
jmp 0x4331a6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4331a6
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 0x4331b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43371f
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 0x433738
or eax, 0xffffffff
jmp 0x433799
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x433795
push 0x3d
push esi
call fcn.00429460
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x433795
cmp esi, eax
je 0x433795
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x56a644]
sete cl
cmp eax, dword [0x56a648]
mov dword [ebp - 8], ecx
jne 0x43377b
mov edi, eax
call fcn.004336be
mov dword [0x56a644], eax
cmp eax, ebx
jne 0x4337d4
cmp dword [ebp + 0xc], ebx
je 0x43379d
cmp dword [0x56a64c], ebx
je 0x43379d
call fcn.00432452
test eax, eax
je 0x4337d4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4337a6
xor eax, eax
jmp 0x433798
push 4
call fcn.00427e34
cmp eax, ebx
pop ecx
mov dword [0x56a644], eax
je 0x433795
mov dword [eax], ebx
cmp dword [0x56a64c], ebx
jne 0x4337d4
push 4
call fcn.00427e34
cmp eax, ebx
pop ecx
mov dword [0x56a64c], eax
je 0x433795
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x56a644]
call fcn.00433671
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x433835
cmp dword [esi], ebx
je 0x433835
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00427e46
cmp dword [ebp - 8], ebx
pop ecx
jne 0x433818
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x433876
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43380f
mov eax, edi
shl eax, 2
push eax
push dword [0x56a644]
call fcn.004285b7
cmp eax, ebx
pop ecx
pop ecx
je 0x433876
jmp 0x433871
cmp dword [ebp - 8], ebx
jne 0x4338e1
cmp edi, ebx
jge 0x433844
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x56a644]
call fcn.004285b7
cmp eax, ebx
pop ecx
pop ecx
je 0x433795
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 [0x56a644], eax
cmp dword [ebp + 0xc], ebx
je 0x4338cb
push dword [ebp - 4]
call fcn.00428e80
inc eax
inc eax
push eax
call fcn.00427e34
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4338cb
push dword [ebp - 4]
push esi
call fcn.0042fa40
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 0x4338c4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00427e46
pop ecx
cmp dword [ebp - 8], ebx
je 0x4338d9
push dword [ebp - 4]
call fcn.00427e46
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x433798
push dword [ebp - 4]
call fcn.00427e46
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4337a2
Function at 0x4345dd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00427d50
mov eax, dword [0x455e64]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00430996
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x434710
push 2
push esi
push dword [ebp + 8]
call fcn.00430996
add esp, 0xc
cmp eax, ebx
je 0x434710
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4346b0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00428f40
push 0x8000
push dword [ebp + 8]
call fcn.0043471e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x434666
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00430ab5
add esp, 0xc
cmp eax, 0xffffffff
je 0x434686
sub edi, eax
test edi, edi
jg 0x43465e
jmp 0x43469e
call fcn.00429ce3
cmp dword [eax], 5
jne 0x43469b
call fcn.00429cda
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0043471e
pop ecx
pop ecx
jmp 0x4346f8
jge 0x4346f8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430996
push dword [ebp + 8]
call fcn.00432102
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 0x4346f8
call fcn.00429cda
mov dword [eax], 0xd
call fcn.00429ce3
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.00430996
add esp, 0xc
mov eax, esi
pop edi
jmp 0x434712
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00427501
leave
ret

Function at 0x438f05
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 0x438f48
call fcn.0043f272
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x438f48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x438f63
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043806a
test ebx, ebx
mov esi, eax
je 0x438f61
test edi, edi
je 0x438f61
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x43963a
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 0x439671
call fcn.0043f272
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 0x439682
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4396bb
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4396a0
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4396a8
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4396b9
test ax, ax
jne 0x4396b9
test si, si
je 0x4396bb
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4396ca
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43991c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x442669
call fcn.00428b20
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.0043f272
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x43996a
call fcn.0043f272
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 0x43997b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x439987
or eax, 0xffffffff
jmp 0x439a8a
mov ecx, esi
call fcn.0043945c
mov dword [ebp - 0x14], eax
call fcn.0043734e
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4399ca
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4399ca
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4399ca
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.00438599
push dword [ebp - 0x14]
call fcn.004372a6
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043970f
xor ebx, ebx
cmp eax, ebx
je 0x439a3e
test byte [esi + 0x38], 0x10
je 0x439a0c
push 4
pop edi
mov ecx, esi
call fcn.00439c21
test ah, 1
je 0x439a04
push 5
pop edi
push edi
mov ecx, esi
call fcn.00436d4a
cmp dword [esi + 0x1c], ebx
je 0x439a3e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00439e45
jmp 0x439a3e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x439a52
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x439a6b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x439a6b
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.00439496
cmp dword [esi + 0x54], ebx
je 0x439a87
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 0x43a2b1
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4426b5
call fcn.00428b20
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x43a2cb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43a317
call fcn.0043a4f2
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.00401b10
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x43ab10
Capabilities:
Get disk information

Disassembly:
mov eax, 0x442824
call fcn.00428b20
sub esp, 0x150
mov eax, dword [0x455e64]
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 0x43ab58
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x43ab5c
cmp eax, esi
jb 0x43ab63
xor eax, eax
jmp 0x43ac38
call fcn.0043a4f2
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.0043aace
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x43ac28
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 0x43abb7
xor esi, esi
jmp 0x43ac2b
test byte [ebp - 0x158], 2
jne 0x43abc7
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x43ac28
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x43ac28
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x43abb3
cmp dword [ebp - 0x154], edi
jbe 0x43abb3
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 0x43abb3
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.00401b10
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.00427501
leave
ret 8
Function at 0x43b811
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00428f40
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x447544]
je 0x43b918
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43b881
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x43b888
cmp ebx, ebx
jne 0x43b888
xor eax, eax
jmp 0x43b91b
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x43b895
mov byte [esi + 0x20], bl
jmp 0x43b8a9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00426df6
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00426df6
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00426df6
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x43b904
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x43b918
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43c51d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x455e64]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x43c56c
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x43c56c
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x43c578
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00427501
leave
ret 8