joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c46
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push 0x228
mov eax, 0x5b43e0
call fcn.0056fe77
mov edi, ecx
cmp dword [0x653fcc], 0
mov ebx, dword [ebp + 8]
je 0x408db5
call fcn.00408dbd
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x230]
push 0x200
call fcn.004097bf
lea esi, [edi + 4]
push esi
call fcn.0059771b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0040998b
mov esi, 0x5fa19c
push esi
call fcn.0059771b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0040998b
push ebx
call fcn.0059771b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x230]
call fcn.0040998b
mov esi, 0x5fa068
push esi
call fcn.0059771b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0040998b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp dword [edi], 0xffffffff
je 0x408daa
push 2
xor ebx, ebx
push ebx
push ebx
push dword [edi]
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x234]
push ebx
push eax
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
add eax, eax
push eax
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00586790
add esp, 0xc
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_getLastError:__d__cb:__d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00409d4d
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x230]
call fcn.00409db5
call fcn.0056fe21
ret 4
Function at 0x40942f
Capabilities:
Delete file

Disassembly:
push 0x40
mov eax, 0x5b4450
call fcn.0056fe77
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x409463
push 0xf1
push str.Libcurl::DownloadFile
push str.__s__d___pRequest_is_empty
call fcn.00408e0e
add esp, 0xc
or eax, 0xffffffff
jmp 0x409611
and dword [ebp - 0x48], 0
lea edi, [esi + 4]
push ebx
mov ecx, edi
call fcn.00403b4e
cmp dword [edi + 0x14], 0x10
jb 0x40947a
mov edi, dword [edi]
push edi
push 0x2712
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 1
push 0x29
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 0
push 0x2b
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 0x409692
push 0x4e2b
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 0x409619
push 0x4e58
push dword [esi]
call fcn.00453ee0
add esp, 0xc
lea edi, [ebx + 0xa8]
push edi
push 0x2749
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push dword [esi + 0x20]
push 0xd
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 1
push 0x63
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push 0x5fa134
sub esp, 0x18
mov ecx, esp
push edi
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00403747
lea ecx, [ebp - 0x2c]
call fcn.0041f162
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x40952c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0059732c
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00409db5
cmp dword [ebp - 0x48], 0
jne 0x40959e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
mov esi, eax
push edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00403747
lea ecx, [ebp - 0x2c]
call fcn.0041f162
add esp, 0x18
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x409578
mov eax, dword [eax]
push eax
push esi
push 0x106
push str.Libcurl::DownloadFile
push str.__s__d___fp_is_empty__code_d__strFileName_s
call fcn.00408e0e
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00409db5
jmp 0x40945b
push dword [ebp - 0x48]
push 0x2711
push dword [esi]
call fcn.00453ee0
add esp, 0xc
push dword [esi]
call fcn.004505f0
cmp dword [ebp - 0x48], 0
mov esi, eax
pop ecx
je 0x4095cd
push dword [ebp - 0x48]
call fcn.0059740b
and dword [ebp - 0x48], 0
pop ecx
test esi, esi
jne 0x4095da
mov byte [ebx + 0x118], 1
jmp 0x40960f
sub esp, 0x18
mov ecx, esp
push edi
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00403747
lea ecx, [ebp - 0x44]
call fcn.0041f162
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x409600
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x44]
call fcn.00409db5
mov eax, esi
call fcn.0056fe21
ret 4
Function at 0x40a745
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a7d0
push ebx
push 0x1c
pop ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x40a7c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x40a7b6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x40a7b6
push dword [ebp - 0x18]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a7b6
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0040b59b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x40a77e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056e987
leave
ret

Function at 0x40a7de
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x60ca90
call fcn.00570300
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x40a854
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x40a854
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x40a854
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x40a854
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x40a85d
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ab49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x6622f4]
jmp 0x40ab6f
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ab78
mov esi, dword [esi + 4]
test esi, esi
jne 0x40ab56
xor eax, eax
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ab75
Function at 0x40ac6a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edx - 0x10000]
call fcn.0040abc1
mov esi, eax
cmp esi, edi
jbe 0x40acf6
mov ebx, 0x10000
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x40aca0
sub esi, 0x8000000
jmp 0x40acf2
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40acf6
cmp dword [ebp - 0xc], ebx
jne 0x40ace2
cmp dword [ebp - 0x10], ebx
jb 0x40ace2
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40acf8
sub esi, ebx
jmp 0x40acf2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10000]
call fcn.0040abc1
mov esi, eax
cmp esi, edi
ja 0x40ac8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40acfd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, edx
mov esi, ecx
mov edx, esi
mov ecx, eax
call fcn.0040ac6a
test eax, eax
jne 0x40ad1e
mov edx, dword [ebp + 8]
mov ecx, esi
pop esi
pop ebp
jmp fcn.0040abe1
pop esi
pop ebp
ret

Function at 0x40ad21
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea edx, [ebp - 4]
call fcn.0040a896
mov edx, dword [0x6622ec]
mov eax, dword [0x6622f4]
pop ecx
test edx, edx
jne 0x40ad51
test eax, eax
je 0x40ad62
mov edx, eax
mov dword [0x6622ec], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x40ad62
cmp ecx, dword [ebp - 4]
jb 0x40ad62
cmp ecx, dword [ebp - 8]
jbe 0x40adde
mov edx, eax
test eax, eax
jmp 0x40ad82
test edx, edx
je 0x40ad7d
mov eax, dword [edx + 8]
test eax, eax
je 0x40ad7d
cmp eax, dword [ebp - 4]
jb 0x40ad7d
cmp eax, dword [ebp - 8]
jbe 0x40adde
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x6622ec], edx
jne 0x40ad68
push dword [ebp - 8]
mov edx, dword [ebp - 4]
and esi, 0xffff0000
mov ecx, esi
call fcn.0040acfd
mov edx, eax
pop ecx
test edx, edx
je 0x40ae05
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x6622f4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x6622ec], edx
mov dword [0x6622f4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x40adce
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, dword [ebp - 4]
jb 0x40ae05
cmp esi, dword [ebp - 8]
ja 0x40ae05
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.00586790
add esp, 0xc
mov eax, esi
jmp 0x40ae07
xor eax, eax
pop esi
leave
ret

Function at 0x40ae2f
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [ecx], 0x52727464
push esi
jne 0x40ae63
lea esi, [ecx + 0x10000]
xor eax, eax
lea edx, [ecx + 0x88]
cmp dword [edx], 0
je 0x40ae53
cmp dword [edx], ecx
jb 0x40ae63
cmp dword [edx], esi
jae 0x40ae63
inc eax
add edx, 0x48
cmp eax, 0x38d
jb 0x40ae46
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40af53
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6622e8], eax
je 0x40af6c
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x6622fc]
xor ebx, ebx
test edi, edi
je 0x40afb9
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x40afa7
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x40afa7
call fcn.0040ae0a
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.0056e998
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x40af7b
mov dword [0x6622fc], ebx
call fcn.0040ab80
mov edi, dword [0x6622f8]
test edi, edi
je 0x40aff2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
push 8
push edi
call fcn.0056e998
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x40afce
pop edi
pop esi
mov dword [0x6622f8], ebx
xor eax, eax
mov dword [0x6622e8], ebx
pop ebx
leave
ret
Function at 0x40b275
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6622e4]
sub esp, 0xc
test eax, eax
jne 0x40b2f6
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.0040a745
mov edi, dword [ebp - 0xc]
mov esi, edi
jmp 0x40b2d5
push 0x650e58
push 8
call fcn.0056f2b0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40b30c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x40b2f8
mov ecx, dword [esi]
add esi, 4
mov eax, dword [0x6622f8]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [0x6622f8], ebx
cmp esi, dword [ebp - 8]
jne 0x40b29f
xor esi, esi
test edi, edi
je 0x40b2f1
mov ecx, dword [ebp - 4]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.00403c8b
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push ebx
call fcn.0056e998
pop ecx
pop ecx
jmp 0x40b30f
push 8
pop esi
and dword [0x6622f0], 0
mov dword [0x6622e4], esi
jmp 0x40b2dc
Function at 0x40e9bd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40ea38
push ebx
call fcn.00595bb0
mov esi, eax
pop ecx
test esi, esi
je 0x40ea38
push esi
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40ea2d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x5fbab0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40ea2d
mov ecx, dword [ebp - 8]
inc edi
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push esi
call fcn.00595b6f
pop ecx
mov eax, edi
jmp 0x40ea3a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ea3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [ebp - 0x20c]
push 0x208
push esi
push eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push 0x5fbab4
push eax
call fcn.00597a92
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.0040e9bd
add esp, 0xc
test eax, eax
je 0x40ead4
cmp dword [ebp - 0x210], 0x60002
jb 0x40ead4
xor eax, eax
inc eax
cmp dword [ebp - 0x214], 0x3ab10000
cmovae esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056e987
leave
ret
Function at 0x40eae3
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
test eax, eax
je 0x40ec19
mov edi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 8]
xor ecx, ecx
push eax
push ecx
push 2
mov ebx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
call edi
test al, al
jne 0x40ec19
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.00595bb0
mov esi, eax
pop ecx
test esi, esi
je 0x40ec19
lea eax, [ebp - 8]
push eax
push esi
push 2
call edi
test al, al
je 0x40ec19
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40ec12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ec12
push dword [ebp - 0x10]
call fcn.00595bb0
mov edi, eax
pop ecx
test edi, edi
je 0x40ec12
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.00595bb0
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
jne 0x40ebab
push esi
call fcn.00595b6f
push edi
call fcn.00595b6f
pop ecx
jmp 0x40ec18
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40ebf7
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x40ebf7
push dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
push 0x64
pop edx
call fcn.0040e890
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
setns bl
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 4], 0
push esi
call fcn.00595b6f
push edi
call fcn.00595b6f
push dword [ebp - 0x1c]
call fcn.00595b6f
add esp, 0xc
mov eax, ebx
jmp 0x40ec1b
push esi
call fcn.00595b6f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ec20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [ebp - 0x20c]
push 0x208
push esi
push eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push 0x5fbab4
push eax
call fcn.00597a92
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.0040e9bd
add esp, 0xc
test eax, eax
je 0x40ecb5
cmp dword [ebp - 0x210], 0x60002
jb 0x40ecb5
xor eax, eax
inc eax
cmp dword [ebp - 0x214], 0x295a01c8
cmovae esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056e987
leave
ret
Function at 0x40f11f
Capabilities:
Encode data using base64

Disassembly:
push 0x40
push 0x60cef0
call fcn.005b3940
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x40f278
test ecx, ecx
je 0x40f278
test esi, esi
je 0x40f278
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 4], ebx
push ecx
lea eax, [ebp - 0x38]
push eax
mov edi, dword [ebp - 0x48]
mov ecx, edi
call fcn.0040f0d2
pop ecx
pop ecx
test eax, eax
je 0x40f26d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
mov edx, esi
mov ecx, edi
call fcn.0040f054
pop ecx
pop ecx
test eax, eax
je 0x40f26d
mov esi, ebx
mov dword [ebp - 0x40], esi
mov edi, ebx
mov dword [ebp - 0x4c], edi
mov edx, dword [ebp - 0x44]
mov cl, byte [ebp + esi - 0x28]
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x40f1b9
mov byte [ebp - 0x39], bl
jmp 0x40f1c4
mov al, byte [ebp + esi - 0x28]
mov byte [ebp - 0x39], al
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x40f1ce
mov byte [ebp - 0x3a], bl
jmp 0x40f1d9
mov al, byte [ebp + esi - 0x28]
mov byte [ebp - 0x3a], al
inc esi
mov dword [ebp - 0x40], esi
movzx ecx, cl
mov eax, ecx
shr eax, 2
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edx + edi*2], ax
movzx edx, byte [ebp - 0x39]
mov eax, edx
shr eax, 4
and ecx, 3
shl ecx, 4
or eax, ecx
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 0x44]
mov word [ecx + edi*2 + 2], ax
movzx ecx, byte [ebp - 0x3a]
mov eax, ecx
shr eax, 6
and edx, 0xf
shl edx, 2
or eax, edx
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x44]
mov word [edx + edi*2 + 4], ax
and ecx, 0x3f
mov ax, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edx + edi*2 + 6], ax
add edi, 4
mov dword [ebp - 0x4c], edi
cmp esi, 8
jb 0x40f1a7
push 0x3d
pop eax
mov word [edx + edi*2 - 2], ax
xor eax, eax
mov word [edx + edi*2], ax
xor ebx, ebx
inc ebx
jmp 0x40f26a
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
jmp 0x40f27a
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410537
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret

Function at 0x410a28
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.pc_360dm
push 0x28
pop edx
mov esi, ecx
call fcn.00410964
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esi + 0xb4]
mov edx, 0x500
call fcn.00410964
pop ecx
mov ecx, esi
call fcn.00410d15
mov ecx, esi
call fcn.00410d58
mov ecx, esi
call fcn.00410ca5
mov ecx, esi
call fcn.00410c2b
mov ecx, esi
call fcn.00410dca
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 0
je 0x410ade
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
lea eax, [esi + 0xab4]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push str._d._d._d__s
push 0x103
push eax
call fcn.00411979
add esp, 0x1c
lea edi, [esi + 0x5d88]
mov edx, 0x104
mov ecx, edi
mov byte [edi], 0
call fcn.0041a548
cmp byte [edi], 0
lea eax, [esi + 0xd84]
jne 0x410b0f
push str.empty_na
push 0x23
pop edx
mov ecx, eax
call fcn.00410964
jmp 0x410b1a
push 0x23
mov edx, eax
mov ecx, edi
call fcn.00410997
pop ecx
push ebx
mov ecx, esi
call fcn.00410e4e
push ecx
mov ecx, esi
call fcn.00410f7f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e987
leave
ret 8

Function at 0x410b9a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
lea esi, [ecx + 0x1b80]
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x410c24
cmp eax, 0x3fff
ja 0x410c24
push esi
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x410c24
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x5fbab0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410c24
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
push esi
call fcn.00411979
add esp, 0x1c
xor eax, eax
mov word [esi + edi*2 - 2], ax
inc eax
pop edi
jmp 0x410c26
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x410ca5
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push 0x26
lea esi, [edi + 0x5b80]
push esi
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x32
pop eax
push eax
lea ebx, [edi + 0xcbc]
mov dword [ebp - 4], eax
push ebx
push esi
mov ecx, edi
call fcn.00410b9a
test eax, eax
jne 0x410d10
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ebx
lea eax, [ebp - 8]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410f7f
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x104
push ebx
xor eax, eax
lea esi, [edi + 0xe7c]
push esi
push eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.tcdump
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410fc3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00410913
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._scrashinfo__d__d.dat
lea eax, [edi + 0x128c]
push ebx
push eax
call fcn.00411770
push esi
push str._sStandaloneCrashInfo
lea eax, [edi + 0x1494]
push ebx
push eax
call fcn.00411770
lea eax, [edi + 0xe10]
push eax
push esi
push str._syuntun_s.dmp
lea ebx, [edi + 0x1084]
push 0xffffffffffffffff
push ebx
call fcn.00411770
add esp, 0x3c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411026
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
ret 4