joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e18f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x42f054], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40e1da
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45ef64], ax
xor eax, eax
mov word [0x45ef66], ax
mov dword [0x42f054], 0x45ef64
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405aec
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x42f044
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40e442
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00411ba0
cmp byte [0x44a738], 0
je 0x40e4f0
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0040f8b2
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e4f0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e4e7
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40e4cb
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00405bc8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40e59c
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00411ba0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40e5b7
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40e5c4
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40e687
movzx eax, word [esi]
test ax, ax
je 0x40e687
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40e611
test edi, edi
je 0x40e61b
test ebx, ebx
jne 0x40e61b
test ecx, ecx
je 0x40e60d
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40e632
cmp eax, 0xd
je 0x40e645
cmp eax, 0xa
je 0x40e648
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40e640
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40e5f3
jmp 0x40e648
mov byte [edx], 1
jmp 0x40e648
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40e681
mov word [edi], ax
test ebx, ebx
je 0x40e681
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00405bc8
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40e689
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40e694
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40e6e3
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40e6eb
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410acb
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4486f0], 0
push 1
push dword [esp + 8]
mov byte [0x4486ed], 1
mov byte [0x4486ee], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040113d
cmp dword [0x448700], 0
jne 0x410b0b
cmp byte [0x44871b], 0
je 0x410b14
cmp dword [0x448714], 0
jne 0x410b27
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x410bfa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411ba0
cmp byte [0x44a738], 0
je 0x410c89
cmp word [0x44a73a], 0
je 0x410c89
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a73a
call fcn.0040f8b2
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410c88
push dword [ebp + 8]
call fcn.00416de3
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x410c8f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00411ba0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00405979
mov esi, eax
test esi, esi
je 0x410ce7
movzx ecx, word [esi]
push ecx
jmp 0x410cd2
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00405a70
test al, al
jne 0x410ccb
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x25a443a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5604542
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1005aea
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001408
call fcn.010069a0
mov edi, 0x94
mov eax, edi
call fcn.01005d50
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 [0x106afa0], ecx
mov eax, dword [esi + 4]
mov dword [0x106afac], eax
mov edx, dword [esi + 8]
mov dword [0x106afb0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x106afa4], esi
cmp ecx, 2
je 0x1005b4a
or esi, 0x8000
mov dword [0x106afa4], esi
shl eax, 8
add eax, edx
mov dword [0x106afa8], eax
cmp word [0x1000000], 0x5a4d
jne 0x1005b86
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1005b86
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1005b9f
cmp ecx, 0x20b
je 0x1005b8c
and dword [ebp - 0x1c], 0
jmp 0x1005bb3
cmp dword [eax + 0x84], 0xe
jbe 0x1005b86
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1005bad
cmp dword [eax + 0x74], 0xe
jbe 0x1005b86
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01006944
pop ecx
test eax, eax
jne 0x1005be0
cmp dword [0x106af88], 1
jne 0x1005bcd
call fcn.01006120
push 0x1c
call fcn.01005f33
push 0xff
call fcn.01005d92
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01006774
test eax, eax
jge 0x1005bf5
push 0x1b
call fcn.01005abb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x106cb90], eax
call fcn.01006647
mov dword [0x106af80], eax
call fcn.0100659e
test eax, eax
jge 0x1005c1b
push 8
call fcn.01005abb
pop ecx
call fcn.01006344
test eax, eax
jge 0x1005c2c
push 9
call fcn.01005abb
pop ecx
call fcn.01005dec
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1005c3f
push eax
call fcn.01005abb
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010062d6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1005c61
movzx eax, word [ebp - 0x40]
jmp 0x1005c64
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01004b29
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1005c85
push esi
call fcn.01005ecc
call fcn.01005f04
jmp 0x1005cb7
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010069db
ret
Function at 0x1005f33
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10544bc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10544e0]
je 0x1005f5d
inc eax
cmp eax, 0x12
jb 0x1005f4e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10544e0]
mov dword [ebp - 0x110], esi
jne 0x1006108
mov eax, dword [0x106af88]
cmp eax, 1
je 0x10060d6
test eax, eax
jne 0x1005f93
cmp dword [0x10544c4], 1
je 0x10060d6
cmp ecx, 0xfc
je 0x1006108
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005fce
push 5
pop ecx
mov esi, 0x100177c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005fd9
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1006011
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005ff1
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001778
push ebx
call fcn.01007030
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006016
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x10544e4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006030
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01005d50
mov edx, esp
push 6
pop ecx
mov esi, 0x100175c
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 0x100605c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006068
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 0x1006081
mov eax, dword [ebp - 0x110]
mov esi, 0x1001758
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10544e4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100609f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10060ab
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001730
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01006f30
add esp, 0xc
jmp 0x1006108
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1006108
mov esi, dword [esi + 0x10544e4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10060ed
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.010059a3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006647
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x106b0f8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1006693
call esi
mov edi, eax
cmp edi, ebx
je 0x1006679
mov dword [0x106b0f8], 1
jmp 0x1006698
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100668e
push 2
pop eax
mov dword [0x106b0f8], eax
jmp 0x1006693
mov eax, dword [0x106b0f8]
cmp eax, 1
jne 0x1006710
cmp edi, ebx
jne 0x10066a4
call esi
mov edi, eax
cmp edi, ebx
je 0x1006719
cmp word [edi], bx
mov eax, edi
je 0x10066b9
inc eax
inc eax
cmp word [eax], bx
jne 0x10066ab
inc eax
inc eax
cmp word [eax], bx
jne 0x10066ab
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1006707
push eax
call fcn.0100765c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1006707
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1006704
push dword [ebp - 4]
call fcn.01007597
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1006768
cmp eax, 2
je 0x100671d
cmp eax, ebx
je 0x100671d
xor eax, eax
jmp 0x100676a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1006719
cmp byte [esi], bl
je 0x100673a
inc eax
cmp byte [eax], bl
jne 0x1006730
inc eax
cmp byte [eax], bl
jne 0x1006730
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100765c
cmp eax, ebx
pop ecx
je 0x1006761
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006f30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x106b10c], ebx
push esi
push edi
jne 0x1006fb2
push 0x100180c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006fed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001800
push edi
call esi
test eax, eax
mov dword [0x106b10c], eax
je 0x1006fed
push 0x10017f0
push edi
call esi
push 0x10017dc
push edi
mov dword [0x106b110], eax
call esi
cmp dword [0x106afa0], 2
mov dword [0x106b114], eax
jne 0x1006fb2
push 0x10017c0
push edi
call esi
test eax, eax
mov dword [0x106b11c], eax
je 0x1006fb2
push 0x10017a8
push edi
call esi
mov dword [0x106b118], eax
mov eax, dword [0x106b118]
test eax, eax
je 0x1006ff7
call eax
test eax, eax
je 0x1006fde
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x106b11c]
test eax, eax
je 0x1006fde
test byte [ebp - 8], 1
jne 0x1006ff7
cmp dword [0x106afac], 4
jb 0x1006ff1
or byte [ebp + 0x12], 0x20
jmp 0x1007016
xor eax, eax
jmp 0x1007026
or byte [ebp + 0x12], 4
jmp 0x1007016
mov eax, dword [0x106b110]
test eax, eax
je 0x1007016
call eax
mov ebx, eax
test ebx, ebx
je 0x1007016
mov eax, dword [0x106b114]
test eax, eax
je 0x1007016
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x106b10c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10082ee
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100831f
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1008326
cmp ebx, dword [ebp + 8]
jae 0x1008326
xor eax, eax
jmp 0x1008516
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1008337
xor eax, eax
inc eax
jmp 0x1008515
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100834d
cmp ecx, edx
jae 0x1008492
cmp dword [eax + 4], 0
je 0x1008356
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100833e
cmp dword [ebp + 8], 0
je 0x1008378
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1008492
cmp eax, esi
jae 0x1008492
mov eax, dword [0x106b128]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100839d
cmp dword [esi*4 + 0x106b130], edi
je 0x1008496
inc esi
cmp esi, eax
jl 0x100838b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1008512
cmp dword [ebp - 8], 0x1000000
jne 0x1008512
test byte [ebp - 0xc], 0xcc
je 0x100841b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1008512
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1008512
cmp word [eax + 0x18], 0x10b
jne 0x1008512
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1008512
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100841b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100841b
test byte [ecx + 0x27], 0x80
jne 0x1008492
push 1
push 0x106b170
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100832f
mov ecx, dword [0x106b128]
test ecx, ecx
mov edx, ecx
jle 0x100844f
lea eax, [ecx*4 + 0x106b12c]
cmp dword [eax], edi
je 0x100844f
dec edx
sub eax, 4
test edx, edx
jg 0x1008443
test edx, edx
jne 0x1008480
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100845c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1008474
lea eax, [edx*4 + 0x106b130]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1008462
cmp ecx, 0x10
jge 0x1008480
inc ecx
mov dword [0x106b128], ecx
push 0
push 0x106b170
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100832f
xor eax, eax
jmp 0x1008515
test esi, esi
jle 0x100832f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x106b170
call ebx
test eax, eax
jne 0x100832f
cmp dword [esi*4 + 0x106b130], edi
je 0x10084ec
mov eax, dword [0x106b128]
lea esi, [eax - 1]
test esi, esi
jl 0x10084da
cmp dword [esi*4 + 0x106b130], edi
je 0x10084d6
dec esi
jns 0x10084ca
test esi, esi
jge 0x10084ea
cmp eax, 0x10
jge 0x10084e5
inc eax
mov dword [0x106b128], eax
lea esi, [eax - 1]
jmp 0x10084ec
je 0x1008504
xor ecx, ecx
test esi, esi
jl 0x1008504
lea eax, [ecx*4 + 0x106b130]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10084f2
push 0
push 0x106b170
call ebx
jmp 0x100832f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a420
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01005d50
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a486
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x106afa0]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100a48a
xor eax, eax
jmp 0x100a497
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100ce52
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1050277
call fcn.0104b61c
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x2c], ecx
mov cx, word [eax + 0x30]
mov word [ebx + 0x30], cx
mov cx, word [eax + 0x32]
mov word [ebx + 0x32], cx
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x34], ecx
push 8
lea esi, [eax + 0x38]
pop ecx
lea edi, [ebx + 0x38]
add eax, 0x58
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0x58]
call fcn.0100ca08
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
add eax, 0x68
push eax
lea ecx, [ebx + 0x68]
call fcn.0100ca08
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4