joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b1730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6568e3
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov edi, dword [ebp + 0xc]
push 0x44
push 0
push eax
call fcn.00586ff0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x3c], xmm0
push 1
push 0x697a8c
mov byte [ebp - 0x28], 0
call fcn.00401e90
mov dword [ebp - 4], 0
cmp byte [esi], 0
jne 0x5b17af
xor ecx, ecx
jmp 0x5b17bd
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b17b4
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406270
push 2
push 0x697a90
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp byte [edi], 0
jne 0x5b17df
xor ecx, ecx
jmp 0x5b17ed
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b17e4
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5b1827
xor al, al
jmp 0x5b1839
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov al, 1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x29], al
cmp ecx, 0x10
jb 0x5b1851
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.004021e0
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 8
Function at 0x5b1870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5b18e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5b18ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5b18f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5b18fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5b1901
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.005b1990
test al, al
jne 0x5b18c9
xor bl, bl
jmp 0x5b1942
mov ebx, dword [ebp - 0x18]
add esi, 0xffffff6e
cmp esi, 0xc
ja case.0x5b18de.147
movzx eax, byte [esi + 0x5b1974]
jmp dword [eax*4 + 0x5b1960]
mov edi, 0x2f7770
jmp 0x5b1906
mov edi, 0x2f7368
jmp 0x5b1906
mov edi, 0x94d70
jmp 0x5b1906
mov edi, 0x93400
jmp 0x5b1906
mov edi, dword [ebp - 0x14]
sub edi, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5b1990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0045d3be
push 0x697a0c
mov edi, dword [eax + 8]
movzx eax, word [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x5b19d9
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00406bc0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
push edi
push ebx
call fcn.005b14d0
add esp, 8
lea ecx, [ebp + 8]
mov edx, 0x697a30
call fcn.00405650
mov ecx, dword [eax]
call fcn.005ba0e0
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b1a45
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1a5d
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1a5d
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
call fcn.005ba1b0
pop edi
test al, al
pop esi
setne al
pop ebx
pop ebp
ret 8
mov ecx, edx
call edi
jmp 0x5b1a45
Function at 0x5b1cf0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656975
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
push 0
call fcn.00456b68
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.005b5390
push ecx
mov edx, 0x698480
mov dword [ebp - 4], 0
mov ecx, esp
call fcn.00405a10
call fcn.005b1570
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x5b1d85
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5b1d82
lea esi, [eax + 0xa]
push 0x3e8
call edi
sub esi, 1
jne 0x5b1d70
inc ebx
cmp ebx, 0x3c
jb 0x5b1d60
mov esi, dword [ebp - 0x10]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b1de9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1de5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1de5
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5b5250
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6570b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push dword [esi + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x5b529e
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x20]
sub eax, 0x10
push eax
call fcn.00405de0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov edx, 0x697bb0
mov dword [ebp - 0x10], 1
call fcn.00405650
mov dword [ebp - 4], 1
mov ecx, 1
mov edi, dword [eax]
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x5b52fb
push 0x800
mov ecx, esi
call fcn.00402600
push edi
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b534a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b5346
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b5346
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b534a
mov ecx, edx
call edi
mov eax, dword [esi]
test eax, eax
je 0x5b5360
push dword [eax - 8]
push eax
call fcn.0058d0f1
add esp, 8
test eax, eax
js 0x5b5385
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x5b5385
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004028a0
int3
Function at 0x5b5390
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6570f5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push dword [esi + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x5b53de
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x20]
sub eax, 0x10
push eax
call fcn.00405de0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov edx, 0x697b90
mov dword [ebp - 0x10], 1
call fcn.00405650
mov dword [ebp - 4], 1
mov ecx, 1
mov edi, dword [eax]
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x5b543b
push 0x800
mov ecx, esi
call fcn.00402600
push edi
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b548a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b5486
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b5486
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b548a
mov ecx, edx
call edi
mov eax, dword [esi]
test eax, eax
je 0x5b54a0
push dword [eax - 8]
push eax
call fcn.0058d0f1
add esp, 8
test eax, eax
js 0x5b54c5
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x5b54c5
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004028a0
int3
Function at 0x5b54d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657129
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b551a
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b552f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b5531
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x690da4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x5b5592
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x5b5592
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b5571
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403ca0
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5b9280
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657740
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov edx, ecx
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x80
push 3
push eax
push 1
push accept
mov ecx, 0x100
mov dword [ebp - 0x46c], 0
lea edi, [ebp - 0x414]
mov dword [ebp - 0x470], 0
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x480], 0x67452301
mov dword [ebp - 0x47c], 0xefcdab89
mov dword [ebp - 0x478], 0x98badcfe
mov dword [ebp - 0x474], 0x10325476
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b93b1
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x484]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
je 0x5b938c
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x5b938c
add dword [esi], eax
lea ecx, [ebp - 0x480]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.005b9020
push 0
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x5b9351
lea ecx, [ebp - 0x480]
call fcn.005b8f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x428]
call fcn.005b9120
jmp 0x5b93b3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret

Function at 0x5b93d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657768
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x413]
push 0x3ff
push 0
push eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x480], 0x67452301
mov dword [ebp - 0x47c], 0xefcdab89
mov dword [ebp - 0x478], 0x98badcfe
mov dword [ebp - 0x474], 0x10325476
call fcn.00586ff0
add esp, 0xc
mov byte [ebp - 0x414], 0x65
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x480]
push 1
push eax
call fcn.005b9020
lea ecx, [ebp - 0x480]
mov dword [esi], 1
call fcn.005b8f30
lea ecx, [ebp - 0x428]
call fcn.005b9120
jmp 0x5b949d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret
Function at 0x5b9b30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6577fc
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0045d4ad
mov byte [ebp - 4], 1
lea esi, [edi + 0xb0]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [edi], vtable.CMessageDlg.0
push eax
mov dword [ebp + 8], esi
call fcn.00403600
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.0045d3be
call fcn.0045d3be
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xb4], eax
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b9bff
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b9bfb
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b9bfb
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b9bff
mov ecx, edx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5ba0e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
xor edi, edi
lea eax, [ebp - 0x104]
push edi
push eax
mov ebx, ecx
call fcn.00586ff0
mov esi, ebx
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5ba114
sub esi, ecx
xor ecx, ecx
nop
mov eax, ecx
mov byte [ecx + 0x6e8690], cl
xor edx, edx
div esi
mov al, byte [edx + ebx]
mov byte [ebp + ecx - 0x104], al
inc ecx
cmp ecx, 0x100
jl 0x5ba120
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [esi + 0x6e8690]
movsx eax, byte [ebp + esi - 0x104]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x5ba175
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x6e8690]
mov byte [esi + 0x6e8690], al
inc esi
mov byte [edi + 0x6e8690], dl
cmp esi, 0x100
jl 0x5ba150
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583e60
mov esp, ebp
pop ebp
ret