joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c6f
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x30], edi
lea ecx, [edi + 0x28]
add ecx, esi
call fcn.0040fbeb
mov dword [esp + esi + 0x48], eax
add esi, 4
cmp esi, 0x40
jb 0x415c8f
push 0x30
lea ebx, [esp + 0x84]
pop ebp
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub ebp, 1
jne 0x415caf
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, ebp
rol eax, 7
mov dword [esp + 0x40], esi
mov esi, ebp
ror esi, 0xb
xor esi, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, ebp
mov edx, dword [esp + 0x1c]
mov ecx, ebp
ror eax, 6
not ecx
and ecx, dword [esp + 0x10]
xor esi, eax
mov eax, edx
mov dword [esp + 0x1c], ebp
and eax, ebp
mov dword [esp + 0x3c], ebp
xor ecx, eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add esi, ecx
add esi, dword [ebx + 0x442500]
add esi, dword [esp + ebx + 0x48]
add ebx, 4
add esi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add ebp, esi
mov dword [esp + 0x10], edx
mov eax, edi
rol eax, 0xa
mov edx, edi
ror edx, 0xd
xor edx, eax
mov dword [esp + 0x20], edi
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x18]
mov ecx, eax
and eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x14]
and ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea edi, [edx + esi]
mov esi, dword [esp + 0x1c]
mov edx, eax
cmp ebx, 0x100
jb 0x415d26
mov eax, dword [esp + 0x2c]
add eax, edi
mov edi, dword [esp + 0x30]
add dword [edi + 4], ecx
mov ecx, dword [esp + 0x34]
add dword [edi + 8], ecx
mov ecx, dword [esp + 0x38]
add dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x3c]
add dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x40]
add dword [edi + 0x18], ecx
add dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x44]
add dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x148]
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423125
add esp, 0x13c
ret
Function at 0x415e99
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
push 0x38
pop edi
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x20]
and edx, 0x3f
mov ebp, dword [esi + 0x24]
shld ebp, ebx, 3
shl ebx, 3
mov byte [edx + esi + 0x28], 0x80
inc edx
cmp edx, edi
je 0x415efc
jbe 0x415ee9
push 0x40
pop ecx
cmp edx, ecx
jae 0x415ee0
sub ecx, edx
lea eax, [esi + 0x28]
push ecx
add eax, edx
push 0
push eax
call fcn.00424d90
add esp, 0xc
mov ecx, esi
call fcn.00415c6f
xor edx, edx
sub edi, edx
lea eax, [esi + 0x28]
push edi
add eax, edx
push 0
push eax
call fcn.00424d90
add esp, 0xc
lea edx, [esi + 0x60]
mov ecx, ebp
call fcn.00415c19
lea edx, [esi + 0x64]
mov ecx, ebx
call fcn.00415c19
mov ecx, esi
call fcn.00415c6f
mov ebx, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [esi]
call fcn.00415c19
mov ecx, dword [esi + 4]
lea edx, [ebx + 4]
call fcn.00415c19
mov ecx, dword [esi + 8]
lea edx, [ebx + 8]
call fcn.00415c19
mov ecx, dword [esi + 0xc]
lea edx, [ebx + 0xc]
call fcn.00415c19
mov ecx, dword [esi + 0x10]
lea edx, [ebx + 0x10]
call fcn.00415c19
mov ecx, dword [esi + 0x14]
lea edx, [ebx + 0x14]
call fcn.00415c19
mov ecx, dword [esi + 0x18]
lea edx, [ebx + 0x18]
call fcn.00415c19
mov ecx, dword [esi + 0x1c]
lea edx, [ebx + 0x1c]
call fcn.00415c19
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00415c2f
Function at 0x41708c
Capabilities:
Get common file path

Disassembly:
push 0x5c
mov eax, 0x43a4a7
call fcn.00438b26
mov edi, ecx
push ecx
push 0x104
lea ecx, [ebp - 0x68]
call fcn.00401a88
xor esi, esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00401895
mov edx, eax
call fcn.0040188a
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41712e
lea ecx, [ebp - 0x2c]
call fcn.004021e6
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401d16
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040188a
push eax
lea ecx, [ebp - 0x44]
call fcn.00401d16
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.00410fbb
lea ecx, [ebp - 0x44]
call fcn.00401e5c
lea ecx, [ebp - 0x5c]
call fcn.00401e5c
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401e5c
lea ecx, [ebp - 0x68]
call fcn.0040189d
mov eax, esi
call fcn.00438ad5
ret

Function at 0x41713e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4171a1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00423125
leave
ret

Function at 0x417262
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0
push edx
push 0x4174e0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4172a5
push str.CreateThread_failed
mov edi, 0x44a850
push edi
call fcn.00409f5c
pop ecx
pop ecx
call fcn.0040a1e6
push 2
mov ecx, edi
call fcn.0040a119
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41bff1
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x4c]
push 0
push ebx
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x42], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebp
call fcn.0041c15d
cmp dword [ebp + 0x20], 0
je 0x41c03c
push dword [ebp + 0x20]
call fcn.0042c3ae
pop ecx
test edi, edi
jne 0x41c044
xor eax, eax
jmp 0x41c04b
push edi
call fcn.0042ceb4
pop ecx
and dword [ebp + 0x24], 0
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebp + 4], 0
je 0x41c084
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push dword [esp + 0x10]
mov esi, dword [ebp]
sub edi, eax
lea ebx, [eax + 1]
sub edi, 2
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
xor esi, esi
push esi
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
push edi
push dword [esp + 0x30]
push ebx
push 0x40000000
push esi
push str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 4], eax
jne 0x41c114
cmp dword [ebp + 0x10], esi
jne 0x41c114
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x41c12a
cmp dword [ebp + 0x24], esi
jne 0x41c12a
cmp dword [ebp + 0x20], esi
je 0x41c12a
push dword [ebp + 0x20]
lea eax, [esp + 0x28]
push eax
call fcn.0041c648
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.004022aa
lea ecx, [esp + 0x24]
call fcn.00401e5c
jmp 0x41c12a
test eax, eax
je 0x41c12a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423125
add esp, 0x30
ret 0x14
Function at 0x41d40a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x4435f8
push ecx
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41d517
push esi
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41d517
push esi
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d517
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d517
and dword [ebp - 8], 0
push edi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41d511
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41d50a
push ebx
push esi
push eax
call fcn.00424810
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d503
mov ecx, dword [ebp - 4]
call fcn.0041da51
mov ecx, dword [ebp - 4]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
test ebx, ebx
je 0x41d503
mov ecx, ebx
call fcn.0041d930
test eax, eax
jne 0x41d4f1
push ecx
lea ecx, [ebp - 0xc]
call fcn.0041d8ff
lea eax, [ebp - 8]
push eax
mov eax, ecx
mov ecx, ebx
push eax
call fcn.0041d90a
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43c270]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
jmp 0x41d519
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x41d825
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00424d90
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
shrd eax, ecx, 0x1e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423125
leave
ret
Function at 0x41df5b
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
lea ecx, [ebp + 0x1c]
call fcn.0041ded1
test al, al
je 0x41e018
push ebx
push edi
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x14], 0x11060000
xor edi, edi
mov dword [ebp + 8], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], edi
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp + 4], edi
inc ebx
mov dword [ebp - 0xc], 3
push eax
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp], edi
mov dword [ebp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41e016
push ebx
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41e008
push edi
push dword [ebp + 0x18]
lea eax, [ebp + 0x60]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x41e008
lea eax, [ebp + 0x60]
mov dword [ebp + 0xc], 0xc
mov dword [ebp + 0x10], eax
mov ecx, esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0x14], edi
push eax
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x18], edi
je 0x41e016
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.00423125
add ebp, 0x78
leave
ret

Function at 0x41e028
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x43aaae
call fcn.00438af3
mov esi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
mov ecx, edx
call fcn.0040126f
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e118
mov ecx, dword [ebp + 8]
call fcn.0040126f
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e10b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
shr edx, 1
call fcn.00401891
cmp eax, edx
jbe 0x41e08f
call fcn.00401891
mov edx, eax
inc edx
mov eax, 0x10000
cmp edx, eax
jb 0x41e09b
mov edx, eax
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401a88
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401895
add eax, eax
mov dword [ebp - 0x1c], eax
call fcn.0040188a
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0040126f
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e0ff
mov word [ebp - 0xe], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xe]
push eax
call fcn.00421e48
lea ecx, [ebp - 0x2c]
call fcn.0040188a
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401279
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040189d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x41e123
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040335d
mov al, bl
call fcn.00438ac1
ret 0xc
Function at 0x41e183
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x60
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov bl, cl
call fcn.0041dbbd
push 0x68
push dword [0x44a7f4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x44a7ee], 0
mov esi, eax
mov ebp, 0xc2
jne 0x41e1f0
call fcn.0041c13f
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4422dc
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [0x44a7ee], 1
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x5c
push eax
push 0
push 0x43a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov byte [esp + 0x29], 0
inc ecx
mov dword [esp + 0x14], ecx
test bl, bl
je 0x41e24d
mov eax, dword [esp + 0x18]
and eax, 0xbfffffff
mov dword [esp + 0x24], 0xa0
or eax, ecx
mov dword [esp + 0x14], 0x40000001
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0040126f
push eax
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x41e2ab
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x442620
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423125
add esp, 0x60
ret
Function at 0x421987
Capabilities:
Delete file
Move file

Disassembly:
push 0x74
mov eax, 0x43b0c9
call fcn.00438b26
mov esi, 0x44a99c
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x60], ebx
call fcn.00405d1e
test al, al
jne 0x4219e0
push 0x4436cc
lea ecx, [ebp - 0x40]
call fcn.00401d16
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x58]
mov edx, esi
mov dword [ebp - 0x60], 1
call fcn.00410bce
push 3
pop ebx
push 6
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00422376
mov byte [ebp - 0x59], 1
test eax, eax
je 0x4219e4
mov byte [ebp - 0x59], 0
test bl, 2
je 0x4219f4
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.00401e5c
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x421a05
lea ecx, [ebp - 0x40]
call fcn.00401e5c
cmp byte [ebp - 0x59], 0
je 0x421a6a
mov ecx, 0x44a980
call fcn.00411d9b
push esi
lea ecx, [ebp - 0x28]
call fcn.00408d05
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x28]
call fcn.004085d4
push 0x14
pop eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6e], ebx
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x7c], 3
mov word [ebp - 0x70], ax
call fcn.0040126f
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x28]
call fcn.00401e5c
call fcn.00438ad5
ret

Function at 0x421b97
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44a7fc], 0
push esi
mov esi, ecx
mov byte [0x44a7e8], 1
push 1
push esi
mov byte [0x44a7e9], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
pop edx
mov ecx, esi
call fcn.004021fd
mov ecx, 0x44ae90
call fcn.00405d1e
test al, al
je 0x421bdb
cmp byte [0x44a7ee], 0
je 0x421be4
cmp dword [0x44a7f0], 0
jne 0x421bf4
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x421c56
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x439c8c
call fcn.00438b26
mov esi, ecx
cmp byte [0x44a9bc], 0
je 0x421cf8
mov ebx, 0x44a9c0
mov ecx, ebx
call fcn.00405d1e
test al, al
jne 0x421cf8
lea ecx, [ebp - 0x28]
call fcn.004021e6
xor edi, edi
lea edx, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00421bf6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421cf0
mov ecx, esi
call fcn.00401891
lea edx, [eax*2 + 2]
call fcn.0040126f
push edx
push eax
push 1
push edi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401e5c
call fcn.00438ad5
ret
Function at 0x423fba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423ff9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423ff9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423ff9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423ff9
cmp dword [ecx + 0x74], 0xe
jbe 0x423ff9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4317ee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43188b
push ebx
push esi
call fcn.004317b7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043174b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431838
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43188a
push edi
push eax
call fcn.0042eb14
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431858
call fcn.0042eada
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431889
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043174b
add esp, 0x20
test eax, eax
jne 0x431877
push edi
call fcn.0042eada
jmp 0x43187f
push ebx
call fcn.0042eada
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431af8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea08
push 0x43ea00
push str.FlsAlloc
push 0x1f
call fcn.00431a14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431b2c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c270]
call esi
jmp 0x431b32
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431b76
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea18
push 0x43ea10
push str.FlsGetValue
push 0x21
call fcn.00431a14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431bad
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c270]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431bb5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea20
push 0x43ea18
push str.FlsSetValue
push 0x22
call fcn.00431a14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431bef
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c270]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x438a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438abd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438abd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret