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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x43a4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40ae69
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40acc3
sub eax, edx
sar eax, 1
je 0x40ae69
push edi
call dword [0x4331e8]
test eax, eax
je 0x40ae69
push 0x14
push 0x65
push ebx
call dword [0x4330d8]
mov esi, eax
cmp esi, ebx
je 0x40ae5b
push esi
push ebx
call dword [0x4330e4]
mov edi, eax
cmp edi, ebx
je 0x40ae69
push esi
push ebx
call dword [0x4330dc]
cmp eax, ebx
je 0x40ae69
push eax
call dword [0x4330e0]
cmp eax, ebx
je 0x40ae69
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x30]
push ecx
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405060
add esp, 8
cmp eax, ebx
je 0x40ae42
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, esi
je 0x40ae42
mov edx, dword [ebp + 8]
push 0x4368b8
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00420bc4
add esp, 0xc
test eax, eax
jne 0x40ae42
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40ae42
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.00420d62
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00420e49
add esp, 0x14
cmp esi, ebx
je 0x40ae42
lea esi, [ebp - 0x20]
call fcn.004043a0
push 0x6b
mov byte [ebp - 4], 2
call fcn.00404940
add esp, 4
cmp eax, ebx
je 0x40ae3a
push eax
mov eax, 0x6b
mov edi, esi
call fcn.00404510
cmp eax, ebx
je 0x40ae3a
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], ebx
je 0x40ae3a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004043c0
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040d6f0
mov eax, edi
call fcn.0040d5d0
cmp eax, ebx
je 0x40ae32
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [0x43305c]
test eax, eax
je 0x40ae32
mov eax, dword [ebp - 0x14]
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [0x4331d8]
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
call fcn.0040ae80
lea eax, [ebp - 0x20]
call fcn.0040ae80
lea esi, [ebp - 0x30]
call fcn.004050e0
jmp 0x40ae69
push edi
call dword [0x433060]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d750
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432867
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43a4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4369ac
mov dword [ebx + 0x60], 0x43692c
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x436784
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00408010
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.0040f170
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40d7db
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00407ed0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], 0x4369a8
call fcn.0040edf0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], 0x43696c
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x468954]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
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
Function at 0x40e860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40e9f1
cmp byte [ebx + 0x49], 0
je 0x40e9f1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40e9e5
lea esi, [ebp - 0x2c]
call fcn.0040e440
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40e8d3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40e90c
dec eax
je 0x40e910
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40e9ec
call fcn.0040d0a0
xor al, al
jmp 0x40e9f3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40e920
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40e94d
cmp edi, 0x10
jae 0x40e92f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00420d62
add esp, 0x10
cmp esi, eax
jne 0x40e9dd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40e9e9
test esi, esi
jne 0x40e8c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40ea0e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40ea0e
cmp edi, esi
jae 0x40e9c6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040f000
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x40e8c7
mov ecx, eax
cmp edi, 0x10
jae 0x40e9a2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40e9bd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40e8c1
test esi, esi
jne 0x40e998
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40e9d5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40e8c1
lea ecx, [ebp - 0x2c]
call fcn.0040d0a0
xor al, al
jmp 0x40e9f3
lea ecx, [ebp - 0x2c]
call fcn.0040d0a0
mov al, 1
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.0041fd66
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041eb61
int3
Function at 0x40edf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43251b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43a4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x436930
call fcn.0041f8f2
push 4
mov dword [ebp - 4], 0
call fcn.00420245
mov edi, eax
add esp, 4
test edi, edi
je 0x40ee6c
call fcn.0041ef82
mov dword [edi], eax
call fcn.0041ed41
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041ec76
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ee62
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041ec9e
jmp 0x40ee6e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407f5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov esi, ecx
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
push 5
lea eax, [esi + 0x1f38]
push 4
push eax
mov dword [esp + 0x38], esi
call fcn.00407454
lea edi, [esi + 0x1f4c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x1f50]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
mov byte [esp + 0x230], 2
push ecx
push 0xff
mov dword [esi], 0x4096f4
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.004070ba
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1a]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x26]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.JPG
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x128]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004070ba
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [esi + 0x1f58], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x1f2c
mov dword [esi + 0x1f54], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x240]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x23c]
add esp, 4
cmp eax, edi
mov dword [esi + 0x1f5c], eax
mov dword [esi + 0x1f60], ecx
mov dword [esi + 0x1f64], 0x3c
mov dword [esi + 8], edi
je 0x4011e3
push ecx
mov ecx, esi
call fcn.00402dd0
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 8
Function at 0x401220
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x407fa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4096f4
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], 2
test ecx, ecx
je 0x401262
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1f4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 0x1f4c]
push eax
call ebx
mov eax, dword [esi + 0x1f50]
lea ebp, [esi + 0x1f50]
push eax
call ebx
mov ecx, ebp
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 5
add esi, 0x1f38
push 4
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00407360
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4012d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, dword [esp + 0x48]
push edi
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x24]
push 0xe
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x44]
push 0x28
push ecx
call edi
mov ecx, dword [esp + 0x5a]
mov ebx, dword [esp + 0x50]
and ecx, 0xffff
add esp, 0x2c
imul ecx, ebx
lea eax, [ecx + 0x1f]
and al, 0xe0
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
lea edx, [ebx + ebx*2]
sar edi, 3
sar eax, 3
sub edi, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0xc], edx
test eax, eax
jl 0x401391
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
push ebp
lea ebx, [ecx*4]
sub ebx, ecx
imul ecx, eax
lea edx, [edx + ecx*2]
neg ebx
add ecx, edx
inc eax
mov ebp, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x6c]
add esp, 0x1c
add ebp, ebx
dec eax
mov dword [esp + 0x50], eax
jne 0x401367
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x1c

Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov al, 0x46
mov edx, 0x100
mov byte [esp + 5], al
mov byte [esp + 7], al
xor al, al
mov word [esp], 0xe0ff
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov eax, dword [ecx + 4]
lea ecx, [esp]
push eax
push 1
push 0x12
push ecx
mov word [esp + 0x12], 0x1000
mov byte [esp + 0x14], 0x4a
mov byte [esp + 0x16], 0x49
mov word [esp + 0x19], 0x101
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], dx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
ret
Function at 0x4017d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x101c]
mov ecx, 0x10
lea edi, [esp + 0x15]
mov word [esp + 0x10], 0xdbff
mov word [esp + 0x12], 0x4300
mov byte [esp + 0x14], 0
push eax
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x18]
push 0x45
push ecx
call ebp
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x105c]
push edx
mov ecx, 0x10
lea edi, [esp + 0x29]
push 1
lea eax, [esp + 0x28]
mov byte [esp + 0x2c], 1
push 0x45
push eax
rep movsd dword es:[edi], dword [esi]
call ebp
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret

Function at 0x401850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ax, word [ecx + 0x14]
push ebx
mov edx, eax
mov word [esp + 4], 0xc0ff
and edx, 0xffff
mov word [esp + 6], 0x1100
and edx, 0x800000ff
mov byte [esp + 8], 8
jns 0x401883
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
add edx, eax
mov ax, word [ecx + 0x10]
mov word [esp + 9], dx
mov edx, eax
and edx, 0xffff
and edx, 0x800000ff
jns 0x4018b6
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
mov ecx, dword [ecx + 4]
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
push ecx
add edx, eax
mov al, 3
mov word [esp + 0xf], dx
mov edx, 1
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x1a], dl
push edx
mov byte [esp + 0x15], al
mov byte [esp + 0x1c], al
lea edx, [esp + 0xc]
mov al, 0x11
push 0x13
push edx
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 2
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x1f], al
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop ebx
add esp, 0x14
ret
Function at 0x401920
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x409549]
push ebx
mov eax, dword [0x409541]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x409545]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40954d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x20], 0xc4ff
mov word [esp + 0x22], 0x1f00
mov byte [esp + 0x24], 0
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409554]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x40197b
mov ecx, dword [0x409565]
mov edx, dword [0x409569]
mov eax, dword [0x409561]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40956d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 1
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409574]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x4019dc
mov ecx, dword [0x409585]
mov edx, dword [0x409589]
mov eax, dword [0x409581]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40958d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x22], 0xb500
mov byte [esp + 0x24], 0x10
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409594]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x401a44
mov ecx, dword [0x40963d]
mov edx, dword [0x409641]
mov eax, dword [0x409639]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x409645]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 0x11
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x40964c]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x401aa8
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401ae0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
xor al, al
mov dl, 0x11
mov byte [esp + 6], al
mov byte [esp + 0xb], al
mov byte [esp + 0xd], al
mov eax, dword [ecx + 4]
push eax
push 1
lea ecx, [esp + 8]
push 0xe
push ecx
mov word [esp + 0x10], 0xdaff
mov word [esp + 0x12], 0xc00
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], 2
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1c], 0x3f
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
ret
Function at 0x402810
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [esp + 0xc]
push esi
dec al
mov esi, ecx
js 0x4028c4
movsx eax, al
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ebp, [eax*2 + 0x409420]
inc eax
mov dword [esp + 0xc], eax
mov ax, word [ebp]
mov edx, dword [esp + 0x14]
and eax, edx
test ax, ax
je 0x402857
movsx ecx, byte [esi + 1]
mov al, byte [esi]
mov dl, byte [ecx*2 + 0x409420]
or al, dl
mov byte [esi], al
mov al, byte [esi + 1]
sub ebp, 2
dec al
mov byte [esi + 1], al
jns 0x4028b3
mov al, byte [esi]
cmp al, 0xff
jne 0x402896
mov byte [esp + 0x18], al
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
call edi
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push edx
push 1
push 1
push eax
mov byte [esp + 0x38], 0
call edi
add esp, 0x20
jmp 0x4028ac
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push ecx
push 1
push 1
push edx
mov byte [esp + 0x28], al
call edi
add esp, 0x10
mov byte [esi + 1], 7
mov byte [esi], 0
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jne 0x402837
pop edi
pop ebp
pop esi
pop ecx
ret 8
Function at 0x402e70
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x304
push ebx
push ebp
push esi
mov esi, dword [esp + 0x314]
mov ebp, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], 0x409788
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x320]
mov dword [0x40c518], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov dword [0x40c51c], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, ecx
mov esi, edi
mov edi, dword [0x40c518]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40c518]
push ecx
call ebx
mov edi, dword [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40c51c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40c51c]
push eax
call ebx
mov ecx, dword [esp + 0x330]
add esp, 0x10
lea edx, [esp + 0x114]
mov dword [0x40c070], ecx
push 0xff
push edx
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x21c]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
mov byte [edx], 0
push ecx
call ebx
add esp, 0xc
push str.flash
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
lea edx, [esp + 0x14]
push edx
call fcn.004036e0
cmp eax, 0x20
jg 0x402fee
mov ecx, ebp
mov dword [ebp + 0xc], 1
call fcn.004031b0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x304
ret 0xc
Function at 0x4031b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x403120
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], str.AStuckWnd
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push esi
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40c0ac
push str.AStuckWnd
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [edi + 4], eax
jne 0x403234
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40328d
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x40328d
push str.SHChangeNotifyRegister
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 1
push 0x458
push 0x100
push 2
push ecx
call eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [edi + 8]
xor eax, eax
cmp ecx, esi
pop edi
pop esi
pop ebx
setne al
add esp, 0x38
ret