joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa6b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push ebx
mov eax, edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
call fcn.0042e93e
test al, al
je 0x40ab48
push edi
lea esi, [ebp - 0x18]
call fcn.0042e8cf
test al, al
je 0x40ab48
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jmp 0x40aaab
xor ebx, ebx
push 5
lea eax, [ebp - 8]
push eax
push edi
call fcn.0042e95d
cmp eax, ebx
je 0x40ab44
cmp eax, 5
jne 0x40ab26
mov eax, dword [ebp - 8]
xor eax, dword [edi + 0x18]
mov cl, byte [edi + 0x18]
xor byte [ebp - 4], cl
xor esi, esi
mov ebx, eax
add ebx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
adc esi, dword [ebp - 0xc]
add ebx, 5
adc esi, 0
cmp esi, dword [ebp - 0x14]
ja 0x40ab24
jb 0x40aaef
cmp ebx, dword [ebp - 0x18]
ja 0x40ab24
cmp eax, 0xa00000
ja 0x40ab24
push 0
push esi
push ebx
mov eax, edi
call fcn.0042e93e
test al, al
je 0x40ab48
add dword [edi + 0x20], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
adc dword [edi + 0x24], 0
test byte [ebp - 4], 1
jne 0x40aaa9
cmp dword [ebp - 8], 0
jbe 0x40aaa9
inc dword [edi + 0x28]
jmp 0x40aaa9
xor ebx, ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x10]
call fcn.0042e93e
test al, al
je 0x40ab48
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40ab48
mov al, 1
jmp 0x40ab4a
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40abc6
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.00409b11
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40ac90
push 2
push ebx
push ebx
mov eax, edi
call fcn.0042e93e
test al, al
je 0x40ac88
push edi
lea esi, [ebp - 0x18]
call fcn.0042e8fc
test al, al
je 0x40ac88
mov eax, dword [edi + 0x18]
xor eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov al, byte [edi + 0x18]
push ebx
mov byte [ebp - 8], al
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call esi
test eax, eax
je 0x40ac72
cmp dword [ebp - 4], 5
jne 0x40ac72
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [edi]
call esi
test eax, eax
je 0x40ac72
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x40ac72
add dword [edi + 0x20], 1
push dword [edi]
adc dword [edi + 0x24], ebx
inc dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0xc]
call fcn.00421ce7
mov al, 1
jmp 0x40ac92
push ebx
push dword [ebp - 0x14]
mov eax, edi
push dword [ebp - 0x18]
call fcn.0042e93e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp + 0xc]
call fcn.00421ce7
xor al, al
pop esi
pop ebx
leave
ret 8
Function at 0x40ae58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, eax
and edx, ecx
sub esp, 0x10
cmp edx, 0xffffffff
je 0x40aee4
push 0
push ecx
push eax
mov eax, esi
call fcn.0042e93e
test al, al
je 0x40aee4
push 5
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0042e95d
cmp eax, 5
jne 0x40aee4
mov ecx, dword [esi + 0x18]
xor dword [ebp - 0xc], ecx
xor dword [ebp - 0xc], ecx
mov dl, cl
mov al, cl
xor al, byte [ebp - 8]
push 0
push dword [esi + 0xc]
or al, 1
push dword [esi + 8]
xor al, dl
mov byte [ebp - 8], al
mov eax, esi
call fcn.0042e93e
test al, al
je 0x40aee4
push 0
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40aee4
cmp dword [ebp - 4], 5
jne 0x40aee4
push dword [esi]
dec dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b464
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x439108
call fcn.00438f5c
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x50]
mov byte [ebp - 0x19], bl
push 0x40
push 0x3000
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x40b4f5
push edi
push esi
call fcn.00421d55
mov ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, ebx
je 0x40b4db
push ebx
push ebx
push esi
mov edx, dword [ebp - 0x20]
call fcn.0040b38f
test al, al
je 0x40b4d3
push ebx
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x19], al
push dword [ebp - 0x24]
call fcn.00421ce7
cmp byte [ebp - 0x19], bl
jne 0x40b4f5
push 0x8000
push ebx
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
jmp 0x40b50b
call fcn.00438f97
ret 4

Function at 0x40bab5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bb12
cmp dword [ebp + 0xc], ebx
je 0x40bafc
cmp dword [ebp + 0x10], ebx
je 0x40bafc
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bafe
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x40bb12
push dword [ebp + 8]
call fcn.0042ec57
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x40bb1a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40bbaf
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40bba6
cmp dword [ebp - 4], edi
jne 0x40bba6
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x40bb61
mov dword [esi], edi
jmp 0x40bb94
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x40bba6
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bb98
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
jne 0x40bb98
mov al, 1
jmp 0x40bbb1
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4

Function at 0x40bbdd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x40bc6f
xor esi, esi
push dword [ebp + 8]
call fcn.0041e8a2
push eax
push 0x40766c
push 0x407674
mov ebx, 0x104
lea edi, [ebp - 0x208]
call fcn.0041bb91
add esp, 0x10
cmp eax, 0xffffffff
je 0x40bc6f
mov eax, edi
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
call fcn.00422ccf
test eax, eax
je 0x40bc66
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40bc78
inc esi
cmp esi, 0xc8
jb 0x40bc05
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40bc71

Function at 0x40bc83
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x40bcfe
xor esi, esi
call fcn.0041e8a2
push eax
push 0x40766c
push 0x407688
mov ebx, 0x104
lea edi, [ebp - 0x208]
call fcn.0041bb91
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bcfe
mov eax, edi
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call fcn.00422ccf
test eax, eax
je 0x40bcf8
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bd07
inc esi
cmp esi, 0x64
jb 0x40bcab
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
mov al, 1
jmp 0x40bd00
Function at 0x40bd31
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x40bd4a
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40bd5c
cmp eax, 0x2f
je 0x40bd5c
test ax, ax
jne 0x40bd88
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bd7c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40bd7e
test al, 0x10
je 0x40bd8f
test di, di
je 0x40bd8d
mov word [esi], di
add esi, 2
jmp 0x40bd4a
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x40bd98
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
push edi
push 0x407698
mov edi, ecx
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00422ccf
test eax, eax
je 0x40be36
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40be36
lea eax, [esp + 0x23c]
call fcn.0040bd0b
test al, al
jne 0x40be1c
lea eax, [esp + 0x23c]
push eax
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00422ccf
test eax, eax
je 0x40be1c
test byte [esp + 0x210], 0x10
je 0x40be12
lea ecx, [esp + 8]
call fcn.0040bd98
jmp 0x40be1c
lea eax, [esp + 8]
push eax
call fcn.0042ec57
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bdd6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bf1f
Capabilities:
Check mutex on windows

Disassembly:
cmp byte [0x43eb50], 0
push esi
jne 0x40bf5c
mov esi, 0x43eb78
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x43eb50], 0
jne 0x40bf55
call fcn.0040be54
test al, al
je 0x40bf55
and dword [0x43eb54], 0
mov byte [0x43eb50], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x43ec26
push 0
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40bf8f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40bfa0
cmp eax, 0x80
je 0x40bfa0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
test eax, eax
je 0x40bfa4
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
jmp 0x40bfa6
mov eax, esi
jmp 0x40bf91
xor al, al
ret 4
Function at 0x40c042
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
cmp byte [0x43f148], 1
push ebx
push esi
push edi
mov ebx, eax
ja 0x40c063
xor al, al
jmp 0x40c17e
lea esi, [esp + 0x50]
call fcn.00422702
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
mov eax, esi
push eax
call fcn.0040bfa9
test ebx, ebx
jne 0x40c0ae
lea eax, [esp + 0x14]
push eax
push 0x43ebb0
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb al, al
inc al
mov edx, 0x1ee
mov ecx, esi
mov byte [ecx], 0
inc ecx
dec edx
jne 0x40c0a2
jmp 0x40c17e
and dword [esp + 0x240], 0
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x244]
call fcn.004224d1
mov esi, dword [ebp + 0xc]
mov edx, ebx
lea eax, [esp + 0x240]
call fcn.0042251f
cmp ebx, 0xc800
jbe 0x40c0e8
push 3
pop edi
jmp 0x40c146
xor ecx, ecx
cmp ebx, 4
setne cl
push 2
pop esi
mov eax, esi
push 0
sub eax, ecx
call fcn.0041e900
movzx edi, byte [eax + 0x40769c]
cmp edi, 1
jne 0x40c143
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34c]
push eax
mov eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x350], esi
call fcn.004225b7
mov esi, eax
test esi, esi
jne 0x40c14a
mov ecx, 0x1ee
lea eax, [esp + 0x50]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40c137
jmp 0x40c05c
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push esi
push edi
push eax
push 0x43ebb0
call fcn.004179f5
mov bl, al
cmp esi, dword [ebp + 0xc]
je 0x40c16c
push esi
call fcn.00421ce7
mov ecx, 0x1ee
lea eax, [esp + 0x50]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40c175
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ca89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
push edi
lea esi, [ebp - 0x260]
call fcn.00422702
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x76]
push dword [ebp + 8]
xor edi, 0xff119933
mov dword [ebp - 0xc], edi
call fcn.00421d55
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40cb57
push dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.00422a13
lea ecx, [ebp - 0xae]
call fcn.0042f596
cmp eax, ebx
jl 0x40cb2a
push 0x14
lea ecx, [ebp - 0x48]
push ecx
push eax
lea eax, [ebp - 0xae]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x40cb2a
lea ecx, [ebp + eax*2 - 0x48]
cmp word [ecx - 2], bx
je 0x40cb0c
cmp eax, 0x14
jge 0x40cb2a
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x48]
push eax
push 0x43ef40
lea eax, [ebp - 0x468]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x40cb33
xor eax, eax
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xe
lea esi, [ebp - 0x20]
pop eax
call fcn.00413de7
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 1
jmp 0x40cb72
mov ecx, 0x1ee
lea eax, [ebp - 0x260]
mov byte [eax], bl
inc eax
dec ecx
jne 0x40cb62
xor al, al
jmp 0x40cc4c
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
push 0x14
pop ebx
lea edi, [ebp - 0x70]
call fcn.0041bb91
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cc2f
mov eax, edi
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00422ccf
test eax, eax
je 0x40cc2f
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40cc2f
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3e8
jb 0x40cb6f
jmp 0x40cc2f
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cc0d
mov byte [ebp + 0xb], 1
cmp dword [ebp - 4], edi
je 0x40cc10
mov byte [ebp + 0xb], bl
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], bl
jne 0x40cc2f
lea eax, [ebp - 0x670]
push eax
call fcn.0042ec57
push dword [ebp - 8]
call fcn.00421ce7
mov ecx, 0x1ee
lea eax, [ebp - 0x260]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40cc42
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d443
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0x12
lea esi, [ebp - 0x34]
pop eax
call fcn.00413de7
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
test byte [esi], 1
push 2
pop ebx
je 0x40d476
push 0x10
lea eax, [esi + 4]
push eax
lea edi, [ebp - 4]
mov eax, ebx
call fcn.00417de4
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
lea edi, [ebp - 0xc]
mov eax, ebx
call fcn.00417de4
push ebx
lea eax, [esi + 0x4a]
push eax
lea edi, [ebp - 8]
mov eax, ebx
call fcn.00417de4
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push dword [ebp - 0xc]
lea edi, [ebp - 0x74]
push dword [ebp - 4]
push eax
push 0x20
pop ebx
call fcn.0041bb91
add esp, 0x10
cmp eax, 0x1f
jne 0x40d575
mov eax, edi
push eax
push 1
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40d575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d4f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp + 8], 0
cmp dword [ebp + 8], 0
je 0x40d575
push 0x58
push 8
push dword [0x4401c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40d56d
mov ebx, dword [sym.imp.msvcrt.dll_memcpy]
push 0x10
lea eax, [esi + 4]
push eax
lea eax, [edi + 4]
push eax
call ebx
mov eax, dword [esi]
push 0x3a
mov dword [edi], eax
add esi, 0x14
lea eax, [edi + 0x14]
push esi
push eax
call ebx
mov eax, dword [ebp + 8]
add esp, 0x18
cmp word [edi + 0x4c], 0
mov dword [edi + 0x50], eax
je 0x40d567
cmp byte [edi + 0x18], 0
je 0x40d567
cmp word [edi + 0x4a], 0
je 0x40d567
push edi
push 0x40d26b
push 0x80000
call fcn.0041ef2f
test eax, eax
je 0x40d567
mov al, 1
jmp 0x40d577
push edi
call fcn.00421ce7
push dword [ebp + 8]
call fcn.0040963e
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e216
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memset]
xor eax, eax
inc eax
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40e25b
xor al, al
jmp 0x40e30d
push 0x10
push esi
call fcn.00421ddc
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0041b3ef
mov dword [esi], eax
cmp eax, ebx
je 0x40e254
jmp 0x40e284
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x40e289
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
ja 0x40e276
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
cmp eax, ebx
jne 0x40e29e
xor eax, eax
jmp 0x40e2a3
call fcn.00421cb4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40e2b3
push dword [esi]
call fcn.00421ce7
jmp 0x40e254
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.00421d23
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [eax + ecx + 1]
push eax
call fcn.00421d23
mov eax, dword [esi + 4]
mov byte [eax], 0x2f
mov eax, dword [esi + 4]
mov byte [edi + eax], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x40e307
dec eax
je 0x40e301
mov byte [esi + 0xe], bl
jmp 0x40e30b
mov byte [esi + 0xe], 2
jmp 0x40e30b
mov byte [esi + 0xe], 1
mov al, 1
pop edi
pop ebx
leave
ret 4
Function at 0x40fdee
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x180]
sub esp, 0x4e0
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x40fe18
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40ff2e
lea esi, [edi + 0x17c]
call fcn.0041ef0b
lea esi, [ebp - 0x4de]
call fcn.00422702
lea esi, [eax + 0x192]
mov ecx, esi
call fcn.0042f596
cmp eax, ebx
jl 0x40fe85
push 0x14
lea ecx, [ebp - 0x38]
push ecx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x40fe85
lea ecx, [ebp + eax*2 - 0x38]
cmp word [ecx - 2], bx
je 0x40fe67
cmp eax, 0x14
jge 0x40fe85
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x38]
push eax
push 0x43ed38
lea eax, [ebp - 0x2f0]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x40fe8e
xor eax, eax
mov word [ebp - 0x2f0], ax
mov ecx, 0x1ee
lea eax, [ebp - 0x4de]
mov byte [eax], bl
inc eax
dec ecx
jne 0x40fe99
push ebx
lea eax, [ebp - 0xe8]
push eax
push 0x2937498d
call fcn.00413297
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push dword [edi + 0xc]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x407764
lea eax, [ebp - 0x2f0]
push eax
call fcn.0041edc1
test eax, eax
jne 0x40fefa
xor al, al
jmp 0x40ff30
push 0x10
lea eax, [ebp - 0x10]
push eax
lea esi, [edi + 0x17c]
push esi
call fcn.00421d23
push 0x3e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ff2e
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0041ef0b
jmp 0x40fef6
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x40ffc8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
push dword [ebp + 8]
mov edi, eax
call fcn.0042dc5b
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x410131
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x410028
push 2
lea eax, [edi + 0x50]
push eax
push dword [ebp - 8]
lea eax, [edi + 0x3c]
push eax
mov eax, dword [edi + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.004308f0
lea eax, [ebp - 0x88]
push eax
call fcn.0040964e
mov byte [ebp - 1], al
jmp 0x41002c
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x410081
test byte [ebp - 0xc], 0x10
jne 0x410081
push dword [edi + 0xc]
call esi
movzx eax, word [ebx + 0xc]
movzx ecx, word [ebx + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [ebx]
push eax
movzx eax, word [ebx + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [edi + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x410081
push 0x64
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410131
call fcn.0040fdee
test al, al
je 0x4100f0
mov eax, dword [edi + 0x10]
push 0x10
push ebx
add eax, 0x114
push eax
call fcn.00421d23
push dword [edi + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [edi + 8]
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x4100f0
push 0x3e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4100db
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x124], 1
jne 0x4100f0
mov al, byte [ebp - 1]
jmp 0x410133
push 0
lea esi, [edi + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0041ef0b
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x410131
push ebx
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop edi
pop esi
leave
ret 8