joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d810
Capabilities:
Encrypt data using curve25519
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x550014]
xor edx, ebp
mov dword [esp + 0x4c8], edx
xor edx, edx
dec edx
lea esi, [esp + 0x470]
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movaps xmmword [esp + 0x400], xmm0
movaps xmmword [esp + 0x410], xmm1
and byte [esp + 0x400], 0xf8
mov cl, byte [esp + 0x41f]
and cl, 0x3f
or cl, 0x40
mov byte [esp + 0x41f], cl
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
lea edx, [esp + 0x4a0]
movaps xmmword [edx + 0x10], xmm1
movaps xmmword [edx], xmm0
and byte [edx + 0x1f], 0x7f
mov ecx, esi
call fcn.004527d0
xorps xmm0, xmm0
movups xmmword [esp + 0x44c], xmm0
movups xmmword [esp + 0x45c], xmm0
mov dword [esp + 0x46c], 0
mov dword [esp + 0x448], 1
movups xmmword [esp + 0x428], xmm0
movups xmmword [esp + 0x438], xmm0
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [esi + 4]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc4], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x268], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x22c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x94], eax
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x44c]
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x450]
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x454]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x458]
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x45c]
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x464]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x468]
mov dword [esp + 0xe0], eax
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x428]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x42c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x430]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x434]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x438]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x43c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x440]
mov dword [esp + 0x118], eax
mov eax, 0xfe
mov edx, dword [esp + 0x444]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x230], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x78], 0
xor ecx, ecx
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x40e5775a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2a35417d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40240d
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 0x40244e
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 0x402427
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40246c
dec esi
je 0x402463
dec esi
jne 0x402471
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 0x40668f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004698aa
add ebp, 0x98
leave
ret

Function at 0x406afb
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00469d10
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4c6f4c], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x406bdf
push esi
xor esi, esi
cmp word [0x4c6538], si
je 0x406bcd
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.0046a390
push str.SerialNumber.txt
push 0x104
mov edi, 0x4c6538
push edi
mov dword [ebp - 0x80], esi
call fcn.004694b4
add esp, 0x18
push esi
push 2
push 4
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406bcc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str._s___X__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
push dword [ebp - 0x7c]
push str._s___X_
call fcn.00409158
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4c6748
call fcn.0046bf5a
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4c6740], ebx
call fcn.004698aa
add ebp, 0x1f8c
leave
ret
Function at 0x407cff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x200]
lea esi, [ebp + 0x1f0]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x204]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
movsd dword es:[edi], dword [esi]
call fcn.004065b6
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push 0x20019
xor edi, edi
push edi
mov eax, ebx
push eax
push closesocket
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x407ddb
cmp dword [ebp - 0x74], edi
jne 0x407d83
xor eax, eax
jmp 0x407da3
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00406299
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00406ace
cmp esi, edi
jne 0x407ddb
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x407ddb
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x2c], ecx
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e4]
xor ecx, ebp
call fcn.004698aa
add ebp, 0x1e8
leave
ret
Function at 0x408169
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x22c]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str._SerialNumber_SetMasterVersion
xor ebx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00406afb
sub esp, 0xc
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
call fcn.004064f6
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x408311
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1a0]
movsd dword es:[edi], dword [esi]
call fcn.004063e5
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x408308
movzx eax, byte [ebp + 0x23c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x78], eax
pop edi
cmp byte [ebp + 0x23c], bl
je 0x408256
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbc0
push dword [ebp - 0x74]
call esi
jmp 0x408264
push 0x49fbc0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x240]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x240], bl
je 0x408289
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbc4
push dword [ebp - 0x74]
call esi
jmp 0x408297
push 0x49fbc4
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x244]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x244], bl
je 0x4082bc
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x48936c
push dword [ebp - 0x74]
call esi
jmp 0x4082ca
push 0x48936c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x248]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x248], bl
je 0x4082ef
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49fbbc
push dword [ebp - 0x74]
call esi
jmp 0x4082fd
push 0x49fbbc
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49fbc8
mov ebx, esi
call fcn.00406afb
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
add ebp, 0x224
leave
ret 0x20
Function at 0x40833a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x274]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x284]
push str._SerialNumber_GetCustomData
xor ebx, ebx
mov dword [ebp - 0x2c], esi
call fcn.00406afb
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x408395
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x408492
or dword [esi], 0xffffffff
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
call fcn.004064f6
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push closesocket
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40848a
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1e8]
movsd dword es:[edi], dword [esi]
call fcn.004063e5
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408480
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x49fcb0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x408479
cmp dword [ebp - 0x80], edi
ja 0x408479
mov eax, dword [ebp + 0x288]
dec eax
je 0x40846b
sub eax, 6
je 0x408460
mov dword [ebp - 0x30], 0xa0
jmp 0x408479
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x408474
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x38]
call ebx
jmp 0x408485
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x30]
push str._SerialNumber_GetCustomData_dwReturnCode
call fcn.00406afb
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004698aa
add ebp, 0x26c
leave
ret 0x18
Function at 0x409158
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.00469d10
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x3fe4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x3ff4]
push eax
push dword [ebp + 0x3ff0]
mov esi, 0x1000
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0046d648
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x6e]
push 0xa
pop ecx
cdq
idiv ecx
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push str._02.2u:_02.2u:_02.2u__02.2u
lea eax, [ebp + 0x3fa4]
push 0x20
push eax
call fcn.0046988e
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4c7168], bx
je 0x409205
push 0x4c7168
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046988e
add esp, 0x18
jmp 0x40921b
push eax
push 0x49ec48
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046988e
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4c7164]
cmp eax, ebx
je 0x40923d
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4c7160]
cmp eax, ebx
je 0x40926a
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0x1fa4]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0x6c], 1
call edi
cmp dword [0x4c7158], ebx
je 0x4092dc
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4c6f50
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x489b80
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.004694b4
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.00471c4a
pop ecx
push eax
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c715c], ebx
je 0x40933e
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4c7168], bx
je 0x40930d
push 0x4c7168
push 0x49ec48
push esi
push eax
call fcn.0046988e
add esp, 0x14
jmp 0x40931c
push 0x489b1c
push esi
push eax
call fcn.0046988e
add esp, 0x10
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1fa4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x4a
push dword [0x4c715c]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
add ebp, 0x3fe8
leave
ret
Function at 0x409a10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4a86f0]
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.00411550
add esp, 0x1c
cmp dword [esp + 4], 0xffffffff
mov esi, eax
je 0x409aaa
push 0x47
push 1
lea eax, [esp + 0x14]
push str._d._02.2d
push eax
call fcn.004697eb
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push str.version_s_r_n
push edx
call fcn.004697eb
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 0x409aaa
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.004698aa
add esp, 0xcc
ret

Function at 0x409eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x4a86f0]
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 0x409feb
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 0x409f4d
lea eax, [esp + 0x18]
push eax
call fcn.00482091
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 0x409f92
lea ecx, [esp + 0x18]
push ecx
call fcn.00482091
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 0x409fdd
lea eax, [esp + 0x18]
push eax
call fcn.00482091
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.004698aa
add esp, 0x20
ret
Function at 0x40a170
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4a86f0]
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.0040a150
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a30f
push esi
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a308
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a308
push 0x104
lea ecx, [esp + 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a308
lea edx, [esp + 0x264]
push 0x5c
push edx
mov esi, str.APMessage.exe
call fcn.0046cd13
add esp, 8
lea ebx, [ebx]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x40a200
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 0x40a308
push 0x104
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jbe 0x40a308
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0046a390
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 0x49ec48
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
call fcn.004697eb
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 0x40a308
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.004698aa
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.004698aa
add esp, 0xa80
ret
Function at 0x40a330
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a86f0]
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.0040a150
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a3e8
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a3c2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 1
je 0x40a39a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40a39a
call edi
mov esi, eax
test esi, esi
jne 0x40a3e7
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a3e5
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a3e8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret
mov eax, esi
pop edi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret