joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4488b9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esi], vtable.CClassLogger.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 5
mov dword [esi + 0x24], esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0xa
mov dword [esi + 0x30], esi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0xf
mov dword [esi + 0x3c], esi
test bl, bl
mov dword [esi + 0x40], ecx
sete dl
lea ecx, [esi + 0x54]
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], 0
mov byte [esi + 0x50], dl
mov byte [esi + 0x51], 0
call fcn.00403220
mov dword [ebp - 4], 0
lea ecx, [esi + 0x17c]
call fcn.00403220
mov byte [ebp - 4], 1
test bl, bl
je 0x403c41
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x403c67
mov eax, 0x44d64c
jmp 0x403c67
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x403c4c
xor eax, eax
jmp 0x403c5a
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403c51
sub eax, ecx
push eax
push ebx
lea ecx, [esi + 0x60]
call fcn.00403380
mov eax, dword [esi + 0x60]
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov bl, byte [ebp + 0x10]
mov dword [esi], vtable.CClassLogger2.0
mov dword [esi + 8], esi
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], esi
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], esi
mov dword [esi + 0x1c], 0xa
mov dword [esi + 0x20], esi
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x28], esi
test bl, bl
sete cl
mov dword [esi + 0x2c], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x38], cl
lea ecx, [esi + 0x3c]
mov byte [esi + 0x30], al
call fcn.00403220
mov dword [ebp - 4], 0
test bl, bl
je 0x404926
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40494c
mov eax, 0x44d64c
jmp 0x40494c
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x404931
xor eax, eax
jmp 0x40493f
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404936
sub eax, ecx
push eax
push ebx
lea ecx, [esi + 0x48]
call fcn.00403380
mov eax, dword [esi + 0x48]
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405250
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test esi, esi
je 0x40533d
push ebx
lea ebx, [ebp - 0x10]
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp eax, esi
jae 0x40529e
cmp edi, 8
jge 0x405298
mov ecx, dword [ebp + 8]
mov dl, byte [eax + ecx]
mov byte [ebx + eax], dl
inc eax
inc edi
cmp eax, esi
jb 0x405284
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0xc6ef3720
mov esi, 0x20
mov edi, edx
shr edi, 5
mov ebx, edx
shl ebx, 4
xor edi, ebx
mov ebx, eax
shr ebx, 0xb
and ebx, 3
mov ebx, dword [ebx*4 + 0x45ee10]
add ebx, eax
add edi, edx
xor edi, ebx
sub ecx, edi
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add eax, 0x61c88647
mov ebx, eax
and ebx, 3
mov ebx, dword [ebx*4 + 0x45ee10]
add edi, ecx
add ebx, eax
xor edi, ebx
dec esi
sub edx, edi
test si, si
jg 0x4052a8
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov dword [ebp - 0x10], edx
cmp eax, esi
jae 0x405324
jmp 0x405310
cmp ecx, 8
jge 0x405324
mov dl, byte [ebx + eax]
mov edi, dword [ebp + 8]
mov byte [eax + edi], dl
inc eax
inc ecx
cmp eax, esi
jb 0x405310
mov eax, dword [ebp - 4]
add eax, 8
sub ebx, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
cmp eax, esi
jb 0x405271
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
push edi
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
je 0x405bf1
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x405bc0
push 0
push 0
call fcn.0043141f
add esp, 0x18
test eax, eax
jne 0x405c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405c21
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405c62
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x405c62
push 0
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x18], edi
jne 0x405c62
mov esi, dword [esi + 0x20]
test esi, esi
je 0x405c62
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4067e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x214], esi
call fcn.0042fa50
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [ebp + 0xc]
test eax, eax
je 0x4069bb
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4069d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4069d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x210], edi
test edi, edi
je 0x4069d7
movzx esi, word [edi + 4]
dec esi
shl esi, 5
add esi, 0x438
push esi
call fcn.0043114b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4069d7
push esi
push 0
push ebx
call fcn.0042fa50
movzx edx, word [edi + 4]
mov dword [ebx + 0x414], edx
lea eax, [ebp - 0x20c]
lea edx, [ebx + 0x20c]
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4068b5
mov eax, 0x44d664
lea edx, [ebx + 4]
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4068d0
cmp dword [ebx + 0x414], 0
mov dword [ebp - 0x218], 0
jbe 0x4069bb
mov edx, dword [ebp - 0x210]
add edx, 0x12
lea edi, [ebx + 0x424]
mov dword [ebp - 0x210], edx
jmp 0x406910
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x214]
push 3
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4069ce
mov eax, dword [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4069ce
mov ecx, dword [ebp - 0x214]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
mov dword [edi + 4], esi
call fcn.0043114b
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4069ce
mov edx, dword [ebp - 0x21c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [edi]
push eax
call fcn.0042fad0
lea ecx, [edi - 0xc]
push ecx
call fcn.00406730
add esp, 0x10
test eax, eax
je 0x4069ce
mov eax, dword [ebp - 0x218]
add dword [ebp - 0x210], 0xe
inc eax
add edi, 0x20
mov dword [ebp - 0x218], eax
cmp eax, dword [ebx + 0x414]
jb 0x406910
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00406790
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00430215
mov esp, ebp
pop ebp
ret
Function at 0x40f940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
je 0x40faab
test ebx, ebx
jle 0x40faab
cmp dword [0x45ef30], 0
je 0x40fa09
cmp byte [0x45ef38], 0
je 0x40fa09
push esi
push 0x44d650
push 0x45ef38
call fcn.00431107
mov esi, eax
add esp, 8
test esi, esi
je 0x40fa08
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x56]
movzx edx, word [ebp - 0x58]
movzx eax, word [ebp - 0x5a]
push ecx
movzx ecx, word [ebp - 0x5c]
push edx
movzx edx, word [ebp - 0x5e]
push eax
movzx eax, word [ebp - 0x62]
push ecx
movzx ecx, word [ebp - 0x64]
push edx
push eax
push ecx
lea edx, [ebp - 0x54]
push str._04d__02d__02d__02d:_02d:_02d._03d
push edx
call fcn.00430951
lea eax, [ebp - 0x54]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f9d7
sub eax, edx
push esi
push eax
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.00432598
push esi
push ebx
push 1
push edi
call fcn.00432598
push esi
push 0xa
call fcn.00430e25
push esi
call fcn.00430db1
add esp, 0x2c
pop esi
cmp dword [0x45ef34], 0
je 0x40faab
cmp dword [0x45f03c], 0
je 0x40faab
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x56]
movzx eax, word [ebp - 0x58]
movzx ecx, word [ebp - 0x5a]
push edx
movzx edx, word [ebp - 0x5c]
push eax
movzx eax, word [ebp - 0x5e]
push ecx
movzx ecx, word [ebp - 0x62]
push edx
movzx edx, word [ebp - 0x64]
push eax
push ecx
push edx
lea eax, [ebp - 0x54]
push str._04d__02d__02d__02d:_02d:_02d._03d
push eax
call fcn.00430951
add esp, 0x24
push 0x100000
push 0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [0x45f03c]
call fcn.00424410
mov ecx, dword [0x45f03c]
push 0x100000
lea edx, [ebp - 0x68]
push edx
push ebx
push edi
call fcn.00424350
mov ecx, dword [0x45f03c]
push 0x100000
push 0
push 0x44e520
call fcn.00424410
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret
Function at 0x412480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449e86
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 8]
mov esi, dword [0x45f930]
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412668
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412668
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412668
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x412516
mov edi, dword [ebp - 0x21c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x412668
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x224], edx
cmp cx, ax
jne 0x4125b4
push 3
lea edx, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], edx
call fcn.00411780
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x220]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x41258b
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x41264d
push eax
call fcn.00430a66
add esp, 4
jmp 0x41264d
mov edx, 0x1234
cmp dx, ax
jne 0x41264d
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x244], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.00411780
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
cmp eax, edx
je 0x412623
push eax
call fcn.00430a66
add esp, 4
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x248]
push eax
mov eax, dword [edx + 4]
push 0
push 0x40b
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x41264d
mov dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x412510
mov eax, dword [ebp - 0x21c]
jmp 0x41266a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 4

Function at 0x413790
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x4137c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], vtable.CMD5Ex.0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
ret
Function at 0x414090
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp + 8]
sar eax, 2
lea esi, [edx + eax*4]
neg eax
mov edx, eax
je 0x4140d3
mov eax, dword [esi + edx*4]
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
inc edx
lea ecx, [eax + eax*4 - 0x19ab949c]
jne 0x4140b2
mov eax, edi
and eax, 3
xor edx, edx
dec eax
je 0x4140f3
dec eax
je 0x4140ea
dec eax
jne 0x414109
movzx edx, byte [esi + 2]
shl edx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor edx, eax
movzx eax, byte [esi]
xor eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ecx, eax
xor ecx, edi
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
mov eax, dword [ebp + 0x14]
imul ecx, ecx, 0xc2b2ae35
mov edx, ecx
shr edx, 0x10
xor edx, ecx
pop edi
mov dword [eax], edx
pop esi
pop ebp
ret

Function at 0x4141f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414262
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x414231
cmp eax, 2
jne 0x41424c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41425c
test eax, eax
je 0x414257
test al, 1
jne 0x41424c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41425c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4149d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, ebx
call fcn.00402c20
test esi, esi
je 0x414a3f
test edi, edi
je 0x414a3f
lea eax, [ebp - 0x20]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
push 2
call esi
cmp eax, 1
jne 0x414a3f
lea ecx, [ebp - 0x28]
push ecx
push edi
push 2
call esi
cmp eax, 1
jne 0x414a3f
mov edx, dword [ebp - 0x28]
push 0x16
lea eax, [ebp - 0x1c]
push eax
not edx
or edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push 2
mov dword [ebp - 0x24], edx
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x414a3f
lea edx, [ebp - 0x1c]
push edx
mov ecx, ebx
call fcn.004039f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00430215
mov esp, ebp
pop ebp
ret
Function at 0x414ca0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0042fa50
mov ebx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov edx, dword [edi + 4]
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x414d57
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403750
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430215
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xea
jne 0x414d44
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x414d44
push ecx
mov ecx, esi
call fcn.00403490
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push eax
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x214], eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414dad
push ecx
push eax
call fcn.00430b4e
add esp, 8
test eax, eax
js 0x414dc4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x414dc4
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x414d3e
push 0x80070057
call fcn.00401770
int3
Function at 0x414dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], edi
mov word [ebp - 0x20c], ax
call fcn.0042fa50
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 4]
push edi
mov dword [ebp - 0x210], 0x104
mov dword [ebp - 0x21c], ecx
call fcn.004141f0
mov esi, eax
test esi, esi
jne 0x414e83
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
jmp 0x414e50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414e50
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, ebx
call fcn.00403750
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430215
mov esp, ebp
pop ebp
ret 8
cmp esi, 0xea
jne 0x414e6e
lea eax, [esi + 0x1a]
jmp 0x414e96
mov eax, dword [ebp - 0x220]
mov edi, eax
add eax, 0x104
lea ecx, [edi + 1]
mov dword [ebp - 0x220], eax
test ecx, ecx
js 0x414f7e
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or edx, eax
jge 0x414ec9
push ecx
mov ecx, ebx
call fcn.00402df0
mov esi, dword [ebx]
lea edx, [ebp - 0x210]
push edx
mov edx, dword [ebp - 0x21c]
push esi
lea eax, [ebp - 0x218]
push eax
mov eax, dword [edx]
lea ecx, [edi + edi]
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp - 0x214]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x414f03
mov esi, eax
jmp 0x414f44
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x414f1a
cmp eax, 2
je 0x414f1a
mov esi, 0xd
jmp 0x414f44
test esi, esi
je 0x414f42
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x414f3d
test al, 1
jne 0x414f36
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x414f42
mov esi, 0xd
jmp 0x414f44
xor ecx, ecx
mov word [esi], cx
xor esi, esi
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414f5b
push ecx
push eax
call fcn.00430b4e
add esp, 8
test eax, eax
js 0x414f7e
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x414f7e
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, 0xea
je 0x414e90
jmp 0x414e6e
push 0x80070057
call fcn.00401770
int3

Function at 0x415760
Capabilities:
Get local ipv4 addresses

Disassembly:
push esi
mov esi, ecx
call fcn.00414f90
cmp dword [esi + 8], 0
jbe 0x415776
mov ecx, esi
pop esi
jmp fcn.00415650
pop esi
ret
Function at 0x415780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x4157ba
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 8
push ebx
xor ebx, ebx
cmp word [esi], bx
setne bl
dec ebx
and ebx, 0x80070057
jl 0x415935
push edi
push 0x410
lea ecx, [ebp - 0x414]
push 0
push ecx
call fcn.0042fa50
mov eax, esi
add esp, 0xc
lea edi, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4157f2
sub eax, edx
sar eax, 1
add eax, 5
cmp eax, 0x208
jb 0x415821
lea edx, [eax + eax]
push edx
call fcn.0043114b
mov edi, eax
add esp, 4
test edi, edi
je 0x41591d
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x415830
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x415830
push 0x44
lea eax, [ebp - 0x46c]
push 0
push eax
call fcn.0042fa50
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x46c]
push eax
push ecx
push ecx
push 0x4000400
push ecx
push ecx
push ecx
push edi
push ecx
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x440], 1
mov word [ebp - 0x43c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4158d2
mov ecx, dword [ebp - 0x424]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4158e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4158e6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4158fb
push eax
call esi
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x415908
push eax
call esi
pop edi
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 8
pop edi
pop ebx
mov eax, 0x8007000e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00430215
mov esp, ebp
pop ebp
ret 8