joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c45cde
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [ebx + 0xb], 0
mov esi, ebx
jns 0x1c45d02
mov esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c45d30
test al, 0x10
jne 0x1c45e21
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01c45e6f
add esp, 0xc
xor ebx, ebx
jmp 0x1c45e5a
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0xb]
mov ecx, ebx
test al, al
jns 0x1c45d4d
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add eax, eax
test eax, eax
je 0x1c45da4
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp dx, 0x5c
je 0x1c45d67
cmp dx, 0x2f
jne 0x1c45d4f
cmp eax, 0xfffffffe
je 0x1c45da4
sar eax, 1
lea edx, [ebx + 0xc]
lea edi, [esp + 4]
mov ecx, edi
push edx
push eax
push 0
push ebx
call fcn.01c40f60
movsd xmm0, qword [edi]
lea eax, [esp + 0x10]
movsd qword [eax], xmm0
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
push eax
call fcn.01c45cde
add esp, 4
test al, al
je 0x1c45e38
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c45e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1c45e10
mov dword [esp], eax
lea edi, [esp + 4]
mov ecx, edi
push esi
call fcn.01c3ceea
cmp byte [edi + 0xb], 0
jns 0x1c45ddd
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [esp + 0xf], 0
jns 0x1c45e09
push dword [esp + 4]
mov edi, eax
call fcn.01cb3106
mov eax, edi
add esp, 4
test al, al
mov eax, dword [esp]
jne 0x1c45e47
push eax
push esi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01c45e6f
add esp, 0xc
jmp 0x1c45e45
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01c45e6f
add esp, 0xc
mov bl, 1
jmp 0x1c45e5a
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01c45e6f
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x1c45e5a
push dword [esp + 0x10]
call fcn.01cb3106
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c45e6f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp + 0xc]
mov dword [ebp - 0x14], edi
call fcn.01c23dc9
mov ebx, 0x1d04250
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.01cb893e
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c46b51
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.01cb76e0
add esp, 0xc
mov edi, 0xfffffff4
lea ebx, [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi + str.PROGRAMW6432]
mov word [ebp - 0x218], 0
push 0x104
push ebx
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c46bc5
push dword [ebp + 8]
push eax
push ebx
call fcn.01c46ae0
add esp, 0xc
test al, al
jne 0x1c46bce
add edi, 4
jne 0x1c46b91
xor ebx, ebx
jmp 0x1c46bd0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c47106
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d04a50]
test eax, eax
jne 0x1c471ea
mov edi, 0xc
push edi
call fcn.01cb30d6
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d04a50], eax
push edi
call fcn.01cb30d6
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d04a54], eax
call fcn.01c44894
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push str.user_data_dir
call fcn.01c3ceea
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.01c3ceea
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.01c44d70
add esp, 0xc
push edi
push esi
push dword [ebp - 0x38]
push ebx
call fcn.01c46d84
add esp, 0x10
mov byte [ebp - 0x38], al
cmp byte [ebx + 0xb], 0
jns 0x1c471bd
push dword [ebp - 0x1c]
call fcn.01cb3106
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x1c471ce
push dword [ebp - 0x34]
call fcn.01cb3106
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c471df
push dword [ebp - 0x28]
call fcn.01cb3106
add esp, 4
cmp byte [ebp - 0x38], 0
je 0x1c4720b
mov eax, dword [0x1d04a50]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.01c21f1e
mov bl, 1
test esi, esi
je 0x1c4720d
mov ecx, esi
push dword [0x1d04a54]
call fcn.01c21f1e
jmp 0x1c4720d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c47c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
test ebx, ebx
je 0x1c47c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x1c47c69
call fcn.01c4c750
push dword [esi]
call fcn.01c4c760
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1c47c78
mov dword [esi], ebx
call fcn.01c4c750
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1c47cf4
lea eax, [ebp - 0x18]
push 0x1c47e20
push eax
call fcn.01c4c9b0
add esp, 8
mov ebx, eax
lea eax, [ebp + 8]
push 0x1c47e20
push eax
call fcn.01c4c9b0
add esp, 8
lea edi, [ebp - 0x14]
mov ecx, edi
push ebx
push eax
push str.handle___::GetCurrentProcess__
call fcn.01c4cb60
cmp dword [ebp - 0x14], 0
je 0x1c47cf4
lea ebx, [ebp - 0x1c]
push edi
push 0x21
push str..._.._base_process_process_win.cc
push ebx
call fcn.01c4ce10
add esp, 0x10
mov ecx, ebx
call fcn.01c4cde0
mov ecx, ebx
call fcn.01c4cdf0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1c491ec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x40], eax
cmp dword [0x1d04ab4], 0
jne 0x1c493e6
push 4
call fcn.01cb30d6
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.01c272c4
mov dword [esi], method.std::__1::locale::facet.virtual_0
mov dword [0x1d04ab4], esi
xor eax, eax
dec eax
lea edi, [esp + 0x34]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ebx, [esp + 0x28]
mov ecx, ebx
push str.type
call fcn.01c3ceea
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea esi, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.01c3ceea
push ebx
push esi
push edi
call fcn.01c44d70
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x1c4927d
push dword [esp + 0x1c]
call fcn.01cb3106
add esp, 4
cmp byte [esp + 0x33], 0
jns 0x1c49290
push dword [esp + 0x28]
call fcn.01cb3106
add esp, 4
push str.crashpad_handler
call fcn.01ccde34
add esp, 4
mov bl, byte [esp + 0x3f]
test bl, bl
mov edi, dword [esp + 0x38]
movzx esi, bl
mov ecx, esi
cmovs ecx, edi
cmp eax, ecx
jne 0x1c492d9
lea ecx, [esp + 0x34]
push eax
push str.crashpad_handler
push 0xffffffffffffffff
push 0
call fcn.01c4142a
test eax, eax
je 0x1c493d3
mov bl, byte [esp + 0x3f]
mov edi, dword [esp + 0x38]
movzx esi, bl
push str.fallback_handler
call fcn.01ccde34
add esp, 4
test bl, bl
cmovs esi, edi
cmp eax, esi
jne 0x1c4930a
lea ecx, [esp + 0x34]
push eax
push str.fallback_handler
push 0xffffffffffffffff
push 0
call fcn.01c4142a
test eax, eax
je 0x1c493d3
push dword [0x1d04ab4]
call fcn.01c272ac
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
movzx eax, byte [esp + 0x3f]
test al, al
jns 0x1c49333
mov eax, dword [esp + 0x38]
test eax, eax
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x28]
jne 0x1c4934a
push 0
push esi
call fcn.01c47106
add esp, 8
mov ecx, ebx
call fcn.01c58150
lea edi, [esp + 0x10]
push esi
push edi
call fcn.01c44fd4
add esp, 8
lea esi, [esp + 4]
lea eax, [esp + 0x34]
push eax
push esi
call fcn.01c44fd4
add esp, 8
movzx eax, byte [esp + 0x3f]
test al, al
jns 0x1c4937e
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
sete cl
push ebx
push edi
push esi
push ecx
call fcn.01c48853
add esp, 0x10
cmp byte [esp + 0xf], 0
jns 0x1c493a4
push dword [esp + 4]
call fcn.01cb3106
add esp, 4
cmp byte [esp + 0x1b], 0
jns 0x1c493b7
push dword [esp + 0x10]
call fcn.01cb3106
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.01c582a0
cmp byte [esp + 0x33], 0
jns 0x1c493d3
push dword [esp + 0x28]
call fcn.01cb3106
add esp, 4
cmp byte [esp + 0x3f], 0
jns 0x1c493e6
push dword [esp + 0x34]
call fcn.01cb3106
add esp, 4
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.01cb3141
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c49d4a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1c49e2d
mov ebx, ecx
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x1c49e2d
cmp word [eax + edx + 0x14], 0x68
jb 0x1c49e2d
mov esi, dword [ebx]
mov ecx, ebx
push dword [eax + edx + 0x78]
call dword [esi + 4]
test eax, eax
je 0x1c49e2d
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x1c49da4
mov word [edi], ax
jmp 0x1c49e5a
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov edx, eax
mov eax, dword [esi + 0x18]
lea ecx, [eax*4]
test ecx, ecx
je 0x1c49e2d
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
lea esi, [edx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
mov ebx, edx
mov edi, esi
sub edi, ebx
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [ebx + edi*2]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x1c49e07
mov edx, dword [ebp - 0x1c]
cmp cl, byte [eax]
jne 0x1c49e09
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1c49dfb
xor ecx, ecx
lea edi, [ebx + edi*2]
movzx ecx, cl
movzx eax, byte [eax]
mov edx, ecx
sub edx, eax
test edx, edx
lea edx, [edi + 4]
cmovg ebx, edx
cmovle esi, edi
cmp ecx, eax
je 0x1c49e39
xor eax, eax
cmp ebx, esi
jne 0x1c49dd3
jmp 0x1c49e2f
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov esi, dword [ebp - 0x18]
push dword [esi + 0x24]
call dword [eax + 4]
sub edi, dword [ebp - 0x14]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov al, 1
jmp 0x1c49e2f
Function at 0x1c4bec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.01c4bed0

Function at 0x1c4d6e0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x1d04af8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x1c4d864
jp 0x1c4d864
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1d04b08]
mov ecx, dword [0x1d04a8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c4d889
mov eax, dword [0x1d04b18]
mov ecx, dword [0x1d04a8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c4d8c2
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x1d04b10]
sbb ebx, dword [0x1d04b14]
movd xmm0, ebx
movd xmm1, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x1ce04d0]
subpd xmm1, xmmword [0x1ce04e0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
divsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
movsd xmm2, qword [0x1ce5fe8]
ucomisd xmm2, xmm0
ja 0x1c4d864
mov eax, dword [esp + 8]
sub eax, dword [0x1d04b00]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x1d04b04]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x1ce04d0]
subpd xmm2, xmmword [0x1ce04e0]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x1d04af8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.01cb3141
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1d04b08
call fcn.01cb3187
add esp, 4
cmp dword [0x1d04b08], 0xffffffff
jne 0x1c4d752
rdtsc
mov dword [0x1d04b00], eax
mov dword [0x1d04b04], edx
push 0x1d04b08
call fcn.01cb31fd
add esp, 4
jmp 0x1c4d752
push 0x1d04b18
call fcn.01cb3187
add esp, 4
cmp dword [0x1d04b18], 0xffffffff
jne 0x1c4d773
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0x1d04b14], ecx
mov dword [0x1d04b10], eax
push 0x1d04b18
call fcn.01cb31fd
add esp, 4
jmp 0x1c4d773
Function at 0x1c53ad0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x10], ecx
lea edx, [eax + ecx]
mov dword [ebp - 0x18], ebx
lea edi, [esi + ebx]
cmovs edi, edx
cmovs esi, eax
sub edi, esi
cmp edi, 4
jb 0x1c53b3d
mov edx, esi
mov eax, edi
nop word [eax + eax]
imul ecx, dword [edx], 0x5bd1e995
mov ebx, ecx
shr ebx, 0x18
xor ebx, ecx
imul ecx, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
add edx, 4
add edi, 0xfffffffc
cmp edi, 3
ja 0x1c53b10
cmp edi, 1
jne 0x1c53b46
jmp 0x1c53b62
mov eax, edi
mov edx, esi
cmp edi, 1
je 0x1c53b62
cmp edi, 2
je 0x1c53b59
cmp edi, 3
jne 0x1c53b6d
movzx ecx, byte [edx + 2]
shl ecx, 0x10
xor eax, ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov edx, dword [ebp - 0x14]
mov edi, dword [edx + 4]
xor ecx, ecx
test edi, edi
je 0x1c53cd8
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov ecx, edi
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x1c53bd6
mov eax, edx
lea edx, [edi - 1]
and edx, ebx
jmp 0x1c53be7
mov eax, edx
mov edx, ebx
cmp ebx, edi
jb 0x1c53be7
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1c53cd6
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], edi
mov edx, dword [ebp - 0x18]
test dl, dl
mov ecx, dword [ebp - 0x10]
cmovns ecx, edx
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax]
test ebx, ebx
mov ecx, 0
je 0x1c53cd8
mov eax, dword [ebp - 0x20]
add eax, 0xffffffff
mov dword [ebp - 0x18], eax
jmp 0x1c53c48
and eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
jne 0x1c53cd6
mov ebx, dword [ebx]
test ebx, ebx
je 0x1c53cd6
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x1c53ca0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x1c53c5d
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x1c53c3e
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x1c53cb8
cmp dword [ebp - 0x10], 0
je 0x1c53cd2
cmp byte [esi], dl
jne 0x1c53c3e
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax]
cmp eax, ecx
je 0x1c53cd2
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x1c53c80
jmp 0x1c53c3e
cmp dword [ebp - 0x24], 1
jbe 0x1c53c30
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jb 0x1c53c33
xor edx, edx
div ecx
mov eax, edx
jmp 0x1c53c33
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1c53cd2
push eax
push esi
push ecx
call fcn.01cb5ccd
add esp, 0xc
test eax, eax
jne 0x1c53c3e
mov ecx, ebx
jmp 0x1c53cd8
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c59c90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [0x1d05ef8]
test ebx, ebx
jne 0x1c59d2a
push 0x24
call fcn.01cb30d6
add esp, 4
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
push 0xc
call fcn.01cb30d6
add esp, 4
mov dword [esi + 8], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x10], ecx
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esi + 0xc], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 1
mov dword [0x1d05ef8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
test eax, eax
je 0x1c59d1f
push edi
call fcn.01ccde34
add esp, 4
jmp 0x1c59d21
xor eax, eax
mov ecx, esi
push eax
push edi
call fcn.01c59d40
test ebx, ebx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c59d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x1d01324]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea ebx, [ebp - 0x20]
push 3
push ecx
push eax
push ebx
call fcn.01c77950
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1c59f2b
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x1c59dba
push 0x1ce7efa
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1c59dca
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x1c59dc5
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x28], eax
jmp 0x1c59dd1
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test eax, eax
je 0x1c59eb8
mov dword [ebp - 0x2c], edi
cmp eax, 0x15555556
jae 0x1c59f47
mov edi, eax
shl edi, 2
lea esi, [edi + edi*2]
push esi
call fcn.01cb30d6
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x34], edi
jmp 0x1c59e7c
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.01cb30d6
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
or edi, 0x80000000
mov dword [ecx + 8], edi
mov dword [ecx + 4], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push dword [ebp - 0x38]
push eax
mov edi, eax
call fcn.01cb6be0
mov eax, edi
mov edi, dword [ebp - 0x34]
add esp, 0xc
mov word [eax + ebx*2], 0
add dword [ebp - 0x24], 0xc
add esi, 4
cmp edi, esi
je 0x1c59eac
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi]
mov dword [ebp - 0x38], eax
push eax
call fcn.01ccde34
add esp, 4
cmp eax, 0x7ffffff0
jae 0x1c59f3f
mov ebx, eax
cmp eax, 5
jae 0x1c59e30
mov eax, dword [ebp - 0x24]
mov byte [eax + 0xb], bl
test ebx, ebx
jne 0x1c59e53
jmp 0x1c59e6b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x2c]
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.01c59b80
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1c59ee4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1c59f2b
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x1c59f06
mov eax, esi
jmp 0x1c59f1f
mov eax, edi
cmp esi, edi
je 0x1c59f1c
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x1c59f00
push dword [eax - 0xc]
call fcn.01cb3106
add esp, 4
jmp 0x1c59f00
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
call fcn.01cb3106
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
call fcn.01c3fd04
lea ecx, [ebp - 0x20]
call fcn.01c41eac
int3
Function at 0x1c5bb20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20c
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x1ce5a1e
push 0x1ce7f90
push 0x103
push 0x1d05f0c
call fcn.01c41620
add esp, 0x10
cmp word [0x1d09120], 0
jne 0x1c5bb91
lea esi, [ebp - 0x210]
push 0x208
push 0
push esi
call fcn.01cb76e0
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x1d09120
push esi
call fcn.01c5c240
add esp, 0xc
push 0x1d09120
push 0x1ce7f90
push 0x103
push 0x1d06114
call fcn.01c41620
add esp, 0x10
cmp word [0x1d09120], 0
jne 0x1c5bbee
lea esi, [ebp - 0x210]
push 0x208
push 0
push esi
call fcn.01cb76e0
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x1d09120
push esi
call fcn.01c5c240
add esp, 0xc
mov esi, dword [ebp + 8]
push 0x1d09120
push 0x1ce7f90
push 0x103
push 0x1d0631c
call fcn.01c41620
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1ce7f90
push 0x103
push 0x1d06524
call fcn.01c41620
add esp, 0x10
call fcn.01c5bd60
push 0x1d09328
push 0x1ce7f90
push 0x103
push 0x1d0735c
call fcn.01c41620
add esp, 0x10
cmp word [0x1d08c18], 0
jne 0x1c5bcb4
lea eax, [ebp - 0x20c]
push 0x110
push 0
push eax
call fcn.01cb76e0
add esp, 0xc
mov dword [ebp - 0x210], 0x114
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1c5bcb4
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp - 0x204]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push str._d._d._d__s
push 0x7f
push 0x1d08c18
call fcn.01c41620
add esp, 0x1c
push 0x1d08c18
push 0x1ce7f90
push 0x103
push 0x1d06f4c
call fcn.01c41620
add esp, 0x10
call fcn.01c5be60
push 0x1d08d18
push 0x1ce7f90
push 0x103
push 0x1d0776c
call fcn.01c41620
add esp, 0x10
call fcn.01c5bf40
push 0x1d08e18
push 0x1ce7f90
push 0x103
push 0x1d07564
call fcn.01c41620
add esp, 0x10
push dword [esi]
push str.0x_08x
push 0x103
push 0x1d06b3c
call fcn.01c41620
add esp, 0x10
push esi
call fcn.01c5c040
add esp, 4
push 0x104
push 0x1d07154
call fcn.01c5c190
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.01cb3141
add esp, 0x20c
pop esi
pop ebp
ret