joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421290
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
push edi
call fcn.00422970
cmp eax, 5
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jg 0x4212a7
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push esi
push str.SEContainer
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4212db
push 8
push 0x18
push esi
push str.SEContainer
lea ecx, [esp + 0x18]
push ecx
call edi
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret

Function at 0x4212f0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x3c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
jne 0x42130e
mov esi, str.vc8v7vghw7v278vn2v8239vh29vh890m
test ebx, ebx
jne 0x421317
mov ebx, str.aqkeezgxijvlm2op
xor eax, eax
mov ecx, 8
mov byte [esp + 0x18], cl
mov word [esp + 0x1a], ax
mov byte [esp + 0x19], 2
mov dword [esp + 0x1c], 0x6610
mov dword [esp + 0x20], 0x20
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
mov eax, dword [esp + 0x58]
push 0x2c
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4213a1
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
mov edi, 1
push eax
mov dword [esp + 0x20], edi
call esi
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
push 3
push eax
mov dword [esp + 0x24], edi
call esi
mov ecx, dword [esp + 0xc]
push 0
push ebx
push edi
push ecx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4a25
add esp, 0x3c
ret

Function at 0x4213c0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
cmp dword [esp + 4], 0
je 0x421471
cmp dword [esp + 8], 0xffffffff
je 0x421471
push ebp
push esi
xor esi, esi
call fcn.00421290
mov ebp, eax
test ebp, ebp
je 0x42146c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
call fcn.004212f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421462
mov eax, dword [esp + 0x14]
push edi
test al, 0xf
je 0x421415
shr eax, 4
inc eax
shl eax, 4
mov edi, eax
jmp 0x421418
lea edi, [eax + 0x10]
push edi
call fcn.004a41a8
push edi
mov esi, eax
push 0
push esi
call fcn.004a7380
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004a7010
add esp, 0x1c
push edi
lea edx, [esp + 0x1c]
push edx
push esi
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebx
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
ret
Function at 0x421480
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
cmp dword [esp + 4], 0
je 0x42153c
cmp dword [esp + 8], 0xffffffff
je 0x42153c
push ebp
push esi
push edi
xor esi, esi
call fcn.00421290
mov ebp, eax
test ebp, ebp
je 0x421536
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.004212f0
mov edi, eax
add esp, 4
test edi, edi
je 0x42152d
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ebx, eax
call fcn.004a41a8
push ebx
mov esi, eax
push 0
push esi
call fcn.004a7380
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004a7010
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
pop ebx
test eax, eax
jne 0x42151c
push esi
call fcn.004a4a1a
add esp, 4
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
ret

Function at 0x421670
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, edi
shr ecx, 1
inc ecx
push ebp
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x4216c9
cmp eax, ecx
jl 0x4216c9
xor eax, eax
mov word [ebp], ax
test edi, edi
jle 0x4216ba
sub edx, ebp
push ebx
mov dword [esp + 8], edx
push esi
mov ebx, dword [esp + 0xc]
mov edx, eax
and edx, 3
mov dl, byte [edx + 0x4e929c]
add dl, byte [esp + 0x14]
lea esi, [eax + ebp]
xor dl, byte [ebx + esi]
inc eax
xor dl, 0x80
cmp eax, edi
mov byte [esi], dl
jl 0x421695
pop esi
pop ebx
xor eax, eax
mov word [ebp + ecx*2 - 2], ax
mov eax, 1
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x421750
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 2
push 0
push esi
push reloc.WS2_32.dll_accept
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x4217a3
lea ecx, [esp + 8]
push ecx
push esi
push reloc.WS2_32.dll_accept
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
mov eax, dword [esp + 8]
je 0x42179d
test eax, eax
je 0x4217a3
mov dword [esp + 4], eax
jmp 0x4217a7
mov eax, dword [esp + 4]
test eax, eax
jne 0x4217b2
xor al, al
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x4217f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov edx, dword [esi]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call ebx
test eax, eax
jne 0x421857
mov eax, dword [esp + 8]
cmp eax, 4
je 0x421838
cmp eax, 5
jne 0x421857
lea eax, [esp + 4]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push edi
push eax
mov dword [esp + 0x1c], 4
call ebx
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0xc
ret
Function at 0x421b80
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, 0x5a4d
cmp word [esi], ax
je 0x421b8f
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x421b8b
cmp dword [eax + 0x7c], 0
je 0x421b8b
push ebp
mov ebp, dword [eax + 0x78]
mov ecx, dword [ebp + esi + 0x18]
add ebp, esi
test ecx, ecx
je 0x421c3a
cmp dword [ebp + 0x14], 0
je 0x421c3a
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x20]
push edi
add eax, esi
add ebx, esi
xor edi, edi
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x421c23
mov eax, dword [ebx + edi*4]
mov ecx, dword [esp + 0x14]
add eax, esi
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x421c00
test dl, dl
je 0x421bfc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x421c00
add ecx, 2
add eax, 2
test dl, dl
jne 0x421be0
xor eax, eax
jmp 0x421c05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421c16
inc edi
cmp edi, dword [ebp + 0x18]
jl 0x421bd4
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + edi*2]
cmp eax, 0xffffffff
jne 0x421c2a
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
mov edx, dword [ebp + 0x1c]
lea eax, [edx + eax*4]
mov eax, dword [eax + esi]
pop edi
pop ebx
add eax, esi
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x4226f0
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
sub esp, 0x18
push edi
xor edi, edi
cmp dword [esp + 0x20], edi
je 0x422859
push esi
call fcn.00421290
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, edi
je 0x422851
lea eax, [esp + 0x10]
push eax
push edi
push edi
push 0x94
push 0x4ed468
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x422848
mov edx, dword [esp + 0x10]
push ebx
push ebp
call fcn.004226b0
mov ebx, eax
mov eax, dword [esp + 0x30]
dec eax
lea ecx, [ebx - 0xb]
xor edx, edx
div ecx
mov dword [esp + 0x20], ebx
inc eax
imul eax, ebx
push eax
call fcn.004a41a8
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call fcn.004a41a8
add esp, 8
mov esi, eax
jmp 0x422778
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
sub eax, edi
lea ebp, [ebx - 0xb]
cmp eax, ebp
setbe bl
test bl, bl
je 0x42278c
mov ebp, eax
mov ecx, dword [esp + 0x2c]
push ebp
lea edx, [edi + ecx]
push edx
push esi
mov dword [esp + 0x28], ebp
call fcn.004a7010
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
movzx edx, bl
push edx
push 0
push eax
add edi, ebp
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4227ed
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebp
add edx, ecx
push esi
push edx
call fcn.004a7010
add dword [esp + 0x20], ebp
add esp, 0xc
test bl, bl
je 0x422774
mov edi, dword [esp + 0x10]
jmp 0x422800
mov eax, dword [esp + 0x10]
push eax
call fcn.004a4a1a
add esp, 4
xor edi, edi
mov dword [esp + 0x10], edi
push esi
call fcn.004a4a1a
add esp, 4
test edi, edi
je 0x422833
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov esi, ecx
xor eax, eax
shr esi, 1
mov dword [edx], ecx
je 0x422833
lea ecx, [ecx + edi - 1]
mov bl, byte [ecx]
mov dl, byte [eax + edi]
mov byte [eax + edi], bl
mov byte [ecx], dl
inc eax
dec ecx
cmp eax, esi
jb 0x422823
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
pop ebp
pop ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, edi
pop edi
add esp, 0x18
ret
xor eax, eax
pop edi
add esp, 0x18
ret
Function at 0x422860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x422867
xor eax, eax
ret
or eax, 0xffffffff
push esi
cmp edx, 8
jb 0x422944
mov esi, edx
shr esi, 3
push edi
lea ebx, [ebx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ed068]
inc ecx
sub edx, 8
sub esi, 1
jne 0x422880
pop edi
test edx, edx
je 0x42296b
jmp 0x422950
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4ed068]
inc ecx
sub edx, 1
jne 0x422950
not eax
pop esi
ret
Function at 0x422970
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x50e450]
cmp eax, 0xffffffff
jne 0x422bce
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [0x50e450], 0xfffffc18
mov dword [esp + 0xc], 0x114
call fcn.004a7380
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x422af6
cmp dword [esp + 0x10], 2
jne case.default.0x422af6
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x422ae0
mov eax, dword [esp + 8]
test eax, eax
jne 0x422a09
mov eax, 1
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
cmp eax, 1
jne 0x422ab8
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004a669b
add esp, 0xc
test eax, eax
jne 0x422a49
mov eax, 3
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004a669b
add esp, 0xc
test eax, eax
jne 0x422a80
mov eax, 4
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
push 0x7f
lea ecx, [esp + 0x18]
push ecx
push str.Service_Pack_3
call fcn.004a669b
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
cmp eax, 2
jne case.default.0x422af6
mov eax, 6
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
cmp eax, 6
jne 0x422baa
mov eax, dword [esp + 8]
cmp eax, 3
ja case.default.0x422af6
jmp dword [eax*4 + 0x422be4]
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004a669b
add esp, 0xc
test eax, eax
jne 0x422b34
mov eax, 8
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004a669b
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
mov eax, 0xa
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
mov eax, 0xb
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
mov eax, 0x3e8
mov dword [0x50e450], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
mov eax, dword [0x50e450]
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a4a25
add esp, 0x118
ret
Function at 0x422d40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x51b6d4]
sub esp, 0xc
push esi
test eax, eax
jne 0x422d9c
push str.SE_UID
push 4
push eax
push 4
call fcn.00422c00
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x51b6d4], eax
test eax, eax
jne 0x422d9c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 8]
and eax, 0x7fffffff
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call esi
test eax, eax
jne 0x422db2
mov ecx, dword [0x51b6d4]
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422fb0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x50c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x510]
push ebx
push esi
mov esi, dword [esp + 0x51c]
mov dword [esp + 0x18], eax
xor al, al
xor ebx, ebx
mov byte [esp + 0xb], al
mov dword [esp + 0x10], 0x10
cmp esi, 0xffffffff
je 0x422ff5
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x4231d6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
jmp 0x423010
cmp al, bl
jne 0x4231d4
push 0xff
lea ecx, [esp + 0x35]
push ebx
push ecx
mov byte [esp + 0x3c], bl
call fcn.004a7380
push 0x3e7
lea edx, [esp + 0x141]
push ebx
push edx
mov byte [esp + 0x148], bl
call fcn.004a7380
add esp, 0x18
cmp esi, 0xffffffff
je 0x423052
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4231bd
push 0x2710
push 8
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x4231af
xor eax, eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0x2710
push esi
push 0xc
lea ecx, [esp + 0x38]
push ecx
push 0x2d1400
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call ebp
test eax, eax
je 0x423129
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x423129
lea edx, [esp + 0x130]
push edx
add eax, esi
call fcn.00423c30
add esp, 4
lea ebx, [esp + 0x130]
call fcn.00423e20
movsx ax, byte [esp + 0x130]
movzx ecx, ax
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x423127
mov eax, dword [esp + 0x20]
push 0x31
mov edx, ebx
push edx
push eax
jmp 0x423191
xor ebx, ebx
push 0x2710
push ebx
push esi
call fcn.004a7380
add esp, 0xc
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x2710
push esi
push ebx
push ebx
push 0x2d0c10
push edi
call ebp
test eax, eax
je 0x4231a0
lea edx, [esi + 0x10]
push edx
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [esp + 0x130]
call fcn.00423e20
movsx cx, byte [esp + 0x130]
movzx edx, cx
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x42319e
mov ecx, dword [esp + 0x20]
push 0x31
mov eax, ebx
push eax
push ecx
call fcn.004a7800
mov byte [esp + 0x1f], 1
add esp, 0xc
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x524]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x13]
jl 0x423010
pop edi
pop ebp
mov ecx, dword [esp + 0x510]
pop esi
pop ebx
xor ecx, esp
call fcn.004a4a25
add esp, 0x50c
ret
Function at 0x423380
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
push 0
push 1
push 0
push 0
push 0
push str..SMARTVSD
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
jne 0x42343e
push 0x104
push 8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0x104
push 8
mov esi, eax
call ebx
push eax
call edi
mov edi, eax
test esi, esi
je 0x423424
test edi, edi
je 0x423418
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push esi
call ebp
push 0x104
push edi
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push esi
call ebp
push str.IOSUBSYSSMARTVSD.VXD
push edi
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x423434
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push 0x21
push 8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0x210
push 8
mov esi, eax
call ebx
push eax
call edi
mov edi, eax
test esi, esi
je 0x423572
test edi, edi
je 0x423566
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp byte [esp + 0x13], 0
jne 0x423560
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x210
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
push edi
mov byte [esi + 0x20], al
mov dword [esp + 0x28], eax
call fcn.004a7380
add esp, 0xc
push 0
lea eax, [esp + 0x20]
push eax
push 0x210
push edi
push 0x20
push esi
push 0x7c088
push ebp
mov dword [esi], 0x200
mov byte [esi + 0xc], bl
mov byte [esi + 4], 0
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov byte [esi + 8], 0
mov byte [esi + 9], 0xa0
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42354a
lea ebx, [edi + 0x24]
lea eax, [ebx + 1]
mov ebp, 0xa
jmp 0x423500
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
sub ebp, 1
jne 0x423500
push 0x31
push ebp
mov ebp, dword [esp + 0x2c]
push ebp
call fcn.004a7380
push 0x14
push ebx
push ebp
call fcn.004a7800
add esp, 0x18
mov ebx, ebp
call fcn.00423e20
movsx ax, byte [ebp]
movzx ecx, ax
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x42354a
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc ebx
cmp ebx, 0x10
mov dword [esp + 0x14], ebx
jl 0x423473
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x423582
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4238d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x42391d
mov eax, dword [0x5115e4]
test eax, eax
jne 0x423935
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5115e4], eax
cmp eax, 0x20
jae 0x423935
mov dword [0x5115e4], 0
xor al, al
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.004a4a25
add esp, 0x1a0
ret
cmp dword [0x5115e8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x423955
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x5115e8], eax
test eax, eax
je 0x42391d
push 0x511098
push 0x511094
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x5115e8]
cmp dword [0x5115ec], 0
jne 0x42398c
mov ecx, dword [0x5115e4]
push str.SnmpExtensionInitEx
push ecx
call esi
mov dword [0x5115ec], eax
test eax, eax
je 0x42391d
cmp dword [0x5115f0], 0
jne 0x4239b0
mov edx, dword [0x5115e4]
push str.SnmpExtensionQuery
push edx
call esi
mov dword [0x5115f0], eax
test eax, eax
je 0x42391d
cmp dword [0x5115f4], 0
jne 0x4239d3
mov eax, dword [0x5115e4]
push str.SnmpExtensionTrap
push eax
call esi
mov dword [0x5115f4], eax
test eax, eax
je 0x42391d
mov ecx, dword [esp + 0x19c]
pop esi
xor ecx, esp
mov al, 1
call fcn.004a4a25
add esp, 0x1a0
ret

Function at 0x4240a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [esi + 0x10]
mov dl, byte [esi + 0x11]
mov dword [esp], eax
mov al, byte [esi + 0x12]
mov byte [esp + 4], cl
movzx ecx, byte [esi + 0x13]
push ebx
mov byte [esp + 0xa], al
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], cl
mov dword [esp + 0x10], edi
lea ebx, [edi + 8]
test eax, eax
je 0x4240f8
push eax
call fcn.004a588e
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push ebx
call fcn.004a41a8
push 8
lea edx, [esp + 0x14]
push edx
push 8
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.004a5651
mov eax, dword [esi + 4]
push edi
push ebp
add eax, 8
push edi
push eax
call fcn.004a5651
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
add esp, 0x24
push 0
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.004a4a25
add esp, 0x10
ret 8