joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b670
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462c1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00446b47
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044590c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x42b728
mov eax, dword [eax]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 2
test ecx, ecx
je 0x42b743
push ecx
push eax
mov ecx, edi
call fcn.0042bb60
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4340b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46329b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push 0x41
push str.Project_generator__this_may_take_several_minutes__please_wait_...
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00411200
lea edx, [ebp - 0x24]
mov dword [ebp - 4], 0
mov ecx, 0x485090
call fcn.00421720
push eax
call fcn.00421c50
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x434128
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00412370
lea ecx, [ebp - 0x27c]
call fcn.004341f0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 1
push dword [ebp + 8]
call fcn.00402f40
test al, al
jne 0x43415c
push 0
lea ecx, [ebp - 0x27c]
call fcn.00435900
lea ecx, [ebp - 0xf8]
call fcn.004086b0
lea ecx, [ebp - 0x27c]
call fcn.00434ea0
lea ecx, [ebp - 0xf8]
call fcn.00406f70
lea ecx, [ebp - 0x27c]
test al, al
jne 0x43418e
push 1
call fcn.00435900
call fcn.004349a0
test al, al
jne 0x4341a4
push 1
lea ecx, [ebp - 0x27c]
call fcn.00435900
push str.Completed_Successfully
lea ecx, [ebp - 0x3c]
call fcn.0040f420
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 2
mov ecx, 0x485090
call fcn.00421720
push eax
call fcn.00421c50
mov eax, dword [ebp - 0x28]
add esp, 4
cmp eax, 0x10
jb 0x4341e0
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00412370
push 0
call fcn.0044df13
int3
Function at 0x435900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x43592d
lea ecx, [esi + 0x184]
call fcn.004086b0
mov ecx, esi
call fcn.00434ea0
lea ecx, [esi + 0x16c]
call fcn.0041fdd0
push str.pause
call fcn.0044db3a
add esp, 4
push 1
call fcn.0044df13
int3
Function at 0x452bfd
Capabilities:
Read file on windows

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

Function at 0x458ad2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458792
Function at 0x402c9a
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
jne 0x402ca6
xor al, al
jmp 0x402cd0
cmp dword [esp + 4], edx
je 0x402ca2
cmp dword [eax], 0xffffffff
je 0x402ca2
mov eax, dword [esp + 0xc]
push edx
push eax
push dword [esp + 0x10]
mov dword [eax], edx
push dword [esp + 0x10]
mov eax, dword [ecx]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

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

Disassembly:
push 0x20
mov eax, 0x434937
call fcn.0041ec95
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004014d1
and dword [ebp - 4], 0
push 0x24
lea ecx, [ebp - 0x2c]
call fcn.00402db1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x4034c6
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4034e8
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018cc
mov al, bl
call fcn.0041ed18
ret
xor bl, bl
jmp 0x4034d4

Function at 0x40497d
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x404987
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40499a
mov eax, dword [eax + 4]
jmp 0x40499d
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x4049ae
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x4049c2
mov eax, dword [esi]
jmp 0x4049c4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4049d6
mov al, 1
jmp 0x404a6d
cmp dword [edi + 0x18], 8
jb 0x4049e0
mov eax, dword [esi]
jmp 0x4049e2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x404a6b
cmp dword [edi + 0x18], 8
jb 0x4049fb
mov eax, dword [esi]
jmp 0x4049fd
mov eax, esi
push ebx
push eax
lea ecx, [ebp - 0x20]
call fcn.004014af
push 0
lea eax, [ebp - 0x20]
call fcn.0040497d
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.004018cc
test bl, bl
pop ebx
jne 0x404a6b
cmp dword [edi + 0x18], 8
jb 0x404a35
mov eax, dword [esi]
jmp 0x404a37
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4049cf
cmp dword [edi + 0x18], 8
jb 0x404a4a
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x20]
call fcn.004014af
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040497d
pop ecx
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004018cc
xor al, al
pop esi
leave
ret
Function at 0x404a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x43d504]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x43e990], edi
je 0x404aa4
push 0xffffffffffffffff
push edi
push 0x43e97c
mov ecx, ebx
call fcn.0040176b
mov al, 1
jmp 0x404b43
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041a390
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x404b41
push esi
push 0x410
lea eax, [ebp - 0x622]
push edi
push eax
mov word [ebp - 6], di
mov word [ebp - 0x624], di
call fcn.0041a390
add esp, 0xc
mov esi, 0x208
push esi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, esi
pop esi
ja 0x404b2e
cmp eax, edi
je 0x404b2e
mov word [ebp + eax*2 - 0x624], di
lea eax, [ebp - 0x624]
jmp 0x404b34
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.004017fe
jmp 0x404a9d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041a372
leave
ret
Function at 0x404f7d
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x434611
call fcn.0041ec2c
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], esi
call fcn.004013f2
xor edi, edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 1
je 0x4050c4
mov eax, dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp + edi - 0x10], al
mov bl, byte [ebp - 0xf]
inc edi
inc dword [ebp + 8]
cmp edi, 3
jne 0x405020
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor edi, edi
movzx esi, byte [ebp + edi - 0x14]
call fcn.00404865
mov al, byte [eax]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.00404888
inc edi
cmp edi, 4
jl 0x404ffa
xor edi, edi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x404fab
cmp edi, esi
je 0x4050c4
cmp edi, 3
jge 0x405049
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push esi
push eax
call fcn.0041a390
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [edi + 1]
cmp ebx, esi
mov byte [ebp - 0x11], al
mov dword [ebp - 0x10], esi
jle 0x4050ac
mov eax, dword [ebp - 0x10]
movzx esi, byte [ebp + eax - 0x14]
call fcn.00404865
mov al, byte [eax]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.00404888
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jl 0x405085
push 3
pop esi
cmp edi, esi
jge 0x4050c4
sub esi, edi
mov ecx, dword [ebp - 0x18]
push 0x3d
push 1
call fcn.00404888
dec esi
jne 0x4050b5
mov eax, dword [ebp - 0x18]
call fcn.0041ed04
ret

Function at 0x4051d8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405205
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405205
xor al, al
jmp 0x405220
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041ac80
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x405484
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x405499
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40555e
jmp 0x405556
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40555e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004051d8
test al, al
jne 0x4054fb
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405286
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc], esp
push eax
call fcn.004014d1
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40555e
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x4054cd
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x405860
Capabilities:
Connect to http server

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
mov dword [esi + 8], 0
jne 0x405875
xor al, al
pop esi
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x40588c
mov eax, dword [eax + 4]
jmp 0x40588f
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0
push 3
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esi]
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4058be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
ret 0x10
Function at 0x406eb0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
call fcn.00406e10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esi], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret 0x14

Function at 0x407e40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x234]
xor ebp, ebp
push 0x208
lea eax, [esp + 0x1e]
push ebp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], bp
push eax
mov word [esp + 0x24], bp
call fcn.0041a390
add esp, 0xc
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], 0x208
mov dword [esp + 0x14], 1
jb 0x407eb0
mov edi, dword [edi + 4]
jmp 0x407eb3
add edi, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f0c
mov eax, dword [esp + 0x10]
cmp eax, 0x104
ja 0x407ee1
mov word [esp + eax*2 + 0x18], bp
jmp 0x407ee9
mov word [esp + 0x220], bp
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x407ef0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401a4b
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a372
add esp, 0x218
ret 0xc
Function at 0x40b160
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x400
mov esi, ecx
push 0
push esi
call fcn.0041a390
push 0x110
lea eax, [esp + 0x18]
push 0
push eax
mov byte [esi + 0x400], 0
mov dword [esi + 0x404], 0
mov dword [esp + 0x1c], 0x114
call fcn.0041a390
add esp, 0x18
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b1ce
cmp dword [esp + 8], 6
jb 0x40b1ce
mov byte [esi + 0x400], 1
mov ecx, esi
call fcn.0040a6b0
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041a372
add esp, 0x118
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
je 0x40b301
cmp word [edi], 0
je 0x40b301
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b301
test al, 0x10
jne 0x40b301
cmp dword [esi], 0
jne 0x40b2c5
push 0x438
call fcn.00419ef2
add esp, 4
test eax, eax
je 0x40b2c1
mov ecx, eax
call fcn.0040b160
jmp 0x40b2c3
xor eax, eax
mov dword [esi], eax
mov eax, dword [esi]
mov word [eax], 0
mov ecx, dword [esi]
push 0x1ff
push ecx
push edi
call fcn.0040b010
cmp eax, 2
mov ecx, dword [esi]
mov dword [ecx + 0x404], eax
je 0x40b2fa
cmp eax, 3
je 0x40b2fa
mov edx, dword [esi]
pop edi
xor al, al
mov word [edx], 0
pop esi
ret 4
pop edi
mov al, 1
pop esi
ret 4
pop edi
xor al, al
pop esi
ret 4
Function at 0x40c950
Capabilities:
Get session user name

Disassembly:
sub esp, 0x250
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
mov eax, dword [esp + 0x258]
mov edx, dword [esp + 0x260]
push ebp
mov ebp, 7
push esi
mov esi, ecx
mov dword [esi + 0x18], ebp
mov ecx, dword [esp + 0x264]
push edi
xor edi, edi
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], edi
mov word [esi + 0x20], di
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], edi
mov word [esi + 0x3c], di
mov dword [esi + 0x74], ebp
mov dword [esi + 0x70], edi
mov word [esi + 0x60], di
mov dword [esi + 0x90], ebp
mov dword [esi + 0x8c], edi
mov word [esi + 0x7c], di
mov dword [esi + 0xac], ebp
mov dword [esi + 0xa8], edi
mov word [esi + 0x98], di
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xc4], edi
mov word [esi + 0xb4], di
mov dword [esi + 0xe4], ebp
mov dword [esi + 0xe0], edi
mov word [esi + 0xd0], di
mov dword [esi + 0x100], ebp
mov dword [esi + 0xfc], edi
lea ebx, [esi + 0xcc]
mov word [esi + 0xec], di
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0xe8]
mov dword [esi + 0x11c], ebp
mov dword [esi + 0x118], edi
push 0xffffffffffffffff
mov word [esi + 0x108], di
push edi
mov dword [esi + 0x138], ebp
mov dword [esi + 0x134], edi
push eax
mov dword [esp + 0x1c], edx
mov word [esi + 0x124], di
call fcn.0040176b
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x104]
call fcn.0040176b
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esi + 0x120]
call fcn.0040176b
push edi
call fcn.0041ab63
push eax
call fcn.0041ab9f
push ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
call fcn.00402d48
add esp, 0xc
cmp dword [esi + 0xe0], edi
je 0x40cb72
push 0x208
lea edx, [esp + 0x56]
push edi
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
mov word [esp + 0x5c], di
call fcn.0041a390
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x50]
mov word [esp + 0x256], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40cae6
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00401a4b
lea eax, [esp + 0x34]
push str.__r_t_n
push eax
call fcn.004022b4
add esp, 8
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x120]
push eax
lea ecx, [esp + 0x40]
call fcn.004030cc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00402e95
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
call fcn.0040176b
mov edi, 8
cmp dword [esp + 0x30], edi
jb 0x40cb5f
mov eax, dword [esp + 0x1c]
push eax
call fcn.00419b13
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x40cb72
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00419b13
add esp, 4
mov ecx, dword [esp + 0x25c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a372
add esp, 0x250
ret 0xc
Function at 0x4141c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4141e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4141f6
push 0x80004005
call fcn.00413810
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x414220
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x414238
push 0x80004005
call fcn.00413810
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x414245
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x414880
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4148ee
test ecx, ecx
je 0x4148e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4148fc
test ecx, ecx
je 0x4149a1
push ecx
jmp 0x41499b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41496e
jmp 0x414930
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00414880
mov edi, eax
test edi, edi
jne 0x4149bd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x414930
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414985
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4149a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041a372
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4149cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4149a3