joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10390f5
Capabilities:
Check os version
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x174]
mov esi, 0x100
push eax
mov dword [ebp - 0x310], esi
call fcn.0103bdc0
push esi
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x103922d
push dword [ebp - 0x310]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be80
lea eax, [ebp - 0x324]
push eax
call fcn.0104d391
test eax, eax
jne 0x1039196
push 0x14
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be80
push 0x25
push 0x10095bc
lea eax, [ebp - 0x174]
push eax
call fcn.0103be80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103bf90
lea eax, [ebp - 0x174]
push eax
call fcn.0103bdc0
push dword [ebp + 0x10]
lea eax, [ebp - 0x174]
push ebx
push eax
call fcn.0103be80
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103bf90
dec esi
jne 0x10391b9
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x30c]
push eax
call fcn.0103bcbd
push 0x40
pop ecx
lea esi, [ebp - 0x30c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035675
leave
ret 0xc
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x208], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1039171
cmp dword [ebp - 0x1f8], 2
jne 0x1039171
cmp dword [ebp - 0x204], 5
jb 0x1039171
xor eax, eax
jmp 0x103921c
Function at 0x103949c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [eax]
mov dword [ebp - 0x218], eax
push ebx
push 0x1000000
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x103953b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10394fd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x103967b
test byte [eax + 0x1c], 2
je 0x103967b
push edi
push 0x1009ae8
push 0x1009ad8
push 0x1009924
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010392fd
jmp 0x103967b
push 0x5c
push ebx
call sub.msvcrt.dll_wcsrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1039676
cmp word [edi], 0x5c
jne 0x1039676
cmp edi, ebx
jbe 0x1039676
lea eax, [ebp - 0x210]
push eax
push 0x20019
inc edi
push 0
inc edi
mov esi, edi
push 0x1009a58
sub esi, ebx
push reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x10395ce
mov eax, dword [section..data]
cmp eax, section..data
je 0x10395b7
test byte [eax + 0x1c], 2
je 0x10395b7
push ebx
push 0x1009a10
push 0x1009924
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
test ebx, ebx
jle 0x10395c7
and ebx, 0xffff
or ebx, 0x80070000
mov edi, ebx
jmp 0x103967b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1007694
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x1039618
mov eax, dword [section..data]
cmp eax, section..data
je 0x10395b7
test byte [eax + 0x1c], 2
je 0x10395b7
push ebx
push 0x10099c0
push 0x1009924
push 0xd
jmp 0x10395ac
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx]
sub eax, dword [ebp - 0x21c]
push eax
push edi
call fcn.01018462
mov edi, eax
test edi, edi
jge 0x1039666
mov eax, dword [section..data]
cmp eax, section..data
je 0x103967b
test byte [eax + 0x1c], 2
je 0x103967b
push edi
push 0x10099a4
push 0x1009924
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
jmp 0x103967b
mov eax, dword [ebp - 0x214]
shr eax, 1
lea eax, [eax + esi + 1]
mov dword [ebx], eax
jmp 0x103967b
mov edi, 0x8007007a
cmp dword [ebp - 0x210], 0
je 0x1039690
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035675
leave
ret 8
Function at 0x1039e41
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
jne 0x1039e7c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ed5
test byte [eax + 0x1c], 2
je 0x1039ed5
push 0x100998c
push 0x1009bc0
push 0x5b
jmp 0x1039eca
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x1039ea3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ed5
test byte [eax + 0x1c], 2
je 0x1039ed5
push 0x1009d18
push 0x1009bc0
push 0x5c
jmp 0x1039eca
cmp dword [ebp + 8], edi
mov dword [ecx], edi
mov dword [eax], edi
jne 0x1039ede
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ed5
test byte [eax + 0x1c], 2
je 0x1039ed5
push 0x1009d08
push 0x1009bc0
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov dword [ebp - 4], 0x80070057
jmp 0x1039f57
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x1009cf4
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call esi
cmp eax, edi
je 0x1039f15
jle 0x1039f10
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1039f55
cmp dword [ebp - 0xc], edi
je 0x1039f55
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x1009cc8
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1039f4c
cmp dword [ebp - 0xc], edi
jne 0x1039f55
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0x10
Function at 0x1039f64
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x1039f9b
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a001
test byte [eax + 0x1c], 2
je 0x103a001
push 0x1009d7c
push 0x1009bc0
push 0x5e
jmp 0x1039ff6
mov edx, dword [ebp + 0x14]
cmp edx, edi
jne 0x1039fc2
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a001
test byte [eax + 0x1c], 2
je 0x103a001
push 0x1009d18
push 0x1009bc0
push 0x5f
jmp 0x1039ff6
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jbe 0x103a09d
cmp dword [ebp + 8], edi
mov word [eax], di
mov dword [edx], edi
jne 0x103a00b
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a001
test byte [eax + 0x1c], 2
je 0x103a001
push 0x1009d08
push 0x1009bc0
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov edi, 0x80070057
jmp 0x103a09d
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 0x1009d68
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x103a03d
jle 0x103a039
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x103a09c
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x103a076
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 0x1009d38
push dword [ebp + 8]
mov dword [ebp - 4], 4
call esi
test eax, eax
jne 0x103a06f
cmp dword [ebp - 8], edi
jne 0x103a09b
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x103a09b
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a09b
test byte [eax + 0x1c], 2
je 0x103a09b
push edi
push 0x1009bc0
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
pop ebx
pop esi
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x103a0a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x103a0e9
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a16b
test byte [eax + 0x1c], 2
je 0x103a16b
push 0x1009dfc
push 0x1009bc0
push 0x62
jmp 0x103a160
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x103a110
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a16b
test byte [eax + 0x1c], 2
je 0x103a16b
push 0x1009d18
push 0x1009bc0
push 0x63
jmp 0x103a160
cmp dword [ebp + 0x14], ebx
jne 0x103a135
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a16b
test byte [eax + 0x1c], 2
je 0x103a16b
push 0x1009de4
push 0x1009bc0
push 0x64
jmp 0x103a160
cmp dword [ebp + 8], ebx
mov dword [ecx], 6
mov dword [eax], ebx
jne 0x103a172
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a16b
test byte [eax + 0x1c], 2
je 0x103a16b
push 0x1009d08
push 0x1009bc0
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov eax, 0x80070057
jmp 0x103a1e4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1009dcc
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, ebx
je 0x103a1a6
jle 0x103a1e2
and eax, 0xffff
or eax, 0x80070000
jmp 0x103a1e2
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 ebx
push ebx
push 0x1009d98
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x103a1d7
cmp dword [ebp - 8], ebx
jne 0x103a1e0
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x103bb70
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 0x103bcab
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x103bc80
test eax, eax
jne 0x103bc80
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 0x103bbc0
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x103bcab
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 0x103bc80
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x103bdc0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1054a4c], 0
push ebx
jne 0x103be3d
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 0x103be31
cmp dword [ebp - 8], 0x660
jae 0x103be31
xor eax, eax
mov eax, dword [eax*4 + 0x1054048]
mov dword [0x1054a4c], 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 0x103e361
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
shr edx, 3
je 0x103e38a
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 0x103e377
pop esi
pop ebp
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100a2d0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103e87c
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x103e86b
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x103e855
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 0x103e86b
push eax
push edi
push dword [ebp - 0x110]
call fcn.0103e73f
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 0x103e87e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01035675
leave
ret 4
Function at 0x103f97a
Capabilities:
Query or enumerate registry key

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

Function at 0x103fdbc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x103fe03
cmp dword [ebp - 0x108], 2
jne 0x103fe03
cmp dword [ebp - 0x114], 5
jb 0x103fe03
xor eax, eax
inc eax
jmp 0x103fe05
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01035675
leave
ret

Function at 0x1040361
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 0x10403cd
mov eax, dword [section..data]
cmp eax, section..data
je 0x104048d
test byte [eax + 0x1c], 2
je 0x104048d
push ebx
push 0x100a830
push 0x100a78c
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
jmp 0x104048d
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
call fcn.0104b5f8
mov edi, eax
test edi, edi
jne 0x104040f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040408
test byte [eax + 0x1c], 2
je 0x1040408
push 0x100a81c
push 0x100a78c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov ebx, 0x8007000e
jmp 0x1040482
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104044e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040482
test byte [eax + 0x1c], 2
je 0x1040482
push ebx
push 0x100a830
push 0x100a78c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
jmp 0x1040482
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jbe 0x1040473
movzx eax, word [edi + ecx*2]
cmp ax, 0xd
je 0x1040467
cmp ax, 0xa
jne 0x104046d
mov word [edi + ecx*2], 0x20
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x1040457
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 0x104048c
push edi
call fcn.0104b610
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x104049a
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 0x104050e
mov eax, dword [section..data]
cmp eax, section..data
je 0x10405b2
test byte [eax + 0x1c], 2
je 0x10405b2
push 0x80004005
push 0x100a87c
push 0x100a78c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
jmp 0x10405b2
push dword [ebp - 4]
call fcn.0104b5f8
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x104054f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040546
test byte [eax + 0x1c], 2
je 0x1040546
push 0x100a868
push 0x100a78c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov dword [ebp - 8], 0x8007000e
jmp 0x10405a5
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 0x1040592
mov eax, dword [section..data]
cmp eax, section..data
je 0x10405a5
test byte [eax + 0x1c], 2
je 0x10405a5
push 0x80004005
push 0x100a87c
push 0x100a78c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d61
jmp 0x10405a5
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 0x10405b2
push dword [ebp + 0xc]
call fcn.0104b610
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x104071b
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 0x104085b
cmp word [esi], di
je 0x104085b
push esi
call fcn.0103fa26
movzx ecx, word [esi]
cmp cx, di
je 0x104082b
push 2
pop ebx
cmp cx, 0x3b
je 0x104085b
cmp cx, 0x22
je 0x104085b
cmp cx, 0x3c
je 0x104085b
cmp cx, 0x3e
je 0x104085b
cmp cx, 0x2a
je 0x104085b
cmp cx, 0x2b
je 0x104085b
cmp cx, 0x3d
je 0x104085b
cmp cx, 0x7c
je 0x104085b
cmp cx, 0x3f
je 0x104085b
cmp cx, 0x2c
je 0x104085b
cmp cx, 0x20
je 0x104085b
cmp cx, 9
je 0x104085b
cmp cx, 0x3a
jne 0x104080c
cmp eax, edi
jne 0x104081d
cmp dword [ebp + 0xc], edi
je 0x104085b
add esi, ebx
movzx eax, word [esi]
test ax, ax
mov edi, esi
je 0x104085b
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
test eax, eax
pop ecx
je 0x104085b
movzx eax, word [esi]
test ax, ax
jne 0x10407e5
sub esi, edi
and esi, 0xfffffffe
xor eax, eax
cmp esi, 0xa
setle al
jmp 0x104085d
cmp eax, edi
je 0x104081d
cmp cx, 0x5d
jne 0x104081d
add esi, ebx
cmp word [esi], di
jne 0x1040830
add esi, ebx
movzx ecx, word [esi]
cmp cx, di
jne 0x104074e
xor eax, eax
inc eax
jmp 0x104085d
cmp dword [ebp + 0xc], edi
je 0x104085b
add esi, ebx
movzx eax, word [esi]
test ax, ax
mov edi, esi
je 0x104085b
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
test eax, eax
pop ecx
je 0x104085b
movzx eax, word [esi]
test ax, ax
jne 0x1040841
jmp 0x10407fd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1040e1d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x228], ecx
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
je 0x1040e58
mov dword [esi], ecx
cmp dword [ebp + 0x24], ecx
jne 0x1040e75
push eax
push 0x109
lea eax, [ebp - 0x218]
push eax
call fcn.01040dd4
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1040f2b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
push 0
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1040ef4
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x224]
je 0x1040ee4
cmp ecx, 3
jne 0x1040ef4
cmp dword [ebp + 0x1c], 4
jne 0x1040ef4
cmp eax, 4
jne 0x1040ef4
test esi, esi
je 0x1040eea
mov dword [esi], eax
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1040f2b
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1040f2b
test byte [ecx + 0x1c], 2
je 0x1040f2b
push eax
push 0x100a994
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035675
leave
ret 0x20