joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_LocalLock]
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, dword [eax + 0x24]
sub esp, 4
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x34]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WinExec]
mov eax, dword [0x406060]
sub esp, 8
test eax, eax
jne 0x4050d0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x406028]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CloseWindow]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x405dd0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x405ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x405f5d
cmp al, 9
je 0x405f50
cmp al, 0x20
je 0x405f50
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x405fb0
cmp al, 0x22
je 0x405fc0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x405f5d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x405f10
test edi, 1
jne 0x405f10
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x405f50
cmp al, 0x20
je 0x405f50
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x405f78
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x405f27
and dword [ebp - 0x54], 1
jne 0x405f20
xor edi, 1
jmp 0x405f27
Function at 0x408360
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0041500a
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4083bc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00414ff9
add esp, 0x120
ret

Function at 0x40b100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x422008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x40b182
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x40b182
test ecx, ecx
je 0x40b17e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x40b140
xor eax, eax
jmp 0x40b187
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b191
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414ff9
add esp, 0xc
ret 0xc
Function at 0x40b550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40b586
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b636
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0040b840
test al, al
je 0x40b5df
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b622
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b618
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b618
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ff9
mov esp, ebp
pop ebp
ret

Function at 0x40bca0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x422008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40bd05
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bd05
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00414ff9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00414ff9
add esp, 8
ret 4
Function at 0x40beb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417de0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40bef3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 0x2c
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041500a
mov esi, eax
mov dword [ebp - 0x1c], 0
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0
mov dword [esi], 0
lea eax, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
xor eax, eax
push 0xc
push str.Advapi32.dll
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00403a40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a190
mov ecx, eax
call fcn.0040a250
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40bfbe
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bfb4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
sub esp, 8
mov word [ebp - 0x2c], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x14]
push eax
call fcn.0040c130
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x40bff7
lea eax, [esi + 8]
jmp 0x40bff9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x40c009
cmp dword [ebx + 0x14], 8
jb 0x40c00b
mov ebx, dword [ebx]
jmp 0x40c00b
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40c02c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c02c
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40c055
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c06a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0041503a
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ff9
mov esp, ebp
pop ebp
ret 4
Function at 0x40c130
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41eb48
push 0x4154d6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x422008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40c199
xor eax, eax
jmp 0x40c30f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2da
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40c2da
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2da
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40c2da
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2da
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40c2da
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2da
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40c2da
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2da
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40c2da
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40c2da
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40c2c3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40c2b0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40c2c0
jmp 0x40c2da
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c336
test ebx, ebx
jne 0x40c30d
test esi, esi
je 0x40c2ff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40c30d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00414ff9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cf80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418060
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d067
cmp byte [eax + 0x54], 0
je 0x40d067
add eax, 0x1c
lea ecx, [ebp - 0x34]
push eax
call fcn.0040b8e0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408040
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x40d002
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d04c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404780
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ff9
mov esp, ebp
pop ebp
ret 4
Function at 0x4122e1
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x4122f8
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x412303
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x4123f1
push 0x4228f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x41232c
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x412340
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x412351
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x422908]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x412366
mov dword [ebx + 4], eax
jmp 0x4123b7
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.0040f490
mov ebx, dword [0x422908]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x4123b7
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x4123a8
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x4123ae
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x41238e
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x4123e6
test ecx, ecx
je 0x4123d6
mov edx, dword [ebx + 8]
sub edx, ecx
and edx, 0xfffffffc
call fcn.00403c00
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.0041503a
pop ecx
pop ecx
mov dword [0x422908], ebp
push 0x4228f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x412437
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x4228ec
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41244d
push 0x4228f0
call ebx
lea ecx, [edi + 0xc0]
call fcn.00412daa
lea ecx, [edi + 0x40]
call fcn.00403870
lea ecx, [edi + 0x28]
call fcn.00403870
lea ecx, [edi + 0x10]
call fcn.00403870
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x412481
push ecx
call fcn.00412de3
ret
Function at 0x41304a
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x348]
cmp dword [ebp + 0x14], 8
jb 0x413064
mov ebp, dword [ebp]
mov esi, dword [ebx + 0x24]
push edi
mov edi, dword [ebx + 0x360]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
xor esi, esi
lea eax, [ebx + 0x3c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x74], esi
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
pop edi
test eax, eax
je 0x4131c2
cmp dword [esp + 0x10], 2
jne 0x4131c2
cmp dword [esp + 0x14], esi
je 0x4131c2
cmp dword [esp + 0x30], esi
je 0x4131c2
cmp dword [esp + 0x34], esi
je 0x4131c2
cmp dword [esp + 0x38], esi
je 0x4131c2
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x80], esi
push eax
push 0x34
lea eax, [esp + 0x84]
mov dword [esp + 0x8c], esi
push eax
push dword [esp + 0xc0]
xorps xmm0, xmm0
mov dword [esp + 0x98], esi
movups xmmword [esp + 0x9c], xmm0
mov dword [esp + 0xbc], esi
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x8c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4131c2
mov ecx, dword [esp + 0x30]
mov al, 1
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], ecx
jmp 0x4131c4
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x413530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418cc5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x422008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.0041500a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430d5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x430d5f
lcall 0x5de5, 0x8b10c483
jmp fcn.007c1460
Function at 0x402f05
Capabilities:
Create process on windows

Disassembly:
movzx ecx, word [esp + 4]
push esi
mov esi, eax
mov eax, dword [esp + 8]
add ecx, 0xfffffc18
shr eax, 0x10
cmp ecx, 0xb
push edi
ja case.0x402f24.1002
jmp dword [ecx*4 + 0x402fe1]
mov byte [esi + 0x22cb], 1
jmp case.0x402f24.1002
mov eax, dword [esi + 0x1e94]
xor ecx, ecx
cmp eax, ecx
je 0x402f48
cmp eax, 1
jne case.0x402f24.1000
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x402f24.1002
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x402f24.1002
mov edi, esi
call fcn.00403166
jmp case.0x402f24.1002
push 1
xor ecx, ecx
push ecx
push ecx
add esi, 0x24d8
push esi
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x402f24.1002
mov dword [esi + 0x1e94], 1
call fcn.00402689
jmp case.0x402f24.1002
mov edi, esi
call fcn.00403114
jmp case.0x402f24.1002
call fcn.004031a7
jmp case.0x402f24.1002
lea edi, [esi + 0x2a48]
lea eax, [esi + 0x2b4c]
push edi
push eax
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp case.0x402f24.1002
and dword [esi + 0x1e94], 0
jmp 0x402f8b
cmp eax, 0x300
jne case.0x402f24.1002
call fcn.00403367
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x403011
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x1fa4], eax
imul eax, eax, 0x1c
push edi
add eax, 0x415f38
push eax
lea ecx, [esi + 0x2a0c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea eax, [esi + 0x2a28]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x1fa4]
xor edi, edi
cmp eax, edi
jne 0x40306d
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403103
cmp eax, 7
jne 0x403103
push ebx
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR80.dll_memset
push 1
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
push str.http:__www.fuguileyuan.com
lea eax, [ebp - 0x108]
push str._s_Game_GameUninstall.aspx_params_daction_d
push eax
call edi
push ebx
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.online_log_open___s
push eax
call edi
add esp, 0x38
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x108]
call fcn.0040afd4
mov ecx, esi
call fcn.004034c0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0040bfb6
leave
ret 4