joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81056b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404674
call fcn.00407011
push 4
mov dword [esp + 0x18], 0
call fcn.00407fa0
mov edi, eax
add esp, 4
test edi, edi
je 0x406424
push ebx
call fcn.00406ee9
mov dword [edi], eax
call fcn.00406ca8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406fd2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406418
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406ffa
pop ebx
jmp 0x406426
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408a11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813dd0]
jne 0x408a1b
repz ret
jmp fcn.0040de7c
Function at 0x413059
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ac4d
and dword [ebp - 0x14], 0
cmp dword [0x8163d4], 0
mov dword [ebp - 0x18], eax
jne 0x41310c
push 0x4040a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4131b4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404094
push ebx
call edi
test eax, eax
je 0x4131b4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404084
push ebx
mov dword [0x8163d4], eax
call edi
push eax
call esi
push 0x404070
push ebx
mov dword [0x8163d8], eax
call edi
push eax
call esi
push 0x404054
push ebx
mov dword [0x8163dc], eax
call edi
push eax
call esi
mov dword [0x8163e4], eax
test eax, eax
je 0x41310c
push 0x40403c
push ebx
call edi
push eax
call esi
mov dword [0x8163e0], eax
mov eax, dword [0x8163e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413165
cmp dword [0x8163e4], ecx
je 0x413165
push eax
call esi
push dword [0x8163e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413165
test ebx, ebx
je 0x413165
call edi
test eax, eax
je 0x41315c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41315c
test byte [ebp - 8], 1
jne 0x413165
or dword [ebp + 0x10], 0x200000
jmp 0x413198
mov eax, dword [0x8163d8]
cmp eax, dword [ebp - 0x18]
je 0x413198
push eax
call esi
test eax, eax
je 0x413198
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413198
mov eax, dword [0x8163dc]
cmp eax, dword [ebp - 0x18]
je 0x413198
push eax
call esi
test eax, eax
je 0x413198
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163d4]
call esi
test eax, eax
je 0x4131b4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4131b6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408a11
leave
ret
Function at 0x80ef50
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9b120], 0x37
jne 0x80eff3
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x404148
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb9b124]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x81b184]
mov byte [edx + esi], cl
add esp, 0xc0c
ret
Function at 0x80f200
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9b120]
sub esp, 0xad4
push ebx
mov ebx, dword [0x81b184]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x80f3f1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x80f236
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0xb9b120], 0x1c
jne 0x80f24d
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [ebx + 4]
mov edx, dword [0x814708]
mov eax, dword [0x81470c]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x814710]
mov dword [esp + 0x34], edx
mov edx, dword [0x814714]
mov ebx, 0xc6ef3720
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x20
jmp 0x80f292
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x38]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0xb9a0a4], esi
mov eax, dword [esp + 0x1c]
add dword [0xb9a0a4], eax
mov eax, dword [0xb9a0a4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0xb9b120], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x80f326
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x3c]
cmp dword [0xb9b120], 0x979
mov dword [0xb9a0a8], 0xff6b3619
mov dword [0xb9a0ac], 0xffffffff
jne 0x80f375
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2e4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x80f290
cmp dword [0xb9b120], 0x8d4
jne 0x80f3aa
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ecx
cmp dword [0xb9b120], 0x17
jne 0x80f3e0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x80f230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xad4
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408917
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
dec edi
and edi, edi
call fcn.00408937
mov eax, eax
xor dword [ebx], esi
mov eax, edi
inc ebx
cmp ebx, edx
jne fcn.00408917
dec edi
ret
Function at 0x414450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x414472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414468
mov eax, 1
add ebx, ebx
jne 0x41448b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414480
jne 0x41449c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414480
xor ecx, ecx
sub eax, 3
jb 0x4144b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414522
mov ebp, eax
add ebx, ebx
jne 0x4144bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4144c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4144ec
inc ecx
add ebx, ebx
jne 0x4144d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4144cd
jne 0x4144e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4144cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41450c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4144fd
jmp 0x41446e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41450c
add edi, ecx
jmp 0x41446e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41452a
cmp byte [edi], 5
jne 0x41452a
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 al, bl
loop 0x41452f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x41459e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a19c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a250]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41455c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a254]
or eax, eax
je 0x414598
mov dword [ebx], eax
add ebx, 4
jmp 0x414579
call dword [esi + 0x1a264]
mov ebp, dword [esi + 0x1a258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4145d2
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x5d8aba
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
sub edi, edi
and eax, edi
dec edi
call fcn.005d8aee
dec edi
sub edi, eax
and edi, eax
xor dword [ecx], edx
and eax, eax
add ecx, 2
mov eax, eax
sub edi, eax
and edi, edi
cmp ecx, ebx
jl fcn.005d8aba
mov eax, 0x23b79cf6
ret
Function at 0x40ed59
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop edx
sub eax, 1
add ecx, 0x9facaa3e
call fcn.0040ed86
and ecx, ecx
xor dword [ebx], edx
add ecx, 0xe2d60bbf
dec ecx
inc ebx
cmp ebx, edi
jne fcn.0040ed59
inc ecx
and ecx, ecx
ret
Function at 0x40153a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetTickCount
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
cmp byte [ebp - 0x104], 0
jne 0x4016a4
sbb al, 0x9c
pop es
add byte [edi + 0x5e], bl
pop ebx
pop ebp
ret 8
cmp byte [ebp - 0x104], 0
jne 0x4017f1
inc ebp
in al, dx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x44498f
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetFileAttributesExA
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp dword [0x42471a], 0
je 0x40181c
mov ebx, edi
add ebx, edi
jmp 0x40181e
mov ebx, edi
mov esi, ebx
and esi, 0xffffffa8
or edi, edi
jne 0x40197b
test eax, eax
jne 0x5b334f
push dword [ebp + 0x10]
push edi
push esi
call fcn.004016d9
mov esi, eax
lea ecx, [ebp - 0x18]
call 0x44d3b6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call 0x4b56f9
leave
ret 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001270
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0xffffffff
mov dword [esp + 0x3c], 0x715a5db7
mov bl, byte [esp + 0x3b]
cmp eax, 0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2b], bl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
je 0x100012be
mov eax, 0xffffffff
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000131e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov esi, edx
xor esi, 0x715a5db3
mov edi, ecx
sub edi, 0x52
sete bl
sub eax, ecx
sete bh
add edx, 0x8ea5a24b
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x816793f
cmp ecx, esi
mov dword [esp + 0x10], eax
sete al
or ecx, 2
cmp ecx, edx
sete ah
or bl, ah
or al, bl
and bh, al
and bh, 1
movzx eax, bh
mov dword [esp + 0xc], edi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
rdtsc
mov esi, eax
rdtsc
mov edi, eax
xor eax, eax
xor edx, edx
sub edi, esi
mov eax, dword [esp + 4]
cmp eax, edi
cmovb eax, edi
cmp ecx, edi
cmova ecx, edi
mov bl, byte [esp + 0x2b]
mov byte [esp + 0x3b], bl
mov edx, dword [esp + 8]
add edx, 1
mov esi, dword [esp + 0x2c]
cmp edx, esi
mov edi, ecx
mov esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edx
je 0x100012be
jmp 0x1000131e

Function at 0x10013440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
xor esi, esi
cmp eax, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
je 0x1001347d
mov eax, 0xffffffff
xor ecx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jmp 0x10013489
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov bl, byte [edx + eax]
mov esi, ecx
and esi, 0xff
movzx edi, bl
xor esi, edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi + esi*4]
shr ecx, 8
add eax, 1
xor esi, ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov ecx, esi
mov dword [esp], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
jne 0x10013489
mov eax, dword [esp]
xor eax, 0xffffffff
mov dword [esp + 0xc], eax
jmp 0x1001347d
Function at 0x10014110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
and esp, 0xfffffff8
sub esp, 0x470
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, ecx
mov dword [esp], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
call fcn.100142a0
lea ecx, [esp + 0x68]
mov si, word [esp + reloc.crtdll.dll_vsprintf]
mov eax, dword [eax + 0x78]
mov edx, dword [esp + 0x50]
add edx, eax
mov edi, ecx
mov dword [esp], ecx
mov word [esp + 0x4e], si
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
call fcn.10014430
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
add eax, dword [ecx + edx + 0x20]
mov edi, dword [esp + 0x40]
add edi, 0x18
mov ebx, dword [ecx + edx + 0x18]
cmp ebx, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
je 0x100141dc
jmp 0x100141c5
mov eax, dword [esp + 0x30]
mov cx, word [eax]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
add edx, dword [esi + 0x1c]
movzx edi, cx
mov ebx, dword [esp + 0x50]
add ebx, dword [edx + edi*4]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
add ecx, dword [edx + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
jmp 0x1001421e
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100141b9
mov eax, dword [esp + 0x30]
add eax, 2
mov ecx, dword [esp + 0x44]
xor ecx, 0x3ad5883e
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x44]
or ecx, 0x2f9c0ba5
mov edx, dword [esp + 0x20]
add edx, 1
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x34]
cmp edx, dword [ecx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
jae 0x100141dc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x469], 0xbf
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
add edx, dword [esi + eax*4]
mov dword [esp], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
call fcn.10013410
mov bl, byte [esp + 0x469]
sub bl, 0x66
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov esi, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], bl
call fcn.10013440
mov bl, byte [esp + 0x17]
mov byte [esp + 0x469], bl
mov ecx, dword [esp + 0x58]
cmp eax, ecx
je 0x10014199
jmp 0x100141e4
Function at 0x41d73b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e830
cmp byte [0x44a428], 0
je 0x41d7ca
cmp word [0x44a42a], 0
je 0x41d7ca
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a42a
call fcn.0041c2d0
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 0x41d7c9
push dword [ebp + 8]
call fcn.00423483
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
leave
ret 4

Function at 0x41d7ce
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e830
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.0040ff51
mov esi, eax
test esi, esi
je 0x41d826
movzx ecx, word [esi]
push ecx
jmp 0x41d811
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0041006d
test al, al
jne 0x41d80a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x40167a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x402094
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
mov esi, esi
mov eax, edx
xor ecx, ecx
and eax, 1
test al, al
je 0x4020c0
nop
lea esi, [esi]
shr edx, 1
inc ecx
mov eax, edx
and eax, 1
test al, al
jne 0x4020b4
mov dword [esi + ebx*4], ecx
inc ebx
test edx, edx
je 0x4020e7
mov al, dl
xor ecx, ecx
xor al, 1
and al, 1
test al, al
je 0x4020e1
shr edx, 1
inc ecx
mov al, dl
xor al, 1
and al, 1
test al, al
jne 0x4020d4
mov dword [esi + ebx*4], ecx
inc ebx
jmp 0x4020a4
mov edx, 0x10
sub edx, ecx
mov dword [esi + ebx*4], edx
inc ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x413ff0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable