joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4114c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411478
test al, al
jne 0x4114e5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411531
xor eax, eax
push ebp
push 0x411521
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411528
lea eax, [ebp - 0xc]
call fcn.004114b4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x411778
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411865
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ecf8
mov edx, dword [ebp - 8]
mov ecx, 0x411880
xor eax, eax
call fcn.00411654
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x411833
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x411792
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0041127c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f2a0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0041124c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f50]
call fcn.0040c1fc
call fcn.004040b0
jmp 0x411792
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41186c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed4
ret

Function at 0x411894
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x417d90]
cmp dword [eax], 2
jne 0x4118fc
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4118b7
xor eax, eax
jmp 0x41190b
lea eax, [esp + 8]
push eax
push 0x411910
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4118fc
xor eax, eax
jmp 0x41190b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x411938
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x411992
inc esi
xor edi, edi
cmp edi, 1
jne 0x41195e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x41196c
cmp edi, 1
jle 0x41196c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004114c4
test eax, eax
jne 0x411992
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x411992
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x411992
inc edi
dec esi
jne 0x41194e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4151d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4152a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4152c0
push ebx
push 0x4152d0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405380
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x415250
mov al, 0x62
call fcn.00414dac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004151a4
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x415259
call fcn.004151a4
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4152ac
lea eax, [ebp - 4]
call fcn.00404ecc
ret
Function at 0x4153c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
jmp 0x41547f
cmp dword [esi + 0x10], 0x1000
jne 0x41546b
test byte [esi + 0x15], 1
jne 0x41546b
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41541c
cmp ebp, 2
je 0x41541c
cmp ebp, 0x10
je 0x41541c
cmp ebp, 0x20
jne 0x415438
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x415438
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x415449
mov eax, dword [esi]
add eax, ebx
call fcn.004153b8
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x41543c
cmp byte [esp + 4], 0
je 0x41546b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4153f1
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40140b
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 0x401438
test cl, 7
je 0x401438
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x420140]
dec esi
inc ecx
jmp 0x401419
cmp esi, 8
jb 0x4014db
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 + 0x420540]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x420140]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x420940]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x421140]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x421540]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x421940]
movzx edx, dl
xor edi, dword [edx*4 + 0x420d40]
movzx eax, al
xor edi, dword [eax*4 + 0x421d40]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40144a
pop ebx
jmp 0x4014db
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x420140]
dec esi
inc ecx
test esi, esi
ja 0x4014c7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x401594
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d530
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40160a
push esi
push dword [ebp + 8]
call fcn.0040d4ba
pop ecx
push dword [ebp + 8]
mov esi, eax
call fcn.00406551
test al, al
jne 0x4015e7
lea eax, [ebp - 0x1000]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d4ba
pop ecx
lea esi, [esi + eax + 1]
mov eax, 0x104
cmp esi, eax
pop esi
jbe 0x40160a
push eax
push 0xc3
call fcn.004083f0
push eax
push 0x41a3a0
call fcn.004099b7
add esp, 0xc
leave
ret 4
Function at 0x40331d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 0xc], ebx
je 0x40340c
cmp dword [esi + 0xc], 1
jne 0x403341
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0xc], ebx
je 0x40338c
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x4033ab
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x403361
mov eax, ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
je 0x4033ab
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x403351
jmp 0x4033a7
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
cmp al, bl
jne 0x403407
cmp byte [esi + 0x14], bl
je 0x403407
cmp dword [esi + 0xc], ebx
jne 0x403407
push ebx
lea eax, [esi + 0x1e]
mov edi, 0x44173c
push eax
mov ecx, edi
call fcn.004016cd
test al, al
je 0x4033fb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x403342
cmp eax, ebx
jbe 0x403342
mov edi, dword [esi]
push ebx
mov ecx, esi
call dword [edi + 0xc]
mov ecx, dword [ebp - 4]
xor ebx, ebx
sub eax, ecx
sbb edx, ebx
push edx
push eax
mov ecx, esi
call dword [edi + 8]
jmp 0x403342
lea eax, [esi + 0x1e]
push eax
push ebx
mov ecx, edi
call fcn.00401835
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403515
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
mov edi, 0x4e20
jne 0x40353c
cmp dword [ebp + 0xc], edi
jbe 0x403531
mov dword [ebp + 0xc], edi
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 0x4035a5
mov ecx, esi
call fcn.004034a3
test al, al
je 0x403572
cmp dword [ebp + 0xc], edi
jbe 0x403572
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.00403515
jmp 0x4035a8
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403589
call ebx
cmp eax, 0x6d
jne 0x403589
xor eax, eax
jmp 0x4035a8
cmp dword [esi + 0xc], 0
jne 0x4035a0
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x4035a0
call ebx
cmp eax, 0x21
je 0x403565
or eax, 0xffffffff
jmp 0x4035a8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

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

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d530
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
jne 0x403b9b
push edi
call fcn.00403b27
test al, al
jne 0x403bae
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.00406615
test al, al
je 0x403bae
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403bae
cmp byte [ebp + 0xc], 0
je 0x403baa
push dword [ebp + 0x10]
push edi
call fcn.0040390f
xor eax, eax
jmp 0x403bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403bc3
cmp eax, 3
je 0x403bc3
xor eax, eax
inc eax
jmp 0x403bc6
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x40475e
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d530
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 0x4047ed
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x40481a
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.00406615
test al, al
je 0x4047c6
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x40481a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4047e0
cmp eax, 3
je 0x4047e0
cmp eax, 0x12
je 0x4047e0
xor eax, eax
inc eax
jmp 0x4047e2
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4048e5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404810
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 0x4048e5
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b728
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040649e
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040e5c0
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.0040ba70
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040ba70
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040ba70
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406615
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d530
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x406633
xor al, al
jmp 0x4067bd
push ebx
push edi
push esi
call fcn.004062b2
push esi
call fcn.0040d4ba
pop ecx
push esi
mov ebx, eax
call fcn.00406551
test al, al
je 0x4066dd
push esi
call fcn.004062b2
test al, al
je 0x40668a
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x4067b9
mov edi, dword [ebp + 0xc]
push 4
push 0x41a620
push edi
call fcn.0040e5ff
push esi
add edi, 8
push edi
call fcn.0040d502
add esp, 0x14
jmp 0x4067b5
cmp word [esi], 0x5c
jne 0x4067b9
add esi, 2
cmp word [esi], 0x5c
jne 0x4067b9
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067b9
mov edi, dword [ebp + 0xc]
push 4
push 0x41a620
push edi
call fcn.0040e5ff
lea eax, [edi + 8]
push 0x41a618
push eax
call fcn.0040d502
push esi
add edi, 0xe
push edi
call fcn.0040d502
add esp, 0x1c
jmp 0x4067b5
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4067b9
cmp eax, edi
ja 0x4067b9
movzx eax, word [esi]
push eax
call fcn.004061a6
test al, al
je 0x40674a
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067b9
mov edi, dword [ebp + 0xc]
push 4
push 0x41a620
push edi
call fcn.0040e5ff
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e5ff
push esi
add edi, 0xc
push edi
call fcn.0040d502
add esp, 0x20
jmp 0x4067b5
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004061be
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d4ba
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x4067b9
mov edi, dword [ebp + 0xc]
push 4
push 0x41a620
push edi
call fcn.0040e5ff
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d502
add esp, 0x14
cmp word [esi], 0x2e
jne 0x4067ab
movzx eax, word [esi + 2]
push eax
call fcn.004061a6
test al, al
je 0x4067ab
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b755
mov al, 1
jmp 0x4067bb
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4084c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x4365ac], ebx
jne 0x4084e1
mov ecx, 0x4365a4
call fcn.00408489
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
cmp byte [ebp + 0x10], bl
je 0x40852b
mov ecx, dword [0x4365ac]
cmp ecx, ebx
je 0x408547
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408568
push str.CryptProtectMemory_failed
mov esi, 0x44173c
push esi
call fcn.00401774
pop ecx
pop ecx
mov ecx, esi
call fcn.00401682
push 2
mov ecx, esi
call fcn.00401830
jmp 0x408568
mov ecx, dword [0x4365b0]
cmp ecx, ebx
je 0x408547
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408568
push str.CryptUnprotectMemory_failed
jmp 0x40850c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x408568
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 0x408558
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4086a5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x41f03c], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x4086f0
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 [0x44acf4], ax
xor eax, eax
mov word [0x44acf6], ax
mov dword [0x41f03c], 0x44acf4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b784
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x41f02c
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 0x408950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x43f5f0]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x43f5f4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4089b2
mov ecx, dword [0x4365bc]
call fcn.0040c692
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41a684
push 0
push 0xc2
push edi
call esi
mov byte [0x43f5f4], 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 0x408a02
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 0x408a4c
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 0x41a758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408e9d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d530
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408eb8
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408ec2
mov byte [eax], 0
test edi, edi
je 0x408f6b
movzx eax, word [edi]
test ax, ax
je 0x408f6b
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408efb
cmp dword [ebp + 0xc], 0
je 0x408f07
test esi, esi
jne 0x408f07
test ebx, ebx
je 0x408ef7
mov byte [ebx], 1
mov esi, edx
jmp 0x408f16
cmp ax, 0xd
je 0x408f29
cmp ax, 0xa
je 0x408f2b
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x408f21
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408edb
jmp 0x408f2b
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408f2b
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408f66
mov word [ebx], ax
test esi, esi
je 0x408f66
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.0040b728
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408f6d
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408fb2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d530
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d2d4
cmp byte [0x43f5f5], 0
jne 0x409047
push 6
push dword [0x41f028]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406334
push eax
call fcn.0040c16c
test eax, eax
jne 0x409047
push 0x41a440
call fcn.0040d2c1
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d4ba
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d440
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 0x4091a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d530
push ebx
xor ebx, ebx
cmp byte [0x43f638], bl
je 0x40922d
cmp word [0x4365c0], bx
je 0x40922d
push esi
push 0x4365c0
lea esi, [ebp - 0x1008]
call fcn.0040916b
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 0x40922d
push dword [ebp + 8]
call fcn.0040d4ba
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 0x409232
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d530
cmp byte [0x43f638], 0
je 0x4092d9
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.0040916b
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 0x4092d9
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 0x4092d0
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x4092b4
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.0040b728
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8