joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405930
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfe78
call fcn.00417000
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0xfe74], eax
mov eax, dword [ebp + 0x10]
push 0x3ff
mov dword [ebp - 0xfe70], eax
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.004164d0
xor eax, eax
mov byte [ebp - 0x10], 0
push 0xfa00
push eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
lea eax, [ebp - 0xfe14]
push eax
call fcn.004164d0
add esp, 0x18
lea eax, [ebp - 0xfe14]
mov ecx, ebx
push esi
push eax
call fcn.004057d0
push 0x405910
push 0xc80
push dword [ebx]
lea eax, [ebp - 0xfe14]
push eax
call fcn.00414610
xor edi, edi
add esp, 0x10
cmp dword [ebx], edi
jle 0x405a1f
lea esi, [ebp - 0xfe14]
lea eax, [esi + 0x480]
push eax
lea eax, [ebp - 0x414]
push 0x400
push eax
call fcn.00413070
push str.in_disk
push esi
call fcn.00412e9b
add esp, 0x14
test eax, eax
jne 0x405a14
push 6
lea eax, [esi + 0x80]
push eax
lea eax, [ebp - 0x10]
push 7
push eax
call fcn.00412fcc
add esp, 0x10
inc edi
add esi, 0xc80
cmp edi, dword [ebx]
jl 0x4059d3
mov eax, dword [ebp - 0xfe70]
cmp byte [eax], 0
je 0x405a3f
push eax
lea eax, [ebp - 0x414]
push 0x400
push eax
call fcn.00413070
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x405a5d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x414]
push 0x400
push eax
call fcn.00413070
add esp, 0xc
lea edx, [ebp - 0xfe70]
lea ecx, [ebp - 0x414]
call fcn.00405350
mov edi, dword [ebp - 0xfe70]
mov esi, edi
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x405a80
push 0x58
lea eax, [ebp - 0xfe6c]
sub esi, ecx
push 0
push eax
call fcn.004164d0
add esp, 0xc
mov dword [ebp - 0xfe58], 0
lea ecx, [ebp - 0xfe6c]
mov dword [ebp - 0xfe5c], 0
mov dword [ebp - 0xfe6c], 0x67452301
mov dword [ebp - 0xfe68], 0xefcdab89
push esi
push edi
mov dword [ebp - 0xfe64], 0x98badcfe
mov dword [ebp - 0xfe60], 0x10325476
call fcn.00405b60
push dword [ebp - 0xfe74]
lea ecx, [ebp - 0xfe6c]
call fcn.00405c30
push edi
call fcn.00412a22
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00412a27
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406740
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, ecx
test esi, esi
je 0x4067f3
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004164d0
xor eax, eax
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], ax
add esp, 0xc
mov eax, dword [esi + 0x1554]
mov dword [ebp - 0x2c], 0x101
test eax, eax
jle 0x406786
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esi + 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4067d6
inc dword [0x48b0e8]
push 0x2710
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [esi + 0x1434]
cmp dword [esi + 0x1434], 5
mov byte [esi + 0x142f], 0
jle 0x4067f3
mov byte [esi + 0x142f], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409030
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x78
mov esi, ecx
call fcn.00413312
mov edi, eax
add esp, 4
test edi, edi
je 0x409090
mov edx, dword [esi + 0x414]
mov dword [edi + 0x14], edx
mov dword [edi + 0x2c], vtable.CMyPNGButton.0
mov byte [edi + 0x5c], 1
push 0
push dword [esi]
mov dword [0x48b15c], edi
mov byte [esi + 0x60d], 0
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0x610]
mov ecx, edi
push eax
push eax
lea eax, [esi + 0x60f]
push eax
push dword [esi]
call fcn.0040e0d0
jmp 0x409092
xor edi, edi
push esi
push 0
push 0x406cc0
call fcn.0041432b
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push 0
push 0
push 0
push eax
movq qword [ebp - 8], xmm0
call esi
test eax, eax
je 0x4090f2
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x4090d2
test edi, edi
je 0x40912e
push dword [edi + 0x20]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x2c], vtable.CMyPNGButton.0
push dword [edi + 0x48]
call esi
push dword [edi + 0x4c]
call esi
push dword [edi + 0x50]
call esi
push edi
call fcn.00412a22
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409140
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov esi, ecx
call fcn.00407b80
test eax, eax
je 0x409176
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x65
mov dword [ebp - 0x28], 0x68005a
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x440075
push eax
mov dword [ebp - 0x20], 0x6e006f
mov dword [ebp - 0x1c], 0x460067
mov dword [ebp - 0x18], 0x6e0061
mov dword [ebp - 0x14], 0x590067
mov dword [ebp - 0x10], 0x2e0075
mov dword [ebp - 0xc], 0x780065
mov dword [ebp - 8], 0x220065
call fcn.0040c850
test eax, eax
push esi
setne al
push 0
push 0x409010
mov byte [esi + 0x60e], al
call fcn.0041432b
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4
Function at 0x4094d0
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, 0x4ac
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp + 0x10]
push 0x7f
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x87]
push 0
push eax
mov dword [ebp - 0x4a0], edi
mov byte [ebp - 0x88], 0
call fcn.004164d0
push esi
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00412f77
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4095ac
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 0x4095c2
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.00412a27
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.004164d0
mov edx, dword [ebp - 0x4a8]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409626
push edx
sub ecx, esi
lea eax, [ebp - 0x88]
push ecx
push eax
push dword [ebp - 0x4a4]
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]
jmp 0x409660
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409660
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 0x4096af
mov edi, edi
add esi, eax
add edi, eax
cmp esi, 0x8fff
jg 0x4096af
push 0
push 0x1000
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409690
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.00409430
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a27
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 [0x48b108]
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.0041432b
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.00412a27
mov esp, ebp
pop ebp
ret
Function at 0x40c040
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 0x40c0fb
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 0x40c0e9
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 0x40c101
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x40c0d5
mov eax, 0x4344e0
lea ecx, [edi + 0x800]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40c0c6
test dl, dl
je 0x40c0c2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40c0c6
add ecx, 2
add eax, 2
test dl, dl
jne 0x40c0a6
xor eax, eax
jmp 0x40c0cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c0dc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ebx
jb 0x40c090
jmp 0x40c0e5
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.0041432b
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_vector_T__subscript
call fcn.004291ac
int3

Function at 0x40c360
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 0x40c48e
cmp byte [esi], 0
je 0x40c48e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.004164d0
add esp, 0xc
push 0x3b
push esi
call fcn.00413720
add esp, 8
mov dword [ebp - 0xe40], eax
test eax, eax
je 0x40c48e
mov edi, eax
lea eax, [ebp - 0x40c]
sub edi, esi
push edi
push esi
push eax
call fcn.004171d0
add esp, 0xc
cmp edi, 0x400
jae 0x40c4bf
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.004158c6
add esp, 0x14
mov dword [ebp - 0xe3c], 0x22c
lea eax, [ebp - 0xe38]
push 0x228
push 0
push eax
call fcn.004164d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c481
lea eax, [ebp - 0xe3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c47a
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00414e3f
add esp, 8
test eax, eax
je 0x40c4a3
lea eax, [ebp - 0xe3c]
push eax
push esi
call ebx
test eax, eax
jne 0x40c452
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xe40]
inc esi
jne 0x40c390
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a27
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.00412a27
mov esp, ebp
pop ebp
ret 4
call fcn.00413210
int3
Function at 0x40c850
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.004164d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8db
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c8d4
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00414e3f
add esp, 8
test eax, eax
je 0x40c8f0
lea eax, [ebp - 0x238]
push eax
push esi
call edi
test eax, eax
jne 0x40c8b2
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.00412a27
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.00412a27
mov esp, ebp
pop ebp
ret 8
Function at 0x40d8c0
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 0x40d8d0
sub edi, ecx
inc edi
push edi
call fcn.00412a36
push edi
mov esi, eax
push 0
push esi
call fcn.004164d0
push ebx
push edi
push esi
call fcn.00412f77
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x40d90a
lea esp, [esp]
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x40d900
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40d920
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x40da82
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40da82
mov eax, dword [ebp + 0x10]
cmp eax, 1
jb 0x40da82
push esi
xor esi, esi
test eax, eax
je 0x40da77
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 0x40d96c
mov dl, 0x3e
jmp 0x40d99a
cmp dl, 0x2f
jne 0x40d975
mov dl, 0x3f
jmp 0x40d99a
cmp dl, 0x39
jg 0x40d97f
add dl, 4
jmp 0x40d99a
cmp dl, 0x3d
je 0x40d998
cmp dl, 0x5a
jg 0x40d98e
sub dl, 0x41
jmp 0x40d99a
cmp dl, 0x7a
jg 0x40d998
sub dl, 0x47
jmp 0x40d99a
mov dl, 0x40
mov cl, byte [edi - 1]
cmp cl, 0x2b
jne 0x40d9a6
mov cl, 0x3e
jmp 0x40d9d4
cmp cl, 0x2f
jne 0x40d9af
mov cl, 0x3f
jmp 0x40d9d4
cmp cl, 0x39
jg 0x40d9b9
add cl, 4
jmp 0x40d9d4
cmp cl, 0x3d
je 0x40d9d2
cmp cl, 0x5a
jg 0x40d9c8
sub cl, 0x41
jmp 0x40d9d4
cmp cl, 0x7a
jg 0x40d9d2
sub cl, 0x47
jmp 0x40d9d4
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 0x40da2d
mov bl, al
cmp bl, 0x2b
jne 0x40d9f6
mov bl, 0x3e
jmp 0x40da1f
cmp bl, 0x2f
jne 0x40d9ff
mov bl, 0x3f
jmp 0x40da1f
cmp bl, 0x39
jg 0x40da09
add bl, 4
jmp 0x40da1f
cmp bl, 0x5a
jg 0x40da13
sub bl, 0x41
jmp 0x40da1f
cmp bl, 0x7a
jg 0x40da1d
sub bl, 0x47
jmp 0x40da1f
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 0x40da69
cmp al, 0x2b
jne 0x40da3c
mov al, 0x3e
jmp 0x40da5e
cmp al, 0x2f
jne 0x40da44
mov al, 0x3f
jmp 0x40da5e
cmp al, 0x39
jg 0x40da4c
add al, 4
jmp 0x40da5e
cmp al, 0x5a
jg 0x40da54
sub al, 0x41
jmp 0x40da5e
cmp al, 0x7a
jg 0x40da5c
sub al, 0x47
jmp 0x40da5e
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 0x40d960
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 0x40df10
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 0x40df96
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 0x40df96
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 0x40e900
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 0x40e923
xor eax, eax
jmp 0x40eac6
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e926
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40e965
lea eax, [ebx + ebx]
call fcn.004268d0
mov edi, esp
test edi, edi
je 0x40e965
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 0x40e967
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 0x40e91c
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 0x40e9fb
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x40e9fb
cmp eax, 0x50
je 0x40e9fb
cmp eax, 0xb7
jne 0x40e91c
lea eax, [ebp - 0x414]
push eax
push 0x40e870
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 0x40e91c
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 0x40e91c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.360Ini
call esi
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x40eac0
lea ecx, [ebp - 0x20c]
call fcn.0040e820
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 0x40e91c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e91c
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.00412a27
mov esp, ebp
pop ebp
ret
Function at 0x4108c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4108cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x410995
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 + 0x432870]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432870]
dec edi
jne 0x4108e0
pop edi
test esi, esi
je 0x4109ba
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 + 0x432870]
dec esi
jne 0x4109a0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x411090
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 0x4110d3
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 0x4110c5
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 0x4110e4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004171d0
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 0x411110
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 0x41114b
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 0x411146
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x411178
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41115c
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.004171d0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x41118c
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 0x411183
cmp byte [esi + 8], 0
je 0x411183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret