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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1005e5e4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1005ec60]
je 0x1000d3ce
inc eax
cmp eax, 0x13
jb 0x1000d3bf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1005ec60]
jne 0x1000d4f4
mov eax, dword [0x10061950]
cmp eax, 1
je 0x1000d4cc
cmp eax, edx
jne 0x1000d3fe
cmp dword [0x10061954], 1
je 0x1000d4cc
cmp ecx, 0xfc
je 0x1000d4f4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000d434
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000eec0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10007d70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000d468
mov eax, edi
push eax
call fcn.10007d70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10050368
push edi
call fcn.10011fe0
add esp, 0x10
push edi
call fcn.10007d70
push dword [esi + 0x1005ec64]
mov ebx, eax
call fcn.10007d70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10007a50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000eec0
push edi
push ebx
call fcn.1000eed0
push 0x10050348
push ebx
call fcn.1000eed0
push dword [esi + 0x1005ec64]
push ebx
call fcn.1000eed0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100129f8
add esp, 0x2c
jmp 0x1000d4f4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1005ec64]
push dword [esi]
call fcn.10007d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10008880
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100129f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10061dec], ebx
push esi
push edi
jne 0x10012a78
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012ab3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10051ba8
push edi
call esi
test eax, eax
mov dword [0x10061dec], eax
je 0x10012ab3
push 0x10051b98
push edi
call esi
push 0x10051b84
push edi
mov dword [0x10061df0], eax
call esi
cmp dword [0x1006195c], 2
mov dword [0x10061df4], eax
jne 0x10012a78
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10061dfc], eax
je 0x10012a78
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10061df8], eax
mov eax, dword [0x10061df8]
test eax, eax
je 0x10012abd
call eax
test eax, eax
je 0x10012aa4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10061dfc]
test eax, eax
je 0x10012aa4
test byte [ebp - 8], 1
jne 0x10012abd
cmp dword [0x10061968], 4
jb 0x10012ab7
or byte [ebp + 0x12], 0x20
jmp 0x10012adc
xor eax, eax
jmp 0x10012aec
or byte [ebp + 0x12], 4
jmp 0x10012adc
mov eax, dword [0x10061df0]
test eax, eax
je 0x10012adc
call eax
mov ebx, eax
test ebx, ebx
je 0x10012adc
mov eax, dword [0x10061df4]
test eax, eax
je 0x10012adc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10061dec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012c10
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1005e5e4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10012c41
xor eax, eax
jmp 0x10012dca
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10063080]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10012c7d
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10014717
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10012d58
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10012d96
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10012ce1
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10012cd2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10012cb2
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012d21
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10012d2a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10012ca3
jmp 0x10012d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10012dc5
cmp dword [ebp - 0x6c], edi
je 0x10012d96
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10012d8b
call fcn.10009c85
mov dword [eax], 9
call fcn.10009c8e
mov dword [eax], esi
jmp 0x10012dc0
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012d80
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10012d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10012d2c
push dword [ebp - 0x6c]
call fcn.10009c97
pop ecx
jmp 0x10012dc0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10012dae
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10012dae
xor eax, eax
jmp 0x10012dc8
call fcn.10009c85
mov dword [eax], 0x1c
call fcn.10009c8e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10012dc8
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10008880
add ebp, 0x3a0
leave
ret
Function at 0x10014aac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x10014c80
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10063080]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10014c80
test cl, 0x48
je 0x10014b17
cmp byte [eax + 5], 0xa
je 0x10014b17
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10014b51
call fcn.10009c85
mov dword [eax], 9
call fcn.10009c8e
mov dword [eax], esi
jmp 0x10014b61
cmp eax, 0x6d
je 0x10014c80
push eax
call fcn.10009c97
pop ecx
or eax, 0xffffffff
jmp 0x10014c82
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x10014c7b
test eax, eax
je 0x10014b90
cmp byte [ebx], 0xa
jne 0x10014b90
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10014b99
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x10014c75
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10014c65
cmp al, 0xd
je 0x10014bcb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10014c57
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10014be5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10014be0
add dword [ebp + 0x10], 2
jmp 0x10014c39
mov dword [ebp + 0x10], eax
jmp 0x10014c53
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10014c53
cmp dword [ebp - 0xc], 0
je 0x10014c53
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10014c2e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10014c39
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10014c56
cmp ebx, dword [ebp + 0xc]
jne 0x10014c3e
cmp byte [ebp - 1], 0xa
jne 0x10014c3e
mov byte [ebx], 0xa
jmp 0x10014c56
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012af1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10014c57
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10014baf
jmp 0x10014c75
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10014c75
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x10014c82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100157b2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10051ca8
call fcn.10008dc8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10061e24], edi
jne 0x100157f6
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100157e1
mov dword [0x10061e24], ebx
jmp 0x100157f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100157f6
mov dword [0x10061e24], 2
mov eax, dword [0x10061e24]
cmp eax, ebx
jne 0x10015816
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x100158d9
cmp eax, 2
je 0x1001581f
cmp eax, edi
jne 0x10015847
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10015832
mov eax, dword [0x10061ca0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x1001584e
xor eax, eax
jmp 0x100158d9
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10007a50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10015881
cmp esi, edi
jne 0x10015897
push dword [ebp - 0x20]
call fcn.10007a39
pop ecx
mov esi, eax
cmp esi, edi
je 0x10015847
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100158ca
cmp dword [ebp + 0x14], edi
jne 0x100158b4
push edi
push edi
jmp 0x100158ba
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x100158d6
push esi
call fcn.10007458
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10008e03
ret
Function at 0x100158e2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10051cb8
call fcn.10008dc8
xor esi, esi
cmp dword [0x10061e28], esi
jne 0x10015926
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10015911
mov dword [0x10061e28], edi
jmp 0x10015926
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10015926
mov dword [0x10061e28], 2
mov eax, dword [0x10061e28]
cmp eax, 2
je 0x10015a07
cmp eax, esi
je 0x10015a07
cmp eax, 1
jne 0x1001596b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10015954
mov eax, dword [0x10061ca0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10015972
xor eax, eax
jmp 0x10015a19
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10007a50
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100159a8
cmp edi, esi
jne 0x100159c3
lea eax, [ebx + ebx]
push eax
call fcn.10007a39
pop ecx
mov edi, eax
cmp edi, esi
je 0x1001596b
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100159f6
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100159e0
push esi
push esi
jmp 0x100159e6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10015a02
push edi
call fcn.10007458
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10015a19
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10008e03
ret
Function at 0x10016038
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x10016051
or eax, 0xffffffff
jmp 0x100160b2
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100160ae
push 0x3d
push esi
call fcn.100097a7
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x100160ae
cmp esi, eax
je 0x100160ae
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1006197c]
sete cl
cmp eax, dword [0x10061980]
mov dword [ebp - 8], ecx
jne 0x10016094
mov edi, eax
call fcn.10015fd7
mov dword [0x1006197c], eax
cmp eax, ebx
jne 0x100160ed
cmp dword [ebp + 0xc], ebx
je 0x100160b6
cmp dword [0x10061984], ebx
je 0x100160b6
call fcn.10014ea8
test eax, eax
je 0x100160ed
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x100160bf
xor eax, eax
jmp 0x100160b1
push 4
call fcn.10007a39
cmp eax, ebx
pop ecx
mov dword [0x1006197c], eax
je 0x100160ae
mov dword [eax], ebx
cmp dword [0x10061984], ebx
jne 0x100160ed
push 4
call fcn.10007a39
cmp eax, ebx
pop ecx
mov dword [0x10061984], eax
je 0x100160ae
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x1006197c]
call fcn.10015f8a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1001614e
cmp dword [esi], ebx
je 0x1001614e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.10007458
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10016131
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1001618f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10016128
mov eax, edi
shl eax, 2
push eax
push dword [0x1006197c]
call fcn.100095e4
cmp eax, ebx
pop ecx
pop ecx
je 0x1001618f
jmp 0x1001618a
cmp dword [ebp - 8], ebx
jne 0x100161fa
cmp edi, ebx
jge 0x1001615d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1006197c]
call fcn.100095e4
cmp eax, ebx
pop ecx
pop ecx
je 0x100160ae
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x1006197c], eax
cmp dword [ebp + 0xc], ebx
je 0x100161e4
push dword [ebp - 4]
call fcn.10007d70
inc eax
inc eax
push eax
call fcn.10007a39
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x100161e4
push dword [ebp - 4]
push esi
call fcn.1000eec0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x100161dd
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.10007458
pop ecx
cmp dword [ebp - 8], ebx
je 0x100161f2
push dword [ebp - 4]
call fcn.10007458
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x100160b1
push dword [ebp - 4]
call fcn.10007458
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x100160bb
Function at 0x10018b5b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1005e5e4]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10018b2b
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100088f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10018bbd
cmp dword [ebp - 0x1c], 5
jb 0x10018bd5
jmp 0x10018bd1
cmp dword [ebp - 0x10], 1
jne 0x10018bd5
cmp dword [ebp - 0x1c], 4
ja 0x10018bd1
jne 0x10018bd5
cmp dword [ebp - 0x18], 0
jbe 0x10018bd5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100520b0
call fcn.10006f14
test eax, eax
jge 0x10018bf6
mov byte [0x1005f820], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10008880
add ebp, 0x78
leave
ret
Function at 0x10019d71
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x10047651
call fcn.10008950
sub esp, 0x9c
mov eax, dword [0x1005e5e4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.1001b724
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.10005489
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x10019e02
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.100088f0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x10019dfb
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x10019e02
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.10007a39
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x10019e17
call fcn.10019828
push dword [ebp + 0x20]
push ebx
push eax
call fcn.100088f0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x10019e94
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.100365ae
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x1001a059
je 0x10019ec0
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x10019ef6
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.100054f2
push ebx
mov ecx, edi
call fcn.100054c8
jmp 0x10019edf
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.100097a7
cmp eax, ebx
pop ecx
pop ecx
jne 0x10019edc
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.10008880
leave
ret 0x1c
Function at 0x1001bace
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x1001bb05
call fcn.100365ae
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001bb16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x1001bb4f
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x1001bb34
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x1001bb3c
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x1001bb4d
test ax, ax
jne 0x1001bb4d
test si, si
je 0x1001bb4f
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x1001bb5e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret