joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446f10
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movups xmmword [eax], xmm0
cmp edx, 1
jbe 0x446f5a
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
nop dword [eax]
lea ecx, [ecx + 0x20]
aesdec xmm0, xmmword [ecx - 0x20]
movups xmmword [eax], xmm0
aesdec xmm0, xmmword [ecx - 0x10]
movups xmmword [eax], xmm0
sub edx, 1
jne 0x446f40
add esi, esi
aesdec xmm0, xmmword [edi + esi*8 - 0x10]
movups xmmword [eax], xmm0
aesdeclast xmm0, xmmword [edi + esi*8]
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x446f80
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movups xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm0, xmm1
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax]
pxor xmm0, xmm1
movups xmmword [eax], xmm0
cmp edi, 1
jbe 0x44701d
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
nop
sub dword [esp + 0xc], 1
lea edi, [edi + 0x10]
movups xmm1, xmmword [edi - 0x10]
movups xmm0, xmmword [ecx]
aesdec xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
aesdec xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [esi]
aesdec xmm0, xmm1
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax]
aesdec xmm0, xmm1
movups xmmword [eax], xmm0
jne 0x446fe0
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesdeclast xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
aesdeclast xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [esi]
aesdeclast xmm0, xmm1
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax]
aesdeclast xmm0, xmm1
pop edi
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469a59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004698cf
Function at 0x100021c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp]
push eax
mov ecx, 0x1023e240
call fcn.100061e0
test eax, eax
jne 0x100021d6
test edx, edx
je 0x100021e3
push edx
push eax
call fcn.1000e710
add esp, 8
ret 0x10
jmp fcn.1000afa0

Function at 0x100022f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp]
push esi
push edi
push eax
mov ecx, 0x1023e240
call fcn.100061e0
mov esi, eax
mov edi, edx
test esi, esi
jne 0x1000230c
test edi, edi
je 0x1000234d
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1000233e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000233e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10002336
push edi
push esi
mov word [edx], ax
call fcn.1000e710
add esp, 8
pop edi
pop esi
ret 0x18
push eax
push ecx
push edx
call fcn.10002270
push edi
push esi
call fcn.1000e710
add esp, 8
pop edi
pop esi
ret 0x18
pop edi
pop esi
jmp fcn.1000ab80

Function at 0x10002440
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x21c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov ebx, 1
mov word [esp + 0x18], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHFolder.dll
push 0x104
lea eax, [esp + 0x14]
push eax
call fcn.100023a0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100024dd
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100024d2
push edi
push 0
push 0
push 0x8023
push 0
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10002530
push 1
push 0x208
push edi
push str.Common_AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call fcn.1000ea90
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call esi
test eax, eax
je 0x10002530
call esi
push eax
push 0x220f1007
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10010588
add esp, 0x20c
ret
cmp word [edi], 0
jne 0x1000255d
push 0xd
push 0x220f1007
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10010588
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.10010588
add esp, 0x20c
ret

Function at 0x10004210
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
shr eax, 2
sub eax, 1
js 0x1000422c
mov ecx, dword [esp + 4]
xor dword [ecx + eax*4], 0x19950315
sub eax, 1
jns 0x10004220
ret
Function at 0x100043d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x44
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
mov ebp, dword [esp + 0x4c]
push ebp
call fcn.10002440
add esp, 4
test eax, eax
jne 0x100045aa
test edx, edx
jne 0x100045aa
push ebx
push esi
push edi
push str.AhnLab
push 0x104
push ebp
call fcn.100023a0
mov esi, dword [esp + 0x68]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x10004435
push 0
push ebp
call edi
test eax, eax
jne 0x10004435
call ebx
cmp eax, 0xb7
jne 0x1000445b
push str.0D02314D_EC55_4d53_95FD_41183118B517
push 0x104
push ebp
call fcn.100023a0
test esi, esi
je 0x1000447e
push 0
push ebp
call edi
test eax, eax
jne 0x1000447e
call ebx
cmp eax, 0xb7
je 0x1000447e
call ebx
push eax
push 0x220f1008
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10010588
add esp, 0x44
ret
mov edx, dword [esp + 0x5c]
mov eax, 0x5c
mov word [esp + 0x10], ax
push edx
lea eax, [esp + 0x18]
mov ecx, 0x7b
push eax
mov word [esp + 0x1a], cx
call fcn.10004190
mov eax, dword [esp + 0x68]
mov edx, 0xffff
add esp, 8
mov ecx, 0x2d
mov word [esp + 0x1c], cx
cmp dx, ax
jne 0x10004504
lea eax, [esp + 0x1e]
lea edx, [ecx - 0x28]
mov esi, 0x101c565c
mov ecx, eax
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x100044f6
movzx ecx, word [esi + eax]
test cx, cx
je 0x100044f6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100044d0
sub eax, 2
mov word [eax], dx
jmp 0x10004512
test edx, edx
jne 0x100044fd
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x10004512
push eax
lea eax, [esp + 0x22]
push eax
call fcn.10004190
add esp, 8
mov eax, dword [esp + 0x64]
mov edx, 0xffff
mov ecx, 0x2d
mov word [esp + 0x26], cx
cmp dx, ax
jne 0x10004574
lea eax, [esp + 0x28]
lea edx, [ecx - 0x28]
mov esi, 0x101c565c
mov ecx, eax
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x10004566
movzx ecx, word [esi + eax]
test cx, cx
je 0x10004566
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10004540
sub eax, 2
mov word [eax], dx
jmp 0x10004582
test edx, edx
jne 0x1000456d
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x10004582
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10004190
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x104
mov ecx, 0x7d
xor edx, edx
push ebp
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], dx
call fcn.100023a0
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x44]
pop ebp
xor ecx, esp
call fcn.10010588
add esp, 0x44
ret
Function at 0x10004940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ax, word [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov ecx, 0xffff
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x18], ebp
cmp cx, ax
je 0x100049e1
movzx edx, word [esp + 0x68]
movzx eax, ax
shl edx, 0x10
or edx, eax
push edx
push str._08x
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.10002950
add esp, 0x10
push edi
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 3
je 0x10004a81
cmp eax, 2
je 0x10004a81
test eax, eax
je 0x10004acb
push eax
push 0x220f1200
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010588
add esp, 0x50
ret
movzx eax, word [esp + 0x68]
push eax
push str._04x
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.10002950
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0x10
push edi
xor esi, esi
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push ebx
mov dword [esp + 0x30], 0x10
call ebp
cmp eax, 0x103
je 0x10004a81
test eax, eax
jne 0x10004aa6
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push str.gue:rev:_s__s_
push 0xa
push 0x1023e498
call fcn.1000f7a0
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0x20
test eax, eax
je 0x10004ac7
push edi
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
inc esi
push esi
push ebx
mov dword [esp + 0x30], 0x10
call ebp
cmp eax, 0x103
jne 0x10004a24
push 0x103
push 0x220f1005
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010588
add esp, 0x50
ret
push eax
push 0x220f1203
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010588
add esp, 0x50
ret
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
jne 0x10004af3
push 0xd
push 0x220f1003
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010588
add esp, 0x50
ret
lea esi, [ebp + 8]
push esi
push eax
call sym.AhnI2.dll_AhnInst2_SecMalloc
mov dword [ebp + 4], eax
test eax, eax
jne 0x10004b26
push 0xe
push 0x220f1e01
call fcn.1000e640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010588
add esp, 0x50
ret
mov edi, dword [edi]
cmp edi, dword [esi]
jne 0x10004ad1
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100049c0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor edx, edx
call fcn.10010588
add esp, 0x50
ret
Function at 0x100066b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000ea90
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov edi, eax
call esi
test eax, eax
je 0x10006730
call esi
cmp eax, 3
je 0x10006730
call esi
cmp eax, 2
je 0x10006730
call esi
push eax
push 0x220f1200
call fcn.1000e640
add esp, 8
jmp 0x100067ad
mov cl, byte [esp + 0x110]
xor eax, eax
cmp byte [esp + 8], al
je 0x10006752
nop
cmp eax, edi
jae 0x10006752
cmp cl, byte [esp + eax + 8]
je 0x100067a9
inc eax
cmp byte [esp + eax + 8], 0
jne 0x10006740
cmp edi, 0xff
jbe 0x1000676e
push 0x10da
push 0x220f1100
call fcn.1000e640
add esp, 8
jmp 0x100067ad
mov edx, dword [str.UpdateProduct]
mov byte [esp + eax + 8], cl
push 2
inc eax
push eax
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push closesocket
call fcn.1000eb20
add esp, 0x18
test eax, eax
je 0x100067a9
push eax
push 0x220f1201
call fcn.1000e640
add esp, 8
jmp 0x100067ad
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.10010588
add esp, 0x104
ret 4

Function at 0x100067d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000ea90
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov esi, eax
call edi
test eax, eax
je 0x10006856
call edi
cmp eax, 3
je 0x10006850
call edi
cmp eax, 2
je 0x10006850
call edi
push eax
push 0x220f1200
call fcn.1000e640
add esp, 8
jmp 0x1000687f
xor eax, eax
xor edx, edx
jmp 0x1000687f
push ebx
mov bl, byte [esp + 0x114]
mov edi, edi
xor eax, eax
cmp byte [esp + 0xc], al
je 0x1000687a
cmp eax, esi
jae 0x1000687a
cmp bl, byte [esp + eax + 0xc]
je 0x10006898
inc eax
cmp byte [esp + eax + 0xc], 0
jne 0x10006868
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.10010588
add esp, 0x104
ret 4
cmp eax, 0xffffffff
je 0x1000687a
mov ecx, esi
sub ecx, eax
dec ecx
push ecx
lea edx, [esp + eax + 0x11]
push edx
lea eax, [esp + eax + 0x14]
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
dec esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push closesocket
call fcn.1000eb20
add esp, 0x24
test eax, eax
je 0x10006860
push eax
push 0x220f1201
call fcn.1000e640
add esp, 8
jmp 0x1000687e
Function at 0x10007250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101c3f51
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1023d1bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 1
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CAhnI2s_Profile2.0
call fcn.1000e100
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], vtable.CAhnI2s_File.0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], vtable.CAhnI2s_MemBlock.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 1
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 2
call fcn.1000e100
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0xfde9
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x54], 0x70
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1000b640
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x1000b653
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x1000b658
xor eax, eax
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
jne 0x1000b669
mov esi, 0x101c734c
cmp dword [esp + 0x20], 0
je 0x1000b6f4
test eax, eax
je 0x1000b76c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
lea edi, [eax + 0x1f]
lea ebx, [ebx]
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
add ebx, edx
mov ebp, eax
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
sub eax, 0x61c98647
mov ebp, eax
shr ebp, 0xd
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
add edx, ebx
sub edi, 1
jne 0x1000b690
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
sub dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
jne 0x1000b680
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
je 0x1000b76c
mov eax, dword [esp + 0x14]
lea esp, [esp]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x2898bd67
mov edi, 0x1f
nop
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xd
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
add eax, 0x61c98647
mov ebp, eax
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
sub edx, ebx
sub edi, 1
jne 0x1000b710
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov dword [eax + 4], ecx
add eax, 8
sub dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
jne 0x1000b700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1000b780
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
xor ebp, ebp
push 1
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x10
call esi
test eax, eax
jne 0x1000b808
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x80090016
je 0x1000b7ca
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x1000b808
call ebx
cmp eax, 0x8009000f
jne 0x1000b7c1
push 0x10
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call esi
push 8
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x1000b7c1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000b86c
mov esi, dword [esp + 0x1c]
push 0
push closesocket
push esi
call fcn.1000f8f0
add esp, 8
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000b86c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000b86c
mov ebp, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000b87b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b88c
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1000e970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push edx
push eax
mov dword [esp + 0x18], 4
call fcn.1000e8f0
add esp, 0x14
test eax, eax
jne 0x1000e9d7
push esi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1000e9d7
cmp dword [esp + 4], 4
mov eax, dword [esp + 8]
je 0x1000e9db
mov eax, dword [esp + 0x1c]
add esp, 0xc
ret

Function at 0x1000e9e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edx
push eax
mov dword [esp + 0x18], 0
call fcn.1000e8f0
mov esi, dword [esp + 0x3c]
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x1000ea84
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push edi
push edx
call ebx
mov dword [esi], eax
test eax, eax
jne 0x1000ea77
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x28]
ja 0x1000ea71
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 8
ret
mov dword [esi], 0xea
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret

Function at 0x1000eb20
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x1000eb2e
lea eax, [edi + 0x57]
pop edi
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x20006
push edx
push eax
call fcn.1000e930
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000eb7c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edi
push 3
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
ret
Function at 0x1000eb90
Capabilities:
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 2
push edx
push eax
call fcn.1000e8f0
add esp, 0x14
test eax, eax
jne 0x1000ebd3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x1000ece0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x1000ede0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1000ede0
movzx edx, word [eax + 6]
push ebx
push esi
push edi
movzx edi, word [eax + 2]
mov esi, 1
cmp edi, esi
mov dword [esp + 0xc], edx
jle 0x1000ed32
movzx ebx, word [eax]
push esi
push ebx
call fcn.1000ec20
movzx eax, ax
add dword [esp + 0x14], eax
inc esi
add esp, 8
cmp esi, edi
jl 0x1000ed14
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx edi, word [ecx + 2]
movzx ebx, word [ecx + 6]
mov esi, 1
cmp edi, esi
jle 0x1000ed64
push ebp
movzx ebp, word [ecx]
push esi
push ebp
call fcn.1000ec20
movzx ecx, ax
inc esi
add esp, 8
add ebx, ecx
cmp esi, edi
jl 0x1000ed47
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ebp
movzx eax, word [eax]
movzx ecx, word [ecx]
cmp ax, cx
jbe 0x1000edab
movzx esi, cx
movzx edi, ax
cmp esi, edi
jge 0x1000edd5
lea esp, [esp]
push esi
call fcn.1000ebe0
xor edx, edx
add esp, 4
test ax, ax
setne dl
inc esi
add edx, 0x16d
add dword [esp + 0xc], edx
cmp esi, edi
jl 0x1000ed80
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
jae 0x1000edd5
movzx esi, ax
movzx edi, cx
cmp esi, edi
jge 0x1000edd5
push esi
call fcn.1000ebe0
xor ecx, ecx
add esp, 4
test ax, ax
setne cl
inc esi
add ecx, 0x16d
add ebx, ecx
cmp esi, edi
jl 0x1000edb7
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
xor eax, eax
pop ecx
ret