joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cbb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5098c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cbfc
cmp word [ebx], dx
jne 0x41cbfc
or byte [eax + edi + 0x28], 4
jmp 0x41cc01
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41cd64
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41cd44
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41cc42
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cc78
cmp eax, edx
jae 0x41cc86
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41cc1d
jmp 0x41cd64
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cd3f
cmp dword [ebp - 0x18], 0
je 0x41cd3f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5098c8]
test byte [eax + edi + 0x28], 0x48
je 0x41cd15
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41ccd9
mov word [esi], cx
jmp 0x41cd10
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5098c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5098c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5098c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cd64
pop eax
cmp word [ebp - 4], ax
jne 0x41cd25
cmp esi, ebx
jne 0x41cd25
mov word [esi], ax
jmp 0x41cd61
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421fc6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cd64
push 0xd
pop eax
jmp 0x41cd20
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5098c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cd5e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cd64
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f5de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432168
push 0x432160
push str.FlsAlloc
push 0x1f
call fcn.0041f449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f612
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e290]
call esi
jmp 0x41f618
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41f65c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432178
push 0x432170
push str.FlsGetValue
push 0x21
call fcn.0041f449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f693
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e290]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41f69b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x432178
push str.FlsSetValue
push 0x22
call fcn.0041f449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f6d5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e290]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42192b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d480
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ca42
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42196d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421ac9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c450
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5098c8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00421fa8
mov ecx, dword [esi*4 + 0x5098c8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x421ac2
cmp eax, dword [ecx + edi + 0x24]
jne 0x421ac2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421ac2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421fa8
add esp, 0x14
test edx, edx
jl 0x421ac2
jg 0x421a38
test eax, eax
jb 0x421ac2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421ac2
jl 0x421a52
cmp dword [ebp - 0x1008], eax
ja 0x421ac2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421a70
test ebx, ebx
je 0x421aa9
cmp ecx, edi
jae 0x421aa9
mov al, byte [ecx]
cmp al, 0xd
jne 0x421a8a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421a96
cmp byte [ecx + 1], 0xa
jne 0x421a96
inc ecx
jmp 0x421a96
movzx eax, al
movsx eax, byte [eax + 0x43c1f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421a70
cmp edx, ebx
jne 0x421a70
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421ac7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c493
leave
ret
Function at 0x424bad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x424c4a
push ebx
push esi
call fcn.00424b76
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004239bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424bf7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424c49
push edi
push eax
call fcn.0041de35
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424c17
call fcn.0041d583
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424c48
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004239bf
add esp, 0x20
test eax, eax
jne 0x424c36
push edi
call fcn.0041d583
jmp 0x424c3e
push ebx
call fcn.0041d583
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424c4d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x424c5e
pop esi
ret
push ebx
push edi
push esi
call fcn.00424b76
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041de35
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x424c86
push ebx
push esi
push edi
call fcn.0040ddb0
add esp, 0xc
push 0
call fcn.0041d583
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x425056
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424c9b

Function at 0x42751e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041db4a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42758d
cmp esi, dword [ebp - 4]
je 0x427588
cmp dword [ebp + 0xc], 0
je 0x427588
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x427565
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00427070
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42758f
xor eax, eax
inc eax
jmp 0x42758f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4275f4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041db4a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041db4a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42766b
cmp word [ecx], dx
je 0x42766b
mov eax, dword [0x432874]
push edi
dec eax
push eax
push 0x432760
call fcn.00427593
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4276de
cmp word [eax], dx
je 0x4276de
mov eax, dword [edi]
test eax, eax
je 0x42768f
cmp word [eax], dx
je 0x42768f
lea eax, [ebp - 0x10]
push eax
call fcn.00426f76
jmp 0x427698
lea eax, [ebp - 0x10]
push eax
call fcn.00427011
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x427708
mov eax, dword [0x43275c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x432450
call fcn.00427593
add esp, 0xc
test al, al
je 0x427708
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4276d3
cmp word [eax], di
je 0x4276d3
lea eax, [ebp - 0x10]
push eax
call fcn.00426f76
pop ecx
jmp 0x42770a
lea eax, [ebp - 0x10]
push eax
call fcn.00427011
jmp 0x4276d0
mov eax, dword [edi]
test eax, eax
je 0x4276f5
cmp word [eax], dx
je 0x4276f5
lea eax, [ebp - 0x10]
push eax
call fcn.00426f2b
pop ecx
jmp 0x427708
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4277d3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00427418
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4277d3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4277d3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4277d3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427760
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041f7db
test ebx, ebx
je 0x4277ce
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041f7db
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4277d3
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4277d3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042aa51
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4277d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c493
leave
ret
Function at 0x42c350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c37d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c37d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412f95
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x413048
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x40127c
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x413048
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x413043
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x413047
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x413043
push dword [ebp + 8]
push dword [esi]
call fcn.00412f23
mov edi, eax
cmp edi, ebx
jge 0x413047
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x412ff3
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x414e90
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4276d8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x403618
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x414f7c
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x414f70
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x414f1f
xor edi, edi
jmp 0x414f67
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x414f1b
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x414f47
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x414f1b
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00416435
leave
ret 8
Function at 0x414f8b
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4276d8]
push ebx
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x428], 0x20
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x18], 0xd8
mov byte [ebp - 0x17], 0x1a
mov byte [ebp - 0x16], 0xfe
mov byte [ebp - 0x15], 0x4b
mov byte [ebp - 0x14], 0xc2
mov byte [ebp - 0x13], 0x85
mov byte [ebp - 0x12], 0x7d
mov byte [ebp - 0x11], 0x30
mov byte [ebp - 0x10], 0x4b
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], 0xcf
mov byte [ebp - 0xd], 0x62
mov byte [ebp - 0xc], 0x36
mov byte [ebp - 0xb], 0x62
mov byte [ebp - 0xa], 0x5a
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0xa8
mov byte [ebp - 7], 0x47
mov byte [ebp - 6], 0x1a
mov byte [ebp - 5], 0x24
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41510d
push esi
push edi
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x415049
xor esi, esi
jmp 0x4150fc
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x41c]
call esi
test eax, eax
jne 0x415069
xor esi, esi
jmp 0x4150f0
push 0x403684
push dword [ebp + 8]
mov dword [ebp - 0x424], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4150d0
push edi
push 0x400
lea eax, [ebp - 0x418]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, ebx
jbe 0x4150c8
add dword [ebp - 0x424], eax
push ebx
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x41c]
call esi
test eax, eax
je 0x41511a
cmp dword [ebp - 0x424], 0x3000
jb 0x415085
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push ebx
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x4150f0
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00416435
leave
ret 8
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x41510b
Function at 0x41588f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x415971
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x41590c
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x41595c
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x41597b
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x41595c
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00415877
test eax, eax
je 0x41597b
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x41597b
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4158bc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x415974
Function at 0x416435
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276d8]
jne 0x41643e
ret
jmp 0x416443
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276d8]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429964]
test eax, eax
je 0x416467
call eax
cmp dword [0x429968], 0
je 0x4164ae
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429968]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00416435
add ebp, 0x2a8
leave
ret
Function at 0x418865
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x405734
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x40571c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x405708
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x4056f4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x4056d4
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298cc], esi
mov dword [0x4298d0], esi
mov dword [0x4298d4], esi
call fcn.0041880d
add esp, 0x10
test eax, eax
jl 0x418a09
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418a12
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298cc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x418933
mov dword [0x4298cc], esi
lea eax, [ebp - 4]
push eax
push 0x4298d0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x418954
mov dword [0x4298d0], esi
lea eax, [ebp - 4]
push eax
push 0x4298d4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x418975
mov dword [0x4298d4], esi
lea eax, [ebp - 4]
push eax
push 0x4298d8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41899a
mov dword [0x4298d8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298cc], esi
jne 0x4189c3
cmp dword [0x4298d0], esi
jne 0x4189d3
cmp dword [0x4298d4], esi
jne 0x4189d3
xor eax, eax
inc eax
jmp 0x418a47
cmp dword [0x4298d0], esi
jne 0x4189d3
cmp dword [0x4298d4], esi
je 0x4189f8
push ebx
push 0x4056d0
push 0x64
push 0x429868
call fcn.0041880d
add esp, 0x10
test eax, eax
jl 0x418a09
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x427ee8], eax
cmp dword [0x4298cc], esi
jne 0x418a0d
cmp dword [0x427ee8], 0xffffffff
jne 0x418a0d
xor eax, eax
jmp 0x418a47
xor eax, eax
inc eax
jmp 0x418a42
push ebx
push 0x4056d0
push 0x64
push 0x429868
call fcn.0041880d
add esp, 0x10
test eax, eax
jl 0x418a09
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x427ee8], ecx
je 0x418a47
mov dword [0x4298dc], eax
pop edi
pop esi
pop ebx
leave
ret 4