joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x6ddb17da
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
push esi
push edi
call ebx
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x1c], ecx
jg 0x6ddb180c
jl 0x6ddb17fc
cmp dword [ebp + 0x18], ecx
jae 0x6ddb180c
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x14
jmp 0x6ddb1824
push 0x14
mov dword [ebp - 8], ecx
pop eax
cmp dword [ebp + 0x1c], ecx
jg 0x6ddb1821
jl 0x6ddb181e
cmp dword [ebp + 0x18], eax
jae 0x6ddb1821
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x6ddb1889
xor edi, edi
cmp byte [ebp + 0x20], 0
mov esi, 0xf80001
je 0x6ddb1849
mov esi, 0x4ff0001
push esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x6ddb1877
lea eax, [ebp - 0x28]
push eax
inc edi
call dword [sym.imp.user32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.user32.dll_DispatchMessageA]
cmp edi, 0x64
jl 0x6ddb1849
cmp dword [ebp - 8], 0
jne 0x6ddb1824
call ebx
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0xc]
cmp eax, ecx
jb 0x6ddb1824
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x6ddb4779
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f0]
sub esp, 0x270
mov eax, dword [0x6ddbb4b0]
xor eax, ebp
mov dword [ebp + 0x1ec], eax
mov eax, dword [ebp + 0x1f8]
push ebx
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.JNLPFileShellOpenCommand
mov esi, 0x104
push SysReAllocString
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x6ddb47ce
xor eax, eax
jmp 0x6ddb48ed
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x28]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x6ddb4860
lea eax, [ebp - 0x1c]
inc eax
cmp byte [eax], 0x22
jne 0x6ddb47f5
push esi
mov byte [eax], bl
lea eax, [ebp + 0xe8]
push ebx
push eax
call sub.msvcr100.dll_memset
lea eax, [ebp - 0x1b]
push eax
lea eax, [ebp + 0xe8]
push 0x6ddb79d4
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x18
cmp dword [ebp - 0x24], ebx
je 0x6ddb485b
lea eax, [ebp + 0xe8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6ddb4832
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x24]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6ddb4843
sub eax, esi
lea eax, [edi + eax + 0x10]
push eax
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
jne 0x6ddb4867
xor eax, eax
jmp 0x6ddb48ec
lea eax, [ebp + 0xe8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6ddb4870
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x24]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6ddb4881
push dword [ebp - 0x24]
lea ecx, [ebp + 0xe8]
push ecx
sub eax, edi
push str.__s___nocodebase__s
lea eax, [esi + eax + 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.msvcr100.dll_sprintf_s]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0x20
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
lea eax, [ebp + 0xe8]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push dword [ebp - 0x20]
mov esi, eax
call dword [sym.imp.msvcr100.dll_free]
xor eax, eax
cmp esi, ebx
pop ecx
setne al
pop edi
mov ecx, dword [ebp + 0x1ec]
pop esi
xor ecx, ebp
pop ebx
call fcn.6ddb5bdb
add ebp, 0x1f0
leave
ret
Function at 0x6ddb4904
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6ddbb4b0]
xor eax, ebp
mov dword [ebp + 0x194], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1a4]
push esi
push edi
mov edi, dword [ebp + 0x1a0]
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x80], edi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x6ddb4a62
xor esi, esi
cmp eax, esi
je 0x6ddb4a62
lea eax, [ebp + 0x90]
push eax
push esi
push str.JNLP
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
jne 0x6ddb4979
push 3
jmp 0x6ddb4a64
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x6ddb49a4
push 4
jmp 0x6ddb4a64
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6ddb49a9
sub eax, edx
mov ecx, eax
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6ddb49b9
sub eax, esi
lea eax, [eax + ecx + 0x14]
push eax
call dword [sym.imp.msvcr100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x6ddb49db
push 5
jmp 0x6ddb4a64
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6ddb49e0
sub eax, edx
mov ecx, eax
mov eax, ebx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6ddb49f0
push dword [ebp - 0x80]
sub eax, edi
push ebx
push str.docbase_s_njnlphref_s_n
lea eax, [eax + ecx + 0x14]
push eax
push esi
call dword [sym.imp.msvcr100.dll_sprintf_s]
mov eax, esi
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6ddb4a16
push 0
sub eax, ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push esi
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.msvcr100.dll_free]
pop ecx
test edi, edi
jne 0x6ddb4a42
push 6
jmp 0x6ddb4a64
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x6ddb4a53
push 7
jmp 0x6ddb4a64
lea eax, [ebp + 0x90]
push eax
call fcn.6ddb4779
pop ecx
jmp 0x6ddb4a65
push 2
pop eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6ddb5bdb
add ebp, 0x198
leave
ret

Function at 0x6ddb5bdb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6ddbb4b0]
jne 0x6ddb5be5
repz ret
jmp fcn.6ddb623d
Function at 0x6ddb5efa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x6ddb5f09
pop dword [ebp - 0x34]
mov eax, 0xcd91ba46
add eax, 0xa049a4c3
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x2d262b27
sub dword [ebp - 0x44], 0xded3e5dc
mov dword [ebp - 0x40], 0x16d8102a
add dword [ebp - 0x40], 0x1b5b3c1b
mov dword [ebp - 0x3c], 0xb53ff69b
sub dword [ebp - 0x3c], 0x68f3b26d
mov dword [ebp - 0x38], 0x76328600
sub dword [ebp - 0x38], 0x76328600
lea eax, [ebp - 0x44]
push eax
mov eax, 0x1911a5f1
add eax, 0x54c9ca97
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa5bcdaee
add dword [ebp - 0x44], 0xceb58e68
mov dword [ebp - 0x40], 0x2bcf296b
sub dword [ebp - 0x40], 0xea62c7f6
mov dword [ebp - 0x3c], 0x7d65f0a0
sub dword [ebp - 0x3c], 0x19f68434
mov dword [ebp - 0x38], 0xc3afb36b
sub dword [ebp - 0x38], 0xc3afb36b
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x5ea63f19
add eax, 0xf3531a7
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3991f
push 0
call eax
mov ecx, 0xb20c853e
sub ecx, 0xb20c3253
mov edx, eax
mov edi, 0x7b63ea37
add edi, 0xf27851c9
add edi, dword [ebp - 0x34]
mov esi, 0x5fce0560
add esi, 0x2f4d8d37
mov dword [ebp - 0x20], 0x919f6206
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 0x30], ecx
mov dword [edx], ebx
add dword [ebp - 0x1c], esi
add edx, 4
add edi, 0x1ff287bd
sub edi, 0x1ff287b9
loop 0x6ddb602b
add eax, 0x13e7f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6b98e6a8
add ecx, 0x2421958
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x21483389
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x6cb040d9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x56d5a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.005746c0
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.005746c0
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 0x56d600
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x57a06c]
test esi, esi
jle 0x56d720
mov eax, dword [0x57a070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x56d634
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x56d6b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x56d620
mov dword [esp], ebx
call fcn.0056dff0
mov edi, eax
test eax, eax
je 0x56d747
mov eax, dword [0x57a070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0056e130
mov edx, dword [0x57a070]
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 0x56d727
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x56d6b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x56d6c0
add dword [0x57a06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x57a070]
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 0x56d6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0056d5a0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x56d63e
mov eax, dword [0x57a070]
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.0056d5a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0056d5a0
lea esi, [esi]
nop
Function at 0x56dc60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x57a088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x57a080]
sub esp, 4
test ebx, ebx
je 0x56dcb5
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 0x56dcae
test esi, esi
je 0x56dcae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x56dc90
mov dword [esp], 0x57a088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x56dff0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x56e015
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x56e020
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x56e015
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x56e068
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x56e05e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x56e06a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x56e050
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401440
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.Globalmfehidin
push 1
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0xb7
jne 0x40148b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Globalmfehidin
push 1
push 0
call edi
mov esi, eax
call ebx
cmp eax, 0xb7
je 0x401465
pop edi
pop esi
pop ebx
ret

Function at 0x401490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x452534], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
jne 0x40162c
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
mov byte [0x452534], 1
call fcn.0042d860
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x401544
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
lea eax, [ebp - 0x8c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401520
sub eax, edx
je 0x401544
movsx eax, byte [ebp + eax - 0x8d]
lea ecx, [eax - 0x31]
cmp ecx, 8
ja 0x401544
add eax, 0xffffffd0
mov word [ebp - 0xc], ax
cmp dword [ebp - 0x90], 2
jne 0x401564
movzx eax, byte [ebp - 6]
test eax, eax
mov dword [0x452530], eax
jne 0x401564
mov dword [0x452530], 1
mov eax, dword [ebp - 0x9c]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x98]
lea eax, [eax + edx*2]
movzx edx, word [ebp - 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
movzx ecx, word [ebp - 0xa]
push edi
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2]
push 0x43e7ec
mov dword [0x45252c], edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4015b2
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
test edi, edi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
je 0x4015f9
lea eax, [ebp - 0xcc]
push eax
call edi
jmp 0x401606
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
pop edi
je 0x401612
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx edx, word [ebp - 0xcc]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [0x452528], edx
pop esi
test eax, eax
je 0x401638
mov edx, dword [0x452528]
mov dword [eax], edx
test ecx, ecx
je 0x401643
mov eax, dword [0x452530]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x45252c]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 8
Function at 0x401be0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 4

Function at 0x402390
Capabilities:
Get file version info
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x50
push 0
push eax
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xcd], 0
call fcn.0042d860
push ebx
call fcn.00423350
mov edi, eax
add esp, 0x10
test edi, edi
je 0x402558
cmp edi, 0xffffffff
je 0x402558
push esi
push 0x1000
call fcn.0042e047
mov esi, eax
add esp, 4
test esi, esi
je 0x40246c
push 0x1000
push 0
push esi
call fcn.0042d860
push 0
push 0x1000
push esi
push edi
call fcn.00423380
add esp, 0x1c
cmp word [esi], 0x5a4d
mov eax, esi
jne 0x40242d
mov ecx, dword [esi + 0x3c]
lea edx, [ecx + 0xf8]
cmp edx, 0x1000
ja 0x40242d
lea eax, [ecx + esi]
cmp dword [eax], 0x4550
jne 0x402463
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x402449
cmp ecx, 0x20b
jne 0x402463
add eax, 4
test eax, eax
je 0x402463
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xd4]
mov byte [ebp - 0xcd], 1
mov dword [ecx + 0x10], eax
push esi
call fcn.0042df6a
add esp, 4
push edi
call fcn.00423330
mov al, byte [ebp - 0xcd]
add esp, 4
test al, al
je 0x402545
lea edx, [ebp - 0xe4]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x40253f
push edi
call fcn.0042e047
mov esi, eax
add esp, 4
test esi, esi
je 0x402536
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402536
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xdc]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402536
mov eax, dword [ebp - 0xdc]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04X_04XFileVersion
lea ecx, [ebp - 0xcc]
push 0x64
push ecx
call fcn.0042debb
add esp, 0x14
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xcc]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402536
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe0]
push edx
push eax
push ecx
call fcn.00402310
push esi
call fcn.0042df6a
add esp, 4
mov al, byte [ebp - 0xcd]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xcd]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042d845
mov esp, ebp
pop ebp
ret 8
Function at 0x402e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
xor bl, bl
call fcn.0042d860
mov esi, dword [ebp + 8]
xor eax, eax
push esi
push str.Running__S..._n
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.0040c2f0
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_launch__S:__u_n
call fcn.0040c2f0
add esp, 0xc
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
je 0x402ead
push esi
push str.Waiting_for__S_to_complete..._n
call fcn.0040c2f0
mov eax, dword [ebp - 0x10]
add esp, 8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8