joyce8/EMBER2024-capa huggingface dataset:
Function at 0x76bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x76bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x76bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x76bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x76bd94
push eax
push esi
call fcn.0076e20b
add esp, 8
pop esi
ret 0x10

Function at 0x76bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x76be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x784320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0076ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x76bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x76be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x76beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x784320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0076ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x76beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x76be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x76c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x76c131
push esi
call fcn.0076f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0075e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x76c131
push 0
push ebp
call fcn.0075e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0075e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x76c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0075e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x76c121
push 0x784918
push edi
call fcn.0076d3f0
push eax
push ebx
push esi
call fcn.0076bf60
push 0x7848f8
push edi
call fcn.0076d3f0
push eax
push ebx
push esi
call fcn.0076bf60
push 0x7848d8
push edi
call fcn.0076d3f0
push eax
push ebx
push esi
call fcn.0076bf60
push 0x7848c0
push edi
call fcn.0076d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0076bf60
push 0x7848a0
push edi
call fcn.0076d3f0
push eax
push ebx
push esi
call fcn.0076bf60
push 0x784888
push edi
call fcn.0076d3f0
push eax
push ebx
push esi
call fcn.0076bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x76d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0076d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0076d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0076d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0076d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x76dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x76dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x77f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x76dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x76dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4067a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425456
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4324c0]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040ff90
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406820
sub ecx, edi
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push ecx
lea ecx, [ebp - 0x230]
push eax
test edx, edx
je 0x406922
call fcn.0040cfc0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ba30
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406da0
mov edx, dword [ebp - 0x234]
add esp, 0x10
cmp edx, 0x10
jb 0x4068d3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406967
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40694a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406967
jmp 0x406940
call fcn.0040cfc0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ba30
add esp, 8
jmp 0x4068ee
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov eax, esi
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.0040e707
mov esp, ebp
pop ebp
ret
call fcn.00411b1f
int3
Function at 0x418e22
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418da4
Function at 0x43dc51
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x807b44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0043a956
mov dword [ebp - 0x14], eax
cmp dword [0x35aebd0], esi
jne 0x43dd44
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43dcd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43de24
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43de24
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43de24
push eax
call ebx
push 0x5dbaa4
push edi
mov dword [0x35aebd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x35aebd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x35aebd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x35aebe0], eax
test eax, eax
je 0x43dd41
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x35aebdc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43dd69
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43dd5c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43dd7e
push 4
pop eax
jmp 0x43de26
cmp dword [ebp - 0x14], esi
je 0x43dd7e
push dword [0x35aebd0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43dd63
mov eax, dword [0x35aebdc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43dddc
cmp dword [0x35aebe0], edi
je 0x43dddc
push eax
call ebx
push dword [0x35aebe0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43dddc
test eax, eax
je 0x43dddc
call ecx
test eax, eax
je 0x43ddd1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43ddd1
test byte [ebp - 8], 1
jne 0x43dddc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43de0c
mov eax, dword [0x35aebd4]
cmp eax, edi
je 0x43de09
push eax
call ebx
test eax, eax
je 0x43de09
call eax
mov esi, eax
test esi, esi
je 0x43de09
mov eax, dword [0x35aebd8]
cmp eax, edi
je 0x43de09
push eax
call ebx
test eax, eax
je 0x43de09
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x35aebd0]
call ebx
test eax, eax
je 0x43de24
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43de26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b307
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f92a0]
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.00438230
add esp, 0xc
push 0x3f
lea edx, [ebp - 0xa7]
push ebx
push edx
call fcn.00438230
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.00438230
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.004027a0
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 + 0x4d3790]
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d3791]
mov byte [ebp + eax - 0x68], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d3792]
mov byte [ebp + eax - 0x67], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4d3793]
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.0042ec40
add esp, 4
cmp dword [ebp + 0x20], esi
jb 0x4018c9
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042ec40
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
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 [0x4f92a0]
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.00438230
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.004329c0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop ebx
call fcn.0042e257
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 [0x4f92a0]
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 + 0x4d3770]
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 + 0x4d3771]
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 + 0x4d3772]
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 + 0x4d3773]
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.0042ec40
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x403050
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 0x403068
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40309a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403096
cmp esi, eax
jae 0x40309a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403088
cmp esi, eax
jb 0x4030a0
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 0x4079c0
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.00438230
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 0x4097d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x10
je 0x4097f4
cmp eax, 0xa3
je 0x409800
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 0x40a6e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
call fcn.00406940
mov ebx, eax
mov eax, str._usilent
lea esi, [ebp - 4]
call fcn.00403260
mov eax, esi
call fcn.00404890
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 0x40a724
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40a7a1
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x4fa44c
call eax
add eax, 0x10
push ebx
lea edi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00405020
mov ecx, dword [eax]
push ecx
push 0x4d44e8
lea edi, [ebp - 4]
call fcn.00403d60
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 0x40a77b
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 0x40a7a1
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 0x40bd10
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00406940
call fcn.00404d40
test eax, eax
je 0x40bd7a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438230
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 0x40bd7e
push 0
push 1
call fcn.00416050
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
call fcn.0042e257
mov esp, ebp
pop ebp
ret

Function at 0x40bde0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f92a0]
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 0x40be23
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
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 0x40be7f
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.0043054e
add esp, 8
test eax, eax
je 0x40be68
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x40be40
jmp 0x40be7e
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.0042e257
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x88], al
mov eax, 0x7a7a7a7a
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
push edi
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
push 0x4d4574
mov dword [esi + 0x80], eax
push ecx
mov dword [esi + 0x84], eax
call fcn.00430ddb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c82a
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004311dc
add esp, 0x10
test eax, eax
je 0x40c81a
lea ecx, [ebp - 0x404]
push ecx
call fcn.0040c590
push ebx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.004311dc
add esp, 0x10
test eax, eax
jne 0x40c7f3
mov ecx, esi
call fcn.0040c640
push ebx
call fcn.004303d7
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
lea eax, [esi + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x40c840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f92a0]
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 0x40c8dc
push 0x103
push eax
lea ecx, [ebp - 0x107]
push ecx
mov byte [ebp - 0x108], al
call fcn.00438230
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.0042e257
mov esp, ebp
pop ebp
ret