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

Disassembly:
push 0x120
push 0x456d70
call fcn.00428eb8
mov eax, dword [0x465fd4]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4300de
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004268b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4300cb
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4300de
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4300f9
cmp byte [edi + 1], 0x3a
jne 0x4300f9
movzx eax, byte [edi]
push eax
call fcn.00434224
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x430109
push edi
call fcn.00425b82
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.00425d0f
call fcn.00428ef3
ret

Function at 0x432c95
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x432cc3
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x432cc8
cmp eax, 1
je 0x432cc8
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432ccc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x465fd4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x432d44
push ebx
call fcn.00432c95
test eax, eax
pop ecx
jne 0x432d13
call fcn.0042848f
mov dword [eax], 0xf
call fcn.00428486
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00425d0f
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 0x432d56
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x432d06
inc eax
cmp eax, 0x104
ja 0x432d06
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x432d8e
cmp eax, dword [ebp + 0x10]
jg 0x432d71
mov eax, dword [ebp + 0x10]
push eax
call fcn.00425c9a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x432da3
call fcn.00428486
mov dword [eax], 0xc
jmp 0x432d06
cmp eax, dword [ebp + 0x10]
jle 0x432da3
call fcn.00428486
mov dword [eax], 0x22
jmp 0x432d06
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00432b00
pop ecx
pop ecx
jmp 0x432d08
Function at 0x432dfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x469b9c], ebx
push esi
push edi
jne 0x432e7d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432eb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45ace4
push edi
call esi
test eax, eax
mov dword [0x469b9c], eax
je 0x432eb8
push 0x45acd4
push edi
call esi
push 0x45acc0
push edi
mov dword [0x469ba0], eax
call esi
cmp dword [0x469740], 2
mov dword [0x469ba4], eax
jne 0x432e7d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x469bac], eax
je 0x432e7d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x469ba8], eax
mov eax, dword [0x469ba8]
test eax, eax
je 0x432ec2
call eax
test eax, eax
je 0x432ea9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x469bac]
test eax, eax
je 0x432ea9
test byte [ebp - 8], 1
jne 0x432ec2
cmp dword [0x46974c], 4
jb 0x432ebc
or byte [ebp + 0x12], 0x20
jmp 0x432ee1
xor eax, eax
jmp 0x432ef1
or byte [ebp + 0x12], 4
jmp 0x432ee1
mov eax, dword [0x469ba0]
test eax, eax
je 0x432ee1
call eax
mov ebx, eax
test ebx, ebx
je 0x432ee1
mov eax, dword [0x469ba4]
test eax, eax
je 0x432ee1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x469b9c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43611e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004268b0
mov eax, dword [0x465fd4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042ed51
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x436251
push 2
push esi
push dword [ebp + 8]
call fcn.0042ed51
add esp, 0xc
cmp eax, ebx
je 0x436251
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4361f1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00428da0
push 0x8000
push dword [ebp + 8]
call fcn.00436b7a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4361a7
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042fb68
add esp, 0xc
cmp eax, 0xffffffff
je 0x4361c7
sub edi, eax
test edi, edi
jg 0x43619f
jmp 0x4361df
call fcn.0042848f
cmp dword [eax], 5
jne 0x4361dc
call fcn.00428486
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00436b7a
pop ecx
pop ecx
jmp 0x436239
jge 0x436239
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ed51
push dword [ebp + 8]
call fcn.00429308
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 0x436239
call fcn.00428486
mov dword [eax], 0xd
call fcn.0042848f
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.0042ed51
add esp, 0xc
mov eax, esi
pop edi
jmp 0x436253
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00425d0f
leave
ret
Function at 0x437034
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 0x43704d
or eax, 0xffffffff
jmp 0x4370ae
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4370aa
push 0x3d
push esi
call fcn.00425f2f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4370aa
cmp esi, eax
je 0x4370aa
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x469760]
sete cl
cmp eax, dword [0x469764]
mov dword [ebp - 8], ecx
jne 0x437090
mov edi, eax
call fcn.00436fd3
mov dword [0x469760], eax
cmp eax, ebx
jne 0x4370e9
cmp dword [ebp + 0xc], ebx
je 0x4370b2
cmp dword [0x469768], ebx
je 0x4370b2
call fcn.004362ad
test eax, eax
je 0x4370e9
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4370bb
xor eax, eax
jmp 0x4370ad
push 4
call fcn.00425c9a
cmp eax, ebx
pop ecx
mov dword [0x469760], eax
je 0x4370aa
mov dword [eax], ebx
cmp dword [0x469768], ebx
jne 0x4370e9
push 4
call fcn.00425c9a
cmp eax, ebx
pop ecx
mov dword [0x469768], eax
je 0x4370aa
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x469760]
call fcn.00436f86
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43714a
cmp dword [esi], ebx
je 0x43714a
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00425b82
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43712d
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43718b
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x437124
mov eax, edi
shl eax, 2
push eax
push dword [0x469760]
call fcn.00429060
cmp eax, ebx
pop ecx
pop ecx
je 0x43718b
jmp 0x437186
cmp dword [ebp - 8], ebx
jne 0x4371f6
cmp edi, ebx
jge 0x437159
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x469760]
call fcn.00429060
cmp eax, ebx
pop ecx
pop ecx
je 0x4370aa
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 [0x469760], eax
cmp dword [ebp + 0xc], ebx
je 0x4371e0
push dword [ebp - 4]
call fcn.00428cf0
inc eax
inc eax
push eax
call fcn.00425c9a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4371e0
push dword [ebp - 4]
push esi
call fcn.00432b00
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 0x4371d9
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00425b82
pop ecx
cmp dword [ebp - 8], ebx
je 0x4371ee
push dword [ebp - 4]
call fcn.00425b82
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4370ad
push dword [ebp - 4]
call fcn.00425b82
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4370b7
Function at 0x43b1de
Capabilities:
Get graphical window text

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

Function at 0x43c46e
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 0x43c4b1
call fcn.00448fff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43c4b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43c4cc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043b5d3
test ebx, ebx
mov esi, eax
je 0x43c4ca
test edi, edi
je 0x43c4ca
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43ce52
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x44e366
call fcn.00428d7c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x43ce77
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43cec3
call fcn.0043df98
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.00401480
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x43dd5b
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.00428da0
add esp, 0xc
call fcn.00448fef
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 0x43de2b
cmp dword [ebp - 8], ebx
je 0x43de26
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x43dc2d
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00428fca
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x43de35
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 0x43ddfe
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x43de18
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 0x43de30
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x43de37
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x43de35
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43de3e
Capabilities:
Resume thread

Disassembly:
mov eax, 0x44e3dc
call fcn.00428d7c
push ecx
push esi
push 0x40
call fcn.0043d3d6
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x43de6d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004490a5
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.0043dd5b
test eax, eax
jne 0x43de94
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x43deb1
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x43deaf
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 0x43e5d3
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.00428da0
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 [0x455230]
je 0x43e6da
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 0x43e643
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 0x43e64a
cmp ebx, ebx
jne 0x43e64a
xor eax, eax
jmp 0x43e6dd
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x43e657
mov byte [esi + 0x20], bl
jmp 0x43e66b
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.0041ceaa
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.0041ceaa
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.0041ceaa
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 0x43e6c6
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 0x43e6da
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 0x43ed70
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 0x43eda7
call fcn.00448fff
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 0x43edb8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x43edf1
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x43edd6
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x43edde
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x43edef
test ax, ax
jne 0x43edef
test si, si
je 0x43edf1
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x43ee00
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43f052
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44e678
call fcn.00428d7c
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.00448fff
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x43f0a0
call fcn.00448fff
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 0x43f0b1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x43f0bd
or eax, 0xffffffff
jmp 0x43f1c0
mov ecx, esi
call fcn.0043eb92
mov dword [ebp - 0x14], eax
call fcn.0043a6b4
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x43f100
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x43f100
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43f100
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.0043bb02
push dword [ebp - 0x14]
call fcn.0043a60c
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043ee45
xor ebx, ebx
cmp eax, ebx
je 0x43f174
test byte [esi + 0x38], 0x10
je 0x43f142
push 4
pop edi
mov ecx, esi
call fcn.0043c7a3
test ah, 1
je 0x43f13a
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043a0b0
cmp dword [esi + 0x1c], ebx
je 0x43f174
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0043c9f1
jmp 0x43f174
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x43f188
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x43f1a1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43f1a1
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.0043ebcc
cmp dword [esi + 0x54], ebx
je 0x43f1bd
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 0x43fc6d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x44e922
call fcn.00428d7c
sub esp, 0x150
mov eax, dword [0x465fd4]
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 0x43fcb5
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x43fcb9
cmp eax, esi
jb 0x43fcc0
xor eax, eax
jmp 0x43fd95
call fcn.0043df98
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.0043fc2b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x43fd85
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 0x43fd14
xor esi, esi
jmp 0x43fd88
test byte [ebp - 0x158], 2
jne 0x43fd24
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x43fd85
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x43fd85
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x43fd10
cmp dword [ebp - 0x154], edi
jbe 0x43fd10
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 0x43fd10
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.00401480
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.00425d0f
leave
ret 8

Function at 0x4419d5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x465fd4]
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 0x441a24
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x441a24
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x441a30
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00425d0f
leave
ret 8