joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5134
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4c52a6
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4c528b
push ebx
push edi
jmp 0x4c517c
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4c521f
cmp dword [esi + 0x18], 0
je 0x4c521f
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4c521f
push 0x10
pop edi
cmp eax, edi
jb 0x4c521f
push 0x20
call dword [0x5045d4]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4c522f
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x5045d4]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4c5238
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c5206
push eax
call dword [0x5045e0]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4c5248
cmp dword [ebp - 4], 0
jne 0x4c520f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c5219
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4c5179
jmp 0x4c5261
mov dword [ebp - 8], 8
jmp 0x4c5261
push ebx
mov dword [ebp - 8], 8
call dword [0x5045d8]
jmp 0x4c5260
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x5045d8]
push ebx
call dword [0x5045d8]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4c5273
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4c5286
push dword [ebp - 4]
call fcn.004c50f8
pop ecx
mov dword [ebp - 4], esi
jmp 0x4c529a
cmp dword [ebp - 4], esi
jne 0x4c529a
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4c55f8
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x5045e4]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4c56aa
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004c54b4
test eax, eax
pop ecx
pop ecx
je 0x4c56aa
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004bb992
push dword [ebp + 8]
call dword [0x5045e0]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4c56aa
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4c56aa
lea eax, [esi + 0x10]
push eax
push 0x4c5528
call fcn.004cccdc
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4c56c4
call fcn.004a4d40
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004c55a6
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4c56c7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c921e
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4c9252
cmp ebx, esi
jne 0x4c9252
mov eax, dword [ebp + 0x7c]
call fcn.004c91ff
jmp 0x4c93ef
cmp dword [ebp + 0x7c], edx
jle 0x4c9267
mov edi, dword [ebp + 0x7c]
call fcn.004ca7e4
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4c9297
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4c92ee
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4c92ca
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4c92ca
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4c92b8
cmp eax, dword [ebp - 0xa8]
jne 0x4c92e8
cmp dword [ebp - 0xa8], 0x40
jae 0x4c92e8
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4c92ee
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4c92f7
xor ebx, ebx
jmp 0x4c92fa
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4c9319
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4c931e
jne 0x4c9321
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4c937a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4c9354
cmp eax, 0x2714
jne 0x4c937e
cmp dword [ebp + 0x7c], 0
jle 0x4c92fd
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004ca7e4
push edx
push eax
call fcn.004ca7fa
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4c92fd
jmp 0x4c937e
test eax, eax
jge 0x4c9383
or eax, 0xffffffff
jmp 0x4c93ef
jne 0x4c9389
xor eax, eax
jmp 0x4c93ef
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4c93bb
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c93a5
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c93bb
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4c93ed
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c93d7
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c93ed
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4cb33c
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4cb349
jmp dword [eax*4 + 0x4cb3a4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4cd08c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4cd0b0
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4cd0e1
cmp dword [esi + 8], 0
jne 0x4cd0d1
push 0x4e33e0
push dword [eax + 8]
call fcn.004a0971
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4cd0d1
or eax, 0xffffffff
jmp 0x4cd107
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004a02db
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4cd0ef
cmp edi, dword [ebp + 0xc]
jbe 0x4cd105
test ebx, ebx
jne 0x4cd0ff
push dword [esi + 8]
call fcn.004a0628
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d1f40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f7ee0
push 0x4a4700
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x5030c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4d1f9a
cmp dword [ebp + 0xc], 0
je 0x4d1f9a
cmp dword [ebp + 0x10], 1
jae 0x4d1f9f
jmp 0x4d207d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4d1fc1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4d1fc6
jmp 0x4d207d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f25a
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d2001
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d207d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004a4620
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d205d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4d205d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a3638
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d207d
cmp dword [ebp - 0x20], 0
je 0x4d209c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049f9d0
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d2140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d2160
xor eax, eax
jmp 0x4d2171
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4d216c
xor eax, eax
jmp 0x4d2171
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d2b50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d54a3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x5030c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x14]
call fcn.004034a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp + 8]
push eax
push str._s_del__x
lea edi, [ebp - 0x14]
call fcn.00404190
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d2c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00403970
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004a3404
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d2c0a
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403580
mov eax, dword [ebp - 0x1c]
jmp 0x4d2c55
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4d2c3c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403580
mov eax, dword [ebp - 0x20]
jmp 0x4d2c55
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403580
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d35b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5625
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5030c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.004037c0
movzx eax, al
test eax, eax
jne 0x4d3621
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.004037c0
movzx ecx, al
test ecx, ecx
jne 0x4d3621
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.004037c0
movzx edx, al
test edx, edx
je 0x4d3628
xor eax, eax
jmp 0x4d37c3
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.00403970
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4d3687
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4d37c3
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004a4620
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00403970
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4d37c1
cmp dword [ebp - 0x10], 1
jne 0x4d37c1
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x224]
call fcn.004034e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004d2f80
add esp, 4
mov ecx, 0x105
lea esi, [ebp - 0x234]
call fcn.00403790
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.004037d0
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00403970
push eax
mov ecx, 0x105
lea esi, [ebp - 0x234]
call fcn.00403790
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.004037d0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004d2140
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00403580
mov eax, dword [ebp - 0x238]
jmp 0x4d37c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a460b
mov esp, ebp
pop ebp
ret 4
Function at 0x4d3da0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5030c0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x244], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.004034e0
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004a4620
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d3dfd
jmp 0x4d3e65
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x4d3e28
jmp 0x4d3e65
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 8]
call fcn.0040f190
test eax, eax
jne 0x4d3e51
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x238]
mov dword [ecx], edx
mov dword [ebp - 0x244], 1
jmp 0x4d3e65
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d3e28
cmp dword [ebp - 4], 0xffffffff
je 0x4d3e75
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 8]
call fcn.00403580
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a460b
mov esp, ebp
pop ebp
ret
Function at 0x4d3ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d572b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5030c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.00447d20
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004a4620
add esp, 0xc
lea esi, [ebp - 0x14]
call fcn.004034a0
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d3f91
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d3f91
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x4e6220
call fcn.004034e0
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403580
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00412840
mov eax, dword [ebp + 8]
jmp 0x4d4077
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4d3fb2
jmp 0x4d4036
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.004adcac
add esp, 4
test eax, eax
je 0x4d3ff4
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x224]
lea edi, [ebp - 0x14]
call fcn.004035b0
lea eax, [ebp - 0x230]
call fcn.00497750
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4d4036
lea eax, [ebp - 0x230]
call fcn.00403970
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x260]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004034c0
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403580
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00412840
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a460b
mov esp, ebp
pop ebp
ret
Function at 0x4d4570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004037c0
movzx eax, al
test eax, eax
je 0x4d458f
xor eax, eax
jmp 0x4d45e2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d45ae
xor eax, eax
jmp 0x4d45e2
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4d45ce
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00403970
push eax
call fcn.004d3b70
add esp, 4
jmp 0x4d45e2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00403970
push eax
call fcn.004d2b50
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.AiCiIdiomUI.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov ecx, esi
xor bl, bl
call edi
test eax, eax
jne 0x401737
push eax
push connect
push connect
push connect
push connect
push eax
push 0x10cf0000
push 0x4728c4
push eax
mov ecx, esi
call dword [sym.imp.AiCiIdiomUI.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
test eax, eax
je 0x40177c
mov ecx, esi
call dword [sym.imp.AiCiIdiomUI.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
push 0
push 0xf120
push 0x112
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x401777
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov bl, 1
pop edi
mov al, bl
pop ebx
ret
pop edi
xor al, al
pop ebx
ret

Function at 0x402e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4655b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esi + 0x18], vtable.HString.0
xor ecx, ecx
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], eax
mov word [esi + 0x20], cx
mov ecx, 1
add dword [0x47bb40], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], eax
mov dword [esp + 8], ecx
call fcn.00402ef0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x402fd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x465221
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [edi], vtable.HString.0
xor eax, eax
mov edx, 7
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], ecx
mov word [edi + 8], ax
mov eax, dword [0x47bb40]
mov dword [esp + 0x10], edi
inc eax
inc eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], vtable.HString.0
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov word [esp + 0x1c], cx
mov dword [0x47bb40], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 1
call fcn.00403130
mov ebx, edi
call fcn.004058a0
dec dword [0x47bb40]
cmp dword [esp + 0x30], 8
mov dword [esp + 0x14], vtable.HString.0
jb 0x403086
mov edx, dword [esp + 0x1c]
push edx
call fcn.004493e1
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004493ec
add esp, 0x38
ret