joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10070f7c
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100da5f0
call fcn.100157c2
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1007103b
push 0
pop edi
and eax, 3
je 0x10070fc4
cmp eax, 1
jne 0x10070fcd
and esi, 0xfffffffe
mov esi, dword [esi + 0x10]
add esi, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10070fc4
mov al, byte [eax + 0x44]
test al, al
jne 0x1007103b
mov ecx, esi
call fcn.10068350
jmp 0x10071002
and esi, 0xfffffffd
lea ecx, [esi + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x10], ecx
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
add esi, 0x10
test eax, eax
je 0x10070ff3
mov al, byte [eax + 0x44]
test al, al
je 0x10070ff3
mov esi, edi
jmp 0x10070ffa
mov ecx, esi
call fcn.10068350
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
test esi, esi
je 0x1007103b
cmp dword [esi + 0x14], ebx
je 0x10071035
push 0x3c
call sym.MSVCR120.dll__wexecve
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x10071028
push esi
push ebx
mov ecx, eax
call sym.MSVCR120.dll__wexecve
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10068350
jmp 0x10071037
mov edi, esi
mov eax, edi
jmp 0x1007103d
xor eax, eax
call fcn.100157f5
ret

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

Disassembly:
push 4
mov eax, 0x100db7e8
call fcn.100157c2
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x80000000
mov dword [edi + 0x18], esi
mov dword [edi + 0x38], esi
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::constructor_void_
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
call sym.MSVCR120.dll__wexecve
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x10073fe8
cmp eax, 2
je 0x10073fe8
xor edx, edx
add eax, 4
inc edx
lock xadd dword [eax], edx
mov ecx, edi
call fcn.10074d68
lea ecx, [edi + 0x3c]
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::set_void_
cmp byte [ebp + 0xc], 0
je 0x10074029
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x10074023
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x10074031
jmp 0x10074012
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.1001ffa7
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x10074045
mov ecx, esi
call fcn.10065b8a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.100157f5
ret 8
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call sym.MSVCR120.dll__wexecve
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret

Function at 0x1007c6ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1007c6dd
pop dword [ebp - 0x50]
mov eax, 0x94606fe6
sub eax, 0x8458a909
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x5ea92
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4c9e67b3
sub ecx, 0x4c9e1a6b
xor esi, esi
add esi, eax
mov edi, 0x100ece00
add edi, dword [ebp - 0x50]
mov edx, 0x7434becc
add edx, 0x957a4fee
xor dword [ebp - 4], 0x21b14ed6
mov ebx, dword [edi]
add dword [ebp - 4], 0xd2032ae8
sub ebx, edx
add dword [ebp - 0x28], 0x1990ba0
mov dword [esi], ebx
add esi, 0x492c1ddc
sub esi, 0x492c1dd8
add edi, 4
loop 0x1007c733
add eax, 0x63e861a7
sub eax, 0x63e739b4
mov ebx, eax
add eax, 0x7a891269
sub eax, 0x7a891264
mov ecx, 0x96584f01
add ecx, 0x79a7b0ff
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4085a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4085b5
pop dword [ebp - 0x2c]
mov eax, 0x4085b5
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x4f2d1fb9
add dword [ebp - 0x3c], 0xff252592
mov dword [ebp - 0x38], 0x86d7f461
sub dword [ebp - 0x38], 0x54a4a81c
mov dword [ebp - 0x34], 0x22ff7f11
sub dword [ebp - 0x34], 0xd6b33ae3
mov dword [ebp - 0x30], 0xcd62101c
sub dword [ebp - 0x30], 0xcd62101c
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x740c1a07
sub eax, 0x73c9e993
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb6a1cdfe
add dword [ebp - 0x3c], 0xbdd09b58
mov dword [ebp - 0x38], 0xe930a06e
add dword [ebp - 0x38], 0x583bc107
mov dword [ebp - 0x34], 0x7f6f7ac0
sub dword [ebp - 0x34], 0x1c000e54
mov dword [ebp - 0x30], 0x4358e92e
add dword [ebp - 0x30], 0xbca716d2
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xf2b6011e
add eax, 0xd8c3006
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bdd4
push 0
call eax
mov ecx, 0x409a
xor edx, edx
add edx, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x2c]
mov edi, 0x637ed17e
sub edi, 0x8ffb52f6
add dword [ebp - 0x24], 0x3dfc1b4
mov esi, dword [ebx]
sub dword [ebp - 4], ebx
xor esi, edi
sub dword [ebp - 4], edx
mov dword [edx], esi
mov dword [ebp - 0x18], 0x73717aaa
add edx, 4
add ebx, 4
loop 0x4086c8
add eax, 0xf53b
xor ebx, ebx
add ebx, eax
add eax, 0xb8f13938
sub eax, 0xb8f13933
mov ecx, 0xc0763d1a
sub ecx, 0xc0363d1a
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c7fb
Capabilities:
Encode data using xor

Disassembly:
adc byte [ecx + 0x38fcfcfc], bl
or al, 0x10
adc al, 0x18
arpl word [ecx + 0x2036f8b3], di
and al, 0x28
sub al, 0x30
xor al, 0x1c
xor al, 0x1c
cmp byte [eax + 0x46c72c], bh
mov eax, 0x46c72c
push eax
push dword fs:[0]
mov dword fs:[0], esp
and eax, 0
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x40c87b
arpl word [edx + esi], si
je 0x40c898
inc ecx
sub al, 0x61
jl 0x40c7dc
sub byte [ecx], 0xcb
bound eax, qword [edi - 0x7c]
ja 0x40c80a
jno 0x40c7f7
mov byte [eax + edx*4 + 0x1dc771dc], cl
xchg esp, eax
cwde
pushfd
adc al, 0xc6
sbb eax, 0xa8a4a077
xchg edx, eax
sub al, 0x61
sub al, 0x81
dec esp
aad 0xf3
xor eax, 0x83d40ca8
cmp eax, dword [0x290d2ef8]
jae 0x40c83c
pop ebp
in eax, dx
push 0x38c2fc19
daa
arpl word [ebx], di
das
dec edi
sub al, 0x67
dec esi
hlt
sbb byte [eax], dl
sbb al, 0x14
invalid
mov eax, dword [0x3702acb1]
mov cl, 0xac
add dh, byte [edi]
sal byte [eax], 0x22
or dword [edi], ecx
stosd dword es:[edi], eax
add al, 0x24
jmp 0x40c897
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c00
pop dword [ebp - 0x40]
mov eax, 0x5cf4578
add eax, 0xfa70e688
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xbd373399
add dword [ebp - 0x50], 0x911b11b2
mov dword [ebp - 0x4c], 0x9a9c32ad
add dword [ebp - 0x4c], 0x97971998
mov dword [ebp - 0x48], 0x161fb8d
sub dword [ebp - 0x48], 0xb515b75f
mov dword [ebp - 0x44], 0xef5d77e2
add dword [ebp - 0x44], 0x10a2881e
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa248c702
add eax, 0x5df7b98a
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x1a3ba79f
sub dword [ebp - 0x50], 0xa5c93e49
mov dword [ebp - 0x4c], 0x47102c73
sub dword [ebp - 0x4c], 0x5a3cafe
mov dword [ebp - 0x48], 0x91d19b74
sub dword [ebp - 0x48], 0x2e622f08
mov dword [ebp - 0x44], 0x8fb70976
sub dword [ebp - 0x44], 0x8fb70976
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4549d866
add eax, 0xbaf6a86e
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x38696
push 0
call eax
mov ecx, 0x4ee4
mov edi, eax
mov edx, 0x293d04e9
sub edx, 0x28fbf4e9
add edx, dword [ebp - 0x40]
mov esi, 0xd8c34d67
add esi, 0x85bc5e7f
sub dword [ebp - 0x10], eax
mov ebx, dword [edx]
mov dword [ebp - 0x14], 0x50367ff8
xor ebx, esi
xor dword [ebp - 8], esi
mov dword [edi], ebx
mov dword [ebp - 0x18], 0xab7cd890
add edi, 4
add edx, 0x58d4113c
add edx, 0xa72beec8
loop 0x402d1c
add eax, 0x5bbc91d
add eax, 0xfa456546
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x365a2678
add ecx, 0xc9e5d988
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401443
pop dword [ebp - 0x14]
mov eax, 0x401443
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x2ea096d8
add dword [ebp - 0x24], 0x1fb1ae73
mov dword [ebp - 0x20], 0x7eb33046
sub dword [ebp - 0x20], 0x4c7fe401
mov dword [ebp - 0x1c], 0x4602cafa
sub dword [ebp - 0x1c], 0xf9b686cc
mov dword [ebp - 0x18], 0xee0b8e2c
add dword [ebp - 0x18], 0x11f471d4
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x9ec97d25
add dword [ebp - 0x24], 0xd5a8ec31
mov dword [ebp - 0x20], 0x8c9434ba
add dword [ebp - 0x20], 0xb4d82cbb
mov dword [ebp - 0x1c], 0x218f3516
add dword [ebp - 0x1c], 0x41e03756
mov dword [ebp - 0x18], 0xfc9f17bf
sub dword [ebp - 0x18], 0xfc9f17bf
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x37df2
push 0
call eax
mov ecx, 0x4653
xor edi, edi
add edi, eax
mov ebx, 0xcd185f66
add ebx, 0x332e849a
add ebx, dword [ebp - 0x14]
mov edx, 0xc6f63ddc
sub edx, 0x92143387
add dword [ebp - 0x10], 0xb12a8b02
mov esi, dword [ebx]
sub dword [ebp - 4], 0xa36ce04c
add esi, edx
add dword [ebp - 4], edi
mov dword [edi], esi
xor dword [ebp - 0x10], 0x2a25ec37
add edi, 0x951983f2
add edi, 0x6ae67c12
add ebx, 0x668f62df
sub ebx, 0x668f62db
loop 0x401552
add eax, 0x10c1f
mov ebx, eax
add eax, 0xd0d14924
sub eax, 0xd0d1491f
mov ecx, 0xf7083add
add ecx, 0x937c523
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c00
pop dword [ebp - 0x40]
mov eax, 0x8c97078b
sub eax, 0x8c56db8b
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb71581ec
add dword [ebp - 0x50], 0x973cc35f
mov dword [ebp - 0x4c], 0xaf1cc993
sub dword [ebp - 0x4c], 0x7ce97d4e
mov dword [ebp - 0x48], 0xca1ab69e
add dword [ebp - 0x48], 0x82318d90
mov dword [ebp - 0x44], 0xdeb88f5e
sub dword [ebp - 0x44], 0xdeb88f5e
lea eax, [ebp - 0x50]
push eax
mov eax, 0x56631e30
sub eax, 0x5622adcc
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x15e227ae
add dword [ebp - 0x50], 0x5e9041a8
mov dword [ebp - 0x4c], 0x49755d63
sub dword [ebp - 0x4c], 0x808fbee
mov dword [ebp - 0x48], 0xb992b07c
sub dword [ebp - 0x48], 0x56234410
mov dword [ebp - 0x44], 0xaecbe404
sub dword [ebp - 0x44], 0xaecbe404
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2a2
push 0
call eax
mov ecx, 0x55e7
xor edi, edi
add edi, eax
mov esi, 0x410000
add esi, dword [ebp - 0x40]
mov ebx, 0x361d5333
sub ebx, 0xe7ac227a
xor dword [ebp - 0x38], edx
mov edx, dword [esi]
add dword [ebp - 0x30], eax
xor edx, ebx
add dword [ebp - 0x38], edi
mov dword [edi], edx
sub dword [ebp - 0x34], 0x290b62e
add edi, 4
add esi, 0x8c49a922
sub esi, 0x8c49a91e
loop 0x402d13
add eax, 0x26bde3ee
sub eax, 0x26bc997f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40125c
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c01c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [0x40c020], 0x401250
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [0x40c038], eax
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0x40c030
push 0x40c02c
push 0x40c028
call sub.CRTDLL.DLL___GetMainArgs
mov ecx, 0x40a03c
mov edx, dword [ecx]
or edx, edx
je 0x4012ce
call ecx
push dword [0x40c030]
push dword [0x40c02c]
push dword [0x40c028]
mov dword [0x40c014], esp
call fcn.004021b5
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401304
Capabilities:
Check internet connectivity via wininet
Create http request
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 3
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40130f
push edi
mov dword [ebp - 8], 0
push 0x1000000
push 0
push 0
push 0
push 0x40c2af
call sub.WININET.DLL_InternetOpenA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401378
push 0
lea edi, [ebp - 8]
push edi
call sub.WININET.DLL_InternetGetConnectedState
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call sub.WININET.DLL_InternetCloseHandle
cmp dword [ebp - 0xc], 0
je 0x401378
push str.www.google.com
call sub.WS2_32.DLL_gethostbyname
cmp eax, 0
jne 0x401371
mov eax, 1
jmp 0x40137d
mov eax, 0
jmp 0x40137d
mov eax, 1
pop edi
leave
ret

Function at 0x4013d4
Capabilities:
Copy file
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov ecx, 0x28
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4013e2
push esi
push edi
mov dword [ebp - 0x88], 0x80000002
lea edi, [ebp - 0x9f]
lea esi, [0x40c0bd]
mov ecx, 0xb
rep movsb byte es:[edi], byte [esi]
lea edi, str.AV_Update_Client
mov dword [ebp - 0x94], edi
lea edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x8c], edi
lea edi, [ebp - 0x84]
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
call sub.ADVAPI32.DLL_RegCreateKeyA
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x401468
push 0xb
lea edi, [ebp - 0x9f]
push edi
push 1
push 0
push dword [ebp - 0x94]
push dword [ebp - 0x84]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x84]
call sub.ADVAPI32.DLL_RegCloseKey
push 0x40a140
push str._s_svhost.exe
lea edi, [ebp - 0x80]
push edi
call fcn.00406971
add esp, 0xc
push 0
lea edi, [ebp - 0x80]
push edi
push 0x40a040
call sub.KERNEL32.DLL_CopyFileA
push 7
lea edi, [ebp - 0x80]
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
pop edi
pop esi
leave
ret
Function at 0x4014a8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov ecx, 0x1d1
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4014b6
push edi
push dword [ebp + 8]
lea edi, [ebp - 0x643]
push edi
call fcn.004069ed
add esp, 8
push 0x40c24f
lea edi, [ebp - 0x643]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x13e]
push edi
lea edi, [ebp - 0x643]
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x544], eax
cmp dword [ebp - 0x544], 0xffffffff
jne 0x40150e
jmp 0x401670
push 0x40c24d
lea edi, [ebp - 0x112]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
je 0x401540
push 0x40c24a
lea edi, [ebp - 0x112]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
jne 0x401552
lea edi, [ebp - 0x13e]
push edi
push dword [ebp - 0x544]
call sub.KERNEL32.DLL_FindNextFileA
push 0x40c24d
lea edi, [ebp - 0x112]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
je 0x401584
push 0x40c24a
lea edi, [ebp - 0x112]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
jne 0x401596
lea edi, [ebp - 0x13e]
push edi
push dword [ebp - 0x544]
call sub.KERNEL32.DLL_FindNextFileA
lea edi, [ebp - 0x112]
push edi
push dword [ebp + 8]
push str._s_s_n
lea edi, [ebp - 0x53e]
push edi
call fcn.00406971
add esp, 0x10
push dword [ebp + 0xc]
lea edi, [ebp - 0x53e]
push edi
call sub.CRTDLL.DLL_fputs
add esp, 8
jmp 0x401655
test dword [ebp - 0x13e], 0x10
je 0x401625
push dword [ebp + 8]
lea edi, [ebp - 0x742]
push edi
call fcn.004069ed
add esp, 8
lea edi, [ebp - 0x112]
push edi
lea edi, [ebp - 0x742]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x40c242
lea edi, [ebp - 0x742]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push dword [ebp + 0xc]
lea edi, [ebp - 0x742]
push edi
call fcn.004014a8
add esp, 8
lea edi, [ebp - 0x112]
push edi
push dword [ebp + 8]
push str._s_s_n
lea edi, [ebp - 0x53e]
push edi
call fcn.00406971
add esp, 0x10
push dword [ebp + 0xc]
lea edi, [ebp - 0x53e]
push edi
call sub.CRTDLL.DLL_fputs
add esp, 8
lea edi, [ebp - 0x13e]
push edi
push dword [ebp - 0x544]
call sub.KERNEL32.DLL_FindNextFileA
cmp eax, 0
jne 0x4015cb
pop edi
leave
ret