joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448e10
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], eax
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
cmp ebx, 4
jb 0x448f8c
inc ebp
sub ebx, 2
push str.0123456789abcdefABCDEF:.
push ebp
call fcn.0046ec80
add esp, 8
cmp ebx, eax
je 0x448f12
mov ebx, eax
add eax, ebp
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x448f8c
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x495f6c
push esi
call fcn.0046cc80
add esp, 0xc
test eax, eax
jne 0x448e8f
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x448e8f
cmp cl, 0x5d
cmovne esi, eax
mov cl, byte [esi]
test cl, cl
je 0x448f8c
lea edx, [esp + 0x18]
mov al, cl
sub edx, esi
cmp cl, 0x5d
je 0x448eb9
cmp edi, 0xf
jge 0x448eb9
mov byte [edx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
mov cl, al
test al, al
jne 0x448ea1
test edi, edi
je 0x448f8c
cmp byte [esi], 0x5d
jne 0x448f8c
cmp edi, 0x10
jae 0x448fa4
lea eax, [esp + 0x18]
mov byte [esp + edi + 0x18], 0
push eax
call dword [0x4af00c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x448f09
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004646e4
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [ebx + ebp], 0
push eax
push ebp
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x448f8c
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x448f73
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x448f47
sub edx, ecx
cmp edx, ebx
jae 0x448f73
lea ecx, [esp + 0x28]
mov esi, ebp
mov eax, ecx
sub esi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x448f60
mov byte [edx + ebp + 1], al
mov ebx, edx
pop edi
pop esi
mov byte [ebx + ebp], 0x5d
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004646e4
add esp, 0x4c
ret
mov ecx, dword [esp + 0x58]
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004646e4
add esp, 0x4c
ret
call fcn.00465048
int3
Function at 0x450f00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x4b04b0]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x450f51
push 3
push 2
push eax
push eax
push 6
call fcn.00453270
add esp, 0x14
test al, al
je 0x450f45
mov dword [0x4b04b0], 2
add esp, 0xc
ret
mov dword [0x4b04b0], 1
jmp 0x450f56
cmp eax, 2
je 0x450f9c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x450f81
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x450f9c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x451a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x451ad0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x451a9d
mov dword [edi], 0x51
jmp 0x451acd
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004304d0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0041d170
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.0041d280
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004646e4
add esp, 0x104
ret

Function at 0x451b10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x451c48
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x451c48
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.004661d0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x451bd6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004304d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0041d170
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004646e4
add esp, 0x188
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0041f370
add esp, 0x10
test al, al
jne 0x451c48
call fcn.0046d544
mov esi, dword [eax]
call fcn.0046d544
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004304d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041d170
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004646e4
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004646e4
add esp, 0x188
ret
Function at 0x457a50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4af454]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0042fb20
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x457acf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004305c0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0041d170
push esi
call dword [0x4af004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x457c2f
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x457b29
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004305c0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0041d170
push 0
mov esi, 0x4d
call dword [0x4af004]
add esp, 0x20
jmp 0x457c21
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x457b69
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004305c0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0041d170
add esp, 0x1c
mov esi, 0x4d
jmp 0x457c0d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x457b97
jg 0x457b7d
cmp edi, 0x100000
jbe 0x457b97
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0041d170
add esp, 0xc
mov esi, 0x4d
jmp 0x457c0d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x457baf
lea esi, [eax + 0x1b]
jmp 0x457c0d
test edi, edi
je 0x457bf4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457c4c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x457c48
add esi, eax
cmp esi, edi
jb 0x457bc0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00457850
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4af004]
add esp, 4
push dword [esp + 0x20]
call fcn.0046c182
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004646e4
add esp, 0x120
ret
mov edi, esi
jmp 0x457bf4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004305c0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0041d170
add esp, 0x1c
mov esi, 0x4d
jmp 0x457c0d
Function at 0x45e040
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45e06b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x45e0ba
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x45e0c2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45e136
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45e0f0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x45e165
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x499b65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x499b66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x45e140
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x45e170
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004203a0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x45e2f2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x45e1f2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45e266
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45e220
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x45e295
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x499b65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x499b66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x45e270
push dword [esp + 0x30]
call fcn.004203a0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x45e2c0
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x4af004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x45e3c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x45e3e6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45e41e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.004203a0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x45e475
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x45e484
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x45e495
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x45f0d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x45f11b
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x45f0e1
pop edi
pop esi
pop ebx
ret
Function at 0x47f07a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047eef9

Function at 0x483da9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00483a69
Function at 0x419991
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0xa093842e
mov eax, dword [0x3b9c9d97]
lodsd eax, dword cs:[esi]
scasb al, byte es:[edi]
xor byte cs:[ebp - 0x5152cf52], ch
mov bh, 0x35
scasb al, byte es:[edi]
dec ebp
xor byte cs:[esi], ch
xor byte cs:[esi], ch
mov bh, 0x2e
aaa
sub eax, 0x2e2e2e2e
adc dh, byte cs:[edx]
scasb al, byte es:[edi]
xor al, 0x2e
sbb dword [ebp + 0x7277a2a0], 0xaead2e3b
xor byte cs:[ebp - 0x5152cf52], ch
das
xor eax, 0x302e4dae
xor byte [esi], ch
xor byte cs:[esi], ch
xor byte [esi], ch
xor byte cs:[esi], ch
das
cmp dword cs:[esi], ebp
adc dh, byte cs:[edx]
scasb al, byte es:[edi]
cmp ch, byte [esi]
jno 0x41993f
lcall 0x7299, 0x918f909a
invalid

Function at 0x431a74
Capabilities:
Encode data using xor

Disassembly:
cmp byte cs:[esi], ch
xor byte cs:[esi], ch
das
cmp byte cs:[esi], ch
sub eax, 0x2e2e2e2e
fidiv word cs:[edx]
scasb al, byte es:[edi]
cmp al, 0x2e
adc byte [ebx - 0x5d5e686b], 0xa0
invalid
pop eax
cmp ch, byte [esi]
scasb al, byte es:[edi]
sub al, 0x3b
jle 0x431a1d
popfd
xchg ecx, eax
xchg ebx, eax
mov eax, dword [0x8fa281a1]
mov byte [0x2e32a1a3], al
aaa
cmp byte cs:[ebp - 0x5152cf52], ch
xor dword cs:[edi], esi
scasb al, byte es:[edi]
push ecx
cmp byte cs:[esi], ch
xor byte cs:[esi], ch
xor dword [esi], ebp
invalid
Function at 0x4179f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4b1780]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x4b7050], 0
push esi
je 0x417a20
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0048bbd1
add esp, 4
test eax, eax
je 0x417a3e
push 0
mov ecx, eax
call fcn.00417850
mov dword [0x4b7050], eax
jmp 0x417a48
mov dword [0x4b7050], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x417a70
xor ecx, ecx
jmp 0x417a84
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417a75
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.0041ab80
mov ecx, dword [0x4b7050]
lea eax, [esp + 4]
push eax
call fcn.00418a10
cmp dword [esp + 0x18], 8
jb 0x417ab2
push dword [esp + 4]
call fcn.0048bc47
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret

Function at 0x418a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4b1780]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x413a4c
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
lea edx, [ecx + 2]
mov word [esp + 0x24], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a63
sub ecx, edx
sar ecx, 1
push ecx
push 0x413a4c
lea ecx, [esp + 0x2c]
call fcn.0041ab80
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 3
lea edx, [esp + 0x2c]
call fcn.0042bcc0
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x418aa9
push dword [esp + 0x24]
call fcn.0048bc47
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x418ae7
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00417bd0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x418afa
push dword [esp + 0xc]
call fcn.0048bc47
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 4
Function at 0x422c20
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x4b1780]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x422c5f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x422c79
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x422cdb
lea ecx, [esp + 0x28]
call fcn.0042ead0
mov edx, ecx
mov ecx, esi
call fcn.00423860
test al, al
je 0x422cc4
cmp byte [esp + 0x30], bl
je 0x422cc4
cmp dword [esi + 0x14], 8
jb 0x422ca4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x422cce
mov eax, dword [esi]
jmp 0x422cd0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422c63
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.00447e1c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x422cfd
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x422d01
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x422d56
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x422c49
test eax, eax
je 0x422d97
cmp eax, 2
je 0x422d97
cmp eax, 0x402
je 0x422d97
cmp eax, 0x7c
je 0x422d97
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x423190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42319e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4231b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4231be
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4231d2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4231e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b1780]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x42333d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00419210
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
call fcn.00419f80
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a0a0
cmp eax, 0xffffffff
je 0x42328b
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.0041ad50
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041dea0
cmp esi, eax
je 0x4232ad
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419f80
cmp dword [ebp - 0x234], 8
jb 0x4232c4
push dword [ebp - 0x248]
call fcn.0048bc47
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4232f8
push dword [ebp - 0x230]
call fcn.0048bc47
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x42332c
push dword [ebp - 0x260]
call fcn.0048bc47
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0048f991
mov esp, ebp
pop ebp
ret