joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446318
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.0042f8a0
push ebx
push esi
mov edx, ecx
push 0x7fff
lea ecx, [ebp - 0x10000]
call fcn.004050e6
lea eax, [ebp - 0x10000]
push eax
call fcn.00420cdb
pop ecx
pop ecx
push 0x5c
pop ebx
test eax, eax
je 0x446362
cmp word [ebp + eax*2 - 0x10002], bx
jne 0x446362
xor ecx, ecx
mov word [ebp + eax*2 - 0x10002], cx
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4463ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x446396
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44639b
mov al, 1
jmp 0x4463f5
cmp eax, 3
jne 0x4463f3
lea ecx, [ebp - 0x10000]
call fcn.0041c6f4
mov esi, eax
push ebx
push esi
call fcn.004224e6
pop ecx
pop ecx
test eax, eax
jne 0x4463be
push esi
call fcn.0041f55e
pop ecx
jmp 0x4463f3
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
call fcn.00446318
push esi
mov bl, al
call fcn.0041f55e
pop ecx
test bl, bl
je 0x4463eb
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
jmp 0x4463f5
test al, 0x10
jne 0x446392
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4463f9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10460
call fcn.0042f8a0
push ebx
lea eax, [esp + 0x464]
push esi
xor ebx, ebx
push eax
mov edx, 0x7fff
mov byte [esp + 0x13], bl
call fcn.00446ebb
pop ecx
lea ecx, [esp + 0x468]
call fcn.004472cb
test al, al
je 0x446448
lea eax, [esp + 0x468]
push 0x4b3744
push eax
call fcn.00420cf4
pop ecx
pop ecx
push ebx
push ebx
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x478]
push eax
call fcn.00421dfc
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x446501
cmp al, 1
jne 0x446501
test byte [esp + 0x18], 0x10
jne 0x4464e5
mov byte [esp + 0xf], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call fcn.00420d23
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x474]
push eax
call fcn.00420cf4
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x47c]
push eax
call fcn.00420cf4
add esp, 0x18
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x446505
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x446487
mov al, bl
mov byte [esp + 0xe], al
jmp 0x446487
mov bl, byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d0b8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.0042f8a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x44d215
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4b3cbc
push eax
call fcn.0042172b
lea eax, [ebp - 0x10004]
push eax
call fcn.00420cdb
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x44d130
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x44d130
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44d14a
cmp byte [ebp + 0x10], al
je 0x44d206
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44d1fd
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00420d50
lea eax, [ebx + ebx]
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebp - 0x4fff0]
push eax
mov dword [ebp - 0x50000], 0xa0000003
call fcn.004223ac
mov eax, dword [ebp - 0x4fff6]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x4fffc], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x44d20a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x44d213
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x40142b
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 0x401458
test cl, 7
je 0x401458
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
jmp 0x401439
cmp esi, 8
jb 0x4014fb
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 + 0x423860]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423460]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x423c60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x424460]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424860]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424c60]
movzx edx, dl
xor edi, dword [edx*4 + 0x424060]
movzx eax, al
xor edi, dword [eax*4 + 0x425060]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40146a
pop ebx
jmp 0x4014fb
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
test esi, esi
ja 0x4014e7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4034dd
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 0x4034f7
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 0x403568
mov ecx, esi
call fcn.0040346b
test al, al
je 0x403532
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x403532
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004034dd
jmp 0x40356b
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403549
call ebx
cmp eax, 0x6d
jne 0x403549
xor eax, eax
jmp 0x40356b
cmp dword [esi + 0xc], 0
jne 0x403563
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x403563
call ebx
cmp eax, 0x21
jne 0x403563
push edi
jmp 0x403526
or eax, 0xffffffff
jmp 0x40356b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
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 0x4038a2
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065f3
test al, al
je 0x4038a2
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4038aa
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
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 0x4038f9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065f3
test al, al
je 0x4038f9
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 0x403ae6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00406171
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b1c
cmp ax, 0x20
je 0x403b1c
push 0
push edi
call esi
test eax, eax
jne 0x403b4b
push edi
call fcn.00403ac2
test al, al
jne 0x403b5e
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.004065f3
test al, al
je 0x403b5e
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b5e
cmp byte [ebp + 0xc], 0
je 0x403b5a
push dword [ebp + 0x10]
push edi
call fcn.004038aa
xor eax, eax
jmp 0x403b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b73
cmp eax, 3
je 0x403b73
xor eax, eax
inc eax
jmp 0x403b76
push 2
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403fab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e134]
call fcn.0040142b
cmp byte [0x4377e1], 0
mov dword [0x44e134], eax
jne 0x403fdf
cmp dword [ebp + 0xc], 0
jbe 0x403fdf
mov ecx, dword [0x44e230]
pop ebp
jmp fcn.004032d2
pop ebp
ret 8
Function at 0x4047dc
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d8e0
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 0x40486b
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x404898
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.004065f3
test al, al
je 0x404844
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x404898
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40485e
cmp eax, 3
je 0x40485e
cmp eax, 0x12
je 0x40485e
xor eax, eax
inc eax
jmp 0x404860
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x404963
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40488e
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 0x404963
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b388
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040647c
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040df60
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.0040b6b9
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b6b9
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b6b9
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x406611
xor al, al
jmp 0x40679b
push ebx
push edi
push esi
call fcn.00406290
push esi
call fcn.0040d86a
pop ecx
push esi
mov ebx, eax
call fcn.0040652f
test al, al
je 0x4066bb
push esi
call fcn.00406290
test al, al
je 0x406668
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x406797
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push esi
add edi, 8
push edi
call fcn.0040d8b2
add esp, 0x14
jmp 0x406793
cmp word [esi], 0x5c
jne 0x406797
add esi, 2
cmp word [esi], 0x5c
jne 0x406797
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x406797
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [edi + 8]
push 0x41d658
push eax
call fcn.0040d8b2
push esi
add edi, 0xe
push edi
call fcn.0040d8b2
add esp, 0x1c
jmp 0x406793
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x406797
cmp eax, edi
ja 0x406797
movzx eax, word [esi]
push eax
call fcn.004061ac
test al, al
je 0x406728
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x406797
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e7f4
push esi
add edi, 0xc
push edi
call fcn.0040d8b2
add esp, 0x20
jmp 0x406793
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004061c4
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d86a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x406797
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d8b2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x406789
movzx eax, word [esi + 2]
push eax
call fcn.004061ac
test al, al
je 0x406789
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b3b5
mov al, 1
jmp 0x406799
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4082a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x4082bd
mov ecx, 0x427474
call fcn.00408265
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 0x40830f
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x40832b
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40834c
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.004016e9
pop ecx
pop ecx
mov ecx, esi
call fcn.004109b8
push 2
mov ecx, esi
call fcn.00401666
jmp 0x40834c
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x40832b
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40834c
push str.CryptUnprotectMemory_failed
jmp 0x4082f0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x40834c
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 0x40833c
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40849c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x4084e7
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 [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b3e3
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
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 0x4085dd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40863f
mov ecx, dword [0x42748c]
call fcn.0040c7a7
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 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 0x40868f
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 0x4086d9
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 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b68
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d8e0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408b83
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408b8d
mov byte [eax], 0
test edi, edi
je 0x408c36
movzx eax, word [edi]
test ax, ax
je 0x408c36
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408bc6
cmp dword [ebp + 0xc], 0
je 0x408bd2
test esi, esi
jne 0x408bd2
test ebx, ebx
je 0x408bc2
mov byte [ebx], 1
mov esi, edx
jmp 0x408be1
cmp ax, 0xd
je 0x408bf4
cmp ax, 0xa
je 0x408bf6
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408bec
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408ba6
jmp 0x408bf6
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408bf6
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408c31
mov word [ebx], ax
test esi, esi
je 0x408c31
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.0040b388
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408c38
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408c7d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d8e0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d2b7
cmp byte [0x4304c9], 0
jne 0x408d12
push 6
push dword [0x422024]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406312
push eax
call fcn.0040c247
test eax, eax
jne 0x408d12
push 0x41d480
call fcn.0040d2a4
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d86a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d7f0
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 0x408e73
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d8e0
push ebx
xor ebx, ebx
cmp byte [0x4304f8], bl
je 0x408ef8
cmp word [0x427490], bx
je 0x408ef8
push esi
push 0x427490
lea esi, [ebp - 0x1008]
call fcn.00408e36
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 0x408ef8
push dword [ebp + 8]
call fcn.0040d86a
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 0x408efd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d8e0
cmp byte [0x4304f8], 0
je 0x408fa4
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408e36
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 0x408fa4
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 0x408f9b
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x408f7f
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.0040b388
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x4097e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040d8e0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x4099fb
push esi
call fcn.0040d86a
pop ecx
cmp eax, 0x7f6
jae 0x4099fb
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d7f0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40983b
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40983e
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x409894
mov ecx, esi
cmp word [ecx], 0x22
jne 0x409866
jmp 0x409856
cmp word [esi + eax*2], 0x22
je 0x40985f
inc eax
cmp word [esi + eax*2], bx
jne 0x40984f
jmp 0x409866
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409880
cmp word [esi + eax*2 + 2], 0x2f
je 0x409880
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x409847
jmp 0x409894
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40988e
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4098a0
cmp word [eax], bx
jne 0x4098b5
cmp byte [ebp + 0xc], bl
jne 0x4098b5
cmp word [0x4314fa], bx
je 0x4098b5
mov dword [ebp - 0x34], 0x4314fa
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.004064a1
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4098e1
push str..inf
push eax
call fcn.0040c226
test eax, eax
jne 0x4098e1
mov dword [ebp - 0x3c], 0x41d870
push dword [ebp - 0x38]
call fcn.00403ac2
test al, al
je 0x40990a
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004067e5
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4099fa
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x4304f0], bl
jne 0x40993f
cmp byte [ebp + 0xc], bl
jne 0x40993f
cmp byte [0x4304dd], bl
je 0x40999c
cmp dword [ebp + 8], ebx
je 0x40995b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40995b
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.00408c3e
cmp byte [0x4304dd], bl
je 0x40999c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40999c
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x4304e0]
jbe 0x40999c
mov dword [0x4304e0], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x4099bb
push 0x41d864
push dword [ebp - 8]
call fcn.0040c226
test eax, eax
je 0x4099e9
cmp byte [0x4304f0], bl
je 0x4099d4
cmp byte [ebp + 0xc], bl
jne 0x4099d4
mov dword [0x4304e4], 0x1b58
jmp 0x4099e9
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x4304e4], eax
cmp byte [ebp - 1], bl
je 0x4099fa
cmp byte [ebp + 0xc], bl
je 0x4099fa
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8