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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x448020]
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.0040fba8
mov dword [esp + esi + 0x48], eax
add esi, 4
cmp esi, 0x40
jb 0x4159af
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 0x4159cf
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 + 0x441500]
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 0x415a46
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.00422815
add esp, 0x13c
ret
Function at 0x415bb9
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 0x415c1c
jbe 0x415c09
push 0x40
pop ecx
cmp edx, ecx
jae 0x415c00
sub ecx, edx
lea eax, [esi + 0x28]
push ecx
add eax, edx
push 0
push eax
call fcn.00424480
add esp, 0xc
mov ecx, esi
call fcn.0041598f
xor edx, edx
sub edi, edx
lea eax, [esi + 0x28]
push edi
add eax, edx
push 0
push eax
call fcn.00424480
add esp, 0xc
lea edx, [esi + 0x60]
mov ecx, ebp
call fcn.00415939
lea edx, [esi + 0x64]
mov ecx, ebx
call fcn.00415939
mov ecx, esi
call fcn.0041598f
mov ebx, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [esi]
call fcn.00415939
mov ecx, dword [esi + 4]
lea edx, [ebx + 4]
call fcn.00415939
mov ecx, dword [esi + 8]
lea edx, [ebx + 8]
call fcn.00415939
mov ecx, dword [esi + 0xc]
lea edx, [ebx + 0xc]
call fcn.00415939
mov ecx, dword [esi + 0x10]
lea edx, [ebx + 0x10]
call fcn.00415939
mov ecx, dword [esi + 0x14]
lea edx, [ebx + 0x14]
call fcn.00415939
mov ecx, dword [esi + 0x18]
lea edx, [ebx + 0x18]
call fcn.00415939
mov ecx, dword [esi + 0x1c]
lea edx, [ebx + 0x1c]
call fcn.00415939
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.0041594f
Function at 0x416d27
Capabilities:
Get common file path

Disassembly:
push 0x5c
mov eax, 0x439b85
call fcn.00438246
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 0x416dc9
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.00410d19
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.004381f5
ret

Function at 0x416dd9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448020]
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 0x416e3c
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.00422815
leave
ret

Function at 0x416efd
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0
push edx
push 0x417170
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x416f40
push str.CreateThread_failed
mov edi, 0x449850
push edi
call fcn.00409f0c
pop ecx
pop ecx
call fcn.0040a196
push 2
mov ecx, edi
call fcn.0040a0c9
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41b8f1
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
mov eax, dword [0x448020]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x34]
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.0041ba59
cmp dword [ebp + 0x20], 0
je 0x41b93c
push dword [ebp + 0x20]
call fcn.0042ba9e
pop ecx
test edi, edi
jne 0x41b944
xor eax, eax
jmp 0x41b94b
push edi
call fcn.0042c5a4
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 0x41b984
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 0x41ba10
cmp dword [ebp + 0x10], esi
jne 0x41ba10
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x41ba26
cmp dword [ebp + 0x24], esi
jne 0x41ba26
cmp dword [ebp + 0x20], esi
je 0x41ba26
push dword [ebp + 0x20]
call fcn.0041bf19
mov esi, eax
test esi, esi
je 0x41ba26
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042ba9e
pop ecx
jmp 0x41ba26
test eax, eax
je 0x41ba26
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 + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422815
add esp, 0x18
ret 0x14
Function at 0x41cb0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x4425e4
push ecx
push dword [0x4497d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41cc17
push esi
push dword [0x4497d0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41cc17
push esi
push dword [0x4497d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cc17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41cc17
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 0x41cc11
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41cc0a
push ebx
push esi
push eax
call fcn.00423f00
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 0x41cc03
mov ecx, dword [ebp - 4]
call fcn.0041d151
mov ecx, dword [ebp - 4]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43b26c]
call esi
test ebx, ebx
je 0x41cc03
mov ecx, ebx
call fcn.0041d030
test eax, eax
jne 0x41cbf1
push ecx
lea ecx, [ebp - 0xc]
call fcn.0041cfff
lea eax, [ebp - 8]
push eax
mov eax, ecx
mov ecx, ebx
push eax
call fcn.0041d00a
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43b26c]
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 0x41cc19
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x41cf25
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x448020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00424480
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.00422815
leave
ret
Function at 0x41d65b
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
mov eax, dword [0x448020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
lea ecx, [ebp + 0x1c]
call fcn.0041d5d1
test al, al
je 0x41d718
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 0x41d716
push ebx
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41d708
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 0x41d708
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 0x41d716
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.00422815
add ebp, 0x78
leave
ret

Function at 0x41d728
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x43a082
call fcn.00438213
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 0x41d818
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 0x41d80b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
shr edx, 1
call fcn.00401891
cmp eax, edx
jbe 0x41d78f
call fcn.00401891
mov edx, eax
inc edx
mov eax, 0x10000
cmp edx, eax
jb 0x41d79b
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 0x41d7ff
mov word [ebp - 0xe], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xe]
push eax
call fcn.0042153b
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 0x41d823
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040335d
mov al, bl
call fcn.004381e1
ret 0xc
Function at 0x41d883
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x60
mov eax, dword [0x448020]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov bl, cl
call fcn.0041d2bd
push 0x68
push dword [0x4497f4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4497f0], 0
mov esi, eax
mov ebp, 0xc2
jne 0x41d8f0
call fcn.0041ba3b
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 0x4412dc
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [0x4497f0], 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 0x41d94d
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 0x41d9ab
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 0x441618
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.00422815
add esp, 0x60
ret
Function at 0x42107a
Capabilities:
Delete file
Move file

Disassembly:
push 0x74
mov eax, 0x43a69d
call fcn.00438246
mov esi, 0x44999c
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x60], ebx
call fcn.00405cf0
test al, al
jne 0x4210d3
push 0x4426b8
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.0041092c
push 3
pop ebx
push 6
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00421a69
mov byte [ebp - 0x59], 1
test eax, eax
je 0x4210d7
mov byte [ebp - 0x59], 0
test bl, 2
je 0x4210e7
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.00401e5c
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4210f8
lea ecx, [ebp - 0x40]
call fcn.00401e5c
cmp byte [ebp - 0x59], 0
je 0x42115d
mov ecx, 0x449980
call fcn.00411a76
push esi
lea ecx, [ebp - 0x28]
call fcn.00408cb5
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408584
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.004381f5
ret

Function at 0x42128a
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4497fc], 0
push esi
mov esi, ecx
mov byte [0x4497f2], 1
push 1
push esi
mov byte [0x4497f3], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
pop edx
mov ecx, esi
call fcn.004021fd
mov ecx, 0x449e90
call fcn.00405cf0
test al, al
je 0x4212ce
cmp byte [0x4497f0], 0
je 0x4212d7
cmp dword [0x4497ec], 0
jne 0x4212e7
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x421349
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x4393ac
call fcn.00438246
mov esi, ecx
cmp byte [0x4499bc], 0
je 0x4213eb
mov ebx, 0x4499c0
mov ecx, ebx
call fcn.00405cf0
test al, al
jne 0x4213eb
lea ecx, [ebp - 0x28]
call fcn.004021e6
xor edi, edi
lea edx, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.004212e9
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 0x4213e3
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.004381f5
ret
Function at 0x4236aa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4236e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4236e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4236e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4236e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4236e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430f0e
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 0x430fab
push ebx
push esi
call fcn.00430ed7
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.00430e6b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430f58
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430faa
push edi
push eax
call fcn.0042e234
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430f78
call fcn.0042e1fa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430fa9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430e6b
add esp, 0x20
test eax, eax
jne 0x430f97
push edi
call fcn.0042e1fa
jmp 0x430f9f
push ebx
call fcn.0042e1fa
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 0x431218
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43da08
push 0x43da00
push str.FlsAlloc
push 0x1f
call fcn.00431134
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43124c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b26c]
call esi
jmp 0x431252
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431296
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43da18
push 0x43da10
push str.FlsGetValue
push 0x21
call fcn.00431134
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4312cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b26c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4312d5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43da20
push 0x43da18
push str.FlsSetValue
push 0x22
call fcn.00431134
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43130f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43b26c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4381b0
Capabilities:
Parse pe header

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