joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40da98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x415018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40bce2
cmp byte [ebx + 0x49], 0
je 0x40bce2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40bcd6
lea esi, [ebp - 0x2c]
call fcn.0040b6f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40bbc3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40bbfb
dec eax
je 0x40bbff
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40bcdd
call fcn.0040a8a0
xor al, al
jmp 0x40bce4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40bc0f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40bc3d
cmp edi, 0x10
jae 0x40bc1e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40bcce
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40bcda
test esi, esi
jne 0x40bbb7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40bcff
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40bcff
cmp edi, esi
jae 0x40bcb7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c500
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x40bbb7
mov ecx, eax
cmp edi, 0x10
jae 0x40bc93
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40bcae
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40bbb1
test esi, esi
jne 0x40bc89
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40bcc6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40bbb1
lea ecx, [ebp - 0x2c]
call fcn.0040a8a0
xor al, al
jmp 0x40bce4
lea ecx, [ebp - 0x2c]
call fcn.0040a8a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cfe4
mov esp, ebp
pop ebp
ret
push 0x4115a8
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x40cfe4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415018]
jne 0x40cfee
repz ret
jmp fcn.0040d4c3
Function at 0x401426
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x401453
test cl, 7
je 0x401453
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4245c0]
dec esi
inc ecx
jmp 0x401434
cmp esi, 8
jb 0x4014f6
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4249c0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4245c0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424dc0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4255c0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4259c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x425dc0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4251c0]
movzx eax, al
xor edi, dword [eax*4 + 0x4261c0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x401465
pop ebx
jmp 0x4014f6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4245c0]
dec esi
inc ecx
test esi, esi
ja 0x4014e2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4034f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
jne 0x403510
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403581
mov ecx, esi
call fcn.00403484
test al, al
je 0x40354b
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x40354b
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004034f6
jmp 0x403584
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403562
call ebx
cmp eax, 0x6d
jne 0x403562
xor eax, eax
jmp 0x403584
cmp dword [esi + 0xc], 0
jne 0x40357c
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x40357c
call ebx
cmp eax, 0x21
jne 0x40357c
push edi
jmp 0x40353f
or eax, 0xffffffff
jmp 0x403584
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403877
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040e630
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038bb
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040636d
test al, al
je 0x4038bb
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4038c3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040e630
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x403912
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040636d
test al, al
je 0x403912
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403aff
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040e630
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00406197
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b35
cmp ax, 0x20
je 0x403b35
push 0
push edi
call esi
test eax, eax
jne 0x403b64
push edi
call fcn.00403adb
test al, al
jne 0x403b77
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.0040636d
test al, al
je 0x403b77
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b77
cmp byte [ebp + 0xc], 0
je 0x403b73
push dword [ebp + 0x10]
push edi
call fcn.004038c3
xor eax, eax
jmp 0x403b8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b8c
cmp eax, 3
je 0x403b8c
xor eax, eax
inc eax
jmp 0x403b8f
push 2
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403fc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44f29c]
call fcn.00401426
cmp byte [0x438941], 0
mov dword [0x44f29c], eax
jne 0x403ff8
cmp dword [ebp + 0xc], 0
jbe 0x403ff8
mov ecx, dword [0x44f398]
pop ebp
jmp fcn.004032eb
pop ebp
ret 8
Function at 0x404802
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040e630
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x404891
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048be
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040636d
test al, al
je 0x40486a
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404884
cmp eax, 3
je 0x404884
cmp eax, 0x12
je 0x404884
xor eax, eax
inc eax
jmp 0x404886
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x404989
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4048b4
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x404989
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b51f
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.004066f2
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040ecb0
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040bddb
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040bddb
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040bddb
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40636d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040e630
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40638b
xor al, al
jmp 0x406515
push ebx
push edi
push esi
call fcn.004061ea
push esi
call fcn.0040e5ba
pop ecx
push esi
mov ebx, eax
call fcn.004062e2
test al, al
je 0x406435
push esi
call fcn.004061ea
test al, al
je 0x4063e2
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x406511
mov edi, dword [ebp + 0xc]
push 4
push 0x41e514
push edi
call fcn.0040f544
push esi
add edi, 8
push edi
call fcn.0040e602
add esp, 0x14
jmp 0x40650d
cmp word [esi], 0x5c
jne 0x406511
add esi, 2
cmp word [esi], 0x5c
jne 0x406511
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x406511
mov edi, dword [ebp + 0xc]
push 4
push 0x41e514
push edi
call fcn.0040f544
lea eax, [edi + 8]
push 0x41e50c
push eax
call fcn.0040e602
push esi
add edi, 0xe
push edi
call fcn.0040e602
add esp, 0x1c
jmp 0x40650d
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x406511
cmp eax, edi
ja 0x406511
movzx eax, word [esi]
push eax
call fcn.004061d2
test al, al
je 0x4064a2
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x406511
mov edi, dword [ebp + 0xc]
push 4
push 0x41e514
push edi
call fcn.0040f544
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040f544
push esi
add edi, 0xc
push edi
call fcn.0040e602
add esp, 0x20
jmp 0x40650d
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406216
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e5ba
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x406511
mov edi, dword [ebp + 0xc]
push 4
push 0x41e514
push edi
call fcn.0040f544
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e602
add esp, 0x14
cmp word [esi], 0x2e
jne 0x406503
movzx eax, word [esi + 2]
push eax
call fcn.004061d2
test al, al
je 0x406503
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b54c
mov al, 1
jmp 0x406513
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40833c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x4285dc], ebx
jne 0x408355
mov ecx, 0x4285d4
call fcn.004082fe
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x4083a7
mov ecx, dword [0x4285dc]
cmp ecx, ebx
je 0x4083c3
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083e4
push str.CryptProtectMemory_failed
mov esi, 0x43375c
push esi
call fcn.004016fb
pop ecx
pop ecx
mov ecx, esi
call fcn.00401614
push 2
mov ecx, esi
call fcn.00401678
jmp 0x4083e4
mov ecx, dword [0x4285e0]
cmp ecx, ebx
je 0x4083c3
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083e4
push str.CryptUnprotectMemory_failed
jmp 0x408388
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4083e4
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x4083d4
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408534
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x423038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40857f
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x43cd24], ax
xor eax, eax
mov word [0x43cd26], ax
mov dword [0x423038], 0x43cd24
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b57a
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x423028
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40869b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x431624]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x431628], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4086fd
mov ecx, dword [0x4285ec]
call fcn.0040cf75
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41e2fc
push 0
push 0xc2
push edi
call esi
mov byte [0x431628], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40874d
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408797
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41e648
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408c26
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040e630
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408c41
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408c4b
mov byte [eax], 0
test edi, edi
je 0x408cf4
movzx eax, word [edi]
test ax, ax
je 0x408cf4
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408c84
cmp dword [ebp + 0xc], 0
je 0x408c90
test esi, esi
jne 0x408c90
test ebx, ebx
je 0x408c80
mov byte [ebx], 1
mov esi, edx
jmp 0x408c9f
cmp ax, 0xd
je 0x408cb2
cmp ax, 0xa
je 0x408cb4
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408caa
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408c64
jmp 0x408cb4
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408cb4
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408cef
mov word [ebx], ax
test esi, esi
je 0x408cef
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b51f
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408cf6
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408d3b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040e630
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040da17
cmp byte [0x431629], 0
jne 0x408dd0
push 6
push dword [0x423024]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406588
push eax
call fcn.0040c948
test eax, eax
jne 0x408dd0
push 0x41e340
call fcn.0040da04
lea eax, [ebp - 0x1020]
push eax
call fcn.0040e5ba
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040e540
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x408f31
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040e630
push ebx
xor ebx, ebx
cmp byte [0x431658], bl
je 0x408fb6
cmp word [0x4285f0], bx
je 0x408fb6
push esi
push 0x4285f0
lea esi, [ebp - 0x1008]
call fcn.00408ef4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x408fb6
push dword [ebp + 8]
call fcn.0040e5ba
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
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 ebx
leave
ret 4

Function at 0x408fbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040e630
cmp byte [0x431658], 0
je 0x409062
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408ef4
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x409062
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409059
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40903d
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b51f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x4098a5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040e630
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409aa3
push esi
call fcn.0040e5ba
pop ecx
cmp eax, 0x7f6
jae 0x409aa3
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0040e540
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x1c0
cmp cx, 0x22
jne 0x409900
lea eax, [esi + 2]
mov dword [ebp - 0x34], eax
jmp 0x409903
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cx, bx
je 0x409959
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40992b
jmp 0x40991b
cmp word [esi + eax*2], 0x22
je 0x409924
inc eax
cmp word [esi + eax*2], bx
jne 0x409914
jmp 0x40992b
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409945
cmp word [esi + eax*2 + 2], 0x2f
je 0x409945
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40990c
jmp 0x409959
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x409953
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x409965
cmp word [eax], bx
jne 0x40997a
cmp byte [ebp + 0xc], bl
jne 0x40997a
cmp word [0x43265a], bx
je 0x40997a
mov dword [ebp - 0x30], 0x43265a
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00406717
mov edi, eax
cmp edi, ebx
je 0x4099a5
push str..inf
push edi
call fcn.0040c927
test eax, eax
jne 0x4099a5
mov dword [ebp - 0x38], 0x41e730
push dword [ebp - 0x34]
call fcn.00403adb
test al, al
je 0x4099ce
push 0x800
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x34]
call fcn.004067a5
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409aa2
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x431650], bl
jne 0x4099fe
cmp byte [ebp + 0xc], bl
jne 0x4099fe
cmp byte [0x43163d], bl
je 0x409a5e
cmp dword [ebp + 8], ebx
je 0x409a1a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409a1a
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.00408cfc
cmp byte [0x43163d], bl
je 0x409a5e
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409a5e
mov eax, dword [ebp - 8]
add eax, 0x3e8
cmp eax, dword [0x431640]
jbe 0x409a5e
mov dword [0x431640], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x409a7a
push 0x41e724
push edi
call fcn.0040c927
test eax, eax
je 0x409a91
cmp byte [0x431650], bl
je 0x409a91
cmp byte [ebp + 0xc], bl
jne 0x409a91
mov dword [0x431644], 0x1b58
cmp byte [ebp - 1], bl
je 0x409aa2
cmp byte [ebp + 0xc], bl
je 0x409aa2
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40bf9d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4503cc]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x43ed40]
mov ecx, dword [0x4503d4]
mov dword [0x4503cc], eax
movzx eax, al
add eax, dword [0x4503d0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4503d0], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x43ed40]
mov eax, dword [esp + 4]
mov dword [0x4503d4], ecx
ret 4

Function at 0x40c03a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bff7
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ee20
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040bf7d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040bf9d
inc esi
cmp esi, 0xc
jl 0x40c05c
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x43f294]
test byte [eax + 0x40], 2
movzx eax, byte [0x44f2ff]
jne 0x40c097
movzx eax, byte [0x44f307]
movzx ecx, cx
cmp ecx, eax
je 0x40c0a3
or eax, 0xffffffff
jmp 0x40c0e8
mov ecx, dword [0x44f2a8]
mov eax, ecx
cdq
cmp edx, dword [0x43f274]
push edi
jl 0x40c0c5
mov edx, dword [0x43f270]
jg 0x40c0c1
cmp eax, edx
jbe 0x40c0c5
mov edi, edx
jmp 0x40c0c7
mov edi, ecx
mov esi, dword [0x44f2a4]
jmp 0x40c0e1
dec edi
call fcn.0040bf7d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040bf9d
inc esi
test edi, edi
jne 0x40c0cf
xor eax, eax
pop edi
pop esi
leave
ret 8