joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403528
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.00403654
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403645
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00410670
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00410670
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x430c60
mov ebx, edi
cmp word [ebx], 0
je 0x4035da
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e672
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x4311d8
jl 0x4035ac
cmp word [edi], 0
je 0x403600
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.00403e36
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4311d8
jl 0x4035e8
push 0x4319f0
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40363f
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
leave
ret

Function at 0x403889
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x4038ab
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4038d3
xor eax, eax
jmp 0x403965
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4038cc
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403913
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403954
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403954
xor ebx, ebx
inc ebx
jmp 0x403963
mov eax, dword [esi]
test eax, eax
je 0x403963
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.0040e5e6
leave
ret
Function at 0x403a9e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403b1b
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403ac5
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403ab9
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00404184
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x42df94
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00416140
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403b1e
cmp eax, dword [ebp - 4]
jne 0x403b1e
mov dword [ebp - 8], 1
jmp 0x403b1e
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403b29
push ebx
call fcn.004041b3
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x403cc2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x403d00
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x403e1e
cmp edi, ebx
je 0x403e1e
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.00410670
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x403e1e
cmp eax, ebx
je 0x403e1e
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00404184
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x403e09
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x403de7
test eax, eax
je 0x403de7
add ebx, eax
cmp edi, ebx
jg 0x403d6f
push 5
pop ecx
cmp ebx, ecx
jl 0x403e09
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, 0x42df94
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403e09
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x403dc7
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x403dc1
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x403def
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00416140
mov dword [esi], ebx
jmp 0x403dfc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403e09
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00416140
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x403e1e
push dword [ebp - 0x860]
call fcn.004041b3
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
add ebp, 0x70
leave
ret
Function at 0x403e36
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.00410670
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.0040e672
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x403e87
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, pe_nt_image_headers32
mov esi, 0x4317f0
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x403ead
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.0040f30c
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00410670
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.00410670
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.00410670
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.00403889
pop ecx
test eax, eax
je 0x40403c
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403972
add esp, 0xc
test eax, eax
je 0x40403c
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403b2f
pop ecx
pop ecx
test eax, eax
je 0x40403c
cmp word [ebp - 0xe14], si
jne 0x40403c
cmp dword [ebp - 0xe24], 0
je 0x40403c
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x40403c
push 0x4319f0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040e5f5
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x427b64
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.0040e947
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404032
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.0040407b
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x404051
push dword [ebp - 0xe1c]
call fcn.0040f3d6
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x404066
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
leave
ret
Function at 0x40407b
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00412b20
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4040c1
xor eax, eax
jmp 0x404109
cmp dword [ebp - 0x78], ebx
jbe 0x4040f8
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4040f8
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.0040eeac
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x4040c6
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.0040ecce
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
add ebp, 0xf90
leave
ret

Function at 0x40e5e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42cc20]
jne 0x40e5f0
repz ret
jmp fcn.00412b4b
Function at 0x41deb2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416fce
and dword [ebp - 4], 0
cmp dword [0x430a1c], 0
mov ebx, eax
jne 0x41df63
push 0x426ddc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e014
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426dd0
push edi
call esi
test eax, eax
je 0x41e014
push eax
call fcn.00416f5c
mov dword [esp], 0x426dc0
push edi
mov dword [0x430a1c], eax
call esi
push eax
call fcn.00416f5c
mov dword [esp], 0x426dac
push edi
mov dword [0x430a20], eax
call esi
push eax
call fcn.00416f5c
mov dword [esp], 0x426d90
push edi
mov dword [0x430a24], eax
call esi
push eax
call fcn.00416f5c
pop ecx
mov dword [0x430a2c], eax
test eax, eax
je 0x41df63
push 0x426d78
push edi
call esi
push eax
call fcn.00416f5c
pop ecx
mov dword [0x430a28], eax
mov eax, dword [0x430a28]
cmp eax, ebx
je 0x41dfbb
cmp dword [0x430a2c], ebx
je 0x41dfbb
push eax
call fcn.00416fd7
push dword [0x430a2c]
mov esi, eax
call fcn.00416fd7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41dfbb
test edi, edi
je 0x41dfbb
call esi
test eax, eax
je 0x41dfb2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41dfb2
test byte [ebp - 0xc], 1
jne 0x41dfbb
or dword [ebp + 0x10], 0x200000
jmp 0x41dff4
mov eax, dword [0x430a20]
cmp eax, ebx
je 0x41dff4
push eax
call fcn.00416fd7
pop ecx
test eax, eax
je 0x41dff4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41dff4
mov eax, dword [0x430a24]
cmp eax, ebx
je 0x41dff4
push eax
call fcn.00416fd7
pop ecx
test eax, eax
je 0x41dff4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430a1c]
call fcn.00416fd7
pop ecx
test eax, eax
je 0x41e014
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e016
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002118
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, 0x10011fc
push ebx
call fcn.010020c7
test eax, eax
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
je 0x100218c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
call esi
push dword [esp + 0x10]
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100218a
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10011f8
push edi
call esi
mov eax, dword [esp + 0x14]
push dword [eax]
push edi
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x100250a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
neg eax
sbb eax, eax
mov ecx, 0x208
and eax, 6
push ecx
inc eax
push 0x40
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002543
xor eax, eax
jmp 0x100264a
cmp dword [ebp + 0xc], esi
je 0x1002552
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push edi
lea eax, [ebp + 0x18]
push eax
xor eax, eax
cmp dword [ebp + 0x10], esi
mov ebx, 0x20019
setne al
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80000001
push 0x1001360
add eax, edi
push eax
call esi
test eax, eax
jne 0x10025a2
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x10025e2
lea eax, [ebp + 0x18]
push eax
push ebx
push ecx
push 0x10012e8
push edi
call esi
test eax, eax
mov edi, dword [ebp - 4]
jne 0x10025de
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x10025e5
mov edi, dword [ebp - 4]
cmp word [edi], cx
jne 0x10025ee
xor esi, esi
jmp 0x100263f
cmp word [edi], cx
mov esi, edi
mov eax, edi
je 0x100263c
jmp 0x1002605
xor ecx, ecx
jmp 0x1002605
cmp word [esi], 0x2c
je 0x1002610
inc esi
inc esi
cmp word [esi], cx
jne 0x10025fd
cmp word [esi], 0x2c
jne 0x1002619
mov word [esi], cx
inc esi
inc esi
jmp 0x1002619
inc eax
inc eax
cmp word [eax], 0x20
je 0x1002617
push dword [ebp - 0x14]
push ecx
push dword [ebp + 0x14]
push ecx
push eax
call fcn.010022ab
test eax, eax
je 0x1002634
inc dword [ebp - 8]
cmp word [esi], 0
mov eax, esi
jne 0x10025f9
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
Function at 0x10026d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001360
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x100272d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0x10012e8
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1002768
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10029b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001360
push 0x80000001
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x1002a0f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100160c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1001360
push 0x80000002
call esi
test eax, eax
jne 0x1002a4e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100160c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10012e8
push 0x80000001
call esi
test eax, eax
jne 0x1002a8d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100160c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10012e8
push 0x80000002
call esi
test eax, eax
jne 0x1002acc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100160c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002ad4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001360
mov edi, 0x80000002
push edi
mov dword [ebp - 0xc], 1
call esi
test eax, eax
jne 0x1002b33
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001634
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x10012e8
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1002b75
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001634
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x1002b7a
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x10016a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1002bbd
push 0x1001690
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x1002bb6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x7020420
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 0xc], eax
pop eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], ebx
jne 0x1002c1e
push 0x1001660
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x1002c1e
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002c23
Capabilities:
Get keyboard layout
Identify system language via api
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1002d54
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, si
je 0x1002d52
push edi
push 5
pop ecx
push 7
mov esi, 0x1001780
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
movsw word es:[edi], word [esi]
push ebx
push ebx
mov esi, 0x1001764
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x1001700
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1002d51
push 0x1c
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x18], 0x31
mov dword [ebp - 0x14], 0x33
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10016d0
push edi
call esi
test eax, eax
jne 0x1002d51
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov esi, 0x10016c0
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 6
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002d26
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002d48
push 4
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002d48
push ebx
push ebx
push ebx
push 0x5b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
leave
ret

Function at 0x1002d59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x10060cc], esi
je 0x1002dc8
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x10017b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dc2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001798
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002db9
cmp dword [ebp - 4], esi
setne al
mov dword [0x10060ec], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x10060cc], esi
mov eax, dword [0x10060ec]
pop esi
leave
ret