joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x41a9dd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x41aa0d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41aa0d
inc edi
cmp edi, ebx
jb 0x41aa00
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x41ab15
cmp eax, 3
jbe 0x41aa40
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x41aa7b
cmp al, 0xff
je 0x41aa7b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x41a9f3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x41aa26
movzx ecx, byte [esi + 0x536184]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x53617c], 0
mov al, byte [eax + 4]
je 0x41aa69
test al, al
je 0x41aa69
cmp al, 0xff
jne 0x41aa26
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x41a9f3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x41aae7
movzx edx, byte [esi + 0x536184]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x41aacc
cmp bl, 0xff
jne 0x41aae3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x41aaa0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x41a9f3
pop edi
pop ebx
cmp eax, 3
jbe 0x41ab2c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x41acf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5739e8], ecx
inc edx
cmp edx, 0x100
jb 0x41acf3
cmp edx, 0x800
jae 0x41adc9
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x5735e8]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5739e8]
inc edx
mov dword [edx*4 + 0x5739e4], eax
cmp edx, 0x800
jb 0x41ada0
mov dword [0x5759e8], 0x41adf0
call fcn.0041ac60
test eax, eax
jne 0x41ade6
mov dword [0x5759e8], 0x41aea0
pop ecx
ret
Function at 0x41f330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x56f8f4]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.0041f290
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x41f4ab
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x41f3e3
jb 0x41f3df
cmp ebx, 0x40000
jae 0x41f3e3
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x41f497
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.0041ef00
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x41f497
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x41f474
test eax, eax
jne 0x41f45d
cmp edi, dword [esp + 0x4c]
je 0x41f474
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x41f497
xor edi, edi
jmp 0x41f3c0
cmp ecx, dword [esp + 0xb4]
jne 0x41f492
cmp dword [esp + 0x14], 0
jne 0x41f492
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x41f497
cmp eax, 4
je 0x41f497
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c3202
add esp, 0x90
ret
Function at 0x41f4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x56f8f4]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x41f517
mov eax, edi
jmp 0x41f66d
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041d730
add esp, 4
cmp eax, ebx
jne 0x41f66d
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x41f5ac
jb 0x41f5a1
cmp dword [esp + 0xc8], eax
jae 0x41f5ac
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x41f659
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.0041d8e0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x41f659
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x41f63e
cmp eax, ebx
jne 0x41f628
cmp edi, dword [esp + 0x4c]
je 0x41f63e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41f580
jmp 0x41f659
cmp ecx, dword [esp + 0xd4]
jne 0x41f654
cmp dword [esp + 0x14], ebx
jne 0x41f654
cmp dword [esp + 0x20], 1
je 0x41f659
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c3202
add esp, 0xb0
ret
Function at 0x41fe90
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x511778
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x56f8f4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.00401840
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0
call fcn.00401840
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.00414360
mov esi, eax
test esi, esi
je 0x420043
lea ecx, [esp + 0x10]
call fcn.00402f20
test eax, eax
jl 0x420043
lea ecx, [esp + 0x10]
call fcn.00414360
push esi
push eax
call fcn.004c4461
mov esi, eax
add esp, 8
test esi, esi
je 0x420043
lea ecx, [esp + 0x10]
call fcn.00414360
sub esi, eax
sar esi, 1
js 0x420043
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.0040fb20
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00414360
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00420500
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x1c]
cmp ax, 9
je 0x41ff79
cmp ax, 6
jne 0x420001
lea ecx, [esp + 0xc]
call fcn.00402f20
test eax, eax
jl 0x41ffb2
lea ecx, [esp + 0xc]
call fcn.00414360
push str.X86KZMount2.exe
push eax
call fcn.004c4461
mov esi, eax
add esp, 8
test esi, esi
je 0x41ffb2
lea ecx, [esp + 0xc]
call fcn.00414360
sub esi, eax
sar esi, 1
jns 0x41ffd2
mov eax, str.X86KuaiZipDrive.sys
lea edi, [esp + 0xc]
call fcn.00420700
test eax, eax
jge 0x41ffd2
mov eax, str.X86KuaiZipShell.dll
call fcn.00420700
test eax, eax
jl 0x42003a
lea ecx, [esp + 0xc]
call fcn.004018c0
lea ecx, [esp + 0x10]
call fcn.004018c0
lea ecx, [esp + 0x14]
call fcn.004018c0
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret
lea ecx, [esp + 0xc]
call fcn.00402f20
test eax, eax
jl 0x42003a
lea ecx, [esp + 0xc]
call fcn.00414360
push 0x538b4c
push eax
call fcn.004c4461
mov esi, eax
add esp, 8
test esi, esi
je 0x42003a
lea ecx, [esp + 0xc]
call fcn.00414360
sub esi, eax
sar esi, 1
jns 0x41ffd2
lea ecx, [esp + 0xc]
call fcn.004018c0
lea ecx, [esp + 0x10]
call fcn.004018c0
lea ecx, [esp + 0x14]
call fcn.004018c0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret
Function at 0x420740
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x244
mov eax, dword [0x56f8f4]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x24c]
push ebx
push ebp
mov ebp, dword [esp + 0x250]
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x420809
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x22c
call fcn.004c3b30
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x420802
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4207f3
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x18]
je 0x4207f3
push eax
push 0
push 0x100401
call edi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4207f3
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x10]
call fcn.00420c30
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4207b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c3202
add esp, 0x244
ret
Function at 0x421030
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push ecx
push reloc.WS2_32.dll_accept
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42105f
mov eax, dword [esp]
test eax, eax
je 0x42105b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp]
jne 0x421050
test eax, eax
je 0x42108f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret

Function at 0x421100
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x511d48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x56f8f4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56f8f4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
call fcn.00403ce0
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push edi
mov dword [esp + 0x58], ebx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4211b2
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.00401570
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401550
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00401550
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004045c0
lea ecx, [esp + 0x20]
call fcn.00403d70
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c3202
add esp, 0x38
ret
Function at 0x421200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push edi
mov ecx, esi
call fcn.00403cc0
lea ecx, [esp + 8]
push ecx
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x421252
mov edx, dword [esp + 8]
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edi, eax
mov eax, dword [esp + 8]
push eax
call ebp
test edi, edi
sete al
test al, al
jne 0x4212af
mov ecx, dword [esp + 0x14]
call fcn.00403cc0
mov ecx, esi
mov edi, eax
call fcn.00403cc0
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4212af
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4212a8
mov ecx, dword [esp + 0xc]
push ecx
call ebp
mov edx, dword [esp + 8]
push edx
call ebp
pop edi
pop ebp
add esp, 8
ret
Function at 0x422900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5126a9
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x56f8f4]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
mov eax, dword [0x56f8f4]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xec]
lea esi, [esp + 0x54]
call fcn.004195f0
push str.ActivateInfo
push eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0xf0], 0
call fcn.004031b0
add esp, 0xc
push 0
push 1
push eax
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0xb8]
mov byte [esp + 0xf4], 1
call fcn.005057e0
lea ecx, [esp + 0x70]
call fcn.00403d70
mov ecx, esi
mov byte [esp + 0xe4], 4
call fcn.00403d70
push str.mark
lea ecx, [esp + 0x3c]
call fcn.004045c0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xac]
call fcn.005055c0
test al, al
lea ecx, [esp + 0x38]
sete bl
call fcn.00403d70
test bl, bl
jne 0x422b28
push str.mark
lea ecx, [esp + 0x3c]
call fcn.004045c0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xec], 5
call fcn.00505970
lea ecx, [esp + 0x38]
call fcn.00403d70
lea ecx, [esp + 0x8c]
call fcn.00403ce0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8], 8
call fcn.004049d0
mov edx, dword [eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.00404fc0
push eax
lea ecx, [esp + 0x14]
call fcn.0040b340
test al, al
je 0x422a90
lea ecx, [esp + 0x10]
call fcn.00412ad0
movzx edx, byte [eax]
push edx
lea ecx, [esp + 0x90]
call fcn.00404630
lea ecx, [esp + 0x10]
call fcn.00412ba0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00404fc0
push eax
lea ecx, [esp + 0x14]
call fcn.0040b340
test al, al
jne 0x422a52
lea ecx, [esp + 0x8c]
call fcn.004017b0
push eax
lea ecx, [esp + 0x90]
call fcn.00403cc0
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.DA322A99_C9F1_4177_86A0_EF5AE3E22267
call fcn.004045c0
call fcn.00406b30
add esp, 0x24
lea ecx, [esp + 0x8c]
call fcn.00404650
test al, al
jne 0x422b13
lea ecx, [esp + 0x8c]
push str.null
push ecx
call fcn.00405bf0
add esp, 8
test al, al
jne 0x422b13
lea ecx, [esp + 0x8c]
call fcn.00403d70
lea ecx, [esp + 0x20]
call fcn.004048b0
lea ecx, [esp + 0xa8]
call fcn.005057c0
mov al, 1
jmp 0x422b36
lea ecx, [esp + 0x8c]
call fcn.00403d70
lea ecx, [esp + 0x20]
call fcn.004048b0
lea ecx, [esp + 0xa8]
call fcn.005057c0
xor al, al
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004c3202
add esp, 0xdc
ret 4

Function at 0x42b676
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret 4
Function at 0x42cc27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x56f8f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00403f30
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x208], 0x200
jb 0x42cc6a
mov esi, dword [esi + 4]
jmp 0x42cc6d
add esi, 4
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x42cc9b
lea eax, [ebp - 0x204]
push eax
mov ecx, ebx
call fcn.00404590
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3202
leave
ret

Function at 0x42cd72
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x50c24d
call fcn.004c327a
mov esi, dword [ebp + 0x24]
xor ebx, ebx
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x49], 1
call fcn.004016b0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00417d50
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x42cdbb
lea eax, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x50]
push ecx
push ebx
push 0x20006
push 1
push ebx
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42ce01
push 4
lea eax, [ebp + 0x28]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42cdf4
mov byte [ebp - 0x49], bl
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42ce04
mov byte [ebp - 0x49], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401fb0
mov al, byte [ebp - 0x49]
call fcn.004c32c4
ret
Function at 0x42d588
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x42d591
push ebx
push esi
sub eax, edx
sar eax, 1
push edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043014d
mov edi, eax
mov eax, dword [ebp + 8]
mov edx, edi
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x42d5c5
xor ebx, ebx
mov byte [ebp + 0xb], 1
test esi, esi
jl 0x42d613
cmp word [edi + ebx*2], 0x5c
jne 0x42d608
xor eax, eax
push edi
mov word [edi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d601
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42d60f
push 0x5c
pop eax
mov word [edi + ebx*2], ax
inc ebx
cmp ebx, esi
jle 0x42d5dd
jmp 0x42d613
mov byte [ebp + 0xb], 0
push edi
call fcn.004c3a96
movzx eax, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42d6ca
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56f8f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push str..del
push edi
call fcn.004c4461
pop ecx
pop ecx
test eax, eax
je 0x42d702
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x42d799
push esi
xor esi, esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004c3b30
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x42d73e
push edi
push str._s.del
push eax
call fcn.004c48f7
add esp, 0xc
jmp 0x42d74e
push esi
push edi
push str._s.del_d
push eax
call fcn.004c48f7
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d778
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42d778
cmp esi, 0xa
jge 0x42d798
inc esi
jmp 0x42d705
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004c4be2
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004c3202
leave
ret