joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4d2af2
movzx eax, word [esi]
test ax, ax
je 0x4d2af2
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4d2a7e
cmp ax, 0x5c
jne 0x4d2a80
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4d2a72
cmp edi, esi
je 0x4d2ac5
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00541b06
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4d2b02
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + edi - 0x20c], ax
call fcn.004d2a40
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00539ad1
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00539aa2
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
call fcn.0053b5c9
int3

Function at 0x4d4d88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4d4], 0
je 0x4d4df1
cmp dword [ebp + 8], 0x100
jne 0x4d4de1
cmp word [ebp + 0xc], 0xd
jne 0x4d4de1
cmp byte [esi + 0x4da], 0
je 0x4d4dc6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d4de1
cmp byte [esi + 0x4db], 0
jne 0x4d4de1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4d4ddd
push ecx
push 0
push 0
push str.return
push esi
call fcn.004c2a8a
xor eax, eax
jmp 0x4d4df4
mov eax, dword [esi + 0x4d4]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x4dee16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4dee83
cmp dword [esi + 0x10], 0
je 0x4dee83
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0054bd70
mov ebx, esp
test ebx, ebx
je 0x4dee83
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.004bf480
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c2a8a
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e9912
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x98], esi
mov dword [esi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [esi + 4], ebx
jne 0x4e99a7
lea eax, [ebp - 0xa8]
push eax
call fcn.004e9a20
mov ecx, dword [esi + 0x10]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
push 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c08cf
mov esi, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004c45be
mov ecx, dword [esi + 0x10]
call fcn.004ccc81
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c34f6
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.004bf41b
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004bf2f3
mov edi, 0x5a8
test bl, bl
je 0x4e99df
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 4
Function at 0x4f04c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4f04e9
cmp dword [esi + 8], edi
jge 0x4f04e1
call fcn.004efd34
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x4f050f
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edx - 4], al
inc edx
shr edi, 8
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x4f04f5
mov dword [esi + 8], ecx
jmp 0x4f0527
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4f051a
xor eax, eax
jmp 0x4f0522
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx - 4], al
inc edx
cmp edx, 4
jl 0x4f050f
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4f055e
mov ecx, str.zlib_corrupt
call fcn.004ed01b
jmp 0x4f059b
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4f056e
mov ecx, str.read_past_buffer
jmp 0x4f0557
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4f0585
mov edx, edi
mov ecx, esi
call fcn.004efe85
test eax, eax
je 0x4f059b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00538be0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f5320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a2e5c]
push esi
push edi
mov dword [ebp - 0xc], eax
mov edi, edx
mov ax, word [0x5a2e60]
mov si, cx
push 0x208
mov word [ebp - 8], ax
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.005392b0
add esp, 0xc
mov word [ebp - 0xc], si
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp word [ebp - 0x214], 0
jne 0x4f538a
xor eax, eax
jmp 0x4f53a2
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f5393
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.004204e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x4f7510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor dl, dl
push edi
mov dword [ebp - 8], esi
mov bl, 0x70
mov eax, str.publishbrowser
add dl, bl
lea eax, [eax + 1]
mov bl, byte [eax]
test bl, bl
jne 0x4f7527
xor eax, eax
mov cl, al
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, 0x100
jl 0x4f7534
mov cl, 0x70
mov dword [ebp - 4], str.publishbrowser
lea esp, [esp]
movzx eax, cl
mov ch, byte [eax + esi]
mov bl, ch
movzx eax, ch
xor bl, cl
movzx edi, bl
add edi, esi
add esi, eax
mov dword [ebp - 0xc], edi
mov dl, byte [edi]
mov cl, byte [esi]
mov edi, dword [ebp - 8]
movzx eax, dl
mov byte [eax + edi], cl
movzx eax, cl
mov byte [eax + edi], dl
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
mov cl, byte [eax]
mov byte [edi], ch
mov byte [esi], bl
mov esi, dword [ebp - 8]
test cl, cl
jne 0x4f7550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f9840
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x208
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005392b0
add esp, 0xc
push 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp + 0x10]
call fcn.004fc8b0
push eax
lea ecx, [ebp + 0xc]
call fcn.004fc8b0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x4f9904
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x21c]
test eax, eax
je 0x4f9904
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004fc1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004fc1a0
mov eax, dword [ebp - 0x224]
jmp 0x4f992f
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004fc1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004fc1a0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x4fe9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4fe9c4
xor eax, eax
jmp 0x4fea44
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4fe9db
xor eax, eax
jmp 0x4fea44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4fea27
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4fea27
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4fe9fe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4fea33
xor eax, eax
jmp 0x4fea44
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4fea41
xor eax, eax
jmp 0x4fea44
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ff8f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573451
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5b8250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00512490
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ff93f
mov ecx, dword [ebp - 0x10]
call fcn.005003a0
jmp 0x4ffa60
cmp dword [ebp + 0x2420], 1
jne 0x4ff990
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ff990
mov edx, dword [ebp + 0x2644]
push edx
lea esi, [ebp + 0x18]
mov eax, 0x2628
call fcn.0053af40
mov ecx, 0x98a
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004ffbb0
jmp 0x4ffa60
push 0x8c24
call fcn.00538625
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4ff9ba
mov ecx, dword [ebp - 0x18]
call fcn.00500120
mov dword [ebp - 0x1c], eax
jmp 0x4ff9c1
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00500230
push 0x7ee
mov ecx, dword [ebp - 0x10]
call fcn.00500250
mov eax, dword [ebp + 0x2644]
push eax
push 0
mov ecx, dword [ebp + 0x2640]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00500270
lea esi, [ebp + 0x18]
mov eax, 0x2628
call fcn.0053af40
mov ecx, 0x98a
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
call fcn.00500350
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00500380
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00512390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2640
Function at 0x500580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00500420
test eax, eax
jne 0x50059c
xor eax, eax
jmp 0x50072a
push 0x4f0
call fcn.00538625
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x4f0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005392b0
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x218
push edx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0x28], 0
je 0x5005f6
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 4]
add edx, 0xe0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
movsd xmm0, qword [ebp + 0x1c]
movsd qword [edx + 0x18], xmm0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x8c14]
mov dword [eax + 0x4ec], edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
add edx, 0x2258
push edx
mov eax, dword [ebp - 4]
add eax, 0x1e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
add ecx, 0x1258
push ecx
push 0x104
mov edx, dword [ebp - 4]
add edx, 0x2e0
push edx
call fcn.0041f9a0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x8c14], 0x7ee
jne 0x5006cf
mov ecx, dword [ebp - 4]
add ecx, 0x2e0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5006cf
mov edx, dword [ebp - 4]
add edx, 0x2e0
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 8]
add eax, 0x81ec
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2e0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 8]
cmp dword [edx + 0x8c14], 0x7ee
je 0x5006ed
mov eax, dword [ebp - 8]
cmp dword [eax + 0x8c14], 0x7ec
jne 0x50070a
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x7f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x208]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x500725
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x7f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x208]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x24
Function at 0x501020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573669
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b8250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x125c
push eax
lea ecx, [ebp - 0x18]
call fcn.004fbc70
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x18]
call fcn.004fc8b0
push eax
call fcn.0041b690
add esp, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push str.ck_W
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 9
mov ecx, dword [ebp - 0x14]
call fcn.00500eb0
mov ecx, dword [ebp - 0x14]
call fcn.00500e80
test eax, eax
je 0x501202
lea ecx, [ebp - 0x18]
call fcn.004fc8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004fbc70
mov byte [ebp - 4], 1
push str..zip
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
je 0x501136
push str..rar
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
je 0x501136
push 0x57a2e4
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
je 0x501136
push str..tar
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
je 0x501136
push 0x57a2f8
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
je 0x501136
push 0x57a300
lea ecx, [ebp - 0x10]
call fcn.004fd1e0
test eax, eax
jne 0x50113b
jmp 0x5011f6
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea edx, [ebp - 0x18]
push edx
call fcn.004fbb30
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.005017e0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
push 0x3c
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.005392b0
add esp, 0xc
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x1c]
call fcn.004fc8b0
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x18]
call fcn.004fc8b0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x85f0
push eax
call fcn.00539af1
add esp, 4
test eax, eax
jbe 0x5011c3
mov ecx, dword [ebp - 0x14]
add ecx, 0x85f0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x78], 0x40
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x493e0
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004fc1a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004fc1a0
push 0x57a308
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x10
mov ecx, dword [ebp - 0x14]
call fcn.00500eb0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004fc1a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5062b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573d11
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5b8250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x294
call fcn.00538625
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x506302
mov ecx, dword [ebp - 0x14]
call fcn.005093e0
mov dword [ebp - 0x18], eax
jmp 0x506309
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x50632a
jmp 0x506365
push 0
push 0
push 0
push 0
push 0
push 0
push 0x90020000
push str.Hao123
push 0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
call fcn.004c45eb
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 5
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x50c420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2208
call fcn.0053af40
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2208], ecx
lea eax, [ebp - 0x2204]
push eax
mov ecx, 0x5bc8b0
call fcn.0050a070
mov ecx, eax
call fcn.004f8cd0
movzx ecx, al
test ecx, ecx
je 0x50c476
push 5
push 0
push 0
lea edx, [ebp - 0x2204]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50dc60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
call fcn.0050a6d0
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x50ddc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x280
call fcn.004fda30
movzx eax, al
test eax, eax
jne 0x50de5a
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x208
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.005392b0
add esp, 0xc
mov ecx, dword [ebp - 0x214]
add ecx, 0x280
call fcn.004fc8b0
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041f9a0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 5
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x511f80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jg 0x511f96
xor eax, eax
jmp 0x5120c3
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0xc], 0
jmp 0x512022
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jge 0x5120a7
push 8
call fcn.00538625
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x5120a2
lea eax, [ebp - 0x1c]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
push 0x512720
push 0
push 0
call fcn.0053f0a5
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x512090
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00514380
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x5120a2
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.005385cc
add esp, 4
jmp 0x512019
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 4