joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0046fe20
mov edx, dword [esp + 0x228]
push edx
push 0x104
push esi
lea ecx, [esp + 0x20]
call fcn.00411b40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x411f20
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411f18
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 0x21
je 0x411f05
and eax, 0xffffffde
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x411f05
call edi
mov esi, eax
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411f20
call edi
jmp 0x411f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00404e30
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret

Function at 0x411fe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc8
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push esi
push edi
push 0
push 0
push 0
push 0
push 2
push 0x40000000
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00411ce0
mov esi, dword [esp + 0x28]
add esp, 0x20
mov edi, eax
cmp esi, 0xffffffff
je 0x412092
push 0x10
push 1
push str._u._02.2u
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.0046f31e
lea edx, [esp + 0x20]
push edx
push str.version_s
lea eax, [esp + 0x68]
push 0x40
push eax
call fcn.0046f31e
lea eax, [esp + 0x70]
add esp, 0x24
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412060
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412092
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0xc8
ret
Function at 0x4140d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4d5e40]
and eax, 7
dec eax
push ebx
push esi
cmp eax, 6
ja case.default.0x4140e4
jmp dword [eax*4 + 0x414370]
mov eax, dword [0x4b1b3c]
mov ecx, dword [0x4b1b38]
push 0
push 0x41a7
push eax
push ecx
call fcn.0046ff80
push 0
push closesocket
push edx
push eax
call fcn.0048a6f0
lea ecx, [eax - 1]
mov dword [0x4b1b38], eax
mov eax, ecx
shr eax, 0xc
mov dword [0x4b1b3c], edx
movzx edx, al
mov eax, dword [edx*4 + 0x4d68e0]
mov dword [edx*4 + 0x4d68e0], ecx
jmp 0x414354
mov edx, dword [0x4b1b44]
mov eax, dword [0x4b1b40]
push 0
push 0x10dcd
push edx
push eax
call fcn.0046ff80
add eax, 1
adc edx, 0
xor edx, edx
mov dword [0x4b1b40], eax
mov dword [0x4b1b44], edx
shr eax, 1
jmp 0x414354
mov ecx, dword [0x4b1b4c]
mov edx, dword [0x4b1b48]
push 0
push 0x10dcd
push ecx
push edx
call fcn.0046ff80
add eax, 1
adc edx, 0
mov dword [0x4b1b48], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4b1b4c], edx
mov edx, dword [ecx*4 + 0x4d64e0]
mov dword [ecx*4 + 0x4d64e0], eax
mov eax, edx
jmp 0x414354
mov eax, dword [0x4b1b54]
mov ecx, dword [0x4b1b50]
push 0
push 0x19660d
push eax
push ecx
call fcn.0046ff80
add eax, 0x3c6ef35f
adc edx, 0
xor edx, edx
mov dword [0x4b1b50], eax
mov dword [0x4b1b54], edx
shr eax, 1
jmp 0x414354
mov edx, dword [0x4b1b5c]
mov eax, dword [0x4b1b58]
push 0
push 0x19660d
push edx
push eax
call fcn.0046ff80
add eax, 0x3c6ef35f
adc edx, 0
mov dword [0x4b1b58], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4b1b5c], edx
mov edx, dword [ecx*4 + 0x4d60e0]
mov dword [ecx*4 + 0x4d60e0], eax
mov eax, edx
jmp 0x414354
movzx eax, byte [0x4b1b60]
mov bl, byte [0x4d6ce0]
mov ecx, dword [eax*8 + 0x4d5f28]
mov edx, dword [eax*8 + 0x4d5f2c]
movzx esi, bl
add ecx, dword [esi*8 + 0x4d5f28]
push 0
adc edx, dword [esi*8 + 0x4d5f2c]
push closesocket
push edx
push ecx
call fcn.0048a6f0
inc bl
mov dword [esi*8 + 0x4d5f28], eax
mov dword [esi*8 + 0x4d5f2c], edx
mov eax, dword [esi*8 + 0x4d5f28]
mov byte [0x4d6ce0], bl
cmp bl, 0x37
jne 0x41429f
mov byte [0x4d6ce0], 0
mov cl, byte [0x4b1b60]
inc cl
mov byte [0x4b1b60], cl
cmp cl, 0x37
jne 0x414354
mov byte [0x4b1b60], 0
jmp 0x414354
mov cl, byte [0x4d6ce1]
mov bl, byte [0x4b1b61]
movzx esi, cl
movzx eax, bl
mov eax, dword [eax*4 + 0x4d5e48]
xor eax, dword [esi*4 + 0x4d5e48]
push edi
xor edx, edx
mov edi, closesocket
div edi
inc cl
mov byte [0x4d6ce1], cl
pop edi
mov eax, edx
mov dword [esi*4 + 0x4d5e48], eax
cmp cl, 0x37
jne 0x41430a
mov byte [0x4d6ce1], 0
inc bl
mov byte [0x4b1b61], bl
cmp bl, 0x37
jne 0x414354
mov byte [0x4b1b61], 0
jmp 0x414354
mov ecx, dword [0x4b1b34]
mov edx, dword [0x4b1b30]
push 0
push 0x41a7
push ecx
push edx
call fcn.0046ff80
push 0
push closesocket
push edx
push eax
call fcn.0048a6f0
mov dword [0x4b1b30], eax
mov dword [0x4b1b34], edx
dec eax
pop esi
mov dword [0x4d5e40], eax
pop ebx
cmp eax, 0x7ffffffd
jbe 0x41436c
call fcn.004140d0
mov eax, dword [0x4d5e40]
ret
Function at 0x4144d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x118]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x124]
mov dword [esi], 0xffffffff
test eax, eax
je 0x414522
cmp byte [eax], 0
je 0x414522
push eax
push 0x100
lea eax, [esp + 0x18]
push eax
jmp 0x414531
push 0x4a7ed4
push 0x100
lea ecx, [esp + 0x18]
push ecx
call fcn.004703fd
add esp, 0xc
test edi, edi
je 0x414557
mov eax, dword [esp + 0x128]
test eax, eax
je 0x414557
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.004703fd
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x41458b
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
push esi
call fcn.0046f7d0
add esp, 0xc
mov eax, ebp
test ebx, ebx
je 0x4145b3
mov cx, word [edi + 8]
mov word [ebx], cx
jmp 0x4145b3
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4145a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4145b3
test ebx, ebx
je 0x4145b1
mov eax, 2
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f33a
add esp, 0x104
ret
Function at 0x414b70
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.0046fe20
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x414be3
push esi
call fcn.00414960
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0046f33a
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.004145d0
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0x118
ret
Function at 0x414d00
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x414d80
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4b1c68]
or ecx, dword [ebx*4 + 0x4b1e68]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4b2068]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4b2268]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b1d68]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b1f68]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2168]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4b2368]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4b1c68]
or ecx, dword [ebx*4 + 0x4b1e68]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4b2068]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4b2268]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b1d68]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b1f68]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4b2168]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4b2368]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x414d80
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x41696f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x4169b0
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x416989
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4169ce
dec esi
je 0x4169c5
dec esi
jne 0x4169d3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41aeb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
push esi
push ecx
push 2
push 1
push 0x40000000
push str.Info.pad
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00422a00
add esp, 0x1c
cmp dword [esp + 4], 0xffffffff
mov esi, eax
je 0x41af4a
push 0x47
push 1
lea eax, [esp + 0x14]
push str._d._02.2d
push eax
call fcn.0046f27b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push str.version_s_r_n
push edx
call fcn.0046f27b
add esp, 0x1c
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41af4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0xcc
ret
Function at 0x41b350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b48b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.NCnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
test eax, eax
jne 0x41b3ed
lea eax, [esp + 0x18]
push eax
call fcn.0048756b
add esp, 4
mov dword [edi], eax
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push str.NCnxModeExpire
push eax
mov dword [esp + 0x24], 0x10
call esi
test eax, eax
jne 0x41b432
lea ecx, [esp + 0x18]
push ecx
call fcn.0048756b
add esp, 4
mov dword [ebx], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.CnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
mov esi, eax
test esi, esi
jne 0x41b47d
lea eax, [esp + 0x18]
push eax
call fcn.0048756b
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.0046f33a
add esp, 0x20
ret
Function at 0x41b610
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0xa7c], eax
mov eax, dword [esp + 0xa84]
push edi
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.0041b5f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x41b7af
push esi
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b7a8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b7a8
push 0x104
lea ecx, [esp + 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41b7a8
lea edx, [esp + 0x264]
push 0x5c
push edx
mov esi, str.APMessage.exe
call fcn.0047337b
add esp, 8
lea ebx, [ebx]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x41b6a0
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea eax, [esp + 0x678]
push eax
lea ecx, [esp + 0x26c]
push ecx
call esi
test eax, eax
jbe 0x41b7a8
push 0x104
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jbe 0x41b7a8
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0046fe20
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x684]
mov edx, 1
push ecx
mov word [esp + 0x5c], dx
lea edx, [esp + 0x890]
push 0x4a61b8
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
call fcn.0046f27b
add esp, 0x1c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x89c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41b7a8
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0xa7c]
xor ecx, esp
call fcn.0046f33a
add esp, 0xa80
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0xa80]
pop edi
xor ecx, esp
call fcn.0046f33a
add esp, 0xa80
ret
Function at 0x41b7d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call fcn.0041b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41b888
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b862
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 1
je 0x41b83a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41b83a
call edi
mov esi, eax
test esi, esi
jne 0x41b887
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b885
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41b888
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
mov eax, esi
pop edi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
Function at 0x41c0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
push eax
call fcn.00424f70
mov ebx, eax
lea eax, [ebx + 8]
add esp, 4
mov dword [ebp - 0xc], ebx
cmp eax, 0x400
ja 0x41c0f3
call fcn.00470be0
mov eax, esp
test eax, eax
je 0x41c109
mov dword [eax], 0xcccc
jmp 0x41c106
push eax
call fcn.00470748
add esp, 4
test eax, eax
je 0x41c109
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x41c209
mov ecx, dword [esi]
push ecx
push ebx
push 0
push edi
call fcn.0046fe20
add esp, 0xc
push eax
push esi
call fcn.00425310
add esp, 0xc
test eax, eax
jbe 0x41c202
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x41c183
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41c17d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c147
sub eax, edx
cmp dword [ebx], eax
jbe 0x41c17d
mov edx, esi
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c160
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c170
sub eax, edx
mov dword [ebx], eax
jmp 0x41c183
mov dword [ebx], 0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push edx
push 2
push 2
push 0x40000000
push str.Global.pad
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00422a00
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x41c1cd
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c1cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x41c1ec
push eax
call fcn.0046f243
add esp, 4
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov esi, 0xffffffee
jmp 0x41c1d7
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x41dae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x238]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x41dc2c
cmp eax, ebp
je 0x41dc2c
mov ecx, dword [esp + 0x230]
push ecx
push ebp
push edi
call fcn.0046fe20
lea edx, [esp + 0x2c]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41db50
lea eax, [esp + 0x20]
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x41db70
mov ecx, dword [0x4a8ba0]
mov dword [eax], ecx
mov ecx, dword [0x4a8ba4]
mov dword [eax + 4], ecx
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41dbf9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x230]
push ecx
push edi
push eax
push eax
push str.Data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41dbf9
cmp dword [esp + 0x230], ebp
jbe 0x41dbf9
mov ecx, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push ebx
lea ebp, [esi + 1]
call fcn.0041d6c0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x41dc07
mov dword [ecx], esi
test eax, eax
je 0x41dc11
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f33a
add esp, 0x214
ret
mov esi, 0xfffffffa
jmp 0x41dbfd