joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a55ac
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp + 8]
xor ebx, ebx
push edx
push 1
push ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x4a5601
call fcn.004c73cc
mov esi, eax
push esi
push 0x7e0013e
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4a56dc
lea ecx, [ebp - 0x14]
call fcn.004cbbf3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
test esi, esi
je 0x4a5625
push esi
push 0x7e7013e
jmp 0x4a55f6
mov ecx, dword [0x519960]
mov esi, 0x41d838
mov edx, dword [ebp - 0x1c]
mov eax, ecx
neg eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
sbb eax, eax
mov dword [ebp - 0x40], edx
and eax, 0xffffffe0
mov dword [ebp - 0x3c], esi
add eax, 0x20
mov dword [ebp - 0x38], 1
neg ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
sbb ecx, ecx
mov dword [ebp - 0x28], eax
and ecx, 0xffffffe0
lea eax, [ebp - 0x18]
add ecx, 0x28
push ecx
push 1
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4a568a
call fcn.004c73cc
mov esi, eax
push esi
push 0x7f8013e
jmp 0x4a55f6
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4a56b4
call fcn.004c73cc
mov esi, eax
push esi
push 0x7fd013e
jmp 0x4a55f6
lea eax, [ebp - 0x40]
push eax
push ebx
push 2
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x4a56da
call fcn.004c73cc
mov esi, eax
push esi
push 0x806013e
jmp 0x4a55f6
mov esi, ebx
cmp dword [ebp - 0x24], ebx
je 0x4a56ea
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x18], ebx
je 0x4a56f9
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], ebx
je 0x4a5707
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x20], ebx
je 0x4a5715
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 0x10
Function at 0x4a6091
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 4
push ecx
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4a60c0
call fcn.004c73cc
mov esi, eax
push esi
push 0xad0013e
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4a60e2
cmp dword [edi], 4
jne 0x4a60d2
mov eax, dword [edi + 4]
test eax, eax
je 0x4a60d2
mov al, byte [eax + 3]
mov byte [esi + 3], al
mov al, byte [esi + 3]
test al, al
jne 0x4a60db
add al, 0x3a
and al, 0x7f
mov byte [esi + 3], al
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4bf803
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], edx
push esi
push esi
push 2
push esi
push esi
mov eax, ecx
mov edi, esi
push 0x40000000
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bf85d
call fcn.004c73cc
push dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push 0x103
push esi
call fcn.004c5171
push edi
push 0xd300ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4bf8ab
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bf89d
call fcn.004c73cc
push dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push 0x11e
push esi
call fcn.004c5171
push edi
push 0xe000ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4bf8a0
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4bf8b2
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4c0906
Capabilities:
Get user security identifier

Disassembly:
push 0x324
mov eax, 0x507ad4
call fcn.00503d95
mov dword [ebp - 0x32c], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x320]
mov dword [ebp - 0x31c], eax
call fcn.004cbc9e
mov esi, dword [ebp - 0x320]
mov edi, eax
test edi, edi
je 0x4c0950
push edi
push 0x80800ca
jmp 0x4c0a0e
lea eax, [ebp - 0x330]
mov dword [ebp - 0x328], 0x100
push eax
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0x104
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4c09aa
call fcn.004c73cc
mov edi, eax
push edi
push 0x81800ca
push esi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4c0a14
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x4c09d1
call fcn.004c73cc
mov edi, eax
push edi
push 0x81e00ca
jmp 0x4c0a0e
mov edx, dword [ebp - 0x31c]
mov ecx, 0x4279e8
push ebx
call fcn.004f6074
mov edi, eax
test edi, edi
je 0x4c09f0
push edi
push 0x82500ca
jmp 0x4c0a0e
push dword [ebp - 0x32c]
xor edx, edx
mov ecx, 0x427b60
call fcn.004f6074
mov edi, eax
test edi, edi
je 0x4c0a14
push edi
push 0x82b00ca
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [ebp - 0x31c], 0
je 0x4c0a29
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4c0a3f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x320], 0
mov eax, edi
call fcn.00503d32
ret
Function at 0x4c1305
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov ebx, ecx
xor esi, esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x4c1348
call fcn.004c73cc
mov esi, eax
push esi
push 0xac100ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c13b0
push edi
mov edi, esi
cmp dword [ebp - 0x10], esi
jbe 0x4c13af
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4c139c
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x4c1379
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4c1381
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4c1350
jmp 0x4c13af
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x4c13af
call fcn.004c73cc
mov esi, eax
push esi
push 0xad700ca
jmp 0x4c13a9
call fcn.004c73cc
mov esi, eax
push esi
push 0xac900ca
call dword [sym.imp.certcli.dll_Ordinal_357]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4c1546
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x28], eax
mov dword [eax], esi
mov ebx, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4c15a1
call fcn.004c73cc
mov esi, eax
push esi
push 0xb6d00ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c161d
cmp dword [ebp - 0x18], ebx
je 0x4c161d
cmp dword [ebp - 0x14], ebx
je 0x4c161d
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 2
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x4c15d8
call fcn.004c73cc
mov esi, eax
push esi
push 0xb7c00ca
jmp 0x4c1641
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c161c
mov edi, esi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4c1634
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx]
test al, al
je 0x4c1600
cmp al, 1
jne 0x4c1611
push dword [ebp - 0x24]
lea eax, [ecx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4c162f
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4c15e1
mov eax, dword [ebp - 0x28]
mov dword [eax], ebx
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 4
xor ebx, ebx
inc ebx
jmp 0x4c1617
call fcn.004c73cc
mov esi, eax
push esi
push 0xb8700ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c161c
Function at 0x4c412d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push ebx
mov eax, ecx
mov dword [edx], ebx
push 0xe
push eax
mov dword [ebp - 4], eax
mov edi, ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jle 0x4c4234
lea eax, [esi*2 + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4c4185
mov ebx, 0x8007000e
push ebx
push 0x5f00ce
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c423f
push edi
lea eax, [esi + 1]
push eax
push 0xd
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
je 0x4c41af
mov ebx, 0x80070018
push ebx
push 0x6500ce
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c4238
mov edx, edi
mov ecx, edi
mov dword [ebp - 4], ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4c41b9
sub edx, esi
lea esi, [edi - 2]
sar edx, 1
lea esi, [esi + edx*2]
cmp edi, esi
jae 0x4c41f1
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x4c41ed
xor eax, eax
mov word [esi], ax
sub esi, 2
cmp esi, edi
ja 0x4c41d2
mov ecx, edi
cmp edi, esi
ja 0x4c4234
movzx eax, word [ecx]
xor edx, edx
cmp dx, ax
je 0x4c4216
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x4c4216
add ecx, 2
mov dword [ebp - 4], ecx
cmp ecx, esi
jbe 0x4c41f3
cmp esi, ecx
jb 0x4c4234
sub esi, ecx
and esi, 0xfffffffe
add esi, 4
push esi
push ecx
push edi
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [eax], edi
mov edi, ebx
test edi, edi
je 0x4c423f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4c46e7
Capabilities:
Hide graphical window

Disassembly:
push 0x14
mov eax, 0x507c80
call fcn.00503d5c
mov dword [ebp - 0x18], edx
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
xor ebx, ebx
mov eax, dword [ebp + 0x18]
test eax, eax
setne bl
cmp byte [0x518711], 0
je 0x4c4721
xor ebx, ebx
test eax, eax
setne bl
add ebx, 2
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov ebx, dword [ebp + 8]
push edi
push edi
push edi
push ebx
call dword [sym.imp.certcli.dll_Ordinal_210]
push 0x7f00
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
test esi, esi
je 0x4c4774
push esi
push 0x1f300ce
mov dword [ebp - 0x14], edi
call dword [sym.imp.certcli.dll_Ordinal_357]
xor eax, eax
cmp eax, dword [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
sbb ecx, ecx
neg ecx
push ecx
push dword [ebp + 0xc]
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [ebp + 0x10]
push 0x4c42d0
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [ebp + 0x14]
push 0x5186f8
push 0xffffffffffffffeb
mov dword [0x518708], eax
mov eax, dword [ebp - 0x18]
push edi
mov dword [0x5186f8], eax
mov dword [0x5186fc], ebx
mov dword [0x518700], edi
mov dword [0x518704], esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x5186f8
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, 0x3ce
call fcn.004cf86d
mov esi, eax
test esi, esi
je 0x4c4810
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4c47f2
sub ecx, edx
mov dword [ebp - 0x20], esi
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x1c], eax
jmp 0x4c4815
mov esi, 0x405d88
mov edi, 0x3cf
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x10], 0
je 0x4c484b
push dword [ebp - 0x10]
call dword [sym.imp.CRYPTUI.dll_CryptUIDlgFreeCAContext]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f6341
xor eax, eax
call fcn.00503d18
ret 0x18
Function at 0x4c58a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x519a8c], 0
jne 0x4c5935
cmp byte [0x519a8e], 0
jne 0x4c592e
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x40d428
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c592e
push esi
push 4
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4085e0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c5924
cmp dword [ebp - 0xc], esi
jne 0x4c5924
cmp dword [ebp - 4], esi
jne 0x4c5924
cmp dword [ebp - 0x10], eax
je 0x4c5924
mov byte [0x519a8e], 1
mov byte [0x519a8d], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov byte [0x519a8c], 1
mov al, byte [0x519a8e]
leave
ret
Function at 0x4c68d1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
jne 0x4c68f5
mov esi, 0x405d88
movzx eax, word [esi]
push 0x22
pop ebx
mov edx, eax
mov ecx, eax
cmp bx, ax
jne 0x4c690c
lea eax, [esi + 2]
movzx ecx, word [eax]
mov esi, eax
xor eax, eax
mov dword [ebp - 4], esi
cmp bx, dx
mov edx, esi
sete al
lea eax, [eax*2 + 0x20]
movzx ebx, ax
xor eax, eax
cmp ax, cx
je 0x4c6950
movzx ecx, cx
cmp bx, cx
je 0x4c694d
push 0x5c
pop eax
add esi, 2
cmp ax, cx
jne 0x4c693f
mov edx, esi
movzx eax, word [esi]
and dword [ebp - 4], edi
mov ecx, eax
cmp word [ebp - 4], ax
jne 0x4c692d
mov dword [ebp - 4], edx
sub esi, edx
and esi, 0xfffffffe
lea eax, [esi + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4c6979
mov edi, 0x8007000e
push edi
push 0x3c401ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c6991
push esi
push dword [ebp - 4]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c6c78
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
mov dword [ebp - 0xc], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
jne 0x4c6cb5
call fcn.004c73cc
mov esi, eax
push esi
push 0x4e501ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c6d8d
mov ecx, edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4c6cba
sub ecx, edi
lea eax, [edx + 2]
sar ecx, 1
add eax, ecx
mov dword [ebp - 8], eax
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4c6cee
mov esi, 0x8007000e
push esi
push 0x4ee01ca
jmp 0x4c6caa
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, dword [ebp - 4]
ja 0x4c6d66
test eax, eax
je 0x4c6d66
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4c6d06
mov ebx, dword [ebp - 8]
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [edi + ecx*2 - 2]
je 0x4c6d30
push 0x4050fc
mov edx, ebx
mov ecx, edi
call fcn.0043eadb
push dword [ebp - 0xc]
mov edx, ebx
mov ecx, edi
call fcn.0043eadb
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x4c6d82
call fcn.004c73cc
push 0x80070002
mov esi, eax
push esi
push 0x50a01ca
push edi
call dword [sym.imp.certcli.dll_Ordinal_360]
jmp 0x4c6d82
call fcn.004c73cc
mov esi, eax
test esi, esi
jne 0x4c6d76
mov esi, 0x8007006f
push esi
push 0x4f801ca
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x4c6d94
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4c80b0
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x3c
mov word [ebp - 4], ax
mov esi, edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0xc], esi
push edi
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
and dword [esi], edi
xor eax, eax
inc eax
mov dword [ebp - 0x48], 0x3c
mov ecx, ebx
mov dword [ebp - 0x40], eax
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x10], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4c80f8
lea eax, [ebp - 0x48]
sub ecx, edx
push eax
push esi
sar ecx, 1
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4c8130
call fcn.004c73cc
mov esi, eax
push esi
push 0xb1d01ca
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4c8248
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 4]
call fcn.004c8029
mov esi, eax
test esi, esi
je 0x4c814d
push esi
push 0xb2601ca
jmp 0x4c8125
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 4]
call fcn.004c8029
mov esi, eax
test esi, esi
je 0x4c816a
push esi
push 0xb2901ca
jmp 0x4c8125
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 4]
call fcn.004c8029
mov esi, eax
test esi, esi
je 0x4c8187
push esi
push 0xb2c01ca
jmp 0x4c8125
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.004c8029
mov esi, eax
test esi, esi
je 0x4c81a4
push esi
push 0xb2f01ca
jmp 0x4c8125
mov ecx, ebx
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4c81ab
lea eax, [ebp - 0x48]
sub ecx, edx
push eax
push SysReAllocString
sar ecx, 1
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4c81e1
call fcn.004c73cc
mov esi, eax
push esi
push 0xb3601ca
jmp 0x4c8125
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
push edi
push esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
jne 0x4c820d
call fcn.004c73cc
mov esi, eax
cmp esi, 0x8007007a
jne 0x4c8226
test edi, edi
jne 0x4c8226
xor esi, esi
test edi, edi
jne 0x4c8241
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4c8231
shr dword [ebp - 8], 1
jmp 0x4c81e4
push esi
push 0xb5101ca
jmp 0x4c8125
mov esi, 0x8007000e
push esi
push 0xb5e01ca
jmp 0x4c8125
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
mov edi, esi
cmp dword [ebp - 0x40], 0
je 0x4c8257
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x34], 0
je 0x4c8266
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x4c8275
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
je 0x4c8284
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4c828f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cb672
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
cmp dword [esi], ebx
jne 0x4cb6b0
mov esi, 0x80070057
push esi
push 0xbe7019a
jmp 0x4cb7c0
push 0xf0000000
push 1
push 0x41d7e0
push ebx
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4cb6e0
call fcn.004c73cc
mov esi, eax
push esi
push 0xbf6019a
jmp 0x4cb7c0
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4cb710
call fcn.004c73cc
mov esi, eax
push esi
push 0xbfe019a
jmp 0x4cb7c0
push ebx
push dword [esi]
push dword [esi + 4]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4cb738
call fcn.004c73cc
mov esi, eax
push esi
push 0xc06019a
jmp 0x4cb7c0
push ebx
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x14
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4cb76f
call fcn.004c73cc
mov esi, eax
push esi
push 0xc0d019a
jmp 0x4cb7c0
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x78
push eax
lea eax, [ebp - 0x18]
push eax
push 3
pop ecx
call fcn.004c612a
mov esi, eax
test esi, esi
je 0x4cb7a7
push esi
push 0xc17019a
jmp 0x4cb7c0
mov edx, edi
lea ecx, [ebp - 0x90]
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x4cb7c6
push esi
push 0xc1a019a
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [ebp - 0x94], ebx
je 0x4cb7da
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x98], ebx
je 0x4cb7ef
push ebx
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret