joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f591
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00447215
test eax, eax
pop ecx
jne 0x44f5ad
or eax, 0xffffffff
jmp 0x44f78a
mov dword [0x4e6220], eax
mov dword [0x4e6208], 0x20
lea ecx, [eax + 0x480]
jmp 0x44f5e2
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x4e6220]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x44f5c4
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x44f6e9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44f6e9
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x44f623
mov edi, eax
cmp dword [0x4e6208], edi
jge 0x44f679
mov esi, 0x4e6224
push ebx
call fcn.00447215
test eax, eax
pop ecx
je 0x44f673
add dword [0x4e6208], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x44f662
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x44f64c
add esi, 4
cmp dword [0x4e6208], edi
jl 0x44f630
jmp 0x44f679
mov edi, dword [0x4e6208]
xor ebx, ebx
test edi, edi
jle 0x44f6e9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x44f6de
mov cl, byte [ebp]
test cl, 1
je 0x44f6de
test cl, 8
jne 0x44f6a2
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x44f6de
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4e6220]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004541f9
test eax, eax
pop ecx
pop ecx
je 0x44f709
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x44f67f
xor ebx, ebx
mov ecx, dword [0x4e6220]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x44f76b
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x44f70e
push 0xfffffffffffffff6
pop eax
jmp 0x44f718
or eax, 0xffffffff
jmp 0x44f787
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f765
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x44f765
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x44f743
or byte [esi + 4], 0x40
jmp 0x44f74c
cmp eax, 3
jne 0x44f74c
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004541f9
test eax, eax
pop ecx
pop ecx
je 0x44f709
inc dword [esi + 8]
jmp 0x44f76f
or byte [esi + 4], 0x40
jmp 0x44f76f
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x44f6eb
push dword [0x4e6208]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x450d8b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00447580
mov eax, dword [0x493790]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0044efa5
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x450ebe
push 2
push esi
push dword [ebp + 8]
call fcn.0044efa5
add esp, 0xc
cmp eax, ebx
je 0x450ebe
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x450e5e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044ab80
push 0x8000
push dword [ebp + 8]
call fcn.004551ad
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x450e14
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004496b4
add esp, 0xc
cmp eax, 0xffffffff
je 0x450e34
sub edi, eax
test edi, edi
jg 0x450e0c
jmp 0x450e4c
call fcn.0044a396
cmp dword [eax], 5
jne 0x450e49
call fcn.0044a38d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004551ad
pop ecx
pop ecx
jmp 0x450ea6
jge 0x450ea6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044efa5
push dword [ebp + 8]
call fcn.004509b5
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 0x450ea6
call fcn.0044a38d
mov dword [eax], 0xd
call fcn.0044a396
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.0044efa5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x450ec0
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004475ee
leave
ret

Function at 0x453d4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x453d7a
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 0x453d7f
cmp eax, 1
je 0x453d7f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x453d83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x493790]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x453dfb
push ebx
call fcn.00453d4c
test eax, eax
pop ecx
jne 0x453dca
call fcn.0044a396
mov dword [eax], 0xf
call fcn.0044a38d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004475ee
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 0x453e0d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x453dbd
inc eax
cmp eax, 0x104
ja 0x453dbd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x453e45
cmp eax, dword [ebp + 0x10]
jg 0x453e28
mov eax, dword [ebp + 0x10]
push eax
call fcn.00447215
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x453e5a
call fcn.0044a38d
mov dword [eax], 0xc
jmp 0x453dbd
cmp eax, dword [ebp + 0x10]
jle 0x453e5a
call fcn.0044a38d
mov dword [eax], 0x22
jmp 0x453dbd
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00451080
pop ecx
pop ecx
jmp 0x453dbf

Function at 0x454284
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4e6128], ebx
push esi
push edi
jne 0x454304
push 0x481e74
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45433f
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4876b4
push edi
call esi
test eax, eax
mov dword [0x4e6128], eax
je 0x45433f
push 0x4876a4
push edi
call esi
push 0x487690
push edi
mov dword [0x4e612c], eax
call esi
cmp dword [0x4e5cf8], 2
mov dword [0x4e6130], eax
jne 0x454304
push 0x487674
push edi
call esi
test eax, eax
mov dword [0x4e6138], eax
je 0x454304
push 0x48765c
push edi
call esi
mov dword [0x4e6134], eax
mov eax, dword [0x4e6134]
test eax, eax
je 0x454349
call eax
test eax, eax
je 0x454330
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4e6138]
test eax, eax
je 0x454330
test byte [ebp - 8], 1
jne 0x454349
cmp dword [0x4e5d04], 4
jb 0x454343
or byte [ebp + 0x12], 0x20
jmp 0x454368
xor eax, eax
jmp 0x454378
or byte [ebp + 0x12], 4
jmp 0x454368
mov eax, dword [0x4e612c]
test eax, eax
je 0x454368
call eax
mov ebx, eax
test ebx, ebx
je 0x454368
mov eax, dword [0x4e6130]
test eax, eax
je 0x454368
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4e6128]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x457d4f
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 0x457d68
or eax, 0xffffffff
jmp 0x457dc9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x457dc5
push 0x3d
push esi
call fcn.00448ec4
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x457dc5
cmp esi, eax
je 0x457dc5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4e5d18]
sete cl
cmp eax, dword [0x4e5d1c]
mov dword [ebp - 8], ecx
jne 0x457dab
mov edi, eax
call fcn.00457cee
mov dword [0x4e5d18], eax
cmp eax, ebx
jne 0x457e04
cmp dword [ebp + 0xc], ebx
je 0x457dcd
cmp dword [0x4e5d20], ebx
je 0x457dcd
call fcn.00456b8a
test eax, eax
je 0x457e04
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x457dd6
xor eax, eax
jmp 0x457dc8
push 4
call fcn.00447215
cmp eax, ebx
pop ecx
mov dword [0x4e5d18], eax
je 0x457dc5
mov dword [eax], ebx
cmp dword [0x4e5d20], ebx
jne 0x457e04
push 4
call fcn.00447215
cmp eax, ebx
pop ecx
mov dword [0x4e5d20], eax
je 0x457dc5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4e5d18]
call fcn.00457ca1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x457e65
cmp dword [esi], ebx
je 0x457e65
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00447227
cmp dword [ebp - 8], ebx
pop ecx
jne 0x457e48
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x457ea6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x457e3f
mov eax, edi
shl eax, 2
push eax
push dword [0x4e5d18]
call fcn.0044b0fc
cmp eax, ebx
pop ecx
pop ecx
je 0x457ea6
jmp 0x457ea1
cmp dword [ebp - 8], ebx
jne 0x457f11
cmp edi, ebx
jge 0x457e74
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4e5d18]
call fcn.0044b0fc
cmp eax, ebx
pop ecx
pop ecx
je 0x457dc5
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 [0x4e5d18], eax
cmp dword [ebp + 0xc], ebx
je 0x457efb
push dword [ebp - 4]
call fcn.0044af40
inc eax
inc eax
push eax
call fcn.00447215
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x457efb
push dword [ebp - 4]
push esi
call fcn.00451080
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 0x457ef4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00447227
pop ecx
cmp dword [ebp - 8], ebx
je 0x457f09
push dword [ebp - 4]
call fcn.00447227
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x457dc8
push dword [ebp - 4]
call fcn.00447227
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x457dd2
Function at 0x458310
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x488160
call fcn.0044b408
mov eax, dword [0x493790]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x45841d
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x4583ce
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00447580
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x4583bb
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x45841d
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x45841d
mov al, byte [edi]
cmp al, 0x5c
je 0x4583dc
cmp al, 0x2f
jne 0x4583e1
cmp al, byte [edi + 1]
je 0x458417
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00458453
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x45841d
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0044a39f
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x458439
push edi
call fcn.00447227
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.004475ee
call fcn.0044b443
ret
Function at 0x4587d1
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x471695
call fcn.0044abe0
sub esp, 0x9c
mov eax, dword [0x493790]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.0045b0ea
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], 0x480314
call fcn.00402020
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x458862
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0044ab80
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x45885b
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x458862
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00447215
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x458877
call fcn.00458551
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0044ab80
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x4588f4
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0046a9b7
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x458d6d
je 0x458920
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x458956
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401910
push ebx
mov ecx, edi
call fcn.00401700
jmp 0x45893f
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00448ec4
cmp eax, ebx
pop ecx
pop ecx
jne 0x45893c
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004475ee
leave
ret 0x1c
Function at 0x45b776
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x471410
call fcn.0044abe0
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.0046a9b7
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x45b7c4
call fcn.0046a9b7
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 0x45b7d5
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x45b7e1
or eax, 0xffffffff
jmp 0x45b8e4
mov ecx, esi
call fcn.0045b2b6
mov dword [ebp - 0x14], eax
call fcn.0045d198
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x45b824
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45b824
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x45b824
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.0045e72e
push dword [ebp - 0x14]
call fcn.0045d0f0
push edi
push eax
push ebx
mov ecx, esi
call fcn.0045b569
xor ebx, ebx
cmp eax, ebx
je 0x45b898
test byte [esi + 0x38], 0x10
je 0x45b866
push 4
pop edi
mov ecx, esi
call fcn.0045f415
test ah, 1
je 0x45b85e
push 5
pop edi
push edi
mov ecx, esi
call fcn.0045cb94
cmp dword [esi + 0x1c], ebx
je 0x45b898
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0045f663
jmp 0x45b898
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x45b8ac
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x45b8c5
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45b8c5
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.0045b2f0
cmp dword [esi + 0x54], ebx
je 0x45b8e1
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 0x45de0a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x45de43
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.0043e004
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043dee0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x45f09a
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 0x45f0dd
call fcn.0046a9b7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x45f0dd
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45f0f8
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045e1ff
test ebx, ebx
mov esi, eax
je 0x45f0f6
test edi, edi
je 0x45f0f6
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45fac4
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x471540
call fcn.0044abe0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x45fae9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x45fb35
call fcn.00460104
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_lstrlen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x460b5a
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.0044ab80
add esp, 0xc
call fcn.0046a9a7
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 0x460c2a
cmp dword [ebp - 8], ebx
je 0x460c25
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x460a2c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0044b36f
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x460c34
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 0x460bfd
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x460c17
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 0x460c2f
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x460c36
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x460c34
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x460c3d
Capabilities:
Resume thread

Disassembly:
mov eax, 0x471610
call fcn.0044abe0
push ecx
push esi
push 0x40
call fcn.0046032c
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x460c6c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046a64d
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.00460b5a
test eax, eax
jne 0x460c93
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x460cb0
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x460cae
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 0x461cb5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4719ea
call fcn.0044abe0
sub esp, 0x150
mov eax, dword [0x493790]
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 0x461cfd
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpynA]
jmp 0x461d01
cmp eax, esi
jb 0x461d08
xor eax, eax
jmp 0x461ddd
call fcn.00460104
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.00461c73
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x461dcd
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 0x461d5c
xor esi, esi
jmp 0x461dd0
test byte [ebp - 0x158], 2
jne 0x461d6c
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x461dcd
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x461dcd
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x461d58
cmp dword [ebp - 0x154], edi
jbe 0x461d58
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x461d58
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.004012d0
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.004475ee
leave
ret 8