joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4131a1
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
push ebx
push esi
push edi
mov edi, 0x80070057
test eax, eax
je 0x4132d9
xor ebx, ebx
mov edi, 0x80004005
mov byte [eax], bl
mov eax, dword [ecx]
push 0x20
pop esi
cmp dword [eax], ebx
je 0x41320b
lea ecx, [ebp - 0x24]
push ecx
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4131f3
mov edi, ebx
jmp 0x413208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x413208
movzx edi, di
or edi, 0x80070000
mov ecx, dword [ebp - 0x2c]
test edi, edi
js 0x4132d9
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], ebx
push eax
push ecx
push 0x4054b8
push 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
call fcn.00413dcb
mov esi, dword [ebp - 0x34]
mov edi, eax
test edi, edi
js 0x4132d2
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x4132a4
mov ecx, dword [ebp - 0x2c]
push esi
mov ecx, dword [ecx]
call fcn.00412a28
mov edi, eax
mov eax, dword [ebp - 0x28]
test edi, edi
js 0x4132a9
cmp eax, 1
jne 0x4132a4
test ebx, ebx
je 0x4132a4
push dword [ebx]
lea eax, [ebp - 0x24]
push dword [ebx + 4]
push dword [ebx + 8]
push dword [ebx + 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.0041268c
mov ecx, dword [ebp - 0x38]
test eax, eax
setns al
mov byte [ecx], al
mov eax, dword [ebp - 0x28]
jmp 0x4132a9
mov edi, 0x80004005
test ebx, ebx
je 0x4132d2
test eax, eax
je 0x4132ca
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
call fcn.004104c2
add ebx, 0x10
dec esi
jne 0x4132b7
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 8
Function at 0x413973
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x22e0
call fcn.0041d620
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x22a0], ecx
lea ecx, [ebp - 0x2298]
push ebx
push ecx
lea ecx, [ebp - 0x124c]
mov dword [ebp - 0x2298], 0x824
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x413b16
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x22e0]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x204]
mov dword [ebp - 0x22e0], edi
mov dword [ebp - 0x22d0], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x22cc], 0x100
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x2294]
mov dword [ebp - 0x22b4], eax
xor eax, eax
mov word [ebp - 0x2294], ax
lea eax, [ebp - 0x22e0]
push eax
push ebx
push dword [ebp - 0x2298]
lea eax, [ebp - 0x124c]
mov dword [ebp - 0x22b0], 0x824
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x413b16
push ebx
push ebx
push ebx
push ebx
push 0x40535c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x413b16
push ebx
push 0x200
push 3
push ebx
push ebx
push dword [ebp - 0x22c8]
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x229c], eax
test eax, eax
je 0x413afc
cmp dword [ebp - 0x22d4], 4
mov ecx, 0x680100
jne 0x413a9d
mov ecx, 0xe80100
xor edx, edx
push edx
push ecx
push edx
push edx
push edx
lea ecx, [ebp - 0x2294]
push ecx
push 0x40536c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x22a4], eax
test eax, eax
je 0x413add
push dword [ebp - 0x22a0]
push dword [ebp + 0x10]
push esi
push eax
call fcn.00413b45
push dword [ebp - 0x22a4]
mov esi, eax
call ebx
jmp 0x413af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413af2
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x229c]
call ebx
jmp 0x413b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413b11
movzx esi, si
or esi, 0x80070000
push edi
call ebx
jmp 0x413b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413b2b
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416161
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
test edi, edi
je 0x41628c
test edx, edx
je 0x41628c
mov eax, dword [ebp + 8]
test eax, eax
je 0x41628c
push ebx
push esi
xor esi, esi
push 0x2000
mov dword [edx], esi
push edi
mov dword [eax], esi
call dword [sym.imp.msvcrt.dll_strnlen]
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], ebx
lea eax, [ebx - 1]
cmp eax, 0x1ffe
ja 0x416281
mov eax, esi
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4161eb
mov al, byte [eax + edi]
mov byte [ebp - 1], al
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll_isalnum]
pop ecx
test eax, eax
jne 0x4161e0
mov al, byte [ebp - 1]
cmp al, 0x2b
je 0x4161e0
cmp al, 0x2f
je 0x4161e0
cmp al, 0x3d
jne 0x41624d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, ebx
jb 0x4161bc
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push 1
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41626a
mov eax, dword [ebp - 8]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x416263
push esi
push esi
lea eax, [ebp - 8]
push eax
push ebx
push 1
push dword [ebp - 0xc]
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x416254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x416243
movzx esi, si
or esi, 0x80070000
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x416286
mov esi, 0x8007000d
jmp 0x416286
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x416286
mov esi, 0x8007000e
jmp 0x416286
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x416286
movzx esi, si
or esi, 0x80070000
jmp 0x416286
mov esi, 0x80070057
mov eax, esi
pop esi
pop ebx
jmp 0x416291
mov eax, 0x80070057
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x416347
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
mov ebx, edx
test edi, edi
je 0x4163f5
test ebx, ebx
je 0x4163f5
push esi
xor edx, edx
lea ecx, [ebp + 8]
push ecx
push edx
push 0x40000001
push ebx
push eax
mov esi, edx
mov dword [edi], edx
mov dword [ebp + 8], edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4163db
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov dword [edi], eax
pop ecx
test eax, eax
je 0x4163d4
lea ecx, [ebp + 8]
push ecx
push eax
push 0x40000001
push ebx
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x4163f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4163c6
movzx esi, si
or esi, 0x80070000
push dword [edi]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [edi], 0
pop ecx
jmp 0x4163f0
mov esi, 0x8007000e
jmp 0x4163f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4163f0
movzx esi, si
or esi, 0x80070000
mov eax, esi
pop esi
jmp 0x4163fa
mov eax, 0x80070057
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416476
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, edx
push ebx
push esi
mov dword [ebp - 4], eax
xor ebx, ebx
lea esi, [eax + 4]
mov eax, dword [ebp + 0xc]
push edi
push esi
mov edi, ecx
mov dword [eax], esi
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], esi
test esi, esi
je 0x41651e
lea eax, [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_rand_s]
pop ecx
test eax, eax
jne 0x416517
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
add esi, 4
shr edx, 2
test edx, edx
je 0x4164ec
imul ecx, ecx, 0x343fd
mov dword [ebp + 8], ebx
add ecx, 0x269ec3
mov dword [ebp + 0xc], ecx
mov al, byte [ebp + ebx + 0xc]
xor al, byte [edi]
inc ebx
inc edi
mov byte [esi], al
inc esi
cmp ebx, 4
jb 0x4164d6
push 0
pop ebx
dec edx
jne 0x4164c4
mov edx, dword [ebp - 4]
imul eax, ecx, 0x343fd
mov ecx, ebx
add eax, 0x269ec3
mov dword [ebp + 0xc], eax
and edx, 3
jbe 0x416523
sub esi, edi
mov al, byte [ebp + ecx + 0xc]
xor al, byte [edi]
inc ecx
mov byte [esi + edi], al
inc edi
cmp ecx, edx
jb 0x416506
jmp 0x416523
mov ebx, 0x80004005
jmp 0x416523
mov ebx, 0x8007000e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416533
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp - 8], ecx
push dword [ebx]
xor edi, edi
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov dword [esi], eax
pop ecx
test eax, eax
je 0x4165ce
push dword [ebx]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
add esp, 0xc
mov esi, dword [esi]
mov ebx, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr eax, 2
mov dword [ebp - 8], eax
test eax, eax
je 0x4165a1
imul ebx, ebx, 0x343fd
mov edx, edi
add ebx, 0x269ec3
mov dword [ebp - 4], ebx
mov al, byte [ebp + edx - 4]
xor al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
inc edx
cmp edx, 4
jb 0x41658c
dec dword [ebp - 8]
jne 0x41657b
imul eax, ebx, 0x343fd
mov edx, edi
add eax, 0x269ec3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
and ebx, 3
jbe 0x4165d3
sub esi, ecx
mov al, byte [ebp + edx - 4]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
inc edx
cmp edx, ebx
jb 0x4165bd
jmp 0x4165d3
mov edi, 0x8007000e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418a9b
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xac], eax
mov dword [eax], ebx
lea eax, [ebp - 0xa0]
push ecx
push eax
mov dword [ebp - 0xa4], edx
lea edx, [ebp - 0x88]
push ecx
mov byte [ebp - 0x88], bl
mov dword [ebp - 0xa0], ebx
call fcn.00419a41
mov esi, eax
test esi, esi
js 0x418cba
push edi
push 0x448
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x418b0f
push ecx
mov ecx, eax
call fcn.004188dd
mov edi, eax
jmp 0x418b11
mov edi, ebx
test edi, edi
jne 0x418b29
mov esi, 0x8007000e
mov dword [0x41e74c], 0x1a8
jmp 0x418cb9
lea ebx, [edi + 0x410]
mov edx, ebx
call fcn.00418e37
mov esi, eax
test esi, esi
js 0x418cb9
push 0x3e8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418b5c
mov ecx, eax
call fcn.00418f70
mov esi, eax
jmp 0x418b5e
xor esi, esi
test esi, esi
js 0x418caa
lea eax, [ebp - 0x99]
mov byte [ebp - 0x99], 1
push eax
push ecx
push dword [ebp - 0xa4]
mov ecx, edi
call fcn.00418d06
mov esi, eax
mov dword [ebp - 0xa0], esi
test esi, esi
js 0x418c69
cmp byte [ebp - 0x99], 0
jne 0x418be2
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x418bc7
call fcn.004199b4
jmp 0x418bc9
xor eax, eax
test eax, eax
js 0x418be2
lea eax, [ebp - 0xa8]
push eax
push eax
push eax
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0x3e8
push dword [edi + 0x414]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418c02
mov ecx, eax
call fcn.00418f70
mov esi, eax
jmp 0x418c04
xor esi, esi
mov dword [ebp - 0xa0], esi
test esi, esi
js 0x418c69
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call ebx
test eax, eax
je 0x418c20
xor esi, esi
jmp 0x418c27
call fcn.00418fd2
mov esi, eax
mov dword [ebp - 0xa0], esi
test esi, esi
js 0x418c49
push ecx
push ecx
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.004192a4
mov esi, eax
mov dword [ebp - 0xa0], esi
push dword [edi + 0x414]
call ebx
test eax, eax
jne 0x418c9a
call fcn.00418fd2
test eax, eax
jns 0x418c9a
test esi, esi
js 0x418caa
push 0x1d7
jmp 0x418c87
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x418c9a
call fcn.00418fd2
test eax, eax
jns 0x418c9a
test esi, esi
js 0x418caa
push 0x1dd
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.004188ac
mov esi, dword [ebp - 0xa0]
test esi, esi
js 0x418caa
mov eax, dword [ebp - 0xac]
xor esi, esi
mov dword [eax], edi
jmp 0x418cb9
mov ecx, edi
call fcn.00418937
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x419dc1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20000003
mov ebx, ecx
mov esi, 0x80004005
call dword [sym.imp.iertutil.dll_Ordinal_791]
test al, al
je 0x419e40
push 2
push dword [0x403f20]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x419ee7
mov edi, 0x104
lea edx, [ebp - 0x20c]
push edi
push dword [0x403f20]
push 2
pop ecx
call fcn.0040c5c4
mov esi, eax
test esi, esi
js 0x419ee7
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00407605
mov esi, eax
jmp 0x419ee7
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x419ee7
push 0x406f30
lea ecx, [ebp - 0x20c]
call fcn.0040d79f
mov esi, eax
test esi, esi
js 0x419ee7
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
mov edx, edi
mov ecx, ebx
call fcn.00407605
mov esi, eax
test esi, esi
js 0x419ee7
push 2
push dword [0x403f20]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x419ed6
push edi
push dword [0x403f20]
lea edx, [ebp - 0x414]
push 2
pop ecx
call fcn.0040c5c4
test eax, eax
js 0x419ed6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call sub.SHLWAPI.dll_StrCmpIW
test eax, eax
setne al
test al, al
je 0x419ee7
push dword [0x403f20]
lea edx, [ebp - 0x20c]
call fcn.0040c648
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret

Function at 0x419fac
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
push 0x10
pop ebx
push ebx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41a049
lea eax, [edi + 0x2c]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041a11e
mov esi, eax
test esi, esi
js 0x41a050
lea eax, [edi + 0x30]
mov ecx, edi
push eax
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.0041a11e
mov esi, eax
test esi, esi
js 0x41a050
push dword [edi + 0x28]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [edi + 0x34], eax
pop ecx
test eax, eax
je 0x41a063
push ebx
lea ecx, [ebp - 0x24]
push ecx
push dword [edi + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push dword [edi + 0x28]
push eax
push dword [edi + 0x34]
push 0
push 1
push 0
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x41a050
call fcn.0040e299
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret
mov esi, 0x8007000e
jmp 0x41a050
Function at 0x41a11e
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp byte [ebp + 0xc], 0
mov ebx, ecx
mov eax, 0x406fd8
mov dword [edi], esi
jne 0x41a13f
mov eax, 0x406fe8
push 0x10
push eax
mov eax, dword [ebp + 8]
add eax, 0x10
push 0x10
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push 0x800c
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41a1ac
push esi
push 0x20
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41a19a
push edi
push 0x800000
push dword [ebp + 0xc]
push 0x660e
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x41a1a1
call fcn.0040e299
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41a1b3
call fcn.0040e299
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41a542
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x41e760], 0
jne 0x41a5c3
mov eax, dword [0x41e758]
test eax, eax
jne 0x41a588
lea eax, [ebp - 4]
push eax
push ecx
call fcn.0041acdc
test eax, eax
js 0x41a583
mov ecx, dword [ebp - 4]
mov edx, 0x41e758
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41a583
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41e758]
cmp dword [0x41e75c], 0
jne 0x41a5c3
test eax, eax
je 0x41a5c3
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x41a5c3
push esi
mov ecx, edx
mov esi, 0x41e75c
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x41a5c3
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x41a623
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x8c], ecx
mov esi, 0x80004005
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], eax
push ecx
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
je 0x41a7d0
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x41a7cf
push edi
push ebx
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x41a7c8
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x40710c
push edi
call ebx
test eax, eax
je 0x41a798
mov ecx, dword [ebp - 0x90]
push 0x406f18
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407140
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00407674
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call ebx
test eax, eax
jne 0x41a798
push 0x406f18
push 0x407178
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00407674
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call ebx
test eax, eax
jne 0x41a798
push 0x406f18
push 0x4071b0
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00407674
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call ebx
test eax, eax
jne 0x41a798
push 0x406f18
push 0x4071e8
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00407674
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
jmp 0x41a79b
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x41a7c8
push 0x407104
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, dword [ebp - 0x80]
xor ecx, ecx
cmp word [eax], cx
je 0x41a7c8
mov ecx, dword [ebp - 0x8c]
mov edx, 0x100
push eax
call fcn.00407605
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a86c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov edx, 0x12b9b0a5
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x41a89c
movzx ecx, byte [esi + edi]
imul eax, edx, 0x820
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
inc esi
cmp esi, dword [ebp + 8]
jb 0x41a881
and edx, 0x7fffffff
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x41ab1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x41e764]
test esi, esi
jne 0x41abbf
push ebx
push 2
pop esi
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x407278
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41abb8
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ebx
push ebx
push 0x401f78
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41abaf
cmp dword [ebp - 4], ebx
je 0x41abaf
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x407294
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41abac
cmp dword [ebp - 4], ebx
jne 0x41abaf
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x41e764], esi
pop ebx
xor eax, eax
cmp esi, 1
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41abd1
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ecx
cmp dword [eax + 0x1d4], ecx
je 0x41ac41
lea eax, [ebp - 4]
push eax
push 0x4072c4
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x41ac2c
cmp dword [ebp - 4], 0
jne 0x41ac2c
lea ecx, [ebp + 8]
call fcn.0041ae3b
mov esi, eax
test esi, esi
js 0x41ac31
mov ecx, dword [ebp + 8]
push edi
call fcn.0041aaa6
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41ac4e
mov esi, 0x80004005
call fcn.0041ab1e
test eax, eax
je 0x41ac4e
mov ecx, 0x4072bc
jmp 0x41ac46
mov ecx, 0x4072b4
push edi
call fcn.0041aaa6
mov esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4