joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10469cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x1046a0f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046a91
test byte [eax + 0x1c], 4
je 0x1046a91
push 0x100c174
push 0x100c038
push 0x66
jmp 0x1046a86
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x1046a38
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046a91
test byte [eax + 0x1c], 4
je 0x1046a91
push 0x100c154
push 0x100c038
push 0x67
jmp 0x1046a86
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x1046a61
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046a91
test byte [eax + 0x1c], 4
je 0x1046a91
push 0x100be00
push 0x100c038
push 0x68
jmp 0x1046a86
mov dword [eax], edi
cmp dword [ebp + 8], edi
jne 0x1046a98
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046a91
test byte [eax + 0x1c], 4
je 0x1046a91
push 0x100c144
push 0x100c038
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
mov eax, 0x80070057
jmp 0x1046b10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x100c130
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
cmp eax, edi
je 0x1046acc
jle 0x1046b0e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1046b0e
cmp dword [ebp - 8], edi
je 0x1046b0c
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x100c104
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1046b03
cmp dword [ebp - 8], edi
jne 0x1046b0c
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 0x10
Function at 0x1046b1a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x1046b5c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046bed
test byte [eax + 0x1c], 4
je 0x1046bed
push 0x100c174
push 0x100c038
push 0x6a
jmp 0x1046be2
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x1046b85
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046bed
test byte [eax + 0x1c], 4
je 0x1046bed
push 0x100c154
push 0x100c038
push 0x6b
jmp 0x1046be2
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x1046bae
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046bed
test byte [eax + 0x1c], 4
je 0x1046bed
push 0x100c1d0
push 0x100c038
push 0x6c
jmp 0x1046be2
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jbe 0x1046c89
xor edx, edx
mov word [eax], dx
cmp dword [ebp + 8], edi
jne 0x1046bf7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046bed
test byte [eax + 0x1c], 4
je 0x1046bed
push 0x100c144
push 0x100c038
push 0x6d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
mov edi, 0x80070057
jmp 0x1046c89
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x100c1bc
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x1046c29
jle 0x1046c25
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1046c88
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1046c62
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x100c18c
push dword [ebp + 8]
mov dword [ebp - 4], 4
call esi
test eax, eax
jne 0x1046c5b
cmp dword [ebp - 8], edi
jne 0x1046c87
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x1046c87
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046c87
test byte [eax + 0x1c], 4
je 0x1046c87
push edi
push 0x100c038
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
pop ebx
pop esi
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x1046c95
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x1046cd5
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046d5b
test byte [eax + 0x1c], 4
je 0x1046d5b
push 0x100c174
push 0x100c038
push 0x6f
jmp 0x1046d50
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x1046cfe
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046d5b
test byte [eax + 0x1c], 4
je 0x1046d5b
push 0x100c154
push 0x100c038
push 0x70
jmp 0x1046d50
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x1046d27
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046d5b
test byte [eax + 0x1c], 4
je 0x1046d5b
push 0x100c238
push 0x100c038
push 0x71
jmp 0x1046d50
mov dword [eax], 6
cmp dword [ebp + 8], edi
jne 0x1046d62
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046d5b
test byte [eax + 0x1c], 4
je 0x1046d5b
push 0x100c144
push 0x100c038
push 0x72
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
mov eax, 0x80070057
jmp 0x1046dd4
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x100c220
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
cmp eax, edi
je 0x1046d96
jle 0x1046dd2
and eax, 0xffff
or eax, 0x80070000
jmp 0x1046dd2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x100c1ec
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1046dc7
cmp dword [ebp - 8], edi
jne 0x1046dd0
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 0x10
Function at 0x1048c50
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x1048d8b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x1048d60
test eax, eax
jne 0x1048d60
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x1048ca0
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x1048d8b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1048d60
pop ebp
pop edi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x1048ea0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10625ac], 0
push ebx
jne 0x1048f1d
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x1048f11
cmp dword [ebp - 8], reloc.Secur32.dll_LsaDeregisterLogonProcess
jae 0x1048f11
xor eax, eax
mov eax, dword [eax*4 + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [0x10625ac], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x104b41f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
shr edx, 3
test edx, edx
jbe 0x104b44a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
push esi
mov esi, dword [ecx + eax]
xor dword [eax], esi
mov esi, dword [ecx + eax + 4]
xor dword [eax + 4], esi
add eax, 8
dec edx
jne 0x104b437
pop esi
pop ebp
ret 0xc

Function at 0x104b8a7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x20019
xor esi, esi
push esi
push 0x100c82c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x104b97c
push edi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104b96b
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 2
mov byte [ebp - 5], al
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
jne 0x104b955
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x104b96b
push eax
push edi
push dword [ebp - 0x110]
call fcn.0104b83f
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x104b97e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01041ea8
leave
ret 4
Function at 0x104ba4c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x100c91c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x104ba80
push 0x100c908
push ebx
call edi
push 0x100c8f0
push ebx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
xor eax, eax
cmp dword [esi + 0x30], eax
je 0x104ba8c
cmp dword [esi + 0x34], eax
jne 0x104bad0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
cmp ebx, eax
je 0x104ba9d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1001a98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x104bac4
push 0x100c8dc
push ebx
call edi
push 0x100c8c8
push ebx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
xor eax, eax
cmp dword [esi + 0x28], eax
je 0x104badc
cmp dword [esi + 0x2c], eax
je 0x104badc
mov dword [esi + 0x38], 1
mov dword [esi + 0x3c], ebx
jmp 0x104baed
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
cmp ebx, eax
je 0x104baed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x104c440
Capabilities:
Prompt user for credentials

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
mov dword [ebp - 0x14], ecx
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov eax, dword [eax]
xor ebx, ebx
push 0x404
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], eax
call fcn.01059a10
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x104c496
mov dword [ebp + 0x24], 8
jmp 0x104c500
push esi
push dword [ebp + 0xc]
mov esi, 0x202
push esi
push eax
call fcn.0101b116
cmp eax, ebx
jge 0x104c509
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104c4d6
test byte [ecx + 0x1c], 4
je 0x104c4d6
push eax
push 0x1003940
push 0x100c8b8
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
mov dword [ebp + 0x24], 0x57
push dword [ebp + 8]
call fcn.01059a28
test ebx, ebx
je 0x104c4ff
mov eax, dword [ebp - 0xc]
add eax, eax
mov ecx, ebx
je 0x104c4f9
mov byte [ecx], 0
inc ecx
dec eax
jne 0x104c4f2
push ebx
call fcn.01059a28
pop esi
mov eax, dword [ebp + 0x24]
pop edi
pop ebx
leave
ret 0x2c
mov edi, 0x101
push esi
mov dword [ebp - 0xc], edi
call fcn.01059a10
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x104c528
mov dword [ebp + 0x24], 8
jmp 0x104c4dd
cmp dword [ebp + 0x30], 2
jne 0x104c532
or dword [ebp + 0x24], 8
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edi
push ebx
push esi
push dword [ebp + 8]
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
mov dword [ebp + 0x24], eax
test eax, eax
jne 0x104c4dd
lea eax, [ebp - 4]
push eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0102a13d
test eax, eax
jge 0x104c59c
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104c590
test byte [ecx + 0x1c], 4
je 0x104c590
push eax
push 0x1005cb8
push 0x100c8b8
push 0x22
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
mov dword [ebp + 0x24], 0xd
jmp 0x104c4dd
inc dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
push ebx
call fcn.0102a13d
test eax, eax
jge 0x104c5d1
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104c590
test byte [ecx + 0x1c], 4
je 0x104c590
push eax
push 0x1005cb8
push 0x100c8b8
push 0x23
jmp 0x104c585
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [ecx], eax
mov eax, dword [ebp + 0x2c]
and dword [eax], 0
push esi
call fcn.0104bb77
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
jmp 0x104c4ff

Function at 0x104cd85
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0104e72d
Function at 0x104d2e9
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x104d330
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 2
jne 0x104d330
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 5
jb 0x104d330
xor eax, eax
inc eax
jmp 0x104d332
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01041ea8
leave
ret

Function at 0x104d88e
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push dword [ebp + 0xc]
mov ebx, 0x80004005
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x104d8fa
mov eax, dword [section..data]
cmp eax, section..data
je 0x104d9bb
test byte [eax + 0x1c], 4
je 0x104d9bb
push ebx
push 0x100cdcc
push 0x100ccfc
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x104d9bb
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
call fcn.01059a10
mov edi, eax
test edi, edi
jne 0x104d93c
mov eax, dword [section..data]
cmp eax, section..data
je 0x104d935
test byte [eax + 0x1c], 4
je 0x104d935
push 0x100cdb8
push 0x100ccfc
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
mov ebx, 0x8007000e
jmp 0x104d9b0
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104d97b
mov eax, dword [section..data]
cmp eax, section..data
je 0x104d9b0
test byte [eax + 0x1c], 4
je 0x104d9b0
push ebx
push 0x100cdcc
push 0x100ccfc
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x104d9b0
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jbe 0x104d9a1
movzx eax, word [edi + ecx*2]
cmp ax, 0xd
je 0x104d994
cmp ax, 0xa
jne 0x104d99b
push 0x20
pop eax
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x104d984
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], ecx
test edi, edi
je 0x104d9ba
push edi
call fcn.01059a28
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x104d9c8
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
push esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x104da3c
mov eax, dword [section..data]
cmp eax, section..data
je 0x104dae0
test byte [eax + 0x1c], 4
je 0x104dae0
push 0x80004005
push 0x100ce18
push 0x100ccfc
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x104dae0
push dword [ebp - 4]
call fcn.01059a10
mov dword [ebp + 0xc], eax
cmp eax, esi
jne 0x104da7d
mov eax, dword [section..data]
cmp eax, section..data
je 0x104da74
test byte [eax + 0x1c], 4
je 0x104da74
push 0x100ce04
push 0x100ccfc
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
mov dword [ebp - 8], reloc.Secur32.dll_LsaDeregisterLogonProcess
jmp 0x104dad3
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x104dac0
mov eax, dword [section..data]
cmp eax, section..data
je 0x104dad3
test byte [eax + 0x1c], 4
je 0x104dad3
push 0x80004005
push 0x100ce18
push 0x100ccfc
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x104dad3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ecx], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x104dae0
push dword [ebp + 0xc]
call fcn.01059a28
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x104dc69
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x104dda9
cmp word [esi], di
je 0x104dda9
push esi
call fcn.0104ce7c
movzx ecx, word [esi]
cmp cx, di
je 0x104dd72
push 2
pop ebx
cmp cx, 0x3b
je 0x104dda9
cmp cx, 0x22
je 0x104dda9
cmp cx, 0x3c
je 0x104dda9
cmp cx, 0x3e
je 0x104dda9
cmp cx, 0x2a
je 0x104dda9
cmp cx, 0x2b
je 0x104dda9
cmp cx, 0x3d
je 0x104dda9
cmp cx, 0x7c
je 0x104dda9
cmp cx, 0x3f
je 0x104dda9
cmp cx, 0x2c
je 0x104dda9
cmp cx, 0x20
je 0x104dda9
cmp cx, 9
je 0x104dda9
cmp cx, 0x3a
jne 0x104dd5a
cmp eax, edi
jne 0x104dd64
cmp dword [ebp + 0xc], edi
je 0x104dda9
add esi, ebx
movzx eax, word [esi]
mov edi, esi
test ax, ax
je 0x104dda9
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
pop ecx
test eax, eax
je 0x104dda9
movzx eax, word [esi]
test ax, ax
jne 0x104dd33
sub esi, edi
and esi, 0xfffffffe
xor eax, eax
cmp esi, 0xa
setle al
jmp 0x104ddab
cmp eax, edi
je 0x104dd64
cmp cx, 0x5d
je 0x104dd77
add esi, ebx
movzx ecx, word [esi]
cmp cx, di
jne 0x104dc9c
xor eax, eax
inc eax
jmp 0x104ddab
add esi, ebx
cmp word [esi], di
je 0x104dd72
cmp dword [ebp + 0xc], edi
je 0x104dda9
add esi, ebx
movzx eax, word [esi]
mov edi, esi
test ax, ax
je 0x104dda9
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
pop ecx
test eax, eax
je 0x104dda9
movzx eax, word [esi]
test ax, ax
jne 0x104dd8f
jmp 0x104dd4b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x104e2ed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ecx
cmp ebx, ecx
je 0x104e32e
mov dword [ebx], ecx
cmp dword [ebp + 0x24], ecx
jne 0x104e34b
push eax
push 0x109
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.0104e2a2
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104e3a0
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e465
test byte [ecx + 0x1c], 2
je 0x104e465
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x100cf70
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
jmp 0x104e465
mov eax, dword [ebp + 0x18]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push dword [ebp - 0x228]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x100cf70
test eax, eax
je 0x104e401
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e432
test byte [ecx + 0x1c], 2
je 0x104e432
push eax
push esi
push dword [ebp - 0x230]
push edi
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01045f05
jmp 0x104e432
mov ecx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
cmp ecx, dword [ebp + 0x1c]
je 0x104e422
cmp ecx, 3
jne 0x104e432
cmp dword [ebp + 0x1c], 4
jne 0x104e432
cmp eax, 4
jne 0x104e432
test ebx, ebx
je 0x104e428
mov dword [ebx], eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x104e465
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e465
test byte [ecx + 0x1c], 4
je 0x104e465
push eax
push edi
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101b900
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0x20