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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], ecx
cmp dword [ebp + 8], 0
jne 0x453df4
xor al, al
jmp 0x453f5f
cmp dword [ebp + 0xc], 0
jle 0x453e07
cmp dword [ebp + 0x10], 0
jne 0x453e07
xor al, al
jmp 0x453f5f
push 0x570f88
push dword [ebp + 8]
call fcn.004b9524
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x453e26
xor al, al
jmp 0x453f5f
mov eax, dword [str.FREP0001]
mov dword [ebp - 0x40], eax
mov eax, dword [0x5b3f64]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5b3f58]
mov dword [ebp - 0x38], eax
mov eax, dword [0x5b3f5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push dword [ebp - 0xc]
push 1
push 0x28
lea eax, [ebp - 0x40]
push eax
call fcn.004b4672
add esp, 0x10
cmp eax, 1
je 0x453e8c
push dword [ebp - 0xc]
call fcn.004b4390
pop ecx
xor al, al
jmp 0x453f5f
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0xc]
shl ecx, 6
add eax, ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.004b3c25
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call fcn.004b7e80
add esp, 0xc
push dword [ebp - 8]
mov eax, dword [ebp - 0x50]
push dword [eax + 4]
mov ecx, dword [ebp - 0x50]
call fcn.00454171
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
imul eax, eax, 0x4c
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
and dword [ebp - 0x44], 0
jmp 0x453eed
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jge 0x453f24
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*4], 0
je 0x453f19
push 0x3f
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
push dword [ecx + eax*4]
push 0x40
push dword [ebp - 4]
call fcn.004ba12f
add esp, 0x10
mov eax, dword [ebp - 4]
add eax, 0x40
mov dword [ebp - 4], eax
jmp 0x453ee6
mov byte [ebp - 0x11], 1
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004b4672
add esp, 0x10
cmp eax, 1
je 0x453f44
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call fcn.004b3245
pop ecx
push dword [ebp - 0xc]
call fcn.004b4390
pop ecx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b303a
leave
ret 0xc
Function at 0x453f6d
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x134], ecx
push dword [ebp + 8]
push str._s.bak.perf
lea eax, [ebp - 0x120]
push eax
call fcn.004556b2
add esp, 0xc
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x134]
call fcn.00453dd4
movzx eax, al
test eax, eax
jne 0x453fda
xor al, al
jmp 0x454163
push 0x570f98
lea eax, [ebp - 0x120]
push eax
call fcn.004b9524
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x453ffd
xor al, al
jmp 0x454163
push 0x570f9c
push dword [ebp + 8]
call fcn.004b9524
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x45402b
push dword [ebp - 0x14]
call fcn.004b4390
pop ecx
xor al, al
jmp 0x454163
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x128]
call fcn.004b3c25
pop ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], eax
push dword [ebp - 0x128]
push 0
push dword [ebp - 4]
call fcn.004b7e80
add esp, 0xc
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004ba26e
add esp, 0xc
test eax, eax
jne 0x45412a
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x124]
call fcn.004ba26e
add esp, 0xc
test eax, eax
je 0x4540d9
jmp 0x45412a
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004b97e9
add esp, 0x10
cmp eax, 1
je 0x4540f3
jmp 0x45412a
push dword [ebp - 0x124]
push 1
push dword [ebp - 0x128]
push dword [ebp - 4]
call fcn.004b4672
add esp, 0x10
cmp eax, 1
je 0x454113
jmp 0x45412a
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0xc], eax
jmp 0x4540ac
mov eax, dword [ebp - 4]
mov dword [ebp - 0x130], eax
push dword [ebp - 0x130]
call fcn.004b3245
pop ecx
push dword [ebp - 0x14]
call fcn.004b4390
pop ecx
push dword [ebp - 0x124]
call fcn.004b4390
pop ecx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b303a
leave
ret 0x10
Function at 0x454339
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0
jne 0x45434f
xor al, al
jmp 0x45446f
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
call fcn.00455561
movzx eax, al
test eax, eax
jne 0x45436e
xor al, al
jmp 0x45446f
push 0x570fa0
push dword [ebp + 8]
call fcn.004b9524
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45438d
xor al, al
jmp 0x45446f
cmp dword [ebp + 0xc], 0
jne 0x454397
and dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x14]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.004b3c25
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4543dc
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.004b3250
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004b98a1
pop ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
mov ecx, dword [ebp - 0x30]
call fcn.00454299
mov byte [ebp - 0x11], 1
push dword [ebp - 8]
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004b4672
add esp, 0x10
cmp eax, 1
je 0x454454
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.004b3245
pop ecx
push dword [ebp - 8]
call fcn.004b4390
pop ecx
mov al, byte [ebp - 0x11]
leave
ret 0x10
Function at 0x455561
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x40], ecx
push 0x570fc4
push dword [ebp + 8]
call fcn.004b9524
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x455590
jmp 0x455608
push dword [ebp - 8]
push 1
push 0x28
lea eax, [ebp - 0x38]
push eax
call fcn.004b97e9
add esp, 0x10
cmp eax, 1
je 0x4555b5
push dword [ebp - 8]
call fcn.004b4390
pop ecx
jmp 0x455608
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call fcn.004b4390
pop ecx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0xc]
je 0x4555d6
jmp 0x455608
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jne 0x4555e4
mov al, 1
jmp 0x455619
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jle 0x4555f2
jmp 0x455608
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.00453f6d
jmp 0x455619
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.00453dd4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b303a
leave
ret 0xc
Function at 0x457c3d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x457c62
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x457c68
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 4
push 0
push 1
push 3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0xffffffff
jne 0x457c93
xor al, al
jmp 0x457cfc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x457cb3
xor al, al
jmp 0x457cfc
cmp dword [ebp - 4], 0
ja 0x457cc2
cmp dword [ebp - 8], 0x1400000
jb 0x457ce8
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x457ce8
xor al, al
jmp 0x457cfc
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
leave
ret

Function at 0x457cfe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x457d23
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x457d29
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x457d49
xor al, al
jmp 0x457d4b
mov al, 1
leave
ret 4
Function at 0x458c99
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x458ca1
xor eax, eax
jne 0x458ca1
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x458cc2
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
and dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x458cd9
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x458d1d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x458d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x458d00
push dword [ebp - 4]
call fcn.00458d57
pop ecx
jmp 0x458d1d
push dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x458d1b
call fcn.00458d21
jmp 0x458d1d
xor eax, eax
leave
ret 4

Function at 0x45903c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
xor eax, eax
jne 0x459055
xor eax, eax
jne 0x459055
cmp dword [ebp + 8], 0
jne 0x4590a8
lea eax, [ebp - 0x110]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x459090
call fcn.00458d21
jmp 0x4591a1
cmp dword [ebp - 0x228], 0x100
jbe 0x4590a6
mov eax, 0x80020013
jmp 0x4591a1
jmp 0x4590e2
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.004ba81f
add esp, 0x10
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x22c]
call fcn.004591af
pop ecx
cmp eax, 0x50
jne 0x4590e2
mov eax, 0x80020013
jmp 0x4591a1
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5712a0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x45910b
call fcn.00458d21
jmp 0x4591a1
mov byte [ebp - 0x115], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0x101
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
call fcn.004ba81f
add esp, 0x10
mov dword [ebp - 0x230], eax
push dword [ebp - 0x230]
call fcn.004591af
pop ecx
mov dword [ebp - 0x224], 0xc
and dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10c], ecx
push 0
lea eax, [ebp - 0x224]
push eax
push 0x2100
push 2
push 0
mov eax, dword [ebp - 0x238]
push dword [eax + 0x10c]
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
mov ecx, dword [ebp - 0x238]
call fcn.00459202
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret 8
Function at 0x4594b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x450], ax
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call fcn.004b7e80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x450]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov dword [0x5c2ac4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x5c2ac8], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004595e7
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xf754f013
push 0x804
push 1
push 1
push dword [ebp - 0x238]
mov eax, dword [ebp - 0x23c]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0x23c]
shr eax, 0x10
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x450]
push eax
push 0x5712cc
push 0x5712e0
call fcn.0046020a
add esp, 0x30
push 0x989681
call fcn.00460b19
pop ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004b7e80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004596f5
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x210]
push eax
push 0x5712e8
call fcn.00460020
add esp, 0xc
push 3
call fcn.00460000
pop ecx
call fcn.00460a8b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret

Function at 0x4595e7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x4595fc
xor eax, eax
jmp 0x45967d
mov dword [ebp - 8], 0x34
and dword [ebp - 0xc], 0
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45967a
push dword [ebp - 4]
call fcn.004a526c
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45966b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5712f0
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45966b
mov esi, dword [ebp - 0x10]
push 0xd
pop ecx
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.004b7f34
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x460020
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x460040
xor eax, eax
jmp 0x4601c2
mov dword [ebp - 8], str.SOFTWARETencent_bugReport_
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004b7e80
add esp, 0xc
push dword [ebp - 8]
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004ba86a
add esp, 0xc
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004b7f3f
pop ecx
mov ecx, 0x104
sub ecx, eax
push ecx
push dword [ebp - 8]
call fcn.004b7f3f
pop ecx
lea eax, [ebp + eax*2 - 0x218]
push eax
call fcn.004ba8cd
add esp, 0xc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460118
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460118
xor eax, eax
jmp 0x4601c2
push dword [ebp + 0xc]
call fcn.004b7f3f
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.InstallDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460157
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4601c2
cmp dword [ebp + 0x10], 0
je 0x4601a8
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, eax
je 0x4601a8
push dword [ebp + 0x10]
call fcn.004b7f3f
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push 0x571520
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4601a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4601c2
jmp 0x4601b6
push str.ExcDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b303a
leave
ret
Function at 0x46070c
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x46072b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004b7e80
add esp, 0xc
mov dword [ebp - 0x20], 0x1c
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4607b3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x4607a3
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
je 0x4607a3
push dword [ebp - 0x18]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4607a3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x460767
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret
Function at 0x476430
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x476482
mov eax, dword [esp]
cmp al, 2
jne 0x47647c
shr eax, 8
cmp al, 2
jne 0x47647c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b303a
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b303a
add esp, 0x194
ret
Function at 0x482a70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x482aa2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x482c40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x298], 0
push edi
je case.default.0x482ca0
test eax, eax
je case.default.0x482ca0
mov eax, dword [eax + 0x84]
test eax, eax
je case.default.0x482ca0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x482ca0
jmp dword [edx*4 + 0x482dbc]
mov ecx, str.Header
mov edx, str.from
jmp 0x482cbd
mov ecx, str.Header
mov edx, 0x5744b4
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.0048b540
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482ce0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482d35
mov ecx, dword [esi + 0xf4]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x482da0
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482d63
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x482da0
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x574490
call fcn.004b4672
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.004b4672
add esp, 0x20
jmp case.default.0x482ca0
test ebx, ebx
js 0x482d9e
cmp ebx, 2
jg 0x482d9e
mov eax, dword [esi + 0xf0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x574490]
push 2
push ecx
call fcn.004b4672
mov edx, dword [esi + 0xf0]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.004b4672
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b303a
add esp, 0xa4
ret
Function at 0x482e60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x55c]
push 0x4000
push ebx
call fcn.0048b4e0
mov eax, dword [esi + 0xf8]
add esp, 0x10
test eax, eax
je 0x482ec0
cmp dword [esi + 0x8588], 0
jne 0x482ec0
push ebx
push 0x5713f8
push 0x100
push eax
call fcn.0048b540
add esp, 0x10
mov dword [esi + 0x8588], 1
cmp dword [esi + 0x2e4], 0
je 0x482f47
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482ed0
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x482ef4
mov byte [esi + edi + 0x55c], 0xa
inc edi
mov byte [esi + edi + 0x55c], cl
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482f1e
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.004b303a
pop ecx
ret
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x574490
call fcn.004b4672
mov ecx, dword [esi + 0xf0]
push ecx
push 1
push edi
push ebx
call fcn.004b4672
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.004b303a
pop ecx
ret