joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412fd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0xc], eax
push edi
test bl, 0x10
je 0x413030
mov dword [esp + 0x10], 5
jmp 0x413038
test eax, eax
je 0x413157
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x41305b
or edx, 0x80000000
test ebx, 0x4000
je 0x413069
or edx, 0x100
test ebx, 0x40000
je 0x413077
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x41308c
or ecx, 2
test ebx, 0x8000
je 0x413096
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x4130ae
or eax, 0x100
test ebx, 0x1000
je 0x4130b9
or eax, 2
test ebx, 0x2000
je 0x4130c6
or eax, 0x4000000
test ebx, 0x20000
je 0x4130d3
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4130de
mov edi, dword [edi]
push 0
push eax
push dword [esp + 0x18]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.00409ca0
mov eax, dword [esi]
test eax, eax
je 0x413147
cmp eax, 0xffffffff
je 0x413147
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [esp + 0x14], 0
mov byte [esi + 9], al
je 0x413135
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x413157
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004131f0
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4140b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040a100
Function at 0x414a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x414bc4
cmp byte [ebx + 0x45], 0
je 0x414bc4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x414acd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmovae esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x414b41
dec eax
je 0x414b45
sub eax, 2
je 0x414b9b
xor bl, bl
jmp 0x414b9d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x414b7c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0052a293
add esp, 0x10
cmp esi, eax
jne 0x414b3d
cmp byte [ebx + 0x45], 0
je 0x414b9b
test esi, esi
jne 0x414b00
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.0040fa50
jmp 0x414b00
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x414bb0
push dword [esp + 0x14]
call fcn.0052199f
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret

Function at 0x415430
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x5d8568]
mov dword [esp + 4], 0
test eax, 0xfffffffe
jne 0x415482
push 0x5d8568
call fcn.00413510
add esp, 4
test al, al
je 0x415482
mov dword [0x5d856c], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5d856c], eax
cmp eax, 0xffffffff
je 0x41548b
mov dword [0x5d8568], 0x5d856c
mov eax, dword [0x5d8568]
mov esp, ebp
pop ebp
ret
call fcn.0040ecf0
int3
Function at 0x4178a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
mov esi, edx
call fcn.00526794
add esp, 4
mov edi, eax
push 0
push 0
push edi
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push 0x4177b0
push 0
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4178e9
push edi
call fcn.0052199f
add esp, 4
xor al, al
pop edi
pop esi
pop ecx
pop ebp
ret
test esi, esi
je 0x4178fd
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ecx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ecx
pop ebp
ret

Function at 0x419340
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00419450
test al, al
je 0x4193ad
mov eax, dword [0x5d0ce4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x419365
call fcn.00422540
mov ecx, eax
mov eax, dword [0x5d8ee4]
cmp dword [ecx + eax*4], 0
jne 0x4193ad
push 0x70
call fcn.00526794
add esp, 4
test eax, eax
je 0x41938a
push esi
mov ecx, eax
call fcn.004190f0
mov esi, eax
jmp 0x41938c
xor esi, esi
mov eax, dword [0x5d0ce4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4193a5
call fcn.00422540
mov ecx, eax
mov eax, dword [0x5d8ee4]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x41c6d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0x5ca084
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x204]
mov dword [esi + 0x20], eax
call fcn.00415430
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
mov edx, dword [eax + 0x54]
lea ecx, [eax + 0x50]
mov eax, dword [ecx]
cmp eax, edx
je 0x41c747
cmp dword [eax], esi
je 0x41c743
add eax, 4
cmp eax, edx
jne 0x41c738
cmp eax, edx
jne 0x41c750
lea eax, [ebp + 8]
push eax
call fcn.00415500
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x5d958b]
lea ecx, [edi + 0x1d0]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004211e0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41c7c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [edi], 0x5ca084
call fcn.00415430
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call ebx
push edi
lea ecx, [eax + 0x4c]
call fcn.004154a0
mov esi, dword [edi + 0x10]
test esi, esi
je 0x41c85f
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x41c818
cmp edx, 0x7fffffff
jne 0x41c818
movsd xmm0, qword [0x5ce988]
jmp 0x41c825
call fcn.0052e15f
divsd xmm0, qword [0x5ca608]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.0041c930
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00420fd0
add esp, 0xc
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
je 0x41c8a0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x204]
cmp dword [edi + 0x20], eax
jne 0x41c8a0
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov eax, esp
mov dword [edi + 8], 0
mov dword [eax], edx
mov eax, dword [ecx]
push dword [edi + 0xc]
call dword [eax + 8]
lea ebx, [ebx]
call fcn.00415430
push dword [eax]
call ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
add ecx, 0x1d0
lea eax, [esp + 0xc]
push eax
call fcn.0041fdc0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41c8e1
call fcn.00418790
mov eax, dword [edi + 8]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41c919
lea esi, [eax + 0x1808]
mov ebx, 0x3f
jmp 0x41c900
sub esi, 0x60
mov ecx, esi
call fcn.0041ba50
dec ebx
jns 0x41c900
push dword [esp + 0xc]
call fcn.0052199f
add esp, 4
mov dword [edi], method.icu_52::Replaceable.virtual_8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4205e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x5d8f74]
mov dword [esp + 4], 0
test eax, 0xfffffffe
jne 0x420632
push 0x5d8f74
call fcn.00413510
add esp, 4
test al, al
je 0x420632
mov dword [0x5d8f78], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5d8f78], eax
cmp eax, 0xffffffff
je 0x42063b
mov dword [0x5d8f74], 0x5d8f78
mov eax, dword [0x5d8f74]
mov esp, ebp
pop ebp
ret
call fcn.0040ecf0
int3

Function at 0x420db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x420dc3
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x420de1
mov edi, edi
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x420dd0
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00528a0b
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x420e0d
mov eax, edx
pop edi
pop esi
pop ebp
ret 4

Function at 0x422540
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5d0ce4]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4225ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
mov dword [ebp - 0x40c], ebx
cmp ebx, 0xffffffff
je 0x42261a
mov ecx, ebx
mov edx, 0x5d0ce4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x4225ae
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x5d0ce4]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42261a
push 0x400
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00527f80
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.0052656c
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
call fcn.0040ecf0
int3
Function at 0x422620
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x5d0ce4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0049aec2
add esp, 4
mov edi, 0x100
jmp 0x422680
mov esi, dword [0x5d8f84]
xor dl, dl
test esi, esi
jle 0x4226b8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x4226b3
mov eax, dword [esi*4 + 0x5d8f90]
test eax, eax
je 0x4226b3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x422690
dec edi
test edi, edi
jle 0x4226c1
test dl, dl
jne 0x422680
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret

Function at 0x423be0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x423c8f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x423c8f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404d70
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x423c47
mov eax, dword [esi]
jmp 0x423c49
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x423c7c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x423c7c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404d70
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
Function at 0x42714a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov edx, dword [edi + 0x20]
test edx, edx
jne 0x427175
xor al, al
jmp 0x427244
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov eax, dword [edx]
push ebx
push ecx
push edx
call dword [eax + 0x1c]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x30], ebx
je 0x427193
xor al, al
jmp 0x427243
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x28]
and dword [ebp - 0x28], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x30]
and dword [ebp - 0x2c], 0
push edx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x427225
push esi
push dword [ebp - 0x2c]
call fcn.004272ad
pop ecx
pop ecx
test eax, eax
js 0x427225
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00527f80
add esp, 0xc
mov dword [ebp - 0x68], 0x10
cmp dword [esi + 0x14], 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0x3c
jb 0x4271fb
mov eax, dword [esi]
jmp 0x4271fd
mov eax, esi
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x427256
cmp dword [esi + 0x14], 8
jb 0x427218
mov esi, dword [esi]
push esi
push str.Failed_to_crack_url__ls_n
call fcn.004016d0
pop ecx
pop ecx
xor bl, bl
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x427234
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x427241
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x24]
push esi
push eax
push str.Launch_scheme_is___ls____d__n
call fcn.004016d0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [eax], esi
jmp 0x427227
Function at 0x427701
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x34]
push edi
lea eax, [esi + 0xb0]
push eax
call fcn.004038b0
cmp dword [esi + 0xc8], 5
jne 0x42775e
mov edi, 0x5541f0
push edi
call fcn.00401710
pop ecx
push eax
push 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00404440
cmp eax, 0xffffffff
je 0x42775e
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x24]
push eax
lea ebx, [esi + 0x3c]
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0042a7e3
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00402b80
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push str.Formatted_command_line_is__ls_n
call fcn.004016d0
xor eax, eax
lea edi, [ebp - 0x44]
cmp dword [ebp - 8], 8
stosd dword es:[edi], eax
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
cmp dword [ebx + 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x4277b7
mov ebx, dword [ebx]
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0x54]
xor esi, esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebx
test eax, eax
je 0x4277f3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040d710
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea ecx, [ebp - 0x54]
call fcn.0040d770
jmp 0x4277f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.004045b0
lea ecx, [ebp - 0x6c]
call fcn.00402620
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.004045b0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
Function at 0x428086
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x4280ef
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4280ef
call fcn.00426827
mov esi, eax
jmp 0x428190
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42810f
call fcn.00426827
jmp 0x428183
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x428108
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x428135
mov esi, 0x8007000e
jmp 0x428185
push eax
lea ecx, [ebp - 0x408]
call fcn.0042668c
cmp dword [ebp - 0x408], 0
je 0x42812e
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x428108
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00427f4b
mov esi, eax
test edi, edi
je 0x428190
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4281a9
lea ecx, [ebp - 0x408]
call fcn.00426ec3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4288f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x428903
push 0xd
pop eax
jmp 0x428947
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x428916
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x42890e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4289d5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4289e7
push 0xd
pop eax
jmp 0x428a19
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4289f0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc