joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463220
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.00463370
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.00463380
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x46333b
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.00463370
push esi
push edi
mov ebx, eax
call fcn.00463380
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x4632e5
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x4632e5
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004633b0
add esp, 8
test eax, eax
je 0x46335b
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x46331a
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x463303
test ecx, 0x2000000
je 0x463303
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x46330e
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x463281
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004633b0
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x46da80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6b8318]
xor edx, edx
cmp eax, edx
jne 0x46daa6
xor eax, eax
mov byte [eax + 0x6b8218], al
inc eax
cmp eax, 0x100
jl 0x46da8e
mov dword [0x6b8318], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6b8218
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46db37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46db0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46dad8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46dbb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46dc03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46dbea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1c2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00474eb0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x67426c
call fcn.00493468
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x474623
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00493468
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47461c
push 0
mov ecx, eax
call fcn.0046b6c0
mov dword [esi + 0xc], eax
jmp 0x474625
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x474625
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x495acb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x495b03
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00493b82
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00493b5a
jmp 0x495b0f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4971c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x497207
call fcn.0049cc7a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x497207
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4971fe
xor eax, eax
jmp 0x49720f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497215
pop edi
pop esi
pop ebx
ret 4
Function at 0x49d1aa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49d1d8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49d1f6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049d110
jmp 0x49d1f6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49d1f6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049d110
test edi, edi
mov eax, edi
jne 0x49d1e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40108f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4214c4]
lea eax, [ebp - 0x408]
mov esi, edx
push dword [0x4214c0]
mov edi, ecx
push dword [0x4214bc]
push dword [0x4214b8]
push dword [0x4214b4]
push dword [0x4214b0]
push str.WDEP_1.0_200_OK_r_n
push str._s_stats_:_totalBytesSent_:_llu__totalSendCalls_:_llu__totalTimeSpent_:_llu_r_n
push 0x200
push eax
call fcn.00401033
lea ecx, [ebp - 0x408]
add esp, 0x28
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4010f6
sub ecx, edx
sar ecx, 1
push ebx
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test esi, esi
je 0x4011ec
push 5
push str.reset
push esi
call fcn.00409c0b
add esp, 0xc
test eax, eax
jne 0x4011ec
mov esi, dword [0x4214b0]
xor ebx, ebx
mov edi, dword [0x4214b4]
mov eax, esi
mov dword [ebp - 0x40c], 0x4214b0
mov edx, edi
mov dword [ebp - 0x410], edi
xor ecx, ecx
mov edi, dword [ebp - 0x40c]
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x410]
cmp eax, esi
jne 0x401138
cmp edx, edi
jne 0x401138
mov esi, dword [0x4214b8]
xor ebx, ebx
mov edi, dword [0x4214bc]
mov eax, esi
mov dword [ebp - 0x410], 0x4214b8
mov edx, edi
mov dword [ebp - 0x40c], edi
xor ecx, ecx
mov edi, dword [ebp - 0x410]
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x40c]
cmp eax, esi
jne 0x401174
cmp edx, edi
jne 0x401174
mov esi, dword [0x4214c0]
xor ebx, ebx
mov edi, dword [0x4214c4]
mov eax, esi
mov dword [ebp - 0x410], 0x4214c0
mov edx, edi
mov dword [ebp - 0x40c], edi
xor ecx, ecx
mov edi, dword [ebp - 0x410]
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x40c]
cmp eax, esi
jne 0x4011b0
cmp edx, edi
jne 0x4011b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a4
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x21000
mov dword [ebp - 8], ecx
push esi
mov edi, edx
xor ebx, ebx
push 0xcc
push edi
call fcn.00405980
add esp, 0xc
push 0
push esi
lea eax, [ebx + edi]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40167b
add ebx, eax
sub esi, eax
cmp ebx, 4
jl 0x401677
test bl, 1
jne 0x401677
and dword [ebp - 4], 0
mov eax, edi
xor ecx, ecx
movzx edx, word [eax]
cmp edx, 0xa
jne 0x40166a
cmp word [ebp - 4], 0xd
je 0x401682
add ecx, 2
mov dword [ebp - 4], edx
add eax, 2
cmp ecx, ebx
jl 0x40165b
test esi, esi
jg 0x401631
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor ecx, ecx
mov word [eax - 2], cx
xor eax, eax
inc eax
jmp 0x40167d
Function at 0x401aa0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x42095c]
push ebx
push esi
push edi
cmp ecx, 0xffffffff
je 0x401c48
mov dword [ebp - 0x2c], 0x4213e8
mov dword [ebp - 0x28], 0x4213f0
cmp dword [0x4213e4], 0
jne 0x401c48
xor eax, eax
mov dword [ebp - 0xc], 0x10
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x401c39
mov edi, 0x4213e8
mov esi, dword [0x4213e8]
mov ebx, esi
mov edx, dword [0x4213ec]
add ebx, 1
mov ecx, edx
mov dword [ebp - 8], edx
adc ecx, 0
mov eax, esi
lock cmpxchg8b qword [edi]
cmp eax, esi
jne 0x401b0f
cmp edx, dword [ebp - 8]
jne 0x401b0f
xor ecx, ecx
xor eax, eax
mov edx, 0x4213e0
lock cmpxchg dword [edx], ecx
mov edi, dword [ebp - 0x24]
cmp eax, 0x20
jge 0x401bd0
push 4
pop ebx
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401bb0
push 0x10
pop esi
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 3
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x11
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 8
push eax
push esi
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
push edi
push 0x4016b0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401c12
mov edx, str.Error_starting_client_thread._r_n
jmp 0x401bd5
mov edx, str.Maximum_allowed_clients_connected._r_n
mov ecx, edi
call fcn.00403f84
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [0x4213f0]
mov ebx, esi
mov edi, dword [0x4213f4]
add ebx, 1
mov ecx, edi
mov dword [ebp - 0x24], edi
mov edx, edi
adc ecx, 0
mov edi, dword [ebp - 0x28]
mov eax, esi
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x24]
cmp eax, esi
jne 0x401be3
cmp edx, edi
jne 0x401be3
xor ecx, ecx
xor eax, eax
mov edx, 0x4213e0
lock cmpxchg dword [edx], ecx
mov esi, dword [ebp - 0x2c]
xor eax, eax
xor edx, edx
xor ebx, ebx
xor ecx, ecx
lock cmpxchg8b qword [esi]
mov esi, dword [ebp - 0x28]
xor eax, eax
xor edx, edx
lock cmpxchg8b qword [esi]
mov ecx, dword [0x42095c]
cmp ecx, 0xffffffff
jne 0x401ad0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a4
leave
ret
Function at 0x401c90
Capabilities:
Convert ip address from string
Create thread
Initialize winsock library
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
push 0x190
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00405980
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040445e
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 0x401c60
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401d01
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 6
xor esi, esi
inc esi
push esi
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42095c], eax
cmp eax, 0xffffffff
je 0x401da8
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401d97
push 0x2011
mov word [esp + 0x18], di
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x18]
push eax
push str.127.0.0.1
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, esi
jne 0x401d97
push 0x10
lea eax, [esp + 0x18]
push eax
push dword [0x42095c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x401d97
push bind
push dword [0x42095c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x401d97
call fcn.00401aa0
mov eax, dword [0x42095c]
cmp eax, 0xffffffff
je 0x401da8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
jmp 0x401cfb

Function at 0x402139
Capabilities:
Encode data using base64 via winapi
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x18
mov esi, ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4021d4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4021d4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4021d4
lea eax, [ebp - 8]
push eax
push 0
push 0x40000001
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x4021d4
mov eax, dword [ebp - 8]
lea esi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4021d4
lea eax, [ebp - 8]
push eax
push esi
push 0x40000001
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x4021cb
mov eax, esi
jmp 0x4021d6
mov edx, esi
xor ecx, ecx
call fcn.00403eca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a4
leave
ret
Function at 0x403d62
Capabilities:
Check for sandbox and av modules
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41e6b8
mov edi, edx
mov dword [ebp - 0x424], ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x403de4
mov ecx, 0x410
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x403d9c
mov esi, 0x104
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403df6
cmp eax, esi
ja 0x403df6
push str.dbghelp.dll
mov edx, esi
lea ecx, [ebp - 0x414]
call fcn.00401db4
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x403df6
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x403dfd
xor eax, eax
jmp 0x403e82
push edi
push str._ws.exception.dmp
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00401033
add esp, 0x10
lea eax, [ebp - 0x414]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403e80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x424]
push ebx
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x420]
push eax
push ebx
push edi
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x41718c]
call esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a4
leave
ret

Function at 0x403f84
Capabilities:
Check for time delay via queryperformancecounter
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4214a8
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x403fad
sub esi, ecx
sar esi, 1
push edx
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
je 0x40401c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x10]
sub edx, dword [0x4214a8]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [0x4214ac]
push 0
push 0xf4240
push ecx
push edx
call fcn.00416390
push dword [0x4214a4]
push dword [0x4214a0]
push edx
push eax
call fcn.004163d0
push edx
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00403ee5
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a4
leave
ret
Function at 0x40435d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov ecx, 0x20a
lea eax, [ebp - 0x210]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x404388
push esi
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404445
cmp eax, esi
jae 0x404445
push ebx
lea eax, [ebp - 0x210]
push eax
push str._s_apisetschema.dll
lea eax, [ebp - 0x620]
push 0x208
push eax
call fcn.00401033
add esp, 0x10
lea eax, [ebp - 0x620]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x404444
mov esi, dword [0x42147c]
and ebx, 0xfffffffc
push edi
push ebx
mov ecx, esi
call dword [0x41718c]
call esi
movzx ecx, word [eax + 0x14]
lea esi, [eax + 0x18]
movzx edi, word [eax + 6]
add esi, ecx
test edi, edi
je 0x404443
push 8
push str..apiset
push esi
call fcn.00409eda
add esp, 0xc
test eax, eax
je 0x404431
add esi, 0x28
sub edi, 1
jne 0x404413
jmp 0x404443
mov eax, dword [esi + 0x14]
add eax, ebx
je 0x404443
cmp dword [esi + 0x10], 0
je 0x404443
mov dword [0x421458], eax
pop edi
pop ebx
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004048a4
leave
ret

Function at 0x404c3d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x404c72
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x404c6f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x404c7b
add edx, 0x28
cmp edx, esi
jne 0x404c5d
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x404c78

Function at 0x405108
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40e6fb
push ebx
push esi
call fcn.0040e627
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040e5bb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e6a8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e6fa
push edi
push eax
call fcn.0040b65b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e6c8
call fcn.0040b621
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e6f9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e5bb
add esp, 0x20
test eax, eax
jne 0x40e6e7
push edi
call fcn.0040b621
jmp 0x40e6ef
push ebx
call fcn.0040b621
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40f3ce
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419508
push 0x419500
push str.FlsAlloc
push 0x1f
call fcn.0040f2ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f402
push dword [ebp + 8]
mov ecx, esi
call dword [0x41718c]
call esi
jmp 0x40f408
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f44c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419518
push 0x419510
push str.FlsGetValue
push 0x21
call fcn.0040f2ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f483
push dword [ebp + 8]
mov ecx, esi
call dword [0x41718c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40f48b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419520
push 0x419518
push str.FlsSetValue
push 0x22
call fcn.0040f2ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4c5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41718c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4161a0
Capabilities:
Parse pe header

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