joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002215
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x1008680], 0
mov dword [ebp - 0x18], 0x10011ac
mov dword [ebp - 0x14], 0x1001de7
mov dword [ebp - 0x10], 0x10011a0
mov dword [ebp - 0xc], 0x1002061
mov dword [ebp - 8], 0x1001190
mov dword [ebp - 4], fcn.01001dae
jne 0x1002371
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002367
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x1002271
push ebx
push esi
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100228e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, 0x1001188
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10022cf
push 0x10011ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10022cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x1002326
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x10022d1
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10022eb
mov esi, 0x1001180
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1002364
push 0x10011ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002322
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1002364
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x14], eax
je 0x1002343
inc edi
cmp edi, 3
jl 0x1002328
jmp 0x100234c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1002364
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x1008004], ecx
add eax, 8
cmp eax, 0x18
jl 0x1002352
pop edi
pop esi
pop ebx
mov dword [0x1008680], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1008004]
leave
ret 4
Function at 0x1002b47
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x10011d8
call fcn.01003c1c
mov edi, 0x94
mov eax, edi
call fcn.01003240
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 [0x1009b30], ecx
mov eax, dword [esi + 4]
mov dword [0x1009b3c], eax
mov edx, dword [esi + 8]
mov dword [0x1009b40], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1009b34], esi
cmp ecx, 2
je 0x1002ba7
or esi, 0x8000
mov dword [0x1009b34], esi
shl eax, 8
add eax, edx
mov dword [0x1009b38], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002be0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002be0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002bf8
cmp eax, 0x20b
je 0x1002be5
mov dword [ebp - 0x1c], edi
jmp 0x1002c0c
cmp dword [ecx + 0x84], 0xe
jbe 0x1002be0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002c06
cmp dword [ecx + 0x74], 0xe
jbe 0x1002be0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.01003bc9
pop ecx
test eax, eax
jne 0x1002c38
cmp dword [0x1009b20], 2
je 0x1002c25
call fcn.01003446
push 0x1c
call fcn.0100327d
push 0xff
call fcn.010030b4
pop ecx
pop ecx
mov dword [ebp - 4], edi
call fcn.01003a04
test eax, eax
jge 0x1002c4c
push 0x1b
call fcn.01002b22
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100b074], eax
call fcn.010038de
mov dword [0x1009b18], eax
call fcn.0100383c
test eax, eax
jge 0x1002c72
push 8
call fcn.01002b22
pop ecx
call fcn.010035f0
test eax, eax
jge 0x1002c83
push 9
call fcn.01002b22
pop ecx
call fcn.010030e4
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1002c96
push eax
call fcn.01002b22
pop ecx
mov eax, dword [0x1009b50]
mov dword [0x1009b54], eax
push eax
push dword [0x1009b48]
push dword [0x1009b44]
call fcn.010026a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002cc5
push esi
call fcn.010031f3
call fcn.01003215
jmp 0x1002cf7
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01003c55
ret
Function at 0x100327d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1008020]
je 0x100329d
inc eax
cmp eax, 0x12
jb 0x100328e
shl eax, 3
cmp edx, dword [eax + 0x1008020]
mov dword [ebp + 8], eax
jne 0x100343b
mov ecx, dword [0x1009b20]
cmp ecx, 1
je 0x1003410
test ecx, ecx
jne 0x10032cf
cmp dword [0x100801c], 1
je 0x1003410
cmp edx, 0xfc
je 0x100343b
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100330a
push 5
pop ecx
mov esi, 0x100154c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003319
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003351
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003331
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001548
push ebx
call fcn.01004f40
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003356
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1008024]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100336d
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003240
mov edx, esp
push 6
pop ecx
mov esi, 0x100152c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003399
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10033a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10033be
mov eax, dword [ebp + 8]
mov esi, 0x1001528
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1008024]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10033d9
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10033e5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001500
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004e38
add esp, 0xc
jmp 0x100343b
mov ecx, dword [eax + 0x1008024]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100341b
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004e38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1009c94], ebx
push esi
push edi
jne 0x1004eb8
push 0x1001a50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004ef3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a44
push edi
call esi
test eax, eax
mov dword [0x1009c94], eax
je 0x1004ef3
push 0x1001a34
push edi
call esi
push 0x1001a20
push edi
mov dword [0x1009c98], eax
call esi
cmp dword [0x1009b30], 2
mov dword [0x1009c9c], eax
jne 0x1004eb8
push 0x1001a04
push edi
call esi
test eax, eax
mov dword [0x1009ca4], eax
je 0x1004eb8
push 0x10019ec
push edi
call esi
mov dword [0x1009ca0], eax
mov eax, dword [0x1009ca0]
test eax, eax
je 0x1004efd
call eax
test eax, eax
je 0x1004ee4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009ca4]
test eax, eax
je 0x1004ee4
test byte [ebp - 8], 1
jne 0x1004efd
cmp dword [0x1009b3c], 4
jb 0x1004ef7
or byte [ebp + 0x12], 0x20
jmp 0x1004f1c
xor eax, eax
jmp 0x1004f2c
or byte [ebp + 0x12], 4
jmp 0x1004f1c
mov eax, dword [0x1009c98]
test eax, eax
je 0x1004f1c
call eax
mov ebx, eax
test ebx, ebx
je 0x1004f1c
mov eax, dword [0x1009c9c]
test eax, eax
je 0x1004f1c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1009c94]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005af3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100af44]
push ebx
push esi
push edi
jae 0x1005c78
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100af60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x1005c78
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1005b47
xor eax, eax
jmp 0x1005c8c
test al, 0x20
je 0x1005b58
push 2
push edi
push edi
push ecx
call fcn.01006756
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1005c14
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1005c4c
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1005bae
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1005b9f
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1005b84
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005bee
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1005bf7
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1005b78
jmp 0x1005bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1005c73
cmp dword [ebp + 8], edi
je 0x1005c4c
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1005c41
mov dword [0x1009b28], eax
jmp 0x1005c7f
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005c36
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1005bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1005bf9
push dword [ebp + 8]
call fcn.01006641
pop ecx
jmp 0x1005c89
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1005c61
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1005b40
mov dword [0x1009b24], 0x1c
mov dword [0x1009b28], edi
jmp 0x1005c89
sub eax, dword [ebp - 0x10]
jmp 0x1005c8c
and dword [0x1009b28], 0
mov dword [0x1009b24], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006570
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003240
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006605
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1009b30]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1006605
cmp eax, 1
je 0x100661d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006605
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10065da
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1006601
xor eax, eax
inc eax
jmp 0x1006639
cmp esi, ebx
jae 0x1006609
xor eax, eax
jmp 0x1006639
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1009b30]
jmp 0x100661f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100299b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002e20
call fcn.01002b34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10027b0
cmp eax, esi
jne 0x10027a3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10027b3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100278a
xor esi, esi
inc esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x10027c6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002801
mov eax, dword [0x100436c]
test eax, eax
jne 0x10027fb
mov dword [0x100436c], esi
push 0x1001190
push 0x1001184
call fcn.01002707
pop ecx
pop ecx
test eax, eax
je 0x1002801
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10028cb
mov dword [0x1004034], esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x1002825
push 0x1001180
push 0x1001178
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100436c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002832
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004374], ebx
je 0x1002853
push 0x1004374
call fcn.01002aa9
pop ecx
test eax, eax
je 0x1002853
push ebx
push 2
push ebx
call dword [0x1004374]
push dword [0x100401c]
push dword [0x1004020]
push dword [0x1004018]
call fcn.01001ae5
add esp, 0xc
mov dword [0x1004030], eax
cmp dword [0x1004024], ebx
jne 0x10028b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004034], ebx
jne 0x10028bf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004030]
call fcn.01002b79
ret
call fcn.01002c81
jmp 0x1002768
Function at 0x10188bf
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10555c8
call fcn.010188d0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1075978
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1018671
cmp eax, esi
jne 0x1018664
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1018674
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101864b
xor esi, esi
inc esi
mov eax, dword [0x1075974]
cmp eax, esi
jne 0x1018687
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10186b6
mov eax, dword [0x1075974]
test eax, eax
jne 0x10186b0
mov dword [0x1075974], esi
push 0x10014bc
push 0x10014b0
call fcn.010185ad
pop ecx
pop ecx
test eax, eax
je 0x10186b6
jmp 0x10187da
mov dword [0x1073264], esi
mov eax, dword [0x1075974]
cmp eax, esi
jne 0x10186da
push 0x10014ac
push 0x10013c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1075974], 2
cmp dword [ebp - 0x20], ebx
jne 0x10186e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1075988], ebx
je 0x1018708
push 0x1075988
call fcn.01018dcb
pop ecx
test eax, eax
je 0x1018708
push ebx
push 2
push ebx
call dword [0x1075988]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10187da
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1018772
cmp cx, bx
je 0x101872d
cmp dword [ebp - 0x1c], ebx
jne 0x1018772
movzx ecx, word [eax]
cmp cx, bx
je 0x1018742
cmp cx, 0x20
ja 0x1018742
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101872d
test byte [ebp - 0x40], 1
je 0x101874e
movzx ecx, word [ebp - 0x3c]
jmp 0x1018751
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1073260], eax
cmp dword [0x1073254], ebx
jne 0x10187b7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1018783
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1018717
cmp dword [0x1073264], ebx
jne 0x10187c5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1073260]
jmp 0x10187e6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01018915
ret
call fcn.01018f0d
jmp 0x101860e

Function at 0x1018d40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1018d53
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1018d4f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1018d80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1018dbf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1018db5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1018dc1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1018da5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1019631
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10570e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
cmp dword [0x1073598], eax
jne 0x10196c4
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x1073598], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10196c4
cmp dword [ebp - 0x114], 5
jb 0x10196a8
cmp dword [ebp - 0x110], 1
jae 0x10196b1
cmp dword [ebp - 0x114], 6
jb 0x10196c4
cmp dword [ebp - 0x108], 2
jne 0x10196c4
mov dword [0x1057400], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101897b
leave
ret

Function at 0x101a380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
call fcn.01019d60
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x101a3a8
mov eax, dword [0x1073234]
mov esi, dword [eax + 8]
test esi, esi
jne 0x101a3a8
mov eax, 0x80070057
jmp 0x101a41a
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101a3cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x101a3e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a3e5
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x101a419
jmp 0x101a3f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x101a3fb
mov eax, 0x8000ffff
jmp 0x101a419
and edi, 0xf
je 0x101a40a
dec edi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x101a400
movzx ecx, word [eax]
push ecx
add eax, 2
push eax
mov ecx, ebx
call fcn.01019f85
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101a556
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.01019d60
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x101a578
mov eax, 0x80070057
jmp 0x101a656
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x101a652
cmp dword [ebp - 8], 1
je 0x101a5bc
cmp dword [ebp - 8], 2
je 0x101a5bc
cmp dword [ebp - 8], 7
jne 0x101a652
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x101a5fc
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x101a5d0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x101a5f6
mov edx, dword [esi]
mov word [edx + ecx*2 - 2], bx
cmp eax, ebx
jne 0x101a652
jmp 0x101a63d
push dword [ebp - 4]
mov ecx, esi
call fcn.01019b06
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x101a652
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
mov ecx, esi
je 0x101a635
lea eax, [ebp - 0x10]
push eax
call fcn.01019b32
jmp 0x101a652
push dword [ebp - 0x10]
call fcn.01019efb
cmp dword [ebp - 8], 2
je 0x101a648
mov dword [ebp - 0xc], ebx
jmp 0x101a652
mov ecx, esi
call fcn.0101a425
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101a783
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
jne 0x101a7bd
cmp ecx, edi
jne 0x101a7bd
push 2
pop eax
cmp eax, edi
jne 0x101a7f5
shr ecx, 1
push ecx
call fcn.010192a7
cmp eax, edi
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
je 0x101a7f5
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101a7ef
mov al, 1
jmp 0x101a7f7
push ebx
call fcn.010192d1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc