joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451a74
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4812c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0044ad80
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0044ad80
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x451aeb
cmp word [ecx], dx
je 0x451aeb
mov eax, dword [0x47b48c]
push edi
dec eax
push eax
push 0x47b378
call fcn.00451a13
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x451b5e
cmp word [eax], dx
je 0x451b5e
mov eax, dword [edi]
test eax, eax
je 0x451b0f
cmp word [eax], dx
je 0x451b0f
lea eax, [ebp - 0x10]
push eax
call fcn.004513f6
jmp 0x451b18
lea eax, [ebp - 0x10]
push eax
call fcn.00451491
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x451b88
mov eax, dword [0x47b374]
push dword [ebp - 0x14]
dec eax
push eax
push 0x47b068
call fcn.00451a13
add esp, 0xc
test al, al
je 0x451b88
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x451b53
cmp word [eax], di
je 0x451b53
lea eax, [ebp - 0x10]
push eax
call fcn.004513f6
pop ecx
jmp 0x451b8a
lea eax, [ebp - 0x10]
push eax
call fcn.00451491
jmp 0x451b50
mov eax, dword [edi]
test eax, eax
je 0x451b75
cmp word [eax], dx
je 0x451b75
lea eax, [ebp - 0x10]
push eax
call fcn.004513ab
pop ecx
jmp 0x451b88
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x451c53
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00451898
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x451c53
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x451c53
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x451c53
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x451be0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044b6a2
test ebx, ebx
je 0x451c4e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044b6a2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x451c53
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x451c53
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00457a5a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x451c55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c310
leave
ret
Function at 0x453605
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043c320
mov eax, dword [0x4812c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044d17f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x453647
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4537a3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00459b10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00454602
mov ecx, dword [esi*4 + 0x482a58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x45379c
cmp eax, dword [ecx + edi + 0x24]
jne 0x45379c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45379c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00454602
add esp, 0x14
test edx, edx
jl 0x45379c
jg 0x453712
test eax, eax
jb 0x45379c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45379c
jl 0x45372c
cmp dword [ebp - 0x1008], eax
ja 0x45379c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45374a
test ebx, ebx
je 0x453783
cmp ecx, edi
jae 0x453783
mov al, byte [ecx]
cmp al, 0xd
jne 0x453764
lea eax, [edi - 1]
cmp ecx, eax
jae 0x453770
cmp byte [ecx + 1], 0xa
jne 0x453770
inc ecx
jmp 0x453770
movzx eax, al
movsx eax, byte [eax + 0x481ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45374a
cmp edx, ebx
jne 0x45374a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4537a1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043c310
leave
ret
Function at 0x453a9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482a58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453ada
cmp byte [ebx], 0xa
jne 0x453ada
or byte [edi + eax + 0x28], 4
jmp 0x453adf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x453bde
mov dl, byte [eax]
cmp dl, 0x1a
je 0x453bc1
inc eax
cmp dl, 0xd
je 0x453b0b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x453b31
cmp eax, ecx
jae 0x453b3f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x453af3
jmp 0x453bde
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453bbc
cmp dword [ebp - 0x10], 0
je 0x453bbc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x482a58]
test byte [eax + edi + 0x28], 0x48
je 0x453b96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453b81
mov byte [esi], dl
jmp 0x453b92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x453bde
cmp byte [ebp - 1], 0xa
jne 0x453ba5
cmp esi, ebx
jne 0x453ba5
mov byte [esi], 0xa
jmp 0x453bdd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00454620
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x453bde
mov byte [esi], 0xd
jmp 0x453bdd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x482a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453bdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453bde
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453be7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x482a58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453c2d
cmp word [ebx], dx
jne 0x453c2d
or byte [eax + edi + 0x28], 4
jmp 0x453c32
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x453d95
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x453d75
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x453c73
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x453ca9
cmp eax, edx
jae 0x453cb7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x453c4e
jmp 0x453d95
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453d70
cmp dword [ebp - 0x18], 0
je 0x453d70
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x482a58]
test byte [eax + edi + 0x28], 0x48
je 0x453d46
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x453d0a
mov word [esi], cx
jmp 0x453d41
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x482a58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x482a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x482a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x453d95
pop eax
cmp word [ebp - 4], ax
jne 0x453d56
cmp esi, ebx
jne 0x453d56
mov word [esi], ax
jmp 0x453d92
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00454620
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x453d95
push 0xd
pop eax
jmp 0x453d51
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x482a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x453d8f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x453d95
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x459ad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x459afd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x459afd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402482
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and byte [ebp - 0x12c], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x4a
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, ebx
mov eax, edi
shl eax, 6
add eax, 0x40483a
push eax
call fcn.00402634
mov ecx, edi
push eax
shl ecx, 4
lea esi, [ecx + 0x4048ba]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
je 0x40255a
push str.0.0.0.0
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40255a
movzx eax, word [edi*2 + reloc.crtdll.dll_vsprintf]
push eax
push esi
lea eax, [ebp - 0x12c]
push str.CONNECT__s:_d_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0.1.3__Windows_NT_5.0.3__r_nPragma:_no_cache__r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push 0
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40255f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_con_info_failed__error_num:
push str._s_d_n
jmp loc.00406000
or eax, 0xffffffff
jmp 0x402562
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402569
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
and byte [ebp - 0x650], 0
mov edx, ecx
push edi
mov ecx, 0x18f
xor eax, eax
lea edi, [ebp - 0x64f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x10], 0
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x650]
push 0x640
push eax
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
pop edi
jg 0x4025be
or eax, 0xffffffff
leave
ret
lea eax, [ebp - 0x650]
push 0x10
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x10]
push 0x4043d0
push eax
call sub.MSVCRT.dll_strstr
add esp, 0x14
neg eax
sbb eax, eax
and eax, 2
dec eax
leave
ret

Function at 0x4025eb
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
inc eax
neg eax
sbb eax, eax
and eax, 2
dec eax
ret 8

Function at 0x402617
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x402631
or eax, 0xffffffff
ret 8
Function at 0x401110
Capabilities:
Create thread
Get common file path

Disassembly:
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov byte [0x409948], bl
mov byte [0x409830], bl
mov byte [0x409628], bl
mov byte [0x409b48], bl
call fcn.00401a20
test al, al
je 0x40135a
mov eax, dword [esp + 0x14]
push ebx
push eax
push ebx
push ebx
push 0x190
push 0x258
push 0x64
push 0x64
push ebx
push 0x407030
push str.MainW
push ebx
mov dword [0x409c48], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x40135a
push 0xff
push 0x409a48
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov cl, byte [eax + 0x409a48]
mov byte [eax + 0x409c58], cl
inc eax
cmp cl, bl
jne 0x401188
mov edi, 0x409c58
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4070c8]
repne scasb al, byte es:[edi]
mov eax, dword [str.Systemipset.exe]
mov ecx, dword [0x4070c4]
dec edi
push 0xff
push 0x409728
push ebx
mov dword [edi], eax
mov eax, dword [0x4070cc]
mov dword [edi + 4], ecx
mov cx, word [0x4070d0]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x409728
push 0x409c58
call fcn.00401d70
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
test eax, eax
je 0x40126c
push 0x409c58
call fcn.00401550
add esp, 4
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push 0x409c58
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401305
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x41
push 0x4070b4
push 0x4070a8
push ebx
call esi
cmp eax, 1
jne 0x40126c
call fcn.00401c00
test al, al
jne 0x4012f0
push 0x30
push 0x4070b4
push 0x40709c
push ebx
call esi
mov ebp, dword [esp + 0x14]
push 0x407098
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x409828], eax
mov dword [0x409614], ebx
call fcn.00401ba0
cmp eax, 8
jne 0x40135a
call fcn.00401370
call fcn.00401ce0
test al, al
jne 0x401352
push ebx
push 0x3e8
push 2
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x409620], eax
call fcn.00401d00
test al, al
je 0x40133f
push 0x409938
push ebx
push ebp
push 0x4019a0
push ebx
push ebx
mov dword [0x409614], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov dword [0x409c4c], eax
pop ebp
mov eax, 1
pop ebx
ret
push ebx
push 0x4070b4
push 0x407084
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call fcn.00401c00
test al, al
jne 0x401326
push 0x30
push 0x4070b4
push 0x40709c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40126c
push ebx
push 0x4070b4
push 0x407070
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x409828]
push edx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov eax, dword [0x409828]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x401500
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push str.syscheck
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x401550
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [esp + 0xc]
push eax
push 0xf003f
not ecx
push 0
dec ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
push edi
push esi
push 1
push 0
push str.ipset
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret

Function at 0x4015b0
Capabilities:
Move file

Disassembly:
sub esp, 0x240
mov ecx, 0x50
xor eax, eax
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x254]
test al, al
je 0x4015f9
lea eax, [esp + 0x10]
push eax
push 0x409628
call ebp
cmp eax, 0xffffffff
jne 0x4016d0
mov edi, 0x409628
mov ebx, 0x409b48
jmp 0x401618
lea ecx, [esp + 0x10]
push ecx
push 0x409b48
call ebp
cmp eax, 0xffffffff
jne 0x4016d0
mov ebx, 0x409628
mov edi, 0x409b48
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x150]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40162b
lea edx, [esp + 0x150]
push 0x5c
push edx
call fcn.00401e00
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0x150]
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
cmp eax, 0xffffffff
je 0x401697
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
push 0xffffffffffffffff
push esi
call ebx
lea edx, [esp + 0x10]
push edx
push edi
call ebp
cmp eax, 0xffffffff
je 0x401697
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret
Function at 0x4016f0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x444
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x409b48
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017d9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffde0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x238]
push 0x220
push ecx
push esi
call ebx
push 0
push 0
push 0
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x18]
push 0x220
push eax
push esi
call ebx
push 0
push 0
push 0
push esi
call edi
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 0x534f434f
jne 0x401795
mov al, byte [esp + 0x450]
test al, al
jne 0x4017d2
xor eax, eax
mov ecx, 0x88
mov edx, dword [esp + eax + 0x22c]
mov ebx, dword [esp + eax + 0xc]
xor ebx, edx
mov dword [esp + eax + 0xc], ebx
add eax, 4
dec ecx
jne 0x40179c
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 0x220
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0x444
ret

Function at 0x4017f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x164]
mov dword [esp + 0x1c], 0x44
dec eax
je 0x401837
dec eax
jne 0x4018d6
xor eax, eax
mov cl, byte [eax + str._GuardUtility]
mov byte [esp + eax + 0x60], cl
inc eax
test cl, cl
jne 0x401821
mov edi, 0x40706c
jmp 0x40184d
xor eax, eax
mov cl, byte [eax + str._GuardUtility]
mov byte [esp + eax + 0x60], cl
inc eax
test cl, cl
jne 0x401839
mov edi, 0x407068
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x409948
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4018a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x168]
push 0
push 0x1f4
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x40993c], eax
pop edi
pop esi
pop ebx
add esp, 0x154
ret