joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419180
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418e22

Function at 0x41918b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418fb1

Function at 0x419585
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409270
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419723
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c340]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a755
mov ecx, dword [esi*4 + 0x47c340]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41971c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41971c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41971c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a755
add esp, 0x14
test edx, edx
jl 0x41971c
jg 0x419692
test eax, eax
jb 0x41971c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41971c
jl 0x4196ac
cmp dword [ebp - 0x1008], eax
ja 0x41971c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196ca
test ebx, ebx
je 0x419703
cmp ecx, edi
jae 0x419703
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4196f0
cmp byte [ecx + 1], 0xa
jne 0x4196f0
inc ecx
jmp 0x4196f0
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196ca
cmp edx, ebx
jne 0x4196ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419721
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret
Function at 0x419bf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c340]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c33
cmp byte [ebx], 0xa
jne 0x419c33
or byte [eax + edi + 0x28], 4
jmp 0x419c38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d36
mov al, byte [edx]
cmp al, 0x1a
je 0x419d18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419c96
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419c49
jmp 0x419d36
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d13
cmp dword [ebp - 0xc], 0
je 0x419d13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c340]
test byte [eax + edi + 0x28], 0x48
je 0x419ced
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419cd8
mov byte [esi], dl
jmp 0x419ce9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c340]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d36
cmp byte [ebp - 1], 0xa
jne 0x419cfc
cmp esi, ebx
jne 0x419cfc
mov byte [esi], 0xa
jmp 0x419d35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d36
mov byte [esi], 0xd
jmp 0x419d35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c340]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c340]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d82
cmp word [esi], dx
jne 0x419d82
or byte [edi + eax + 0x28], 4
jmp 0x419d87
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419eda
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419dff
cmp eax, edx
jae 0x419e0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419da1
jmp 0x419eda
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419eb6
cmp dword [ebp - 0x14], 0
je 0x419eb6
mov eax, dword [ebx*4 + 0x47c340]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e57
mov word [esi], cx
jmp 0x419e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c340]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c340]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c340]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eda
pop ebx
cmp word [ebp - 4], bx
jne 0x419e9f
cmp esi, dword [ebp + 0xc]
jne 0x419e9f
mov word [esi], bx
jmp 0x419ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eda
push 0xd
jmp 0x419ed3
mov ecx, dword [ebx*4 + 0x47c340]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eda
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002cc1
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov esi, 0x100145c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1002cfa
cmp dword [ebp + 0xc], eax
je 0x1002cff
lea ecx, [edi - 1]
cmp ebx, ecx
je 0x1002d06
cmp dword [ebp + 0xc], eax
jne 0x1002d0b
add edi, 0xfffffffe
cmp ebx, edi
jne 0x1002d0b
push 0xfffffffffffffffe
pop ebx
jmp 0x1002d1c
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1002d1c
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14

Function at 0x1003116
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x1014b48]
push esi
push edi
push ecx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x1001443
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x1003176
lea eax, [ebp - 0x108]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp + esi - 0x108]
cmp byte [eax], 0
jne 0x100315e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0100c759
leave
ret 8

Function at 0x100366f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01003628
push dword [ebp + 8]
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101290a
test esi, esi
je 0x10036a6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10036a6
xor eax, eax
jmp 0x10036a8
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1003ba5
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1014b48]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x1017740
push edi
mov dword [ebp - 0x110], eax
call fcn.01002d2a
mov esi, 0x1015714
push esi
mov ebx, eax
call fcn.01002d2a
cmp eax, ebx
jbe 0x1003bec
push esi
jmp 0x1003bed
push edi
call fcn.01002d2a
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1003c19
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.0100373a
xor eax, eax
jmp 0x1003c96
push edi
push ebx
push esi
mov edi, 0x1001443
push edi
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x1003c85
mov ebx, 0x104
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10c]
call fcn.01003b12
cmp eax, 0xffffffff
je 0x1003ca5
push 0
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x10c]
call fcn.01002dcd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x1003c3f
xor esi, esi
inc esi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c759
leave
ret 8
xor esi, esi
jmp 0x1003c88
Function at 0x1004ad0
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x1004b0e
test al, 1
je 0x1004b0e
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1004b0e
push eax
push 0x10
push eax
push ebx
push 0x47b
push eax
call fcn.0100373a
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0xffffffffffffffff
push 0x10015dc
mov edi, 0x10015d4
push edi
call esi
cmp eax, 0xffffffff
jne 0x1004b3c
push ebx
push eax
push 0x10015c8
push edi
call esi
cmp eax, 0xffffffff
jne 0x1004b3c
or eax, eax
jmp 0x1004b83
cmp dword [ebp + 0x18], 0
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
je 0x1004b4e
cmp eax, 3
jge 0x1004b59
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x1004b69
push 0x1001443
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 0x14], 0xffffffff
mov esi, eax
je 0x1004b81
test byte [ebp + 0x14], 1
je 0x1004b81
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x1004b8f
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
cmp byte [edi], al
je 0x1004c70
push 0x5c
push edi
mov dword [ebp - 4], ebx
call fcn.010128cd
mov esi, eax
cmp esi, ebx
je 0x1004bbf
mov al, byte [esi]
mov byte [ebp + 0xf], al
mov byte [esi], bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 0x10], ebx
je 0x1004c08
cmp eax, 0xffffffff
jne 0x1004bda
push 4
mov eax, 0x483
pop ebx
jmp 0x1004be3
test al, 0x10
jne 0x1004c08
mov eax, 0x484
push ebx
push 0x20
push 0
push edi
push eax
push dword [ebp + 8]
call fcn.0100373a
cmp eax, 7
je 0x1004bfb
test ebx, ebx
jne 0x1004c08
test esi, esi
je 0x1004c04
mov al, byte [ebp + 0xf]
mov byte [esi], al
xor eax, eax
jmp 0x1004c70
test esi, esi
je 0x1004c11
mov al, byte [ebp + 0xf]
mov byte [esi], al
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
jne 0x1004c25
cmp byte [edi + 2], 0x5c
jne 0x1004c25
lea esi, [edi + 3]
jmp 0x1004c68
cmp byte [edi], 0x5c
jne 0x1004c68
cmp al, 0x5c
jne 0x1004c68
lea esi, [edi + 2]
mov dword [ebp - 4], 2
jmp 0x1004c68
cmp byte [esi], 0x5c
jne 0x1004c5f
cmp byte [esi - 1], 0x3a
je 0x1004c5f
cmp dword [ebp - 4], 0
je 0x1004c50
dec dword [ebp - 4]
jmp 0x1004c5f
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1004c3a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004f7a
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1014b48]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov esi, 0x1015714
push esi
mov dword [ebp - 0x38], eax
call fcn.01002d2a
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x1004fc8
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.0100373a
xor eax, eax
jmp 0x100504a
cmp dword [ebp + 0xc], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x40], edi
je 0x1004fe8
push 1
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call fcn.01004ad0
jmp 0x100502a
push esi
push dword [ebp - 0x3c]
push edi
push 0x1001443
push 0
push dword [ebp - 0x38]
call ebx
jmp 0x100502a
cmp dword [ebp + 0xc], 0
je 0x1005004
push edi
jmp 0x100501a
push esi
push 0x30
lea eax, [ebp - 0x34]
push eax
push 0x1001443
push edi
push dword [ebp - 0x38]
call ebx
lea eax, [ebp - 0x34]
push eax
call fcn.01002f59
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x1004ffb
push esi
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100c759
leave
ret 8
Function at 0x1006aa4
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x1014b48]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x1015fa4
push edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x318]
push eax
push 0x1015b9c
mov dword [ebp - 0x310], 1
call fcn.0100cffc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
mov esi, 0x1015ea0
push esi
call ebx
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x10160a8
call ebx
push 0x1001a38
push edi
push 0x1001a30
mov edi, 0x200
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10160a8
call fcn.0101290a
cmp byte [0x10162b0], 0
jne 0x1006b94
push esi
push 0x10162b0
call ebx
push 0x1015fa4
push 0x1001a20
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10162b0
call fcn.0101290a
push esi
push 0x10163b4
call ebx
push 0x1001a18
push 0x1015fa4
push 0x1001a30
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10163b4
call fcn.0101290a
cmp dword [0x1017124], 0x866
je 0x1006c2d
push 0x1001a10
push 0x1015fa4
push 0x1001a30
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
push esi
mov esi, 0x10161ac
push esi
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0101290a
mov dword [0x1017118], 0x10016e8
mov dword [0x101711c], 7
jmp 0x1006c32
mov esi, 0x10161ac
cmp dword [0x1015700], 0
mov ebx, dword [ebp - 0x314]
je 0x1006c5a
push ebx
call fcn.010050f4
test eax, eax
jne 0x1006c5a
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x421
jmp 0x1006c96
push ebx
call fcn.0100663a
test eax, eax
jne 0x1006c73
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41f
jmp 0x1006c96
cmp dword [0x1017124], 0x866
je 0x1006cef
push ebx
call fcn.0100418a
test eax, eax
jne 0x1006cce
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x420
call fcn.01002c92
lea eax, [ebp - 0x20c]
push eax
push 0x856
push ebx
call fcn.0100321c
and dword [ebp - 0x310], 0
call fcn.0100a61f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x310]
pop edi
pop esi
pop ebx
call fcn.0100c759
leave
ret 4
push 0x1017700
push 0
push 0x10019d8
push 0x1001454
call fcn.01002d7f
test eax, eax
jne 0x1006cef
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x422
call fcn.01002c92
lea eax, [ebp - 0x20c]
push eax
push 0x856
push ebx
call fcn.0100321c
jmp 0x1006cb9
Function at 0x100bf18
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x1014b48]
push ebx
push esi
push 0x1017700
push 0x50
mov ebx, 0x1016bb0
push ebx
mov esi, 0x1001443
push esi
push 0x10015e8
push 0x1001454
mov dword [ebp - 4], eax
call fcn.01003b12
test eax, eax
jbe 0x100c10a
mov eax, dword [0x1014b40]
push edi
xor edi, edi
cmp eax, edi
jbe 0x100bf74
mov ecx, 0x1014324
mov byte [ecx], 0
add ecx, 0x104
dec eax
jne 0x100bf68
push ebx
push 0x200
lea eax, [ebp - 0x284]
push eax
push esi
push 0x1001b94
push ebx
call fcn.01003b12
test eax, eax
jbe 0x100c0b6
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x100c0b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x288], eax
je 0x100c0b6
push eax
push esi
push edi
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100c0aa
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1001b78
push dword [ebp - 0x288]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100c00b
mov eax, dword [ebp - 0x290]
mov eax, dword [eax]
jmp 0x100c010
mov eax, 0x4e40409
cmp dword [0x1014b40], edi
mov dword [ebp - 0x28c], edi
jbe 0x100c0aa
mov dword [ebp - 0x294], eax
shr dword [ebp - 0x294], 0x10
movzx edi, ax
mov esi, 0x1014324
push dword [esi - 4]
movzx eax, word [ebp - 0x294]
push eax
push edi
lea eax, [ebp - 0x84]
push 0x1001b58
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x288]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100c08e
push 0xff
push dword [ebp - 0x290]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc dword [ebp - 0x28c]
mov eax, dword [ebp - 0x28c]
add esi, 0x104
cmp eax, dword [0x1014b40]
jb 0x100c037
xor edi, edi
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x1014b40], edi
jbe 0x100c104
mov esi, 0x1014324
push ebx
push 0x100
lea eax, [ebp - 0x284]
push eax
push 0x1001443
push dword [esi - 4]
push ebx
call fcn.01003b12
test eax, eax
jbe 0x100c0f5
push 0xff
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc edi
add esi, 0x104
cmp edi, dword [0x1014b40]
jb 0x100c0c3
xor eax, eax
inc eax
pop edi
jmp 0x100c10c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100c759
leave
ret
Function at 0x100c8ce
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001bb8
call fcn.0100e1f4
mov edi, 0x94
mov eax, edi
call fcn.0100e350
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1017160], ecx
mov eax, dword [esi + 4]
mov dword [0x101716c], eax
mov edx, dword [esi + 8]
mov dword [0x1017170], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1017164], esi
cmp ecx, 2
je 0x100c92e
or esi, 0x8000
mov dword [0x1017164], esi
shl eax, 8
add eax, edx
mov dword [0x1017168], eax
cmp word [0x1000000], 0x5a4d
jne 0x100c96b
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100c96b
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100c984
cmp ecx, 0x20b
je 0x100c971
and dword [ebp - 0x1c], 0
jmp 0x100c99b
cmp dword [eax + 0x1000084], 0xe
jbe 0x100c96b
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x100c995
cmp dword [eax + 0x1000074], 0xe
jbe 0x100c96b
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0100e197
pop ecx
test eax, eax
jne 0x100c9af
push 0x1c
call fcn.0100c8a0
pop ecx
call fcn.0100e109
test eax, eax
jne 0x100c9c0
push 0x10
call fcn.0100c8a0
pop ecx
and dword [ebp - 4], 0
call fcn.0100de53
test eax, eax
jge 0x100c9d5
push 0x1b
call fcn.0100c871
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1018bf4], eax
call fcn.0100dd26
mov dword [0x1017150], eax
call fcn.0100dc7d
test eax, eax
jge 0x100c9fb
push 8
call fcn.0100c871
pop ecx
call fcn.0100da23
test eax, eax
jge 0x100ca0c
push 9
call fcn.0100c871
pop ecx
call fcn.0100d4c7
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100ca1f
push eax
call fcn.0100c871
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100d9b5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100ca41
movzx eax, word [ebp - 0x40]
jmp 0x100ca44
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01006d1a
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100ca65
push esi
call fcn.0100d5b8
call fcn.0100d5f0
jmp 0x100ca97
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100e22f
ret