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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d57e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e21c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
call fcn.00420515
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40e633
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov ecx, 1
mov dword [ebp - 4], 0
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
mov dword [ebp - 0x10], 1
or eax, ecx
jge 0x40e514
push 0x104
mov ecx, esi
call fcn.00402c40
mov ecx, dword [esi]
cmp dword [ecx - 8], 0x104
jl 0x40e629
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [esi]
push 0x104
push ecx
push 0x58edb8
mov word [eax + 0x208], dx
call fcn.005547fc
mov ecx, dword [esi]
mov ebx, eax
test ecx, ecx
je 0x40e563
push dword [ecx - 8]
push ecx
call fcn.0055bcca
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40e629
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40e629
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
or edi, 0xffffffff
mov word [eax + ecx*2], dx
test ebx, ebx
je 0x40e5c2
push str.D:_apreltechSibSiblSiblEnvTools.cpp
lea ecx, [ebp - 0x14]
call fcn.00401ee0
push 0x11e
push dword [eax]
mov dword [ebp - 4], 3
push ebx
call fcn.0041c5b0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call fcn.00554cf8
mov ebx, eax
test ebx, ebx
je 0x40e615
push str.D:_apreltechSibSiblSiblEnvTools.cpp
lea ecx, [ebp - 0x14]
call fcn.00401ee0
push 0x123
push dword [eax]
mov dword [ebp - 4], 4
push ebx
call fcn.0041c5b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40e615
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402110
push 0x80004005
call fcn.00402110
int3
Function at 0x41c280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e21c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.00420366
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], esi
test esi, esi
je 0x41c3ad
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41c3ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c3ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c3ad
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x41c336
nop
cmp esi, ecx
jae 0x41c3ad
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x41c320
cmp esi, ecx
jae 0x41c3ad
cmp word [esi], 0
je 0x41c3ad
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x41c35e
push edi
mov ecx, ebx
call fcn.00402c40
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.0055b9fc
add esp, 0x10
cmp eax, 0x50
ja case.0x41c37d.1
movzx eax, byte [eax + 0x41c3e8]
jmp dword [eax*4 + 0x41c3d8]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x41c3c8
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041f5a1
push 0x80070057
call fcn.00402110
call fcn.0041f587
nop
test bl, al
inc ecx
add bl, al
ret
Function at 0x41e250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e8f5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e21c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x10], 0
call fcn.004024b0
lea ecx, [ebx + 8]
call fcn.004024b0
mov dword [ebp - 4], 1
call fcn.00420515
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x41e453
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 2
cmp dword [eax + 0xc], 6
jne 0x41e38d
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0041e470
mov byte [ebp - 4], 4
call fcn.00420515
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x41e45d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push esi
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push str.ca_d
push eax
call fcn.00407410
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], eax
push eax
call fcn.00405440
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0041e8c0
mov esi, eax
test esi, esi
je 0x41e35e
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.00409770
mov ecx, dword [ebp + 8]
call fcn.00416350
test al, al
jne 0x41e35e
mov dword [0x5e6ac8], 1
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e37a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x41e38d
push 0xd
push str.Action_failed
lea ecx, [ebx + 0xc]
call fcn.004094b0
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x5901ec
push eax
call fcn.00407410
mov eax, dword [ebp + 8]
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov ecx, 0x5e6ad4
push dword [ebx + 0xc]
push dword [ebx + 8]
push esi
push dword [eax + 4]
push str.AddActionResult
call fcn.00402ee0
mov eax, dword [ebx + 0x1c]
xor edi, edi
test eax, eax
jle 0x41e416
nop dword [eax]
test edi, edi
js 0x41e44e
cmp edi, eax
jge 0x41e44e
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.00405440
mov ebx, eax
add esp, 4
lea ecx, [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or ecx, 0xffffffff
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41e40b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov eax, dword [ebx + 0x1c]
cmp edi, eax
jl 0x41e3d0
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x14]
call fcn.004247a9
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e43a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0041f587
push 0x80004005
call fcn.00402110
push 0x80004005
call fcn.00402110
int3
Function at 0x41e770
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e99d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e21c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov edi, dword [0x5e6ad0]
push 0xffffffffffffffff
call fcn.0041e470
push 0
push dword [0x5e6aec]
mov ecx, 0x5e6ad4
call fcn.00402810
push 0x41d9e0
push 0
push dword [0x5e6af4]
mov ecx, 0x5e6ad4
push 0x59020c
call fcn.004030f0
mov ecx, dword [esi]
test edi, edi
js 0x41e8b3
cmp edi, dword [ecx + 0x3c]
jge 0x41e8b3
imul ebx, edi, 0xb8
push edi
add ebx, dword [ecx + 0x38]
call fcn.00405010
test al, al
je 0x41e88a
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
je 0x41e860
push 0
push dword [esi + 4]
call fcn.00554cf8
mov dword [ebp + 8], eax
test eax, eax
je 0x41e860
push str.D:_apreltechSibSiblSibJsInstall.cpp
lea ecx, [ebp - 0x10]
call fcn.00401ee0
push 0x42
push dword [eax]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0041c5b0
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e860
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi + 4]
call fcn.00554dd1
test eax, eax
je 0x41e87b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x41e88a
push 0
push dword [esi + 4]
push 3
call fcn.0041c5b0
add esp, 0xc
push edi
push ebx
mov ecx, esi
call fcn.0041e250
push dword [0x5e6aec]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041f587
int3
Function at 0x41ed30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ea55
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5e21c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 1
mov dword [0x5e6ac0], 0
call fcn.0041e9c0
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00420515
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x41ef23
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00402130
test al, al
jne 0x41edca
test esi, esi
jne 0x41edac
xor ecx, ecx
jmp 0x41edc0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41edb1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004094b0
mov eax, dword [ebp - 0x10]
mov edx, 0x5902e4
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x41edfa
test si, si
je 0x41edf6
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x41edfa
add ecx, 4
add edx, 4
test si, si
jne 0x41edd4
xor edx, edx
jmp 0x41edff
sbb edx, edx
or edx, 1
xor ecx, ecx
mov byte [ebp - 4], 1
test edx, edx
lea edx, [eax - 0x10]
sete cl
or edi, 0xffffffff
mov dword [0x5e6abc], ecx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ee2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp + 8]
push 0x5902e8
push eax
call fcn.00409e80
add esp, 8
test al, al
je 0x41ee49
mov dword [0x5e6ac4], 1
call fcn.0041ef30
test al, al
je 0x41eee0
push 0
push 0
push 0x41daa0
call fcn.00566dd5
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5e6b50], 0
je 0x41eee0
cmp dword [0x5e6ac8], 0
je 0x41eee0
push 0x96
lea eax, [ebp - 0x10]
mov ecx, 0x5e6ae4
push eax
call fcn.00408050
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00403b00
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41eec6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41eee0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41eefa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41ef12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402110
int3
Function at 0x421a81
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x421aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421ab1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00404e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00426f28
int3

Function at 0x421e0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x421e1c
xor eax, eax
jmp 0x421e38
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421e3d
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00404e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00426f28
int3

Function at 0x421edb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x58d988]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x421f0e
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00404e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00426f28
int3

Function at 0x421fe7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x422012
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422018
cmp dword [ebp - 4], esi
jne 0x42202f
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00404e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00426f28
lea ecx, [edi + 0xc]
call fcn.00404e10
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00426b7e
int3
Function at 0x424cb6
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x424d32
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x424cf7
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x424cf7
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x424d25
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x424d28
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x424d1f
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58d988]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x424cdb
test eax, eax
je 0x424d79
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.00424f90
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58d988]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x424fe2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x57ef14
call fcn.00553a08
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4250d9
cmp edi, dword [ebx + 0xc]
jge 0x4250d9
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x425039
cmp edi, dword [esi + 8]
jl 0x4250c7
cmp dword [ebp + 0xc], 0
je 0x4250c7
xor edi, edi
jmp 0x42506b
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00424a9a
mov esi, eax
test esi, esi
je 0x425053
mov dword [esi], vtable.CThreadData.0
jmp 0x425055
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004203d9
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x425087
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x425093
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x425100
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00558530
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4250d9
cmp edi, dword [esi + 8]
jge 0x4250d9
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055396d
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041f5a1
int3
Function at 0x42730e
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5e21c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00558530
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00566f44
push eax
call fcn.00405040
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x590588]
je 0x42746c
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x427480
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x427480
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4273ca
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4273be
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004270bf
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4273c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4273cc
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004275bf
test eax, eax
je 0x4273f3
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426f46
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4273f7
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004275bf
test eax, eax
je 0x42741e
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426f46
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x427422
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004275bf
test eax, eax
je 0x42744a
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426f46
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x42744c
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x42745e
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x42746c
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005533da
leave
ret 4
xor eax, eax
jmp 0x42746f
Function at 0x428522
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00428a0f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42855e
call fcn.0042873f
mov dword [esi + 0xc], 1
jmp 0x428563
call fcn.0042873f
cmp dword [esi], 0
je 0x4285ae
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x428589
push edi
call fcn.0041d220
lea ecx, [edi + 1]
push ecx
jmp 0x428598
push 0xff
call fcn.0041fd13
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041d330
pop edi
jmp 0x4285d2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4285d2
push dword [esi]
push dword [ebp - 4]
call fcn.00427e2c
pop esi
leave
ret 0xc

Function at 0x428696
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0042873f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4286de
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d220
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041d330
jmp 0x4286e9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00427e2c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x428ac9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57e99d
call fcn.0055399f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x428aef
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x428b49
lea ecx, [ebp - 0x10]
call fcn.00409980
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x58d988]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00566f44
push eax
call fcn.00405040
add esp, 0x14
test esi, esi
je 0x428b3c
push esi
call fcn.0055bba2
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041fd9d
mov eax, ebx
call fcn.0055396d
ret 8