joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe4c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
push dword [ebp + 8]
mov edi, eax
call fcn.00412d7d
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x40ffb5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40feac
push 2
lea eax, [edi + 0x50]
push eax
push dword [ebp - 8]
lea eax, [edi + 0x3c]
push eax
mov eax, dword [edi + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.00431eea
lea eax, [ebp - 0x88]
push eax
call fcn.00430fec
mov byte [ebp - 1], al
jmp 0x40feb0
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x40ff05
test byte [ebp - 0xc], 0x10
jne 0x40ff05
push dword [edi + 0xc]
call esi
movzx eax, word [ebx + 0xc]
movzx ecx, word [ebx + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [ebx]
push eax
movzx eax, word [ebx + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [edi + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x40ff05
push 0x64
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ffb5
call fcn.0040fcea
test al, al
je 0x40ff74
mov eax, dword [edi + 0x10]
push 0x10
push ebx
add eax, 0x114
push eax
call fcn.0042c0c1
push dword [edi + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [edi + 8]
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x40ff74
push 0x3e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ff5f
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x124], 1
jne 0x40ff74
mov al, byte [ebp - 1]
jmp 0x40ffb7
push 0
lea esi, [edi + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0042ef68
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x40ffb5
push ebx
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop edi
pop esi
leave
ret 8
Function at 0x4106d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
push edi
push 0x5a
lea esi, [esp + 0x24]
pop eax
call fcn.0041755d
mov eax, esi
mov dword [esp + 8], eax
xor edi, edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push 0x21
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x410772
push 0x5b
lea esi, [esp + 0x1c]
pop eax
call fcn.0041755d
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x41064f
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.00433826
lea eax, [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.00433982
test al, al
je 0x410772
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.00433826
test bl, 2
je 0x410789
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41094b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.0042c055
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x410980
push esi
call fcn.0042c085
xor al, al
jmp 0x410a5c
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x410902
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], esi
mov byte [esp + 0x1b], 1
call fcn.0042c138
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
push esi
push 8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4109f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x410a26
lea eax, [ebp + 0xc]
push eax
call fcn.00430f59
jmp 0x4109bb
cmp dword [esp + 0x30], esi
je 0x410a2b
mov eax, dword [edi]
add eax, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
call fcn.0042c000
test al, al
je 0x410a26
push dword [esp + 0x30]
mov eax, esi
mov eax, dword [eax]
push dword [esp + 0x14]
add eax, dword [edi]
push eax
call fcn.0042c0c1
mov eax, dword [esp + 0x30]
add dword [edi], eax
xor esi, esi
jmp 0x4109bb
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x14]
inc eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push eax
push dword [ebp + 8]
call ebx
push dword [esp + 0x10]
call fcn.0042c085
cmp byte [esp + 0xf], 0
jne 0x410a58
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0042c085
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4139fb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413ae4
push 2
pop ecx
cmp dword [ebp - 0x94], ecx
jne 0x413ae4
xor eax, eax
inc eax
cmp byte [ebp + 0x76], al
jne 0x413a98
cmp dword [ebp - 0xa0], 5
jne 0x413a6b
cmp dword [ebp - 0x9c], esi
jne 0x413a57
mov esi, eax
jmp 0x413ae4
cmp dword [ebp - 0x9c], eax
je 0x413a67
cmp dword [ebp - 0x9c], ecx
jne 0x413ae4
mov esi, ecx
jmp 0x413ae4
cmp dword [ebp - 0xa0], 6
jne 0x413ae4
cmp dword [ebp - 0x9c], esi
jne 0x413a80
push 4
jmp 0x413ae3
cmp dword [ebp - 0x9c], eax
jne 0x413a8c
push 6
jmp 0x413ae3
cmp dword [ebp - 0x9c], ecx
jne 0x413ae4
push 8
jmp 0x413ae3
cmp byte [ebp + 0x76], cl
je 0x413aa3
cmp byte [ebp + 0x76], 3
jne 0x413ae4
cmp dword [ebp - 0xa0], 5
jne 0x413ab8
cmp dword [ebp - 0x9c], ecx
jne 0x413ae4
push 3
jmp 0x413ae3
cmp dword [ebp - 0xa0], 6
jne 0x413ae4
cmp dword [ebp - 0x9c], esi
jne 0x413acd
push 5
jmp 0x413ae3
cmp dword [ebp - 0x9c], eax
jne 0x413ad9
push 7
jmp 0x413ae3
cmp dword [ebp - 0x9c], ecx
jne 0x413ae4
push 9
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x4144c8
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
push ebx
push esi
push edi
mov dword [esp + 0x28], edx
mov ebx, ecx
mov byte [esp + 0x13], 0
cmp edx, 1
jbe 0x4146f9
mov esi, dword [ebx + 4]
xor edi, edi
cmp word [esi], di
je 0x4146f9
call fcn.0043297b
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
cmp eax, 1
jne 0x41463b
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x3c]
or eax, 0xffffffff
call fcn.0042d022
test al, al
je 0x41465e
lea eax, [esp + 0x80]
push eax
call fcn.00433502
test al, al
je 0x414630
push dword [ebx + 4]
mov dword [esp + 0x1c], edi
call fcn.0043287e
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x414562
push dword [esp + 0x3c]
call fcn.00432aef
mov dword [esp + 0x14], eax
jmp 0x41456a
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x414627
lea ecx, [esp + 0x80]
push ecx
push ecx
call fcn.00433982
test al, al
je 0x414627
lea esi, [esp + 0x48]
call fcn.00419146
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
cmp dword [esp + 0x18], edi
je 0x4145d3
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
or eax, 0xffffffff
call fcn.0042d022
test al, al
je 0x4145d3
push dword [esp + 0x2c]
lea esi, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.0041443e
lea esi, [esp + 0x2c]
call fcn.0042d010
xor edi, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [0x43716c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x18], edi
je 0x41460d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
push edi
push edi
lea edi, [esp + 0x50]
call fcn.0042f4b8
push dword [esp + 0x1c]
mov byte [esp + 0x17], al
call fcn.0042c085
xor edi, edi
push dword [esp + 0x14]
call fcn.0042c085
lea esi, [esp + 0x3c]
call fcn.0042d010
jmp 0x41465e
push 0x104
lea eax, [esp + 0x84]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x41465e
mov byte [esp + 0x13], 1
push dword [esp + 0x20]
call fcn.0042c085
cmp byte [esp + 0x13], 0
je 0x4146f9
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, 2
jbe 0x414697
add eax, 0xfffffffe
push eax
add ebx, 8
push ebx
call fcn.0042cb43
mov esi, eax
cmp esi, edi
jne 0x414697
mov byte [esp + 0x13], 0
jmp 0x4146f9
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push esi
lea eax, [esp + 0x90]
push eax
call fcn.0042ee20
test eax, eax
setne byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x4146d7
mov edi, dword [esp + 0x34]
call fcn.00421041
push dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x2c]
call edi
jmp 0x4146f3
push 1
push edi
push esi
lea eax, [esp + 0x8c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg byte [esp + 0x13]
push esi
call fcn.0042c085
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414eb9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor bl, bl
jmp 0x414ee4
cmp byte [ebp + 0x10], 0
jne 0x414ed3
cmp bl, 0xa
je 0x414efd
movzx eax, bl
add eax, 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc bl
push 0x20
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.004331c4
test al, al
je 0x414ec8
mov al, 1
jmp 0x414eff
xor al, al
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x414fc1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
test eax, eax
je 0x41502e
push edi
push dword [ebp + 0xc]
call fcn.00430e81
mov edi, eax
test edi, edi
je 0x415024
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41501e
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x407bb0
push eax
call fcn.0042cf39
add esp, 0xc
test eax, eax
jle 0x41501d
push dword [ebp + 8]
push esi
call fcn.0042ee7b
push dword [ebp + 8]
call fcn.0042c085
pop esi
push edi
call fcn.0042c085
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret 0x10
Function at 0x416072
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf24
push ebx
push esi
push edi
push 1
lea ebx, [esp + 0x8b4]
call fcn.004196cc
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, ebx
push eax
call esi
push 2
lea ebx, [esp + 0x4a4]
call fcn.004196cc
mov eax, ebx
push eax
call esi
push 3
lea ebx, [esp + 0x6ac]
call fcn.004196cc
mov eax, ebx
push eax
call esi
or dword [0x436d60], 2
push 0
call fcn.00414f8b
call fcn.00416337
lea ecx, [esp + 0x8b0]
call fcn.0043376b
lea ecx, [esp + 0x4a0]
call fcn.0043376b
mov ecx, ebx
call fcn.0043376b
push 4
lea ebx, [esp + 0x29c]
call fcn.004196cc
mov eax, ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x8b4]
push eax
call esi
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x4a4]
push eax
call esi
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x6ac]
push eax
call esi
push 0x3a
lea edi, [esp + 0x14]
pop eax
call fcn.00417527
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x2ac]
push eax
mov eax, edi
push eax
mov edi, 0x474
lea esi, [esp + 0xad4]
call fcn.0042cf02
add esp, 0x1c
test eax, eax
jle 0x4161a9
mov eax, esi
push eax
call fcn.0042f019
cmp dword [0x437170], 0xffffffff
jne 0x4161ba
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416337
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
lea eax, [ebp - 0x200]
push eax
call fcn.0041967a
push 0x32
push 0
lea esi, [ebp - 0xd0]
or eax, 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0042c290
push 0x36
lea esi, [ebp - 0x68]
pop eax
call fcn.0041755d
xor bl, bl
mov edi, reloc.WS2_32.dll_accept
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x4163d2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4163c5
lea eax, [ebp - 0xd0]
push eax
lea esi, [ebp - 4]
call fcn.00431bb5
jmp 0x4163c7
xor al, al
test al, al
je 0x4163d9
inc bl
cmp bl, 5
jb 0x416379
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x4163d4

Function at 0x41674a
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push 1
push 0x4512b58d
call fcn.00419215
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x416790
cmp byte [0x437c14], bl
jne 0x41678a
cmp dword [0x437c08], ebx
jne 0x41678a
push ebx
push ebx
push ebx
push 0x416558
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x437c08], eax
push esi
call fcn.00430fbf
xor eax, eax
cmp dword [0x437c08], ebx
pop esi
setne al
pop ebx
pop ecx
ret
Function at 0x41679f
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
push 1
push 0x4512b58d
call fcn.00419215
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x41680f
cmp dword [0x437c10], ebx
jne 0x416809
cmp dword [0x437b1c], ebx
jne 0x416809
push 0x104
push ebx
mov edx, 0x436b28
push edx
call fcn.0042c138
cmp esi, ebx
je 0x4167f0
mov ecx, esi
call fcn.0042cc16
push eax
push esi
push edx
call fcn.0042c0c1
mov byte [eax + 0x436b28], bl
push ebx
push ebx
push ebx
push 0x416579
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x437b1c], eax
push edi
call fcn.00430fbf
xor eax, eax
cmp dword [0x437b1c], ebx
pop edi
setne al
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [ebp + 0xc], 0xffffffff
je 0x4168ce
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
je 0x41685e
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x416866
or eax, 0xffffffff
jmp 0x416932
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x416852
cmp word [ebp - 0xa8], 2
jne 0x41689a
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.0042c0c1
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c0c1
jmp 0x4168f2
cmp word [ebp - 0xa8], 0x17
jne 0x416856
push 0x10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.0042c0c1
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042c0c1
jmp 0x4168e5
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0042c138
test byte [ebp + 0x14], 1
je 0x4168ee
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x4168f9
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.0042c0c1
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00430613
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x417207
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x41724e
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x41723a
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x417242
or eax, 0xffffffff
jmp 0x417279
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x417231
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x417254
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.00430613
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x417527
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x404d10]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x417554
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x41753c
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x41755d
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x404d10]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x41759c
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x417573
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret

Function at 0x417737
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x417794
push 3
pop ecx
sub eax, ecx
je 0x41778b
sub eax, ecx
je 0x417782
sub eax, 0x15a
je 0x417779
sub eax, ecx
je 0x417770
sub eax, ecx
jne 0x41780d
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x41779d
mov dword [ebp - 4], 0x206
jmp 0x41776c
mov dword [ebp - 4], 0x203
jmp 0x41776c
mov dword [ebp - 4], 0xa9
jmp 0x41779b
mov dword [ebp - 4], 0xa6
jmp 0x41779b
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x4177f8
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x4177f8
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x4177f8
test bl, bl
jne 0x4177dc
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x4177f5
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x417810
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8
Function at 0x418601
Capabilities:
Delete file
Enumerate processes
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push edi
push 0
push 2
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4186d0
push ebx
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4186cc
push esi
cmp dword [ebp - 0x228], 0
jbe 0x4186b9
push dword [ebp - 0x228]
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4186b9
push 0x104
lea eax, [ebp - 0x438]
push eax
push esi
call fcn.0042e93f
cmp al, 1
jne 0x4186b6
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0042ce63
test eax, eax
je 0x4186b6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4186b6
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41864c
pop esi
push edi
call ebx
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb al, al
inc al
pop edi
jne 0x4186f7
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec eax
neg eax
sbb al, al
inc al
cmp byte [ebp - 1], 0
je 0x418706
test al, al
je 0x418706
xor eax, eax
inc eax
jmp 0x418708
xor eax, eax
leave
ret 4

Function at 0x41870c
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
cwde
push es
add byte [eax], al

Function at 0x418952
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x418997
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x418989
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.0042cc3c
test eax, eax
je 0x41899f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x418970
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x418999

Function at 0x418a18
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x418a3b
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x418a32
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x418a28
pop edi
pop esi
ret