joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1028a3e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x102dd418]
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]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1c4]
test dword [eax + 0x44], 0x800
jne 0x1028a50e
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.1029c430
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1028a49a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.1027f6c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1026e880
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1029978f
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.1026fb30
add esp, 0x10
test al, al
jne 0x1028a50e
push edi
call fcn.102a36e5
mov esi, eax
call fcn.102a36e5
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.1027f6c0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1026e880
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1029978f
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.1029978f
add esp, 0x188
ret

Function at 0x1028a790
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x67f], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1028a7df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x1028a84d
push dword [esi + 0x628]
mov dword [esp + 0x14], 1
call fcn.10270cb0
push dword [esi + 0x62c]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10270cb0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1028a856
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push esi
call fcn.1026e950
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1029978f
add esp, 0x18
ret
Function at 0x1028a870
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1028a8d5
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1027f6c0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.1026e950
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.1029978f
add esp, 0x108
ret
Function at 0x10293a60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x102dd418]
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.102b060f
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10293ad8
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1027f7b0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.1026e880
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x10293c17
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10293b2a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1027f7b0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.1026e880
add esp, 0x1c
mov esi, 0x4d
jmp 0x10293c17
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10293b6a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1027f7b0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.1026e880
add esp, 0x1c
mov esi, 0x4d
jmp 0x10293c0d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x10293b98
jg 0x10293b7e
cmp edi, 0x100000
jbe 0x10293b98
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.1026e880
add esp, 0xc
mov esi, 0x4d
jmp 0x10293c0d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10293bb0
lea esi, [eax + 0x1b]
jmp 0x10293c0d
test edi, edi
je 0x10293bf4
nop dword [eax]
nop dword [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 0x10293c51
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10293c4d
add esi, eax
cmp esi, edi
jb 0x10293bc0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.10293860
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x102dd004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x10293c32
push eax
call fcn.102a2a5d
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1029978f
add esp, 0x120
ret
mov edi, esi
jmp 0x10293bf4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1027f7b0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.1026e880
add esp, 0x1c
mov esi, 0x4d
jmp 0x10293c0d
Function at 0x10297300
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10297327
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x1029736f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x10297373
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x102973d5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10297394
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x10297407
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x102cbce1
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x102cbce2
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x102973e0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10297580
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
lea eax, [esp]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x102975a5
mov eax, 0x1b
add esp, 8
ret
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x102975d5
push eax
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
add esp, 8
ret
push dword [esp + 0x14]
call fcn.10270c90
add esp, 4
push 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [esp]
push ecx
push dword [esp + 0x10]
call fcn.10297520
add esp, 8
xor eax, eax
add esp, 8
ret

Function at 0x102b5b15
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102b5994

Function at 0x102ba18e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102b9e4e
Function at 0x40de12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40de21
pop dword [ebp - 0x14]
mov eax, 0x51bdb90a
add eax, 0xae832517
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x9c0abb90
sub dword [ebp - 0x24], 0x4db87645
mov dword [ebp - 0x20], 0x56615952
sub dword [ebp - 0x20], 0x242e0d0d
mov dword [ebp - 0x1c], 0xacb264c4
add dword [ebp - 0x1c], 0x9f99df6a
mov dword [ebp - 0x18], 0x4d836206
add dword [ebp - 0x18], 0xb27c9dfa
lea eax, [ebp - 0x24]
push eax
mov eax, 0xde647280
sub eax, 0xde1ec21c
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x134b0caa
add dword [ebp - 0x24], 0x61275cac
mov dword [ebp - 0x20], 0x69a17a49
add dword [ebp - 0x20], 0xd7cae72c
mov dword [ebp - 0x1c], 0xff0ed960
sub dword [ebp - 0x1c], 0x9b9f6cf4
mov dword [ebp - 0x18], 0xc771f4fe
sub dword [ebp - 0x18], 0xc771f4fe
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x2885486c
add eax, 0xd7c06814
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x52145
push 0
call eax
mov ecx, 0xc94d647
add ecx, 0xf36b8446
mov edi, eax
mov ebx, 0x476000
add ebx, dword [ebp - 0x14]
mov edx, 0x25450442
add edx, 0xaeb2fc77
add dword [ebp - 4], edi
mov esi, dword [ebx]
add dword [ebp - 8], ecx
add esi, edx
xor dword [ebp - 8], ebx
mov dword [edi], esi
add dword [ebp - 0xc], 0x26dc708e
add edi, 0x338569eb
sub edi, 0x338569e7
add ebx, 4
loop 0x40df3d
add eax, 0x15d07
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa2b82b16
sub ecx, 0xa2782b16
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401f9c
Capabilities:
Set socket configuration

Disassembly:
push 0x2c
mov eax, 0x49b7c8
call fcn.00482643
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
and dword [ebp - 4], 0
call fcn.00462b71
push eax
lea ecx, [ebp - 0x14]
call fcn.0040176f
xor ebx, ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
and dword [edi + 0x20], 0
push str.ProxySOCKS
inc ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00450753
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004018cc
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401755
lea ecx, [ebp - 0x14]
call fcn.00456b20
mov esi, eax
neg esi
lea eax, [ebp - 0x1c]
sbb esi, esi
push str.ProxySkipServers
push eax
inc esi
call fcn.00450753
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004018cc
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401755
lea ecx, [ebp - 0x10]
call fcn.00456b20
test eax, eax
jne 0x40207d
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00457593
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00456e52
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
mov dword [ebp - 0x20], eax
call fcn.00401755
cmp dword [ebp - 0x20], 0
je 0x40207d
xor esi, esi
push 0
push str.UseProxy
call fcn.0045067d
test eax, eax
pop ecx
pop ecx
je 0x40219d
test esi, esi
je 0x40219d
push 0
mov dword [edi + 0x3c], ebx
call fcn.00464ff5
lea ecx, [ebp - 0x38]
call fcn.00465209
push 0
push 0x3f
push ebx
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00464d80
test eax, eax
jne 0x4020ed
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00465225
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
xor eax, eax
jmp 0x4021c4
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x38]
call fcn.00403361
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x38]
call fcn.00403361
lea eax, [ebp - 0x18]
push eax
push 0xffffff7f
lea eax, [ebp - 0x38]
call fcn.00403361
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00457593
push dword [ebp + 0x10]
mov edx, eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00401ab6
add esp, 0x10
mov ebx, eax
neg ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401755
test bl, bl
lea ecx, [ebp - 0x38]
jne 0x4020c7
push 0x3f
call fcn.00464e01
push eax
mov ecx, edi
call fcn.00464dce
push 0x3f
mov ecx, edi
call fcn.004643de
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push dword [edi + 4]
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00465225
jmp 0x4021ac
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.00464792
mov esi, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, esi
call fcn.0048271b
ret 0xc
Function at 0x403361
Capabilities:
Set socket configuration

Disassembly:
push 4
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0xffff
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x40409d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4040c6
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004657ff
cmp dword [ebp + 8], edi
je 0x4040d7
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.004657b9
pop ebp
ret 4
Function at 0x407138
Capabilities:
Create process on windows

Disassembly:
push 0x18
mov eax, 0x4954f7
call fcn.00482643
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00462b71
push eax
lea ecx, [ebp - 0x14]
call fcn.0040176f
push edi
push str..htm
mov esi, SysReAllocString
lea eax, [ebp - 0x18]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00453646
add esp, 0x10
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
push str._shellopencommand
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040145d
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
mov ebx, dword [ebp - 0x14]
push edi
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00453646
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
lea ecx, [ebp - 0x10]
call fcn.00456b20
test eax, eax
je 0x40721b
lea ecx, [ebx - 0x10]
call fcn.00401755
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
jmp 0x407308
push 0x4a9088
lea esi, [ebp - 0x10]
call fcn.00403069
mov esi, eax
cmp esi, 0xffffffff
je 0x4072a8
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.004013ad
mov edi, eax
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004013d0
push dword [ebp + 8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004030df
push edi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.004030df
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004018cc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x24]
jmp 0x4072e9
push 0x4a908c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040145d
push dword [ebp + 8]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004030df
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004018cc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401755
mov esi, dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [ebx - 0x10]
call fcn.00401755
lea ecx, [esi - 0x10]
call fcn.00401755
call fcn.0048271b
ret
Function at 0x409fd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497570
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c7674]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x18]
mov ecx, edi
call fcn.00456b20
test eax, eax
jne 0x40a01a
push edi
mov eax, 0x4cc464
call fcn.0044ebec
pop ecx
lea esi, [ebx + 0x20]
mov ecx, esi
call fcn.00456b20
test eax, eax
jne 0x40a034
push esi
mov eax, 0x4cc478
call fcn.0044ebec
pop ecx
lea esi, [ebx + 0x4c]
mov ecx, esi
call fcn.00456b20
test eax, eax
jne 0x40a071
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00459640
and dword [esp + 0x28], 0
push eax
mov eax, 0x4cc48c
call fcn.0044ebec
or dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, edi
call fcn.00401984
lea ecx, [ebx + 0x1c]
call fcn.00401984
lea esi, [ebx + 0x2c]
mov ecx, esi
call fcn.004525e6
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x40a098
push dword [esi]
call edi
lea esi, [ebx + 0x34]
mov ecx, esi
call fcn.004525e6
test eax, eax
je 0x40a0aa
push dword [esi]
call edi
call fcn.00407aa0
xor eax, eax
inc eax
and dword [ebx + 0x14], 0
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [0x4cc128], eax
mov dword [0x4cc12c], eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40abd6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4974c9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c7674]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00462b71
push eax
lea ecx, [esp + 0x18]
call fcn.0040176f
and dword [esp + 0x38], 0
push 3
lea eax, [esp + 0x24]
lea edi, [esi + 0x4c]
push eax
mov ecx, edi
call fcn.004013d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004018cc
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00401755
cmp dword [esi + 0x370], 0
je 0x40ac7d
mov eax, dword [esi + 0x58]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x5c]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00401755
mov eax, edi
mov edx, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0045244a
mov edi, edx
cmp edi, dword [esi + 0x5c]
mov ebx, eax
jg 0x40ad5b
jl 0x40ac9c
cmp ebx, dword [esi + 0x58]
jae 0x40ad5b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40accf
push 0x40
pop eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x200
jmp 0x40acd3
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5c]
xor edx, edx
sub ecx, ebx
sbb eax, edi
cmp eax, edx
jl 0x40ad02
jg 0x40acf4
cmp ecx, dword [esp + 0x18]
jbe 0x40ad02
mov eax, dword [esp + 0x18]
add eax, eax
xor ecx, ecx
sub ebx, eax
sbb edi, ecx
jmp 0x40ad08
sub ebx, dword [esp + 0x18]
sbb edi, edx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], ebx
mov edi, dword [0x4cc408]
call fcn.00466a93
mov eax, dword [eax + 4]
push 4
push str.Rollback
push edi
mov ecx, eax
call fcn.00465edc
mov edx, dword [esi + 0x58]
shl eax, 0xa
xor ecx, ecx
xor ebx, ebx
sub edx, eax
mov eax, dword [esi + 0x5c]
push ebx
mov edi, 0x400
push edi
sbb eax, ecx
push eax
push edx
call fcn.00483600
push ebx
push edi
push edx
push eax
call fcn.004835c0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jmp 0x40ad5d
xor ebx, ebx
cmp dword [esi + 0x5c], ebx
jg 0x40ac52
jl 0x40ad71
cmp dword [esi + 0x58], ebx
jae 0x40ac52
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
jmp 0x40ac52
Function at 0x412077
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x496bb8
call fcn.00482643
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
and dword [ebp - 4], 0
mov esi, dword [0x4cc408]
call fcn.00466a93
mov eax, dword [eax + 4]
push 0x4a87ac
push str.FaceFile
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0046607e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00456b20
test eax, eax
jne 0x41214d
push dword [ebp - 0x14]
mov esi, 0x104
push esi
push esi
lea ecx, [ebp - 0x10]
call fcn.004017ad
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x4aa1c8
push str.TextOffset
mov ebx, str.Downloads
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403194
lea eax, [ebp - 0x10]
push eax
call fcn.004578d8
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx + 0x21c0], eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004017ad
push eax
push 0x4aa1e4
push str.ResumeTextOffset
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403194
lea eax, [ebp - 0x10]
push eax
call fcn.004578d8
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x21c4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
call fcn.0048271b
ret 4