joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cf0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.004060a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x404d48
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00401be0
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0x200c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.0040bc84
add esp, 4
test esi, esi
jne 0x404d92
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00401be0
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0x200c]
push eax
push 0
call fcn.0040f9ae
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404dd5
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00401be0
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040a100
push 0x5c
push esi
call fcn.0040a397
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x404e33
nop
mov ecx, edi
lea eax, [esp + 0xc]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.00410324
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040a397
mov edi, eax
add esp, 8
test edi, edi
jne 0x404e00
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret
Function at 0x404e60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x423210
push eax
call fcn.00402b60
push esi
push edi
mov ebx, eax
call fcn.00405260
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x404f5f
push ebx
test esi, esi
je 0x404f64
call fcn.0040adc0
add esp, 4
test eax, eax
jne 0x404f36
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040affe
add esp, 0x10
test eax, eax
jne 0x404ef9
push ebx
call fcn.0040adec
add esp, 4
test eax, eax
je 0x404f1b
push ebx
jmp 0x404f2b
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040bc16
add esp, 0x10
test eax, eax
je 0x404f2a
push esi
call fcn.0040adec
add esp, 4
test eax, eax
jne 0x404f2a
push ebx
call fcn.0040adc0
add esp, 4
test eax, eax
je 0x404ed0
jmp 0x404f36
push esi
call fcn.00411a39
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040ad3c
push esi
call fcn.0040ad3c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00408e0a
add esp, 0x1004
ret
test esi, esi
je 0x404f6c
push esi
call fcn.0040ad3c
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408e0a
add esp, 0x1004
ret
Function at 0x404fe0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x40505f
push 0x425464
call fcn.004051b0
push ebp
mov ebx, eax
call fcn.00404cf0
mov edi, eax
add esp, 8
test edi, edi
je 0x40511b
push edi
push 0x425468
call fcn.0041090f
push edi
mov esi, eax
call fcn.0040bc84
add esp, 0xc
test esi, esi
je 0x405063
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00401be0
add esp, 4
xor eax, eax
jmp 0x405195
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00405a80
add esp, 0x10
xor esi, esi
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00411a1e
mov edi, eax
push edi
call fcn.00405e00
add esp, 0xc
test eax, eax
je 0x40511f
push edi
call fcn.0040bc84
inc esi
add esp, 4
cmp esi, 5
jl 0x405090
test ebp, ebp
je 0x40511b
push 0
push 0x425464
push 0
call fcn.004060a0
test ebx, ebx
je 0x405104
push 0
push ebx
push 0
mov edi, eax
call fcn.004060a0
mov esi, eax
push esi
push edi
call fcn.0041090f
push edi
call fcn.0040bc84
push esi
call fcn.0040bc84
push ebx
call fcn.0040bc84
add esp, 0x2c
xor eax, eax
jmp 0x405195
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040bc84
add esp, 4
xor eax, eax
jmp 0x405195
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00406140
push edi
call fcn.0040bc84
add esp, 0x10
test ebp, ebp
je 0x405190
push 0
push 0x425464
push 0
call fcn.004060a0
test ebx, ebx
je 0x405179
push 0
push ebx
push 0
mov edi, eax
call fcn.004060a0
mov esi, eax
push esi
push edi
call fcn.0041090f
push edi
call fcn.0040bc84
push esi
call fcn.0040bc84
push ebx
call fcn.0040bc84
add esp, 0x2c
jmp 0x405190
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040bc84
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408e0a
add esp, 0x2028
ret
Function at 0x4051b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.004060a0
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x405240
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00406140
add esp, 0xc
test eax, eax
je 0x405240
cmp byte [eax], 0
je 0x405240
push eax
call fcn.00412e38
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00408e0a
add esp, 0x4004
ret

Function at 0x405730
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.004060a0
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.0040bc84
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x405760
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.004060a0
push 1
push 0x16
call fcn.004114a3
push 1
push 2
call fcn.004114a3
push 1
push 0xf
call fcn.004114a3
push 1
push 0x15
call fcn.004114a3
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040bdf0
push eax
call fcn.00412e8c
push eax
call fcn.00411039
push 1
mov dword [esp + 0x68], eax
call fcn.0040bdf0
push eax
call fcn.00412e8c
push eax
call fcn.00411039
push 2
mov dword [esp + 0x78], eax
call fcn.0040bdf0
push eax
call fcn.00412e8c
push eax
call fcn.00411039
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058b7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00408e0a
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x42556c
call fcn.00401c10
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00408e0a
add esp, 0x2068
ret
Function at 0x405e00
Capabilities:
Create directory

Disassembly:
mov eax, 0x201c
call fcn.00408e20
mov eax, dword [0x430014]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
mov ebx, dword [esp + 0x2024]
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
push 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405eab
lea eax, [esp + 8]
push eax
push esi
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x405e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405eab
push dword [esp + 8]
push 1
call fcn.0040bc79
mov esi, eax
add esp, 8
test esi, esi
je 0x405eab
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x405eab
lea eax, [esp + 0x10]
push eax
push dword [esi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.0040bc84
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 0xffffffff
je 0x405ec4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, str.S_1_3_4
test esi, esi
cmovne eax, esi
push eax
push str.D:_A__FA____s_
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.00405ca0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xc
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x405f41
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405f41
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00408e0a
add esp, 0x201c
ret
mov ecx, dword [esp + 0x2020]
or eax, 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.00408e0a
add esp, 0x201c
ret
Function at 0x4149c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041483c

Function at 0x418f62
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418ab5
Function at 0x47e370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x47e392
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e388
mov eax, 1
add ebx, ebx
jne 0x47e3ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e3a0
jne 0x47e3bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e3a0
xor ecx, ecx
sub eax, 3
jb 0x47e3d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e442
mov ebp, eax
add ebx, ebx
jne 0x47e3db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47e3e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47e40c
inc ecx
add ebx, ebx
jne 0x47e3f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e3ed
jne 0x47e409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e3ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e42c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e41d
jmp 0x47e38e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e42c
add edi, ecx
jmp 0x47e38e
pop esi
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47e48b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e449
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e044]
or eax, eax
je 0x47e485
mov dword [ebx], eax
add ebx, 4
jmp 0x47e466
call dword [esi + 0x7e040]
mov ebp, dword [esi + 0x7e048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47e4bf
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x9516008], 0x8088405
inc edx
mov dword [ebx + 0x9516008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x94fea17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x94fea1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x94ff40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x9518268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x9518268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x95170e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x94ff416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x41d1f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e360
cmp byte [0x44a470], 0
je 0x41d281
cmp word [0x44a472], 0
je 0x41d281
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041bdb0
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d280
push dword [ebp + 8]
call fcn.004235b3
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d287
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e360
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040fbd8
mov esi, eax
test esi, esi
je 0x41d2df
movzx ecx, word [esi]
push ecx
jmp 0x41d2ca
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040fcf1
test al, al
jne 0x41d2c3
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4288b4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4288ef

Function at 0x428ada
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00428874
out 0x49, al
test dword [edx + 0x50a8458d], edx
call fcn.00428884
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00428839
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x428b62
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00428874
and al, 0x8b
cmp eax, 0x50c0458d
call fcn.00428884
push eax
push esi
push dword [ebp + 8]
call fcn.00428839
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00428874
ldmxcsr dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
inc ebp
neg dl