joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [0x501164]
mov edi, ecx
test esi, esi
je 0x4b42a7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b429f
je 0x4b423c
test edi, edi
je 0x4b4240
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x4b4242
mov ebx, dword [edi + 4]
jmp 0x4b4242
xor eax, eax
jmp 0x4b429f
xor ebx, ebx
mov eax, dword [0x55bd94]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x4b42c7
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b429c
mov eax, dword [edi]
test eax, eax
je 0x4b428f
lock dec dword [eax]
jne 0x4b428f
mov ecx, edi
call fcn.0046f640
push 4
push 8
push edi
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x501164
call fcn.004addb0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b4225
jmp 0x4b429f
push 8
push 4
call fcn.004d0a10
add esp, 8
ud2
Function at 0x4e4490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e44e8
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x4e44e0
cmp eax, ebx
jb 0x4e4556
cmp eax, dword [ebp + 0x10]
ja 0x4e4562
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x4e44e2
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x4e44d0
jmp 0x4e453f
ja 0x4e44e8
cmp edx, edi
mov ebx, eax
jne 0x4e44a2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4e4543
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x4e4520
mov esi, edi
sub ecx, ebx
jns 0x4e4537
jmp 0x4e4545
cmp edi, edx
je 0x4e454c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x4e4545
xor al, 1
cmp esi, edx
jne 0x4e4500
jmp 0x4e4545
xor eax, eax
jmp 0x4e4545
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5508d4
call fcn.004dc110
push 0x5508e4
push eax
push ebx
call fcn.004e1d30
push 0x5508e4
push dword [ebp + 0x10]
push eax
call fcn.004e1cd0
Function at 0x4f79e0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x5011ac], eax
cmp eax, 0xffffffff
je 0x4fd774
add esp, 0xc
ret

Function at 0x4f7ef0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4f7f20
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.004fb040
cmp eax, 1
je 0x4f7f21
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4f7f75
jmp 0x4f7f83
cmp eax, 0x6a
je 0x4f7f8d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4f7f70
cmp eax, 0x6a
je 0x4f7f8d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4f8030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x586200], 1
je 0x4f8045
call fcn.004f7fa0
mov eax, dword [0x5011ac]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x4f8070
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004f7e40
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x4f805c
test ebx, ebx
je 0x4f805c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call fcn.004f7ef0
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4fd779
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x5011ac]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4fd779
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f82b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4f82e0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4f8390
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4f83c0
cmp eax, 3
jne 0x4f82ca
mov eax, dword [0x5011ac]
cmp eax, 0xffffffff
je 0x4f82ca
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4f82ca
test byte [eax + 0x20], 0x30
je 0x4f83f0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f8323
call fcn.004f81c0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f8355
mov dword [esp], eax
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4f8347
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004f7760
lea eax, [ebx + 0x38]
call fcn.004f7ef0
mov eax, ebx
call fcn.004f7bd0
mov eax, dword [0x5011ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x4f82ca
mov eax, dword [0x5861dc]
test eax, eax
je 0x4f82ca
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x5861dc], 0
sub esp, 4
jmp 0x4f82ca
mov dword [esp + 4], 0x4f7910
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x5861dc], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4f8462
test eax, eax
je 0x4f840a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f8427
call fcn.004f81c0
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x4f8491
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f844c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.004f7760
mov eax, esi
jmp 0x4f8363
test eax, eax
je 0x4f8472
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.004f7760
lea eax, [ebx + 0x38]
call fcn.004f7ef0
jmp 0x4f82ca
mov dword [esp], edi
call fcn.004f7760
mov eax, esi
call fcn.004f7ef0
jmp 0x4f82ca
Function at 0x4f8e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004f8030
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f8e42
call fcn.004f81c0
test byte [ebx + 0x20], 0x30
jne 0x4f8e5b
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x5011ac]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4f8e9e
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4f8ee2
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f8e91
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4f8ea7
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.004f7bd0
mov eax, dword [0x5011ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push eax
jmp 0x4f8e9e
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f8ef6
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x4f8ec1

Function at 0x4fc9d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004fc6b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004fc6b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4fca30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x586240]
test esi, esi
jle 0x4fcb50
mov edi, dword [0x586244]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4fca64
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4fcae9
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4fca50
mov dword [esp], eax
mov ebx, eax
call fcn.004fd430
mov edi, eax
test eax, eax
je 0x4fcb77
mov eax, dword [0x586244]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004fd540
mov edx, dword [0x586244]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4fcb57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4fcae2
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4fcaf0
add dword [0x586240], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x586244]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4fcae2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004fc9d0
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x4fca6e
mov eax, dword [0x586244]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004fc9d0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004fc9d0
mov esi, esi
lea edi, [edi]

Function at 0x4fd070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x58625c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x586254]
sub esp, 4
test ebx, ebx
je 0x4fd0c5
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4fd0be
test esi, esi
je 0x4fd0be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4fd0a0
mov dword [esp], 0x58625c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401fa1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401fed
xor al, al
jmp 0x402014
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402002
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404594
leave
ret 4

Function at 0x402023
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402107
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push str._c_del__
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push str._____NUL
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, str.runas
cmp byte [ebp + 0x1a4], al
jne 0x4020bc
mov esi, str.open
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
invalid
Function at 0x40268f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x402746
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xbc]
push ebx
call dword [edi + 0x14]
cmp ebx, 2
jl 0x4026f6
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00401d80
cmp ebx, 2
jne 0x4026f6
cmp byte [esi + 0x1bc], 0
jne 0x402746
push 3
pop ebx
cmp ebx, 3
jne 0x402746
lea eax, [esi + 0x17c]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
mov ecx, esp
push str.FlashInstall.log
call fcn.0040140d
push 0x5c
lea ecx, [ebp - 8]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xbc]
call dword [edi + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp + 0x14]
call fcn.00401471
cmp byte [ebp + 8], 0
pop edi
pop esi
sete al
pop ebx
leave
ret 0x14

Function at 0x402826
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4028bd
cmp dword [ebp - 0x1c], 6
jae 0x402897
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4028bd
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.00401fa1
test al, al
jne 0x4028bd
inc esi
cmp esi, 3
jl 0x40287d
xor eax, eax
inc eax
jmp 0x4028bf
mov ecx, edi
call fcn.0040210b
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x4028bd
mov ecx, edi
call fcn.0040277b
cmp eax, 0x3000
jae 0x4028bd
push 2
pop eax
jmp 0x4028bf
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.00404594
add ebp, 0x78
leave
Function at 0x403528
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 8], bl
jne 0x403571
cmp byte [esi + 0xb8], bl
je 0x40355d
call fcn.0040277b
cmp eax, 0x3000
jae 0x40355d
mov ecx, esi
call fcn.0040210b
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x403571
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
xor al, al
jmp 0x4035e7
movzx eax, byte [esi + 0xb8]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push 0xb
push ebx
push ebx
mov ecx, esi
call fcn.0040268f
lea ecx, [ebp + 0x14]
call fcn.00401052
test eax, eax
jle 0x4035a6
lea ecx, [ebp + 0x14]
call fcn.00401062
jmp 0x4035a8
xor eax, eax
cmp byte [esi + 0xb8], bl
mov esi, str.runas
jne 0x4035ba
mov esi, str.open
push 1
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00401062
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
mov al, 1
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4041f2
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040140d
push 0x1c
call fcn.0040450f
pop ecx
invalid

Function at 0x404b28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004045f4
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.004045e5
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x404b64
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x404bae
push 0x20
call fcn.0040450f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404b81
mov ecx, edi
call fcn.00406a68
mov ecx, edi
jmp 0x404b83
xor ecx, ecx
mov dword [esi], ecx
call fcn.004049e6
test al, al
jne 0x404bae
mov esi, dword [esi]
cmp esi, ebx
je 0x404ba2
mov ecx, esi
call fcn.00406a6e
push esi
call fcn.00404523
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
invalid

Function at 0x40565f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4056a4
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x405706
push edi
call fcn.0040450f
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4056ef
test edi, edi
jbe 0x4056eb
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056eb
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x4056c4
cmp esi, edi
je 0x4056f8
push ebx
call fcn.00404523
pop ecx
jmp 0x405706
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x405696

Function at 0x405715
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x405723
xor al, al
leave
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x405757
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405757
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x40572e
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x405779
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x208
push edi
call fcn.0040450f
push edi
mov esi, eax
call fcn.0040450f
pop ecx
pop ecx
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0xc]
push edi
call fcn.0040140d
push edi
call fcn.00404523
push esi
call fcn.00404523
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop edi
pop esi
ret 4

Function at 0x405b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 8], ebx
call fcn.00401052
test eax, eax
jle 0x405c1b
lea ecx, [ebp + 0x1c]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x405c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401443
push ecx
push ecx
mov ecx, esp
push 0x40ceec
call fcn.0040140d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401037
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
push 0x402
mov ecx, dword [esi]
push 1
push ebx
call fcn.0040268f
lea ecx, [ebp - 0xc]
call fcn.00401471
lea ecx, [ebp + 8]
call fcn.00401471
lea ecx, [ebp + 0x1c]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x20
push 0xa
push dword [ebp + 0x10]
mov ecx, esi
mov byte [ebp - 1], bl
call fcn.00405567
add eax, 0xc8
movzx eax, ax
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x405c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401443
push ecx
push ecx
mov ecx, esp
push 0x40ceec
call fcn.0040140d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401037
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
push 0x403
jmp 0x405bf0
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
invalid