joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601322f0
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6014ac28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ecx, edi
call fcn.601041b0
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x1f]
push edx
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60132363
call fcn.601180b0
test eax, eax
jl 0x601323e0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x601323e0
mov bl, byte [esp + 0x13]
cmp bl, 0xa
je 0x601323b7
mov eax, dword [esi - 4]
mov ebp, dword [esi - 0xc]
mov edx, 1
sub edx, eax
mov eax, dword [esi - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
jge 0x6013239b
push edi
lea ecx, [esp + 0x18]
call fcn.601042f0
mov esi, dword [esp + 0x14]
test edi, edi
mov byte [esi + ebp], bl
jl 0x601323d6
cmp edi, dword [esi - 8]
jg 0x601323d6
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov edi, dword [esp + 0x30]
jmp 0x60132333
push 0xd
lea ecx, [esp + 0x18]
call fcn.601319e0
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.6010a570
mov esi, dword [esp + 0x14]
mov bl, 1
jmp 0x601323f6
push 0x80070057
call fcn.601040a0
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.6010a570
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
setne bl
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60132418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x60132770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6014acc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], 0x60150254
call fcn.60131040
lea ecx, [esi + 0x404]
call fcn.60142fd0
xor ebx, ebx
mov dword [esi + 0x408], ebx
mov dword [esp + 0x120], ebx
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], ebx
mov dword [esi + 0x414], ebx
mov dword [esi + 0x418], ebx
mov dword [esi + 0x41c], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x424], ebx
mov dword [esi + 0x428], ebx
mov dword [esi + 0x42c], ebx
mov dword [esi + 0x430], ebx
mov byte [esi + 0x435], bl
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov byte [esp + 0x120], 2
lea edi, [esi + 0x438]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 1
push 0x21
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + 0x130], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x6013285e
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x60132841
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.60104370
mov ecx, edi
call fcn.6010a420
mov ecx, dword [esp + 0x118]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x601376e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6014b1ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x411
mov dword [esp + 0x138], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x6013778c
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x60137785
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x60137785
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
push esi
push eax
call dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x601377b0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_realloc]
push esi
push edi
xor eax, eax
mov edi, 0x200
push edi
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov ebx, 0x80
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x6013781a
mov edi, edi
lea eax, [esp + 0x14]
push eax
push edi
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x6013783c
mov eax, dword [esp + 0x14]
cmp edi, eax
ja 0x60137862
add ebx, ebx
lea edi, [ebx*4]
push edi
push esi
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x601377e0
mov dword [esp + 0x10], 0x8007000e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60137850
call esi
mov dword [esp + 0x10], eax
jmp 0x60137822
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
jmp 0x60137822
shr eax, 2
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x60137822
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + edi*4]
push eax
push ebx
push ebp
call dword [esp + 0x30]
add esp, 0xc
test al, al
je 0x60137893
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jb 0x60137877
jmp 0x60137822
mov dword [esp + 0x10], 1
jmp 0x60137822
Function at 0x60137c30
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x6014b1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push esi
xor ebx, ebx
test eax, eax
push edi
jbe 0x60137d1a
cmp ebx, eax
jae 0x60137d31
mov eax, dword [ebp]
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
lea edi, [eax + ebx*4]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x28], 0
call fcn.6011be20
test eax, eax
jl 0x60137ce8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
cmp eax, 2
jne 0x60137ce8
call fcn.601433f0
mov esi, eax
test esi, esi
je 0x60137ce8
mov eax, dword [edi]
mov edx, dword [esi]
push 1
push 1
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
push 1
push 4
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesApiMon
mov ecx, esi
call dword [eax + 0x10]
mov edi, dword [edi]
mov edx, dword [esi]
push 1
push 4
push edi
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60137d0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 4]
inc ebx
cmp ebx, eax
jb 0x60137c63
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x80070057
call fcn.601040a0
int3
Function at 0x60138070
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x6014b1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
xor esi, esi
mov ebp, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x6015b6f8]
push edi
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
mov esi, 0x800
mov eax, dword [edi - 4]
add esi, esi
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
lea edx, [esi - 1]
sub eax, edx
or eax, ecx
jge 0x601380d9
push edx
lea ecx, [esp + 0x14]
call fcn.601042f0
mov edi, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esi - 2]
cmp eax, ecx
jae 0x601380b3
cmp eax, 0xffffffff
jne 0x60138109
test edi, edi
jne 0x601380f7
xor eax, eax
jmp 0x6013810d
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x60138100
sub eax, edx
test eax, eax
jl 0x60138164
cmp eax, dword [edi - 8]
jg 0x60138164
lea esi, [edi - 0x10]
mov dword [edi - 0xc], eax
push esi
mov byte [eax + edi], 0
call fcn.60109070
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x6013814d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
push 0x80070057
call fcn.601040a0
int3
Function at 0x60138a50
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x60138aa5
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
jmp 0x60138a70
cmp edi, dword [ebx + 4]
jae 0x60138aae
mov eax, dword [ebx]
lea esi, [eax + edi*4]
mov eax, dword [esi]
push eax
call ebp
test eax, eax
je 0x60138a9c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x60138a9c
mov ecx, dword [esi]
push eax
push ecx
call fcn.60138630
add esp, 8
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x60138a70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0x80070057
call fcn.601040a0
int3
Function at 0x60139bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6014b370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x24]
push edi
mov ecx, ebx
call fcn.6010acb0
lea eax, [esp + 0xc]
push eax
push 0x60150370
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], 0
call fcn.60109f20
mov edi, dword [esp + 8]
mov eax, dword [edi - 0xc]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x60139cfb
push ebp
push esi
mov edi, edi
push edi
mov ecx, ebx
call fcn.6010aef0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push 0x60150370
lea eax, [esp + 0x20]
push eax
call fcn.60109f20
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
mov byte [esp + 0x24], 1
je 0x60139ccb
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x60139cb9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x60139cb9
push eax
call fcn.60109070
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x60139cb0
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea edi, [ebp + 0x10]
mov dword [esp + 0x10], edi
jmp 0x60139ccb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.60104370
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60139cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x60139c50
pop esi
pop ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop ebx
jg 0x60139d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x6013d7d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x6014b758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov esi, ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.601045b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.6010a420
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea edi, [esi + 4]
push eax
mov ecx, edi
call fcn.6011e470
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
test esi, esi
je 0x6013d843
call ebp
sub eax, dword [esi + 4]
cmp eax, 0xea60
jbe 0x6013d851
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push 0
push 0
push ebx
call dword [edx + 0xc]
test esi, esi
je 0x6013d85c
call ebp
mov dword [esi + 4], eax
jmp 0x6013d86e
mov eax, dword [esp + 0x2c]
push eax
mov ecx, edi
call fcn.6013d760
mov esi, eax
call ebp
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x6013d898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x60141230
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6014b996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov ecx, dword [esp + 0x15c]
push ebx
push esi
push edi
call fcn.6010acb0
mov ecx, dword [esp + 0x16c]
call fcn.6010acb0
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x164]
push 0x60150370
push ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x164], ebx
call fcn.60126fd0
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x601412da
mov dword [esp + 0x15c], eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x601412d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
jmp 0x601413d2
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll__mbscmp]
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.60126fd0
lea eax, [esp + 0x44]
push 0x6014dfc8
push eax
call ebp
add esp, 8
test eax, eax
jne 0x6014132f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x6014136d
lea eax, [esp + 0x44]
push 0x6014dfcc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x6014134b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x6014136d
test byte [esp + 0x18], 0x10
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x170]
push esi
jne 0x60141365
mov ecx, dword [esp + 0x170]
call fcn.6010aef0
lea eax, [esi - 0x10]
mov byte [esp + 0x160], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6014138b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x601412e1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
jg 0x601413d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 0xc
Function at 0x60142180
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x6014ba70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp + 4]
push esi
xor esi, esi
cmp eax, esi
mov ebx, ecx
mov dword [esp + 0x3c], eax
je 0x60142304
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
xor edi, edi
cmp eax, esi
mov byte [esp + 0x38], 1
jbe 0x60142226
cmp edi, dword [ebp + 4]
jae 0x601422fa
mov eax, dword [ebp]
lea esi, [eax + edi*4]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x6014221b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x24]
jne 0x60142216
lea ecx, [esp + 0x14]
call fcn.6010aef0
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jb 0x601421e2
xor esi, esi
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
mov ecx, ebx
call fcn.60142060
mov bl, al
mov eax, dword [esp + 0x10]
cmp eax, esi
mov byte [esp + 0x38], 0
je 0x60142299
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov ebp, ecx
mov edi, eax
jbe 0x6014228d
mov eax, dword [edi + esi*4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
cmp esi, ebp
jb 0x60142267
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
xor esi, esi
mov edi, dword [esp + 0x20]
cmp edi, esi
mov dword [esp + 0x38], 0xffffffff
je 0x601422e3
mov eax, dword [esp + 0x24]
test eax, eax
mov ebp, eax
jbe 0x601422d9
mov eax, dword [edi + esi*4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x601422d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
cmp esi, ebp
jb 0x601422b3
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
push 0x80070057
call fcn.601040a0
mov eax, dword [esp + 0x48]
cmp dword [ebx], eax
jae 0x60142325
mov ecx, dword [ebx + 4]
mov edx, ecx
neg edx
sbb edx, edx
test edx, 0x60143220
mov dword [ebx], eax
je 0x60142325
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x60142380
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6014bab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x68]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x60142453
call fcn.601180b0
cmp eax, ebx
jl 0x60142432
push edi
push fcn.6011e400
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.6011af90
add esp, 0xc
mov edx, dword [esp + 0xc]
xor eax, eax
mov word [esp + 0x1c], bx
mov ecx, 0xf
lea edi, [esp + 0x1e]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
pop edi
jne 0x6014245c
call fcn.601180b0
cmp eax, ebx
je 0x60142463
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x60142441
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov dword [esp + 8], eax
jmp 0x601423d0
cmp dword [esp + 0xc], 0x40
jne 0x60142426
cmp word [esp + 0x18], 0x5a4d
jne 0x60142499
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x60142487
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov eax, dword [esp + 0x18]
cmp eax, 0x47544c53
je 0x601424af
cmp eax, 0x5446534d
mov byte [esp + 7], bl
jne 0x601424b4
mov byte [esp + 7], 1
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x601424cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x58]
mov al, byte [esp + 7]
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x60142f40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov cl, byte [0x6015b688]
push ebx
push ebp
mov eax, 1
test al, cl
push esi
push edi
jne 0x60142f6c
or dword [0x6015b688], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x19
and eax, 0x40
mov dword [0x6015b684], eax
jmp 0x60142f71
mov eax, dword [0x6015b684]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
not eax
and esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x60142fc3
call fcn.601180b0
cmp eax, 0x80090019
jne 0x60142fc5
mov ecx, dword [esp + 0x14]
or esi, 8
push esi
push edi
push ebx
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x60142fc3
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.601180b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x60143030
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.601479f0
mov edx, dword [esp + 0x2014]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
push esi
mov dword [edx + 0xc], eax
mov ecx, dword [ecx]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x60143094
call fcn.601180b0
mov esi, eax
test esi, esi
jge 0x60143094
mov eax, dword [esp + 4]
test eax, eax
je 0x60143088
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
add esp, 0x200c
ret 8
mov ecx, dword [esp + 0x2014]
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x601430e2
call fcn.601180b0
test eax, eax
jge 0x601430e4
mov eax, dword [esp + 8]
test eax, eax
je 0x601430d2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x200c
ret 8
mov edi, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], 0
push 0
lea edx, [esp + 0x14]
push edx
push 0x2000
lea eax, [esp + 0x24]
push eax
push edi
call ebx
test eax, eax
jne 0x60143114
call fcn.601180b0
test eax, eax
jl 0x60143140
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x60143140
mov edx, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x601430f3
call fcn.601180b0
mov esi, eax
test esi, esi
jge 0x601430f3
jmp 0x60143173
mov ecx, dword [esp + 0x2020]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push 2
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x60143171
call fcn.601180b0
mov esi, eax
jmp 0x60143173
xor esi, esi
test edi, edi
je 0x6014317e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x6014318d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0x200c
ret 8