joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10085040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100022c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100022fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100022fc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100023d3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002324
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10002330
movsx eax, bl
jmp 0x10002368
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10002392
sub eax, 1
je 0x10002392
sub eax, 2
jne 0x100023d3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100023b0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100023d3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100119a9
mov esp, ebp
pop ebp
ret 4
Function at 0x10002780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10085040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000283c
cmp byte [esi + 0x3d], 0
je 0x1000283c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000282a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100027f1
sub eax, 1
je 0x100027f5
sub eax, 2
jne 0x1000282a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002813
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000282a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100119a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100119a9
mov esp, ebp
pop ebp
ret
Function at 0x100059b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100059d5
push 0
push 0
push 0
push 0x10004340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10008830
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ebx
lea esi, [edi + 0x20]
mov al, byte [edx + 0xc]
test al, 0x60
je 0x10008869
movzx eax, al
shr eax, 5
and eax, 3
mov ecx, dword [eax*8 + 0x100136b8]
or dword [esi], ecx
mov eax, dword [eax*8 + 0x100136bc]
or dword [esi + 4], eax
mov al, byte [edx + 0xd]
lea ecx, [edx + 0xd]
mov dword [ebp - 0xc], ecx
test al, 3
je 0x100088a0
movzx ecx, al
and ecx, 3
mov eax, dword [ecx*8 + 0x100138f8]
or dword [esi], eax
mov eax, dword [ecx*8 + 0x100138fc]
or dword [esi + 4], eax
lea eax, [edi + 0x20]
mov ecx, dword [ebp - 0xc]
add edx, 0xd
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
jmp 0x100088a8
mov dword [ebp - 0x10], esi
mov edx, ecx
mov dword [ebp - 0x14], ecx
mov al, byte [ecx]
test al, 0xc
je 0x100088d0
movzx ecx, al
shr ecx, 2
and ecx, 3
mov eax, dword [ecx*8 + 0x10013960]
or dword [esi], eax
mov eax, dword [ecx*8 + 0x10013964]
or dword [esi + 4], eax
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
jmp dword [eax*4 + 0x10008d50]
Function at 0x10010b3d
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10010c48
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10010c41
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x10010c05
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10010c05
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10010c05
mov edx, dword [esi]
test edx, edx
jne 0x10010bce
push 0x200
push edx
push dword [0x124d1b64]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10010c2a
lea ebx, [esi + 8]
jmp 0x10010bf8
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10010bf8
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x124d1b64]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10010c59
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10010b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10010c41
xor edi, edi
cmp dword [esi], edi
je 0x10010c41
push dword [esi]
push edi
push dword [0x124d1b64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100119a9
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x10010c2a
Function at 0x10010c5e
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10010b3d
test eax, eax
jne 0x10010c86
push 9
pop esi
jmp 0x10010d08
cmp dword [edi], esi
je 0x10010d08
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x10010d08
mov edx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edx
push ebx
mov eax, dword [edi]
push dword [eax + edx]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
mov dword [ebp - 8], esi
test ebx, ebx
je 0x10010cdf
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10010cd3
push dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 8], 1
call fcn.100109e8
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x10010ce9
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
jmp 0x10010cec
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add ecx, 4
mov edx, dword [ebp - 0x10]
inc eax
add edx, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], ecx
cmp eax, dword [edi + 8]
jb 0x10010c9b
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10010d0e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10010d71
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10010d60
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
mov eax, dword [esi]
mov eax, dword [ecx + eax]
test eax, eax
je 0x10010d53
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10010d50
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x10010d28
pop edi
push dword [esi]
push 0
push dword [0x124d1b64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop esi
leave
ret

Function at 0x10010d74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x124d1b80]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x10010d90
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10010db1
push 0xa
pop eax
jmp 0x10010df0
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x10010dcc
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100112c7
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x124d1b78]
push esi
xor esi, esi
jmp 0x100112d9
cmp dword [edx + 4], esi
jne 0x10011325
mov edx, dword [edx]
test edx, edx
jne 0x100112d2
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10011332
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10011300
mov eax, dword [0x124d1b78]
pop edi
mov dword [edx], eax
mov dword [0x124d1b78], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0x401720
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0x110], bl
call fcn.00438200
add esp, 0xc
push 0x3f
lea edx, [ebp - 0xa7]
push ebx
push edx
call fcn.00438200
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.00438200
sub esp, 0x10
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
lea esi, [ebp - 0x110]
mov byte [ecx], bl
call fcn.004027c0
mov ecx, esi
call fcn.00401a70
mov ecx, 8
lea esi, [ebp - 0x110]
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xf0]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea esp, [esp]
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
push eax
mov ecx, esi
lea ebx, [ebp - 0x24]
call fcn.004018e0
inc esi
cmp esi, 0x10
jl 0x4017d0
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc8]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsx ecx, byte [eax + 0x4d5a10]
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d5a11]
mov byte [ebp + eax - 0x68], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d5a12]
mov byte [ebp + eax - 0x67], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d5a13]
mov byte [ebp + eax - 0x66], dl
movzx edx, byte [ebp + ecx - 0xa9]
mov byte [ebp + eax - 0x65], dl
add eax, 4
cmp eax, 0x40
jl 0x401811
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004013c0
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x40187e
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + 0x300], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x304], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x308], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0xc], esi
jb 0x4018b8
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042ec00
add esp, 4
cmp dword [ebp + 0x20], esi
jb 0x4018c9
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042ec00
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 0x20
Function at 0x401cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push 0xff
mov ebx, ecx
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0
call fcn.00438200
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x401d4c
push esi
mov esi, dword [ebp + 8]
push edi
sub esi, ebx
lea edi, [ebp - 0x104]
mov ecx, ebx
sub edi, ebx
mov ebx, eax
xor edx, edx
cmp byte [esi + ecx], 0x31
sete dl
xor eax, eax
cmp byte [ecx], 0x31
sete al
xor eax, edx
dec eax
neg eax
sbb al, al
add al, 0x31
mov byte [edi + ecx], al
inc ecx
dec ebx
jne 0x401d26
mov eax, dword [ebp + 0xc]
pop edi
pop esi
push eax
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.00432980
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401ec0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push esi
lea esp, [esp]
mov esi, ebx
cmp edx, 0x10
jae 0x401f0a
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4d59f0]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x24], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401f23
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4d59f1]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x23], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401f3c
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4d59f2]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x22], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401f55
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4d59f3]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x21], cl
add eax, 4
cmp eax, 0x20
jl 0x401f00
mov ecx, 8
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop esi
cmp edx, 0x10
jb 0x401f85
push ebx
call fcn.0042ec00
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x403080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403098
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030ca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4030c6
cmp esi, eax
jae 0x4030ca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4030b8
cmp esi, eax
jb 0x4030d0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x407a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00438200
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.https:__gamebuff.cn_service.html
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret
Function at 0x409800
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x10
je 0x409824
cmp eax, 0xa3
je 0x409830
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call sym.Setup.exe_public_virtual:_long_int___thiscall_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop ebp
ret 0xc

Function at 0x40a710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
call fcn.00406990
mov ebx, eax
mov eax, str._usilent
lea esi, [ebp - 4]
call fcn.00403290
mov eax, esi
call fcn.004048f0
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40a7d1
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x4fc44c
call eax
add eax, 0x10
push ebx
lea edi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00405080
mov ecx, dword [eax]
push ecx
push 0x4d6768
lea edi, [ebp - 4]
call fcn.00403db0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40a7ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bd30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00406990
call fcn.00404da0
test eax, eax
je 0x40bd9a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438200
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 3
jmp 0x40bd9e
push 0
push 1
call fcn.00416110
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x40be00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40be43
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40be9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
push str.explorer.exe
call fcn.0043050e
add esp, 8
test eax, eax
je 0x40be88
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x40be60
jmp 0x40be9e
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x40c790
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov byte [edi + 0x88], al
mov eax, 0x7a7a7a7a
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
push ebx
mov dword [edi + 0x74], eax
push esi
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
push 0x4d67f4
mov dword [edi + 0x80], eax
push ecx
mov dword [edi + 0x84], eax
call fcn.00430d9b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c85a
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0043119c
add esp, 0x10
test eax, eax
je 0x40c84a
push eax
lea ecx, [ebp - 0x404]
push ecx
mov ecx, edi
call fcn.0040c5a0
push ebx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0043119c
add esp, 0x10
test eax, eax
jne 0x40c820
mov ecx, edi
call fcn.0040c650
push ebx
call fcn.00430397
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
lea eax, [edi + 0x68]
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x40c870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c90c
push 0x103
push eax
lea ecx, [ebp - 0x107]
push ecx
mov byte [ebp - 0x108], al
call fcn.00438200
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x10c]
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
lea ecx, [ebp - 0x108]
push ecx
push edx
mov dword [ebp - 0x110], 0x77
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret