joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40804b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x148], edx
push edi
cmp esi, ebx
je 0x4080a3
mov al, byte [esi]
cmp al, 0x2f
je 0x40809d
cmp al, 0x5c
je 0x40809d
cmp al, 0x3a
je 0x40809d
call fcn.00407996
test al, al
jne 0x40808e
dec esi
jmp 0x408099
push esi
push ebx
call fcn.004034ed
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x408074
mov edx, dword [ebp - 0x148]
mov cl, byte [esi]
cmp cl, 0x3a
jne 0x4080c1
lea eax, [ebx + 1]
cmp esi, eax
je 0x4080c1
push edx
xor edi, edi
push edi
push edi
push ebx
call fcn.00407f99
add esp, 0x10
jmp 0x40813b
xor edi, edi
cmp cl, 0x2f
je 0x4080d6
cmp cl, 0x5c
je 0x4080d6
cmp cl, 0x3a
je 0x4080d6
mov eax, edi
jmp 0x4080d9
xor eax, eax
inc eax
movzx eax, al
sub esi, ebx
inc esi
neg eax
push 0x140
sbb eax, eax
and eax, esi
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.00405e20
add esp, 0xc
lea eax, [ebp - 0x144]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov esi, eax
mov eax, dword [ebp - 0x148]
cmp esi, 0xffffffff
jne 0x40814c
push eax
push edi
push edi
push ebx
call fcn.00407f99
add esp, 0x10
mov edi, eax
cmp esi, 0xffffffff
je 0x408139
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
mov dword [ebp - 0x150], ecx
cmp byte [ebp - 0x118], 0x2e
jne 0x40817b
mov cl, byte [ebp - 0x117]
test cl, cl
je 0x408196
cmp cl, 0x2e
jne 0x40817b
cmp byte [ebp - 0x116], 0
je 0x408196
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00407f99
add esp, 0x10
test eax, eax
jne 0x40812b
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x148]
jne 0x40815a
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x150]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x40812d
push 0x407d89
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036f0
add esp, 0x10
jmp 0x40812d
Function at 0x40a085
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x30
push esi
mov eax, dword [ecx*4 + 0x417ef8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + ebx + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
cmp edi, ecx
jae 0x40a222
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x1c], 0
mov ch, byte [edi]
mov byte [ebp - 0x15], ch
mov edx, dword [eax*4 + 0x417ef8]
mov cl, byte [edx + ebx + 0x2d]
test cl, 4
je 0x40a11c
mov al, byte [edx + ebx + 0x2e]
and cl, 0xfb
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push 2
mov byte [ebp - 0xb], ch
mov byte [edx + ebx + 0x2d], cl
push eax
jmp 0x40a156
call fcn.00408a59
movzx ecx, byte [edi]
mov edx, 0x8000
test word [eax + ecx*2], dx
je 0x40a153
cmp edi, dword [ebp - 0x20]
jae 0x40a1f9
push 2
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004042fa
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a222
inc edi
jmp 0x40a16b
push 1
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.004042fa
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a222
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push 5
push eax
push 1
lea eax, [ebp - 0x1c]
inc edi
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a222
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a21a
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x34]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jb 0x40a222
cmp byte [ebp - 0x15], 0xa
jne 0x40a1ee
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0xd
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a21a
cmp dword [ebp - 0x28], 1
jb 0x40a222
inc dword [esi + 8]
inc dword [esi + 4]
cmp edi, dword [ebp - 0x20]
jb 0x40a0e7
jmp 0x40a222
mov edx, dword [ebp - 0x30]
mov al, byte [edi]
mov ecx, dword [edx*4 + 0x417ef8]
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [edx*4 + 0x417ef8]
or byte [eax + ebx + 0x2d], 4
inc dword [esi + 4]
jmp 0x40a222
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x40a31b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.0040bb70
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x417ef8]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
and dword [esi], 0
add eax, ebx
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x1410], ecx
mov dword [ebp - 0x1408], eax
jmp 0x40a3d7
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x40a39a
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x40a38a
inc dword [esi + 8]
mov byte [edi], 0xd
inc edi
mov byte [edi], al
lea eax, [ebp - 5]
inc edi
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x40a378
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
push edi
lea eax, [ebp - 0x1404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a3dd
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x40a3e5
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x40a372
jmp 0x40a3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret

Function at 0x40a3f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.0040bb70
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x417ef8]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
add eax, ebx
mov dword [ebp - 0x1410], ecx
xor edx, edx
mov dword [ebp - 0x1408], eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
jmp 0x40a4c3
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x40a483
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xa
jne 0x40a470
add dword [esi + 8], 2
push 0xd
pop edx
mov word [edi], dx
add edi, 2
mov word [edi], ax
lea eax, [ebp - 6]
add edi, 2
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x40a454
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
and edi, 0xfffffffe
lea eax, [ebp - 0x1404]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a4c9
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x40a4d1
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x40a44e
jmp 0x40a4d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x40a4e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.0040bb70
mov eax, dword [0x415f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x30
push ebx
push esi
mov eax, dword [eax*4 + 0x417ef8]
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [esi], ebx
mov edi, ecx
mov dword [esi + 4], ebx
mov dword [ebp - 0x1418], eax
mov dword [ebp - 0x1414], edx
mov dword [esi + 8], ebx
cmp ecx, edx
jae 0x40a5f6
lea eax, [ebp - 0x6b0]
cmp edi, edx
jae 0x40a56d
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x40a560
push 0xd
pop ebx
mov word [eax], bx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x40a548
xor ebx, ebx
lea ecx, [ebp - 0x1408]
push ebx
push ebx
push 0xd55
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x140c], eax
test eax, eax
je 0x40a5ee
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5ee
add ebx, dword [ebp - 0x1410]
mov eax, dword [ebp - 0x140c]
cmp ebx, eax
jb 0x40a5a1
mov edx, dword [ebp - 0x1414]
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, edx
jb 0x40a542
jmp 0x40a5f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x4026c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4026f7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403288
jmp 0x402715
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402650
mov edi, eax
test ebx, ebx
je 0x402715
cmp dword [esi], 0
je 0x402715
dec ebx
jmp 0x4026fe
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40289c
xor eax, eax
push ebp
push 0x402895
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40289c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403c0c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403dc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403c6d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403de0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403cda
xor eax, eax
push ebp
push 0x403cd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403cbc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403e00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403cda
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403dbb
cmp byte [ebp - 0xd], 0
jne 0x403d1c
cmp byte [ebp - 0x12], 0
je 0x403dbb
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403d35
dec ebx
cmp byte [ebx], 0x2e
je 0x403d44
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403d34
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403dbb
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403d71
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403dbb
cmp byte [ebp - 0xd], 0
je 0x403dbb
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403dbb
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405928
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040348c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40594a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x406118
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406151
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403288
jmp 0x40615a
mov eax, ebx
mov edx, esi
call fcn.0040323c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406164
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406185
mov al, byte [esp]
jmp 0x406187
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x408430
Capabilities:
Copy file
Create process on windows
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, 0x4083e8
call fcn.00404bc4
xor eax, eax
push ebp
push 0x40859c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00408380
test al, al
je 0x408477
push 0x30
push 0x4085a8
push 0x4085cc
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x408581
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004026c8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004059a0
mov edx, dword [ebp - 0x10]
mov eax, 0x40a604
call fcn.004031f8
mov eax, 0x40a608
mov edx, 0xff
call fcn.004034d8
push pe_nt_image_headers32
mov eax, dword [0x40a608]
call fcn.0040348c
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [0x40a608]
call fcn.0040348c
call fcn.00405aa8
mov edx, eax
mov eax, 0x40a608
call fcn.004034d8
push dword [0x40a608]
push 0x408638
push 0x408644
push 0x408654
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040343c
mov eax, dword [ebp - 0x10]
mov edx, 0x20
call fcn.00405928
push 0
push dword [0x40a608]
push 0x408638
push 0x408644
push 0x408654
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040343c
mov eax, dword [ebp - 0x10]
call fcn.0040348c
push eax
push dword [0x40a604]
push 0x408638
push 0x408644
push 0x408664
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040343c
mov eax, dword [ebp - 0x14]
call fcn.0040348c
push eax
call sub.kernel32.dll_CopyFileA
push 5
mov eax, dword [0x40a608]
call fcn.0040348c
push eax
push 0
push 0x40866c
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085a3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004031c8
ret
Function at 0xa3f160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24d000]
push edi
or ebp, 0xffffffff
jmp 0xa3f182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa3f189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa3f178
mov eax, 1
add ebx, ebx
jne 0xa3f19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa3f1ac
jne 0xa3f1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa3f1cb
dec eax
add ebx, ebx
jne 0xa3f1b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa3f190
add ebx, ebx
jne 0xa3f1c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa3f21d
xor ecx, ecx
sub eax, 3
jb 0xa3f1e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa3f252
sar eax, 1
mov ebp, eax
jmp 0xa3f1ee
add ebx, ebx
jne 0xa3f1ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa3f1bc
inc ecx
add ebx, ebx
jne 0xa3f1fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa3f1bc
add ebx, ebx
jne 0xa3f209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa3f1fe
jne 0xa3f21a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa3f1fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa3f23c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa3f22e
jmp 0xa3f17e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa3f23c
add edi, ecx
jmp 0xa3f17e
pop esi
mov edi, esi
mov ecx, 0x7916
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa3f25a
cmp byte [edi], 0x22
jne 0xa3f25a
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 0xa3f25f
lea edi, [esi + 0x63b000]
mov eax, dword [edi]
or eax, eax
je 0xa3f2d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x644230]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6443a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa3f28c
mov ecx, edi
jns 0xa3f2bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6443ac]
or eax, eax
je 0xa3f2d1
mov dword [ebx], eax
add ebx, 4
jmp 0xa3f2a9
call dword [esi + 0x6443a8]
mov ebp, dword [esi + 0x6443b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xa3f30b
sub esp, 0xffffff80
jmp 0x53c99a
Function at 0x13144718
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.13146954
test esi, esi
jne 0x1314474e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.13146abc
jmp 0x1314476c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.1314465c
mov edi, eax
test esi, esi
je 0x1314476c
cmp dword [ebx], 0
je 0x1314476c
dec esi
jmp 0x13144755
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x13145680
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.13145a6c
mov byte [esp], al
cmp byte [esp], 0
jne 0x13145809
test edi, edi
je 0x13145809
mov byte [esp + 1], 0
test ebp, ebp
jle 0x13145740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x1314571b
cmp edi, 0xffffffff
je 0x131456df
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x131456df
mov byte [esp], 0
jmp 0x13145809
mov ebx, dword [esi]
cmp ebx, 1
jg 0x1314571b
test ebx, ebx
jne 0x13145714
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.13142568
test eax, eax
jne 0x13145714
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x13145809
pause
dec ebp
test ebp, ebp
jg 0x131456c4
cmp edi, 0xffffffff
je 0x13145740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x1314573e
mov byte [esp], 0
jmp 0x13145809
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x1314568e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.13142568
cmp ebx, eax
jne 0x13145740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.1314587c
mov edx, eax
mov ebx, dword [0x131fe8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x131457a7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x131457a5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x131457a7
xor edi, edi
cmp byte [esp], 0
je 0x131457d0
mov ebx, dword [esi]
test bl, 1
jne 0x131457e9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.13142568
cmp ebx, eax
jne 0x131457ad
mov byte [esp + 1], 1
jmp 0x131457e9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.13142568
cmp ebx, eax
jne 0x131457d0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x1314575a
cmp byte [esp], 0
je 0x13145809
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret