joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401229
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
test edi, edi
je 0x401271
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x401274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00413fe0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], esi
mov dword [ebp - 0x8a10], esi
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push esi
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x4013d5
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00403f72
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00403f72
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x40131b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
xor eax, eax
inc eax
jmp 0x4013d7
Function at 0x4013eb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x884], ecx
lea edi, [ebp - 0x6c]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
and dword [ebp - 0x874], 0
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push str.IsWow64Process
movsb byte es:[edi], byte [esi]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push str.kernel32
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401458
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [ebp - 0x874]
lea eax, [ebp - 0x87c]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x6c]
and edi, 0x100
or edi, 0x20019
push edi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40155b
mov esi, 0x800
mov dword [ebp - 0x878], 7
push esi
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x870], esi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x878]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call ebx
test esi, esi
jne 0x40155b
mov eax, dword [ebp - 0x870]
lea esi, [ebp - 0x86c]
shr eax, 1
mov dword [ebp - 0x888], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x880], 0
je 0x40155b
push dword [ebp - 0x884]
push esi
call fcn.00403f72
pop ecx
pop ecx
test eax, eax
jne 0x401597
push esi
call fcn.00405349
mov ecx, dword [ebp - 0x880]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x880], ecx
call fcn.00405349
pop ecx
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x880]
add esi, 2
cmp eax, dword [ebp - 0x888]
jb 0x401518
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x40159e
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
je 0x40159c
call ebx
xor eax, eax
inc eax
jmp 0x4015d6
call ebx
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4015d4
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
jne 0x401595
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
Function at 0x4015e5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push ecx
push ecx
mov word [edi], ax
call fcn.00405349
pop ecx
inc eax
push eax
push edi
call fcn.00405270
add esp, 0xc
test eax, eax
jne 0x4017b9
push edi
call fcn.00405349
pop ecx
mov ebx, eax
push 0x5c
pop eax
cmp word [edi + ebx*2 - 2], ax
je 0x401639
mov word [edi + ebx*2], ax
inc ebx
xor eax, eax
mov word [edi + ebx*2], ax
push str.LMIR
push edi
call fcn.00405349
mov esi, eax
mov dword [esp], str.LMIR
call fcn.00405349
inc eax
pop ecx
add eax, esi
push eax
push edi
call fcn.004052d4
add esp, 0xc
test eax, eax
jne 0x4017b9
push str.LMIR
call fcn.00405349
pop ecx
push 4
pop ecx
cmp eax, ecx
ja 0x40167c
mov ecx, eax
lea eax, [ebp - 0x14]
add ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
lea edx, [edi + ebx*2]
imul ecx, eax, 0x3c
movzx eax, word [ebp - 0xa]
push 2
pop esi
push 0x2e
add ecx, eax
movzx eax, word [ebp - 8]
imul ecx, ecx, 0x3c
add ecx, eax
mov eax, ecx
shr eax, 0x10
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 8
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
and ecx, 0xf
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov ax, word [ecx*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
xor eax, eax
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
pop eax
push 0x74
mov word [edx], ax
add edx, esi
pop eax
push 0x6d
mov word [edx], ax
add edx, esi
pop eax
push 0x70
mov word [edx], ax
pop eax
mov word [edx + esi], ax
xor eax, eax
mov word [edx + esi + 2], ax
xor esi, esi
inc esi
mov eax, esi
shr eax, 8
and eax, 0xf
push str.LMIR
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xa], ax
mov eax, esi
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xc], ax
mov eax, esi
and eax, 0xf
inc esi
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xe], ax
call fcn.00405349
pop ecx
mov ecx, ebx
sub ecx, eax
lea ecx, [edi + ecx*2]
call fcn.004013eb
test eax, eax
jne 0x4017b1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4017ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017b9
cmp esi, 0xfff
jb 0x401740
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
xor eax, eax
inc eax
jmp 0x4017bb
Function at 0x4017cf
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40188a
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401883
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401883
push esi
push 0x41ab50
call fcn.00405349
mov dword [esp], 0x41ab50
push ebx
lea esi, [eax + 1]
call fcn.00405349
pop ecx
add eax, esi
push eax
push ebx
call fcn.004052d4
add esp, 0xc
push str.Applet
push ebx
call fcn.00405349
mov dword [esp], str.Applet
lea esi, [eax + 1]
call fcn.00405349
pop ecx
add eax, esi
push eax
push ebx
call fcn.004052d4
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
test eax, eax
jne 0x401873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401883
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00405349
pop ecx
jmp 0x40188c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop ebx
ret

Function at 0x40188f
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
mov edx, edi
push ecx
push ecx
mov word [edi], ax
mov word [esi], ax
call fcn.004017cf
pop ecx
pop ecx
test eax, eax
je 0x4018e7
cmp eax, 0x103
ja 0x4018e7
push esi
mov ecx, edi
call fcn.004015e5
pop ecx
test eax, eax
jne 0x4018c6
push 2
pop eax
jmp 0x4018ea
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4018e3
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004011c6
pop ecx
push 3
jmp 0x4018c3
xor eax, eax
jmp 0x4018ea
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret

Function at 0x401a1f
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push esi
mov esi, str.LMI_InstantChat_srv.exe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a36
xor eax, eax
inc eax
pop esi
ret
push 0
push esi
push str.LMI_InstantChat.exe
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
pop esi
sbb eax, eax
neg eax
ret
Function at 0x401d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov esi, edx
mov word [ebp - 0x418], ax
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
cmp word [esi], bx
setne al
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e40
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00405349
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e39
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00404640
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push ebx
push esi
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00407f79
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x41c]
add esp, 0x20
xor ebx, ebx
push ebx
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00407ba0
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret

Function at 0x401e4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401e6d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e6d
xor eax, eax
inc eax
jmp 0x401ee4
mov ecx, 0x2711
call fcn.00401a4c
test eax, eax
je 0x401ee4
mov ecx, dword [0x41d2d4]
mov eax, dword [0x41d2d0]
cmp ecx, 0x36
jb 0x401ece
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401ece
cmp dword [eax + 2], ecx
jne 0x401ece
cmp dword [eax + 0xe], 0x28
je 0x401eac
cmp dword [eax + 0xe], 0x6c
je 0x401eac
cmp dword [eax + 0xe], 0x7c
jne 0x401ece
cmp dword [eax + 0x12], 0x4e
jne 0x401ece
cmp dword [eax + 0x16], 0x20
je 0x401ebe
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401ece
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ee7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401f05
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f05
xor eax, eax
inc eax
jmp 0x401f39
mov ecx, 0x2716
call fcn.00401a4c
test eax, eax
je 0x401f37
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x402f0d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413fe0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00405270
lea eax, [ebp - 0x2004]
push eax
call fcn.00405349
push 0x5c
lea edi, [ebp - 0x2004]
pop ebx
lea edi, [edi + eax*2]
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004042a4
add esp, 0x18
test eax, eax
je 0x402fb0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004042a4
pop ecx
pop ecx
test eax, eax
jne 0x402f64
push esi
jmp 0x402f95
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x402faf
mov word [esi], bx
lea eax, [ebp - 0x2004]
push eax
call fcn.00405349
lea esi, [ebp - 0x2004]
pop ecx
lea esi, [esi + eax*2]
cmp esi, edi
jne 0x402f7f
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret

Function at 0x402fbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x402fe6
xor eax, eax
jmp 0x40303a
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40300a
push 0x52
jmp 0x403038
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40302f
cmp dword [ebp - 8], edi
jne 0x40302f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403039
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x100
mov byte [eax + 0x416578], al
inc eax
cmp eax, edi
jne 0x40100a
xor esi, esi
xor ecx, ecx
mov dword [0x415f64], esi
mov dword [0x41616c], ecx
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
mov bl, byte [ecx + 0x416578]
mov eax, dword [esp + 0x10]
movsx eax, byte [edx + eax]
add eax, esi
movzx edx, bl
add edx, eax
and edx, 0xff
mov esi, edx
mov dl, bl
lea eax, [esi + 0x416578]
mov bl, byte [eax]
mov byte [ecx + 0x416578], bl
inc ecx
mov dword [0x415f64], esi
mov byte [0x416174], dl
mov byte [eax], dl
mov dword [0x41616c], ecx
cmp ecx, edi
jne 0x401025
and dword [0x415f64], 0
and dword [0x41616c], 0
pop edi
pop esi
pop ebx
ret 8
Function at 0x4010f6
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push str.ioPOdopsCE
xor esi, esi
push esi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebx, 0x200
push ebx
mov edi, 0x416178
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x14
call dword [sym.imp.KERNEL32.dll_GetThreadPriorityBoost]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x2c], 0xe
je 0x401166
cmp dword [ebp - 0x24], 4
jne 0x40116d
mov dword [ebp - 0xc], 0x6f
cmp dword [ebp - 4], 0x1388
jbe 0x40117b
cmp dword [ebp - 8], esi
je 0x401197
movzx eax, word [ebp - 4]
push ebx
push edi
push 0xa
cdq
pop ecx
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
inc dword [ebp - 4]
cmp dword [ebp - 0xc], 0x6f
jne 0x40115a
push 0xf55c8
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf4240
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [str.Ye_:_no._3nJnkKV]
push edx
call fcn.004010e3
push eax
push edx
call fcn.00401000
add edi, 0x1a00
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], 0xaae60
mov ebx, 0xff
jmp 0x4011eb
xor esi, esi
mov eax, dword [0x41616c]
inc eax
push 0x3e8
and eax, ebx
push esi
mov dword [0x41616c], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [0x41616c]
mov dword [ebp - 0xc], eax
mov al, byte [edx + 0x416578]
movzx ecx, al
add ecx, dword [0x415f64]
and ecx, ebx
lea esi, [ecx + 0x416578]
mov dword [0x415f64], ecx
mov cl, byte [esi]
mov byte [esi], al
mov byte [edx + 0x416578], cl
movzx eax, byte [esi]
mov byte [0x416175], cl
movzx ecx, cl
add eax, ecx
and eax, 0x800000ff
jns 0x401253
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [eax + 0x416578]
mov edx, dword [ebp - 4]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [0x416678], cl
xor byte [eax], cl
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
dec dword [ebp - 4]
cmp dword [ebp - 4], 0
jg 0x4011e9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
call dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401310
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 0x10], 0x16d1067
jne 0x401322
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push str.Mkldi__uie_oxc
push 0x416378
call sub.MSVCR90.dll_strcpy
push str.cmiIE
mov esi, 0x415f68
push esi
call sub.MSVCR90.dll_strcpy
add esp, 0x10
push dword [esp + 8]
call fcn.00401296
push dword [esp + 0x14]
push dword [esp + 0xc]
call fcn.00401087
test eax, eax
jne 0x401371
push 0x23e
push esi
push 1
push 0x9d
call fcn.004010f6
xor eax, eax
pop esi
ret 0x10
Function at 0x401aa1
Capabilities:
Parse pe header

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

Function at 0x40abc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401850
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x190
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
mov esi, ecx
push edi
push str.CDwonKey
mov dword [esi], 0x409c38
call ebx
mov ecx, 0x270ab
xor eax, eax
lea edi, [esi + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.CreateEventA
mov dword [esi + 0x1c], eax
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x9c2d0], edi
call ebx
mov dword [esi + 4], edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x190
ret

Function at 0x401920
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x124
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
mov esi, ecx
push str.worinimahuorong
call ebp
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.GetModuleFileNameA
call ebp
push 0x9c2ac
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4019ad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, dword [0x40d0a8]
add esi, 0x9c2d4
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.my_memcpy
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x9c2ac
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.worinimahuorong3
call ebp
push 0
push 0
push ebx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret

Function at 0x401a10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x20]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0xff
push eax
push 0xffffffffffffffff
push 0x40d0ce
push 0
mov esi, ecx
push 0
call edi
push 0x40e3a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
lea ecx, [esp + 0x10]
push 0x1e
push ecx
push 0xffffffffffffffff
push str.14995
push 0
push 0
call edi
lea edx, [esp + 8]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.00401a80
pop edi
pop esi
add esp, 0x120
ret