joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c57e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f018
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x5c59b4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5c5835
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x5c59b4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5c5853
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x5c59b4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5c5871
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x5c59b4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5c588f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x5c59b4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x5c59b4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5c58b4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x5c58e7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x5c58ff
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x5c593d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00483470
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.005c7db0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x65594c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005c67c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5c596b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x5c59a4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x5c59a4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0048da00
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.0047cf30
lea ecx, [ebp - 0x28]
call fcn.0047cf30
lea ecx, [ebp - 0x34]
call fcn.005c4f50
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.0054e0f3
mov esp, ebp
pop ebp
ret 4
Function at 0x5c6320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f1b7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x5c636a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5c6376
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00483a10
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x5c63e3
push 0x48
call fcn.0054dca5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x5c63d7
push 0x48
push 0
push ebx
call fcn.005c88b0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.005c4d40
jmp 0x5c63d9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5c6410
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00483a10
push 3
push 0x65594c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004837a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5c645f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x5c64ae
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x5c64ae
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x670d60
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00483a10
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.0047cf30
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5c64e4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5c64da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c6521
push edx
push ecx
call fcn.0054dcd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x5c6503
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret 0x14
call fcn.005d2e9f
int3
Function at 0x5c6be0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x6d1554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0054dca5
mov edi, eax
add esp, 4
test edi, edi
je 0x5c6c83
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00501076
add esp, 4
mov dword [edi + 4], eax
jmp 0x5c6c85
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00508b91
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x5c6ce5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x5c6ce5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x5c6d09
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x5c6d2b
cmp byte [ebp + 0xc], 0
je 0x5c6d18
push esi
call fcn.005021ca
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x5c6d37
mov esi, str.ios_base::badbit_set
jmp 0x5c6d47
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0049b3f0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00494400
push 0x6b4e9c
lea eax, [ebp - 0x30]
push eax
call fcn.005c771a
int3
Function at 0x612279
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00611e60

Function at 0x612284
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00611fea

Function at 0x61beb2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0061b88a

Function at 0x61c165
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0061c039
Function at 0x6258a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x62592b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x6258ed
cmp eax, 2
jne 0x625909
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x625925
test ecx, ecx
je 0x625920
test cl, 1
jne 0x625909
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x625925
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6e041e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6e041e7b
cmp byte [esi + ebx - 1], 0xa
je 0x6e041e4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6e043258], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x100675b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1006776
push 0x80004005
call fcn.01005795
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1006778
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100d326
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10550ea
call fcn.0100f20e
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x100d37f
call fcn.010064eb
mov esi, eax
jmp 0x100d48f
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x100d398
call fcn.010064eb
jmp 0x100d481
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x100d38e
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100d405
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100d3e7
lea ecx, [ebp - 0x418]
call fcn.01006d43
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.01005cfe
mov eax, esi
call fcn.0100f279
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.0100767a
mov dword [ebp - 4], 1
jmp 0x100d433
cmp dword [ebp - 0x418], ebx
jne 0x100d442
mov esi, 0x8007000e
jmp 0x100d483
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x428]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100d38e
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010083cb
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100d3ec
lea ecx, [ebp - 0x418]
call fcn.01006d43
jmp 0x100d3ec
Function at 0x100e659
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1061184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, 0x1002594
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x430]
push eax
mov byte [0x1061cf8], 0
mov dword [0x1061cfc], esi
mov dword [ebp - 0x430], 8
mov dword [ebp - 0x42c], 0x514
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.0100e4cc
lea eax, [ebp - 0xc]
push eax
push ebx
jmp 0x100e6cf
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.010058fc
cmp eax, esi
jne 0x100e6ca
lea eax, [ebp - 0x420]
push eax
push ebx
mov dword [ebp - 0x424], 0x1001d98
mov dword [ebp - 0x420], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
inc esi
cmp dword [ebp - 0x420], esi
mov ebx, eax
jle 0x100e7e6
xor eax, eax
cmp dword [ebp - 0x420], esi
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x424], eax
jle 0x100e7e6
mov edi, 0x104
cmp esi, 1
jle 0x100e7c1
push 0x1002590
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.01005d59
push 0x1002584
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100e7c1
inc esi
cmp esi, dword [ebp - 0x420]
jge 0x100e7d9
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
push dword [ebx + esi*4]
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
cmp eax, 0x16
je 0x100e7c1
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi64]
pop ecx
push eax
mov dword [ebp - 0x428], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100e7c1
mov eax, dword [ebp - 0x428]
mov dword [0x1061cc4], eax
inc esi
jmp 0x100e7d9
cmp esi, dword [ebp - 0x420]
jge 0x100e7d9
push dword [ebx + esi*4]
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.01005d59
inc esi
cmp esi, dword [ebp - 0x420]
jl 0x100e72d
mov esi, 0x1061cc8
mov ecx, esi
call fcn.01005aca
push 0
push 4
mov ecx, esi
call fcn.01005f19
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
push dword [ebp + 0x14]
push dword [ebp - 0x424]
call fcn.0100772f
mov ecx, esi
mov edi, eax
call fcn.01005f62
mov ecx, esi
call fcn.01005ec0
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f14b
leave
ret 0x10
Function at 0x100eaa2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1061184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100e9e3
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100eb15
cmp dword [ebp - 0x94], 5
jb 0x100eb36
jmp 0x100eb32
cmp dword [ebp - 0x88], 1
jne 0x100eb36
cmp dword [ebp - 0x94], 4
ja 0x100eb32
jne 0x100eb36
cmp dword [ebp - 0x90], 0
jbe 0x100eb36
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10025e4
call fcn.01005832
test eax, eax
jge 0x100eb57
mov byte [0x1061a60], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100f14b
leave
ret

Function at 0x100ee10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1061dfc], 0
push esi
jne 0x100ed7e
call fcn.0100ec75
test eax, eax
je 0x100edc1
mov eax, dword [0x1061dfc]
cmp eax, 1
jne 0x100ed9f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100edc1
pop esi
ret
push eax
call dword [0x1061e04]
test eax, eax
jne 0x100ee09
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100edc5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1061dfc]
call dword [0x1061e04]
mov edi, eax
test edi, edi
je 0x100edea
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100ee06
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1061dfc]
call dword [0x1061e00]
add edi, 0x10
cmp edi, esi
jb 0x100edf2
mov eax, edi
pop edi
pop esi
ret
jmp 0x100ed6b
Function at 0x1012ac5
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
push 0x43c
mov eax, 0x1055a96
call fcn.0100f1d3
mov esi, 0x1002a44
push esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x438], 0x104
call fcn.01010421
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x1061024]
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 1
push 0xf7e2
lea ecx, [ebp - 0x430]
call fcn.010086cc
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov byte [ebp - 4], 2
push 0x10029c0
lea ecx, [ebp - 0x43c]
call fcn.01010421
mov byte [ebp - 4], 3
push 0x10029b0
lea ecx, [ebp - 0x434]
call fcn.01010421
mov byte [ebp - 4], 4
push 0x20019
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x448]
push 0x80000002
call fcn.0103872a
test eax, eax
jne 0x1012c20
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x434]
lea ecx, [ebp - 0x448]
call fcn.01010908
test eax, eax
jne 0x1012c20
cmp dword [ebp - 0x438], ebx
jbe 0x1012c20
push 0x105
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1012c20
push 0x1002994
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1012c20
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1012c20
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.01011643
push esi
lea ecx, [ebp - 0x42c]
call fcn.01011643
push 1
push ebx
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
push 0x1002988
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x434]
call fcn.010061d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43c]
call fcn.010061d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.01006682
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x430]
call fcn.010061d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.010061d0
call fcn.0100f265
ret
Function at 0x101308b
Capabilities:
Check os version

Disassembly:
push 0x124
mov eax, 0x1055c05
call fcn.0100f1d3
xor ebx, ebx
push ebx
push ebx
push ecx
mov esi, ecx
mov eax, esp
mov dword [esi + 0xf8], ebx
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x128], esp
mov dword [eax], ebx
call fcn.01033011
mov dword [ebp - 4], ebx
lea eax, [esi + 0xf0]
mov dword [eax], 0x100283c
lea edi, [esi + 0x100]
push ebx
mov ecx, edi
mov dword [esi], 0x100290c
mov dword [eax], 0x1002904
mov dword [esi + 0xf4], 0x10028f4
call fcn.01046463
mov byte [ebp - 4], 1
mov eax, dword [0x1061024]
mov dword [esi + 0x340], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x344], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x348], ebx
mov byte [ebp - 4], 4
mov byte [esi + 0x34c], bl
mov dword [esi + 0x350], ebx
mov byte [esi + 0x354], bl
mov dword [esi + 0x358], ebx
lea ecx, [esi + 0x360]
mov dword [esi + 0x35c], ebx
call fcn.01036fe8
mov byte [ebp - 4], 5
push esi
lea ecx, [esi + 0x36c]
mov dword [esi + 0x368], ebx
call fcn.0102f62a
mov byte [ebp - 4], 6
push esi
lea ecx, [esi + 0x400]
call fcn.0102080a
mov byte [ebp - 4], 7
push esi
lea ecx, [esi + 0x5cc]
call fcn.0101803d
mov byte [ebp - 4], 8
push esi
lea ecx, [esi + 0x718]
call fcn.01024965
mov byte [ebp - 4], 9
push esi
lea ecx, [esi + 0x904]
call fcn.0102733f
mov byte [ebp - 4], 0xa
push esi
lea ecx, [esi + 0xc28]
call fcn.0102a1f4
mov byte [ebp - 4], 0xb
push esi
lea ecx, [esi + 0xd24]
call fcn.0102bebb
mov byte [ebp - 4], 0xc
mov dword [esi + 0xf7c], ebx
mov byte [esi + 0xf80], 1
lea eax, [esi + 0xf8c]
mov dword [esi + 0xf84], ebx
mov dword [esi + 0xf88], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0x124]
push eax
mov byte [esi + 0xf94], 1
mov byte [esi + 0xf95], bl
mov byte [esi + 0xf96], 1
mov byte [esi + 0xf97], bl
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
sbb al, al
inc al
mov byte [esi + 0xf80], al
je 0x1013244
or dword [esi + 0x28], 0x1c004034
mov dword [esi + 0x34], 0x1db
mov dword [esi + 0x54], 0x1ce
mov dword [esi + 0xf88], ebx
mov dword [esi + 0xf84], ebx
jmp 0x101325f
or dword [esi + 0x28], 0x1088000
mov dword [esi + 0xf88], 0x28a
mov dword [esi + 0xf84], 0x44c
fld qword [0x1002a48]
push ecx
push ecx
lea ecx, [ebp - 0x12c]
fstp qword [esp]
mov byte [esi + 0x354], bl
call fcn.0104a34f
mov eax, dword [ebp - 0x12c]
mov dword [esi + 0x1d8], eax
mov eax, dword [ebp - 0x128]
push esi
push 0x101126d
mov ecx, edi
mov dword [esi + 0x1dc], eax
call fcn.01045af4
cmp eax, ebx
jl 0x10132e8
call fcn.0104a2cb
dec eax
neg eax
sbb al, al
inc al
push 0x24
mov byte [esi + 0xf98], al
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 0xd
cmp ecx, ebx
je 0x10132d5
call fcn.01014b94
jmp 0x10132d7
xor eax, eax
mov byte [ebp - 4], 0xc
mov ecx, esi
mov dword [esi + 0x368], eax
call fcn.01012ac5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100f265
ret
Function at 0x101521a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1061184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101527f
cmp dword [ebp - 0x114], 5
jae 0x101527b
cmp dword [ebp - 0x114], 4
jne 0x101527f
cmp dword [ebp - 0x110], 0x5a
jb 0x101527f
xor eax, eax
jmp 0x1015282
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f14b
leave
ret

Function at 0x10152ba
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1061184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101530e
cmp dword [ebp - 0x114], 6
jb 0x101530e
xor eax, eax
inc eax
jmp 0x1015310
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f14b
leave
ret

Function at 0x1015351
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 2
push dword [ebp + 8]
push dword [0x1061d3c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x1061d3c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ax, word [eax + 0xe]
pop ebp
ret 4