joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0
push eax
push 0xf003f
push 0
push 0x42a530
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2008], 0x1000
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d13
lea eax, [ebp - 0x200c]
push eax
push 0xf003f
push 0
push 0x42a530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d13
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
push 0
push str.UserId
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404d85
cmp word [ebp - 0x2004], ax
jne 0x404d59
xor ecx, ecx
lea eax, [ebp - 0x2004]
push ecx
push eax
mov ecx, 0x431ad0
call fcn.00401d00
jmp 0x404d87
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d62
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, 0x431ad0
call fcn.00401d00
jmp 0x404d87
xor bl, bl
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004112f8
mov esp, ebp
pop ebp
ret

Function at 0x404db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3068
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x3068]
mov dword [ebp - 0x3068], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x42a530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404e9f
mov eax, dword [0x431ae0]
mov ecx, 0x431ad0
cmp dword [0x431ae4], 8
cmovae ecx, dword [0x431ad0]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UserId
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1830
lea eax, [ebp - 0x3064]
push eax
push 0xffffffffffffffff
push str.utm_sourceoffergatecpinewutm_campaign6utm_mediummlutm_site2204utm_clickidNV8oSmvMu9YijbX5utm_experimentexprelease_1.0.58_previousutm_ntbpack9landing14dld_br2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x3064]
lea edx, [eax + 2]
jmp 0x404e60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e60
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x3064]
push eax
push 1
push 0
push 0x428ef4
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5e155dc8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7be56d91
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x6d4135
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006d41b4
jae 0x6d4141
xor ecx, ecx
call fcn.006d41b4
jae 0x6d416b
xor eax, eax
call fcn.006d41b4
jae 0x6d417c
mov al, 0x10
call fcn.006d41b4
adc al, al
jae 0x6d415d
jne 0x6d41a9
stosb byte es:[edi], al
jmp 0x6d4142
call fcn.006d41c0
dec ecx
loop 0x6d4188
mov eax, ebp
call fcn.006d41be
jmp 0x6d41aa
lodsb al, byte [esi]
shr eax, 1
je 0x6d41d0
adc ecx, 2
mov ebp, eax
jmp 0x6d41aa
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006d41be
cmp eax, 0x7d00
jae 0x6d41a8
cmp eax, 0x500
jae 0x6d41a9
cmp eax, 0x7f
ja 0x6d41aa
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6d4142
pop ebp
ret 8
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401443
pop dword [ebp - 0x38]
mov eax, 0x8c105752
add eax, 0x742fbcf1
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x28fbef88
add dword [ebp - 0x48], 0x255655c3
mov dword [ebp - 0x44], 0xc3abecf
add dword [ebp - 0x44], 0x25f88d76
mov dword [ebp - 0x40], 0x4f8455f5
add dword [ebp - 0x40], 0xfcc7ee39
mov dword [ebp - 0x3c], 0x62e7e026
add dword [ebp - 0x3c], 0x9d181fda
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd6fa08df
sub dword [ebp - 0x48], 0x62879f89
mov dword [ebp - 0x44], 0x395c101c
sub dword [ebp - 0x44], 0xf7efaea7
mov dword [ebp - 0x40], 0xb09c26cf
add dword [ebp - 0x40], 0xb2d3459d
mov dword [ebp - 0x3c], 0x7e219531
sub dword [ebp - 0x3c], 0x7e219531
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x165da33c
sub eax, 0x161d22c0
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3ac65
push 0
call eax
mov ecx, 0x5198
mov edx, eax
mov edi, 0x8c9de48b
sub edi, 0x8c58d08b
add edi, dword [ebp - 0x38]
mov esi, 0xd2889c03
sub esi, 0x21fdfa63
xor dword [ebp - 4], 0x86f2aec6
mov ebx, dword [edi]
sub ebx, esi
sub dword [ebp - 0x2c], 0x70c69e0c
mov dword [edx], ebx
sub dword [ebp - 4], ebx
add edx, 0xcfe0eabe
add edx, 0x301f1546
add edi, 4
loop 0x40155a
add eax, 0x40a2e4ab
sub eax, 0x40a1ab78
xor ebx, ebx
add ebx, eax
add eax, 0xb710400f
add eax, 0x48efbff6
mov ecx, 0x1d406e34
add ecx, 0xe2ff91cc
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x408bac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, 0x4a6bc8
mov eax, 0x20202020
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov ax, 0x3130
mov word [edi + 8], ax
mov word [edi], ax
mov edi, 0x4a6bf0
cmp byte [edi + 1], 0x3f
ja 0x408bdf
mov esi, 0x40ec5c
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jb 0x408c6d
mov eax, 0x4a6bf0
mov ecx, 2
call fcn.00447291
mov edi, eax
cmp byte [edi + 0x4a96b9], 0x20
je 0x408c4c
mov eax, 0x4a6bf0
mov ecx, 2
call fcn.00447291
mov esi, eax
mov eax, 0x4a6bf8
mov ecx, 2
call fcn.00447291
mov edi, eax
mov al, byte [esi + 0x4a96b9]
mov byte [edi + 0x4a6bc7], al
mov ebx, 0x30303031
movzx edx, word [0x4a6bf8]
xchg dl, dh
call fcn.00448689
xchg dl, dh
mov word [0x4a6bf8], dx
mov ebx, 0x30303031
movzx edx, word [0x4a6bf0]
xchg dl, dh
call fcn.00448689
xchg dl, dh
mov word [0x4a6bf0], dx
jmp 0x408bc8
mov ax, 0x3530
mov word [0x4a6bf8], ax
mov ah, 0x31
mov word [0x4a6bf0], ax
mov edi, 0x4a6bf0
cmp byte [edi + 1], 0x3f
ja 0x408c96
mov esi, 0x40ec60
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jb 0x408d08
mov eax, 0x4a6bf0
mov ecx, 2
call fcn.00447291
mov esi, eax
mov eax, 0x4a6bf8
mov ecx, 2
call fcn.00447291
mov edi, eax
mov edx, dword [esi + 0x4a6bc7]
xor dword [edi + 0x4a6bc7], edx
sub ecx, ecx
mov dword [0x4a9d50], ecx
mov ebx, 0x30303034
movzx edx, word [0x4a6bf8]
xchg dl, dh
call fcn.00448689
xchg dl, dh
mov word [0x4a6bf8], dx
movzx edx, word [0x4a6bf0]
xchg dl, dh
call fcn.00448689
xchg dl, dh
mov word [0x4a6bf0], dx
jmp 0x408c7f
ret
Function at 0x40f938
Capabilities:
Parse credit card information

Disassembly:
mov al, 1
mov byte [ebp + 0x1d0], al
jmp fcn.0040f2e4

Function at 0x414cad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4972a4]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret
Function at 0x415f00
Capabilities:
Read pipe
Write pipe

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
jl 0x41608d
cmp ebx, 0x8000
jge 0x41608d
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0xc
call ebp
mov esi, eax
add esp, 4
test esi, esi
jne 0x415f43
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cl, ah
mov byte [esi + 3], al
mov al, byte [esp + 0x2b]
mov dl, bh
mov byte [esi], 0
mov byte [esi + 1], 1
mov byte [esi + 2], cl
mov cl, byte [esp + 0x2a]
mov byte [esi + 4], dl
mov byte [esi + 5], bl
mov byte [esi + 8], al
mov eax, dword [esp + 0x28]
mov byte [esi + 9], cl
mov byte [esi + 0xa], ah
mov byte [esi + 0xb], al
lea ebx, [eax + 8]
cmp dword [edi + 8], ebx
je 0x415fbc
mov eax, dword [edi + 4]
test eax, eax
je 0x415f97
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
call ebp
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x415fb9
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [edi + 8], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
lea edx, [esp + 0x1c]
push 0
push edx
mov edx, dword [edi]
push eax
push ecx
push 0xc
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x416006
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xea
setne cl
add ecx, 5
push esi
mov dword [esp + 0x14], ecx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416016
mov edx, dword [edi + 4]
add edx, 8
mov dword [eax], edx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x416045
mov eax, dword [edi + 4]
add eax, 4
mov dl, byte [eax]
mov byte [esp + 0x2b], dl
mov dl, byte [eax + 1]
mov byte [esp + 0x2a], dl
mov dl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [esp + 0x29], dl
mov byte [esp + 0x28], al
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
mov edi, dword [edi + 4]
mov al, byte [edi]
mov cl, byte [edi + 1]
mov dl, byte [edi + 2]
mov byte [esp + 0x2b], al
mov al, byte [edi + 3]
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x29], dl
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [ecx], eax
je 0x416079
mov dword [esp + 0x10], 7
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
pop ecx
ret

Function at 0x4189d0
Capabilities:
Query environment variable

Disassembly:
push str.MFTRACE_CONFIG
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4189fa
push str.cblctf
call fcn.00430230
push eax
push 0xa4
call fcn.00425c70
add esp, 0xc
mov dword [0x4b78a4], 0x498cf0
ret
Function at 0x425910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00425960
mov eax, dword [0x4b48a0]
test eax, eax
mov eax, str.initialization
je 0x42592b
mov eax, str.finalization
mov ecx, dword [0x4b4898]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x499a78
push str._s_:_Error__d_encountered_during__s_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x14
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x42a7f0
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x14]
push 2
push eax
xor esi, esi
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x1c], esi
call fcn.0045a9b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42a825
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
lea eax, [ecx + 0x3900]
pop ecx
ret
lea edx, [esp + 0xc]
push edx
push 2
push edi
call fcn.00455880
add esp, 0xc
test eax, eax
jne 0x42a84d
mov eax, dword [esp + 0xc]
cmp eax, 9
je 0x42a873
cmp eax, 2
jne 0x42a856
push eax
jmp 0x42a906
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add esp, 4
lea edx, [esp + 0xc]
push edx
push 0x12
push edi
call fcn.00455880
add esp, 0xc
test eax, eax
jne 0x42a8c2
mov eax, dword [esp + 0xc]
cmp eax, 9
jne 0x42a888
push edi
mov esi, 0x391d
call fcn.0045ab90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xd
jne 0x42a905
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42a8aa
push edi
xor esi, esi
call fcn.0045ab90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045b640
mov esi, eax
add esp, 4
test esi, esi
je 0x42a910
push esi
jmp 0x42a906
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42a8ee
push edi
mov dword [esp + 0x10], 0
call fcn.0045ab90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045b640
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x42a910
push eax
call fcn.004581f0
add esp, 4
mov esi, eax
push edi
call fcn.0045ab90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42eab0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], 0x104
mov ebx, dword [edi + 4]
mov dword [esp + 0x14], 0
mov ecx, ebx
call fcn.0042efd0
test eax, eax
jne 0x42eaf2
pop edi
pop esi
pop ebp
mov eax, 0x64
pop ebx
add esp, 0x11c
ret 8
test ebp, ebp
je 0x42eaf9
mov ebp, dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov eax, dword [ebx + 0xc]
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push ebp
push eax
call esi
test eax, eax
jne 0x42eb63
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0xc]
push 0
call fcn.0042ec00
test eax, eax
mov dword [esp + 0x18], eax
jne 0x42eb75
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc ebp
mov dword [esp + 0x20], 0x104
mov edx, dword [ebx + 0xc]
push eax
push ecx
push ebp
push edx
call esi
test eax, eax
je 0x42eb1f
pop edi
pop esi
pop ebp
mov eax, 0x1f4
pop ebx
add esp, 0x11c
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 8]
inc ecx
test edx, edx
je 0x42ebdc
cmp edx, ecx
jl 0x42ebcd
mov edi, dword [esp + 0x130]
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], ebp
call fcn.0042eaa0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8
mov ecx, eax
call fcn.0042eaa0
mov dword [esp + 0x14], 2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8
Function at 0x42ec00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 8]
push edi
push eax
push 9
push 0
push edx
push ecx
mov dword [esp + 0x24], 0
call ebx
test eax, eax
jne 0x42eced
mov edi, dword [esp + 0x124]
mov dword [esp + 0x14], 0x104
test edi, edi
jne 0x42ec7c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push edi
push 0x499ed8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42ec9d
mov ecx, dword [esp + 0xc]
call fcn.0042eaa0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x114
ret 8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
mov ecx, ebp
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
push 9
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x10]
call fcn.0042eaa0
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x114
ret 8
Function at 0x42ed00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [esi + 4]
mov dword [esp + 0x10], 0
mov ecx, ebp
mov dword [esp + 0x1c], 0x104
call fcn.0042efd0
test eax, eax
je 0x42ee9d
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42ee9d
test ebx, ebx
je 0x42ed45
mov ebx, dword [ebp + 0x28]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x42ee8c
push edi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov edx, dword [esi + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
inc eax
test edx, edx
je 0x42edb1
cmp edx, eax
jl 0x42eda9
mov edi, dword [esp + 0x12c]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
jmp 0x42edb1
mov dword [esp + 0x14], 2
mov ecx, dword [esi + 0x10]
dec eax
test ecx, ecx
mov dword [esi + 0xc], eax
pop edi
je 0x42ee5c
mov eax, dword [esp + 0xc]
cmp ecx, eax
jb 0x42ee3c
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42ee58
mov eax, dword [esp + 0x130]
inc ebx
mov dword [ebp + 0x28], ebx
mov edx, dword [esp + 0x18]
test eax, eax
mov dword [ebp + 0x2c], edx
je 0x42ee58
mov eax, dword [esp + 0xc]
mov dl, 0x3b
mov cl, byte [esi + eax - 2]
cmp cl, 0x5c
je 0x42ee2c
cmp cl, 0x2f
je 0x42ee2c
cmp cl, dl
jne 0x42ee74
mov byte [esi + eax - 2], 0
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jmp 0x42ee1a
dec eax
mov dword [esp + 0x10], 2
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
dec eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
mov esi, dword [esp + 0x14]
dec eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
pop esi
pop ebp
mov eax, 0x1f4
pop ebx
add esp, 0x118
ret 0xc
pop esi
pop ebp
mov eax, 0x64
pop ebx
add esp, 0x118
ret 0xc

Function at 0x42ef20
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, edx
mov eax, dword [edi]
push eax
push esi
push str.MFNXVER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42ef53
mov ecx, dword [0x499ee8]
mov eax, 1
mov dword [esi], ecx
mov dword [edi], 4
pop edi
pop esi
ret 4
inc eax
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x42fcc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, ecx
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x42fd60
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0xf003f
push 0
push ecx
push esi
call ebp
test eax, eax
jne 0x42fd30
mov ecx, dword [esp + 0x14]
call fcn.0042fcc0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
push eax
push esi
call ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
lea eax, [esp + 0x30]
push edx
push eax
push 0
push esi
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
je 0x42fd04
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret

Function at 0x430070
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp]
mov dword [esp + 0x10], 0
cmp al, 0x22
jne 0x4300b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0xc], esi
cmp byte [esi + ebp - 1], 0x22
jne 0x4300b4
mov byte [esi + ebp - 1], 0
mov dword [esp + 0x10], 1
inc ebp
jmp 0x4300b4
mov esi, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43017c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4300d8
cmp eax, 2
jne 0x43017c
mov al, byte [ebp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strpbrk]
cmp al, 0x5c
mov esi, ebp
je 0x4300ec
cmp al, 0x2f
jne 0x430110
mov cl, byte [ebp + 1]
cmp cl, 0x5c
je 0x4300f9
cmp cl, 0x2f
jne 0x430110
lea eax, [ebp + 2]
push 0x499100
push eax
call ebx
add esp, 8
test eax, eax
je 0x43012d
lea esi, [eax + 1]
jmp 0x43012d
test al, al
je 0x43012d
cmp byte [ebp + 1], 0x3a
jne 0x43012d
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x43012d
cmp al, 0x5c
je 0x43012c
cmp al, 0x2f
jne 0x43012d
inc esi
push 0x499100
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x430172
push 0
push ebp
mov byte [esi], 0
call edi
test eax, eax
mov byte [esi], 0x5c
jne 0x430160
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x430172
inc esi
push 0x499100
push esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x430144
push 0
push ebp
call edi
mov esi, dword [esp + 0x10]
pop ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430189
mov byte [esi + ebp - 2], 0x22
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x43af90
Capabilities:
Execute command

Disassembly:
push esi
push 1
call fcn.004582a0
call fcn.004583e0
call fcn.00458290
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_system]
add esp, 8
mov esi, eax
call fcn.00458280
call fcn.00458490
mov eax, esi
pop esi
ret