joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e40
Capabilities:
Check for vm using instruction vpcext

Disassembly:
adc al, byte [eax]
pop es
sbb byte [edi + 0xe], dh
add byte [eax + 0x4f], dl
pop edx
Function at 0x497137
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e42
mov eax, dword [0x530a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406258
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497179
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4972d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004063b6
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5345a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040344a
mov ecx, dword [esi*4 + 0x5345a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4972ce
cmp eax, dword [edi + ecx + 0x24]
jne 0x4972ce
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4972ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040344a
add esp, 0x14
test edx, edx
jl 0x4972ce
jg 0x497244
test eax, eax
jb 0x4972ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4972ce
jl 0x49725e
cmp dword [ebp - 0x1008], eax
ja 0x4972ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49727c
test ebx, ebx
je 0x4972b5
cmp ecx, edi
jae 0x4972b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x497296
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4972a2
cmp byte [ecx + 1], 0xa
jne 0x4972a2
inc ecx
jmp 0x4972a2
movzx eax, al
movsx eax, byte [eax + 0x530d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49727c
cmp edx, ebx
jne 0x49727c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4972d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040320b
leave
ret
Function at 0x497a14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5345a8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497a54
cmp byte [ebx], 0xa
jne 0x497a54
or byte [eax + edi + 0x28], 4
jmp 0x497a59
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x497b57
mov al, byte [edx]
cmp al, 0x1a
je 0x497b39
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497a88
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x497aad
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x497ab7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x497a6a
jmp 0x497b57
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497b34
cmp dword [ebp - 0xc], 0
je 0x497b34
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5345a8]
test byte [eax + edi + 0x28], 0x48
je 0x497b0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497af9
mov byte [esi], dl
jmp 0x497b0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5345a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497b57
cmp byte [ebp - 1], 0xa
jne 0x497b1d
cmp esi, ebx
jne 0x497b1d
mov byte [esi], 0xa
jmp 0x497b56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497b57
mov byte [esi], 0xd
jmp 0x497b56
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5345a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497b53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497b57
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497bb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5345a8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497bf6
cmp word [esi], dx
jne 0x497bf6
or byte [edi + eax + 0x28], 4
jmp 0x497bfb
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x497d4e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x497d2e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x497c3d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x497c73
cmp eax, edx
jae 0x497c7f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x497c15
jmp 0x497d4e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497d2a
cmp dword [ebp - 0x14], 0
je 0x497d2a
mov eax, dword [ebx*4 + 0x5345a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x497d02
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x497ccb
mov word [esi], cx
jmp 0x497cfe
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5345a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5345a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5345a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x497d4e
pop ebx
cmp word [ebp - 4], bx
jne 0x497d13
cmp esi, dword [ebp + 0xc]
jne 0x497d13
mov word [esi], bx
jmp 0x497d4b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x497d4e
push 0xd
jmp 0x497d47
mov ecx, dword [ebx*4 + 0x5345a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497d45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497d4e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49fe47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x530a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49fe92
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a0309
test al, al
jne 0x49fe8c
sub edx, 2
cmp edx, edi
jne 0x49fe72
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49feb4
lea eax, [edi + 2]
cmp edx, eax
je 0x49feb4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049fa40
add esp, 0x10
jmp 0x49ffae
push esi
lea ecx, [ebp - 0x255]
call fcn.004a0309
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fef7
push dword [ebp - 0x25c]
jmp 0x49fea4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ff34
cmp word [ebp - 0x226], 0
je 0x49ff55
cmp word [ebp - 0x226], ax
jne 0x49ff34
cmp word [ebp - 0x224], 0
je 0x49ff55
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049fa40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ffa1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ff0e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ff89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ffae
push 0x49f428
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004058d5
add esp, 0x10
jmp 0x49ff7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040320b
leave
ret
Function at 0x1000afc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000afcf
pop dword [ebp - 0xc]
mov eax, 0x99497eb9
sub eax, 0x8948ceea
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf6bb467a
add dword [ebp - 0x1c], 0x5796fed1
mov dword [ebp - 0x18], 0x13792ea9
add dword [ebp - 0x18], 0x1eba1d9c
mov dword [ebp - 0x14], 0x5d8dbabc
add dword [ebp - 0x14], 0xeebe8972
mov dword [ebp - 0x10], 0xd308d776
sub dword [ebp - 0x10], 0xd308d776
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1149c4a7
sub eax, 0x1488457
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xdfcc94c7
sub dword [ebp - 0x1c], 0x6b5a2b71
mov dword [ebp - 0x18], 0xc85cbb5f
sub dword [ebp - 0x18], 0x86f059ea
mov dword [ebp - 0x14], 0xb03fc65e
sub dword [ebp - 0x14], 0x4cd059f2
mov dword [ebp - 0x10], 0x9a71e640
add dword [ebp - 0x10], 0x658e19c0
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38f98
push 0
call eax
mov ecx, 0x1b775aff
add ecx, 0xe488e8e9
mov esi, eax
mov edi, 0x62b60075
sub edi, 0x52b41e75
add edi, dword [ebp - 0xc]
mov edx, 0x78e472be
sub edx, 0xfda95fb
sub dword [ebp - 8], esi
mov ebx, dword [edi]
sub dword [ebp - 8], 0x292c0c16
xor ebx, edx
sub dword [ebp - 4], esi
mov dword [esi], ebx
sub dword [ebp - 4], ecx
add esi, 4
add edi, 4
loop 0x1000b0ec
add eax, 0x397b34fa
sub eax, 0x397a3287
mov ebx, eax
add eax, 0xb9b22a1b
add eax, 0x464dd5ea
mov ecx, 0x59d3fd87
add ecx, 0xb62c0279
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402780
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
push 0x104
push 0x415f00
call fcn.00409ea0
add esp, 8
push 0x104
push 0x4148c0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x414a20
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x414a20
push str._sdrivers
push 0x415840
call ebx
add esp, 0xc
push 0x4148c0
push str._s_system32drivers
push 0x415a80
call ebx
add esp, 0xc
push 0x4148c0
push str._sOptionsCABS
push 0x416ae0
call ebx
add esp, 0xc
push 0x4148c0
push str._sinfcatalog
push 0x4153c0
call ebx
add esp, 0xc
push 0x4148c0
push str._sOptionsInstall
push 0x4147a0
call ebx
add esp, 0xc
push 0
push 0x416ae0
call fcn.00409e50
add esp, 8
test eax, eax
je 0x402873
push 0x4148c0
lea eax, [esp + 0x118]
push str._sOptions
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
lea ecx, [esp + 0x114]
push 0
push ecx
call esi
push 0
push 0x416ae0
call esi
push 0
push 0x4147a0
call esi
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0x104
push 0
push str.setup.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4028b5
push eax
push str.Debug
push str.SearchPath___failed
push eax
call fcn.00404fa0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push 0x415080
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x415080
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x4148c0
push str._sINF
push 0x415ce0
call ebx
add esp, 0xc
push 0
push 0x415ce0
call fcn.00409e50
add esp, 8
test eax, eax
je 0x402927
mov edi, 0x4148c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x415ce0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x415ce0
push str._sOTHER
push 0x416020
call ebx
add esp, 0xc
push 0x104
push 0x415080
push 0x415080
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x415080
call fcn.00402a00
mov eax, dword [0x4106b8]
add esp, 4
mov dword [0x414b40], eax
call fcn.004099f0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x402980
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0x104
push 0
push str.setup.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4029c5
push eax
push str.Debug
push str.SearchPath___failed
push eax
call fcn.00404fa0
add esp, 0x10
xor eax, eax
add esp, 0x108
ret
mov edx, dword [esp]
lea eax, [esp + 4]
sub edx, eax
lea ecx, [esp + 4]
push edx
push ecx
push 0x415080
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x415080
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
add esp, 0x108
ret
Function at 0x402a00
Capabilities:
Create directory
Get disk information
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x402ba3
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionSetup]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [0x410268], 1
jne 0x402b7a
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push esi
push edx
push 0x414e60
push 0
push 0
push str.SourcePath
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov cl, byte [0x414e60]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edx, [esp + 0xc]
mov byte [esp + 0xc], cl
push edx
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
call esi
cmp byte [0x41600c], 1
je 0x402b6f
push 0x4107a0
push 0x414e60
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x402b6f
push 0x41079c
push 0x414e60
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x402b6f
push 0x410798
push 0x414e60
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x402b6f
push 0x410794
push 0x414e60
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x402b6f
push 0x414e60
push edi
call fcn.0040a7c0
add esp, 8
test eax, eax
je 0x402b59
lea eax, [esp + 0xc]
push eax
call esi
cmp eax, 3
jne 0x402b59
push 0
push str.Debug
push str.SourcePath___OldPath
push 0
call fcn.00404fa0
add esp, 0x10
push 0
push 0x414e60
call fcn.00409e50
add esp, 8
test eax, eax
je 0x402b4d
push 0
push 0x414e60
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [0x414454], 1
jmp 0x402b6f
push 0
push str.Debug
push str.SourcePath__OldPath_or_Not_Fixed_Drive
push 0
call fcn.00404fa0
add esp, 0x10
mov dword [0x410268], 0
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
inc eax
push eax
push edi
push 1
push 0
push str.SourcePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0xc
ret
Function at 0x403040
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x414498
push eax
call esi
mov edi, dword [esp + 0x214]
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 3
jle 0x40308b
lea edx, [esp + 0x10]
push 0x410350
push edx
call edi
mov ebx, dword [esp + 0x218]
lea eax, [esp + 0x10]
push ebx
push eax
call edi
lea ecx, [esp + 0x110]
push 0x415080
push ecx
call esi
push 0x415080
call ebp
cmp eax, 3
jle 0x4030c4
lea edx, [esp + 0x110]
push 0x410350
push edx
call edi
lea eax, [esp + 0x110]
push ebx
push eax
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00409e50
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
cmp eax, 0xffffffff
je 0x4030f5
lea edx, [esp + 0x10]
push pe_nt_image_headers32
push edx
call esi
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00409e50
add esp, 8
cmp eax, 0xffffffff
je 0x40312a
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
push 1
call fcn.004073e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret

Function at 0x403210
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x244
lea edx, [esp]
push ebp
push eax
push ecx
push edx
call fcn.004032d0
add esp, 0xc
test eax, eax
je 0x4032c8
lea eax, [esp + 0x108]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4032c8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x258]
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004032d0
add esp, 0xc
test eax, eax
je 0x4032b6
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00409e50
add esp, 8
test eax, eax
jne 0x4032b6
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call edi
push 1
call fcn.004073e0
add esp, 4
lea edx, [esp + 0x114]
push edx
push ebp
call ebx
test eax, eax
jne 0x403265
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x244
ret
Function at 0x403dc0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
push 0x20008
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403e0b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push 0x400
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x403e45
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403e73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x24]
xor ebp, ebp
xor esi, esi
cmp eax, ebx
jbe 0x403eaa
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x28]
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jne 0x403ea5
mov eax, dword [esp + 0x24]
inc esi
add edi, 8
cmp esi, eax
jb 0x403e89
jmp 0x403eaa
mov ebp, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x4045f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x41443c]
sub esp, 8
cmp eax, 1
jne 0x404656
mov ecx, dword [str.SystemCurrentControlSetServicesLtmodemr]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4046a6
lea edx, [esp + 4]
mov dword [esp + 4], 0x280
push edx
push 0x414f80
push eax
push eax
mov eax, dword [esp + 0x10]
push str.ModemName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
mov eax, dword [str.SystemCurrentControlSetServicesLtmodem]
lea edx, [esp]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4046a6
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x414f80
push eax
push eax
push str.ModemName
push edx
mov dword [esp + 0x1c], 0x280
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x404e10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14c
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.SOFTWAREMicrosoftRASTAPI_DEVICESUnimodem
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.Lucent_Win_Modem]
mov ecx, dword [0x410d84]
mov edx, dword [0x410d88]
mov dword [esp + 0x14], eax
mov eax, dword [0x410d8c]
mov dword [esp + 0x18], ecx
mov cl, byte [0x410d90]
mov dword [esp + 0x1c], edx
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], cl
call fcn.004066c0
lea edx, [esp + 0xc]
lea eax, [esp + 0x28]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404e9d
push 0
push str.Debug
push str.Wrong_access_RAS_key
push 0
call fcn.00404fa0
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 6
push 0x416380
push 3
push 0
push str.Address
push ecx
call edi
test eax, eax
je 0x404ed4
push 0
push str.Error:_2
push str.Wrong_access_RAS_key
push 0
call fcn.00404fa0
add esp, 0x10
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x58]
push edx
push eax
push 0
push 0
push str.Friendly_Name
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404f16
push 0
push str.Error:_3
push str.Wrong_access_RAS_key
push 0
call fcn.00404fa0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x14c
ret
lea esi, [esp + 0x14]
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x404f46
test cl, cl
je 0x404f42
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x404f46
add eax, 2
add esi, 2
test cl, cl
jne 0x404f1e
xor eax, eax
jmp 0x404f4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404f96
push 0x414f80
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x10]
push 0x414f80
push 7
push 0
push str.Friendly_Name
push eax
call edi
test eax, eax
je 0x404f8b
push 0
push str.Error:_4
push str.Wrong_access_RAS_key
push 0
call fcn.00404fa0
add esp, 0x10
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x14c
ret