joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405860
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x288]
movq qword [ebp - 0x278], xmm0
movdqu xmmword [ebp - 0x288], xmm0
call fcn.00418fc5
push str.C:TL_DATA
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 0
push str._s.
push eax
call fcn.00408d40
add esp, 0xc
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x288]
push 0
push eax
call fcn.0041920f
test eax, eax
je 0x405a7e
lea ecx, [ebp - 0x288]
call fcn.004193c3
lea ecx, [ebp - 0x288]
mov edi, eax
call fcn.00419754
test eax, eax
jne 0x405a76
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x288]
call fcn.00419477
mov esi, eax
mov byte [ebp - 4], 1
mov edx, 1
mov ecx, dword [esi]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, 0xc8
or ecx, edx
jge 0x40594c
push 0xc8
mov ecx, esi
call fcn.00409c50
push dword [esi]
lea eax, [ebp - 0xd8]
push 0xc8
push eax
call fcn.0042ef54
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x290]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405986
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x288]
push 0x10
mov eax, dword [eax + 0x38]
call eax
test eax, eax
jne 0x405a76
lea eax, [ebp - 0xd8]
push eax
push str.C:TL_DATA
lea eax, [ebp - 0x268]
push str._s_s
push eax
call fcn.00408d40
add esp, 0x10
call fcn.0040aa4f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x405ad0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 2
push eax
push str.C:TL_DATA
lea eax, [ebp - 0x26c]
push str._s_s
push eax
call fcn.00409670
mov esi, dword [ebp - 0x26c]
add esp, 0x10
cmp dword [esi - 0xc], 0
jl 0x405a58
push str..jpg
push esi
call fcn.0042ed46
add esp, 8
test eax, eax
je 0x405a32
sub eax, esi
cmp eax, 0xffffffff
jne 0x405a51
cmp dword [esi - 0xc], 0
jl 0x405a58
push str..bmp
push esi
call fcn.0042ed46
add esp, 8
test eax, eax
je 0x405a58
sub eax, esi
cmp eax, 0xffffffff
je 0x405a58
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a76
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4058f1
lea ecx, [ebp - 0x288]
call fcn.004191c3
push str.C:TL_DATA
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
setne byte [ebp - 0x289]
call fcn.00419173
mov al, byte [ebp - 0x289]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004015f0
int3
Function at 0x406ce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x446081
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [esp + 0x54]
push 0x4641f8
push 0x104
push eax
call fcn.0042ef54
push str.DATAProName.txt
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0042efa9
add esp, 0x18
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406d66
xor al, al
jmp 0x406eb9
xorps xmm0, xmm0
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call fcn.0041980c
mov dword [esp + 0x170], 0
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movdqa xmmword [esp + 0x14], xmm0
call fcn.0040b232
mov dword [esp + 0x14], vtable.CFileException.0
call fcn.0040aa4f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406dc7
push 0x80004005
call fcn.004015f0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.00409b20
push 0
push 0x4000
lea eax, [esp + 0x5c]
mov byte [esp + 0x178], 2
push eax
lea ecx, [esp + 0x40]
call fcn.00419a7c
push esi
lea ecx, [esp + 0x38]
call fcn.00419bed
test eax, eax
je 0x406e65
mov esi, dword [esi]
mov ecx, 0x454537
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e44
test dl, dl
je 0x406e40
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e44
add eax, 2
add ecx, 2
test dl, dl
jne 0x406e24
xor eax, eax
jmp 0x406e49
sbb eax, eax
or eax, 1
test eax, eax
je 0x406e65
push esi
mov ecx, edi
call fcn.0040ca49
lea ecx, [esp + 0x34]
call fcn.0041996f
mov byte [esp + 0x13], 1
jmp 0x406e73
lea ecx, [esp + 0x34]
call fcn.0041996f
mov byte [esp + 0x13], 0
mov byte [esp + 0x170], 0
or ecx, 0xffffffff
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
mov dword [esp + 0x14], vtable.CFileException.0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406ea1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x170], 0xffffffff
call fcn.00419826
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 4
Function at 0x409780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
mov dword [edi], 0
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4097fb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4097cb
cmp eax, 2
jne 0x4097dd
mov eax, dword [ebp - 0xc]
test esi, esi
je 0x4097f7
test eax, eax
je 0x4097f4
cmp byte [esi + eax - 1], 0
je 0x4097f7
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409955
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409994
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409990
lea ebx, [ebx]
cmp esi, edx
jae 0x409994
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409980
cmp esi, edx
jb 0x409999
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40e790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40e7d5
call fcn.00418331
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e7d5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40e7f1
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040a231
mov ebx, eax
test edi, edi
je 0x40e7ef
test esi, esi
je 0x40e7ef
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41645a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4469f8
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00432040
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1028], ebx
cmp dword [ecx + 0x58], ebx
je 0x41658e
push ebx
push eax
call fcn.004165dd
mov ebx, eax
test ebx, ebx
jne 0x4164c2
push esi
jmp 0x4165b6
call fcn.0040aa4f
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401610
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1024], eax
test eax, eax
jne 0x41654d
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00409cc0
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x101c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1024], eax
call fcn.0041091c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1024], 0
jne 0x41657b
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00409690
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00401640
jmp 0x4165bd
push esi
mov ecx, edi
call fcn.00409e50
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x416574
test esi, esi
jne 0x416597
mov esi, 0x454537
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00409e50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41dd78
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41de0a
test esi, esi
je 0x41de0a
push esi
call fcn.0042f280
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.0042f1f0
mov eax, 0x100
add esp, 0x10
cmp ebx, eax
ja 0x41ddef
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x41ddef
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41ddf7
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 8
call fcn.0040b23c
int3
Function at 0x427378
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x230
mov eax, 0x4477d1
call fcn.0042f7ef
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x230], ebx
call fcn.00418331
push ebx
mov ecx, dword [eax + 4]
call fcn.00416200
mov esi, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
push 0x2001f
lea ecx, [ebp - 0x22c]
push dword [eax]
push esi
call fcn.00409870
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ecx - 0x10]
call fcn.00401640
inc bl
je 0x427526
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov esi, ebx
mov byte [ebp - 0x114], bl
call fcn.0042f1f0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x4274e2
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc esi
mov byte [ebp - 0x218], 0
call fcn.0042f1f0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00409780
test eax, eax
jne 0x4274cd
lea eax, [ebp - 0x114]
push eax
lea ecx, [edi + 4]
call fcn.004262eb
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00409dd0
mov dword [ebp - 0x230], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 0x22c]
call ebx
test eax, eax
je 0x427450
lea ecx, [ebp - 0x22c]
call fcn.0040a080
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
call dword [eax + 0x20]
lea ecx, [ebp - 0x23c]
push dword [eax]
call fcn.0042691a
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401640
lea ecx, [ebp - 0x22c]
call fcn.0040a080
lea ecx, [ebp - 0x23c]
call fcn.0040a080
mov eax, dword [ebp - 0x230]
call fcn.0042f79e
ret
Function at 0x42a353
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x447aad
call fcn.0042f7ef
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x42a381
call fcn.0040b23c
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x42a37c
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x42a3c9
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.0042fcdc
push eax
call fcn.00409160
add esp, 0x14
push ebx
push edi
call fcn.0042a326
xor eax, eax
jmp 0x42a4ea
cmp eax, 0x104
jb 0x42a3e6
test edi, edi
je 0x42a3c2
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00409dd0
jmp 0x42a3c2
call fcn.0040aa4f
push eax
lea ecx, [ebp - 0x15c]
call fcn.00401610
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.00429cfc
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42a4df
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x42a451
push ebx
push edi
call fcn.0042a326
lea ecx, [esi - 0x10]
call fcn.00401640
jmp 0x42a3c2
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x42a46d
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x42a4df
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42a4df
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x42a43d
cmp eax, dword [ebp - 0x158]
jbe 0x42a43d
lea eax, [ebp - 0x124]
push eax
call fcn.0042f280
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x42a4f2
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.0042ef54
push eax
call fcn.00409160
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00401640
xor eax, eax
inc eax
call fcn.0042f79e
ret 0xc
test edi, edi
je 0x42a444
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00409dd0
jmp 0x42a444
Function at 0x4401cc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0043629f
mov dword [ebp - 0x14], eax
cmp dword [0x463cb4], esi
jne 0x4402bf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x44024c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44039f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x44039f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44039f
push eax
call ebx
push 0x450724
push edi
mov dword [0x463cb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x450734
push edi
mov dword [0x463cb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x463cbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463cc4], eax
test eax, eax
je 0x4402bc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463cc0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4402e4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4402d7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4402f9
push 4
pop eax
jmp 0x4403a1
cmp dword [ebp - 0x14], esi
je 0x4402f9
push dword [0x463cb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4402de
mov eax, dword [0x463cc0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x440357
cmp dword [0x463cc4], edi
je 0x440357
push eax
call ebx
push dword [0x463cc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x440357
test eax, eax
je 0x440357
call ecx
test eax, eax
je 0x44034c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44034c
test byte [ebp - 8], 1
jne 0x440357
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x440387
mov eax, dword [0x463cb8]
cmp eax, edi
je 0x440384
push eax
call ebx
test eax, eax
je 0x440384
call eax
mov esi, eax
test esi, esi
je 0x440384
mov eax, dword [0x463cbc]
cmp eax, edi
je 0x440384
push eax
call ebx
test eax, eax
je 0x440384
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x463cb4]
call ebx
test eax, eax
je 0x44039f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4403a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret
Function at 0x403900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push edi
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x40393a
mov dword [ebx], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403962
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
test edi, edi
je 0x40398c
cmp edi, 1
je 0x40398c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esp + edi*4 + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test edi, edi
jne 0x4039a6
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esi + 4]
lea eax, [esp + 0x34]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test ebx, ebx
je 0x4039ce
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10

Function at 0x4039e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push edi
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x403a1a
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403a48
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
test edi, edi
je 0x403a72
cmp edi, 1
je 0x403a72
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esp + edi*4 + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test edi, edi
jne 0x403a8c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esi + 8]
lea eax, [esp + 0x34]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test ebx, ebx
je 0x403ab4
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x41b560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040dd30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b62b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b62b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b5de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b5e9
or bh, 8
and edi, 0x8000000
je 0x41b604
mov eax, dword [0x43bedc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b62b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret