joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100069f0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10006a12
mov eax, 0xfffffffd
jmp 0x10006aef
mov ebx, dword [0x1015c340]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10006abd
mov ebx, dword [0x1015c340]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10006a61
mov ebx, dword [0x1015c340]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10006a61
mov eax, 1
jmp 0x10006a63
xor eax, eax
test eax, eax
je 0x10006a8f
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10006a78
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x1015c340]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10006ae5
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10006aef
mov esp, ebp
pop ebp
ret 4

Function at 0x10006cf6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10006da9
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x100077fe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006cf6
test eax, eax
je 0x10007841
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10007841
cmp word [eax], 0x5a4d
jne 0x10007841
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10007841
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006dc8
mov eax, dword [ebp + 8]
jmp 0x1000785a
mov esp, ebp
pop ebp
ret 4
Function at 0x1007764c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret

Function at 0x100a1f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101092a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100fe6ec
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100a63e0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100a1fd4
jmp dword [ecx*4 + 0x100a213c]
mov al, byte [esi]
test al, al
je 0x100a2002
cmp al, 0x20
je 0x100a1fee
cmp al, 0xa1
jne 0x100a2002
cmp byte [esi + 1], al
jne 0x100a2002
test al, 0x80
je 0x100a1ffa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100a2002
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100a1fe1
test ecx, ecx
je case.default.0x100a1fd4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100a1fd4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100a2048
cmp dl, 0xa1
jne 0x100a203c
cmp byte [eax + 1], 0xa1
jne 0x100a203c
test ecx, ecx
jne 0x100a2034
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100a205c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100a2076
jmp 0x100a205c
cmp dl, 0x20
jne 0x100a205a
test ecx, ecx
jne 0x100a2053
mov edi, eax
mov ecx, 1
jmp 0x100a205c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100a201c
cmp ecx, 1
jne case.default.0x100a1fd4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100a1fd4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100a1fd4
mov al, byte [esi]
test al, al
je 0x100a20ce
test al, 0x80
mov byte [esp + 0x3c], al
je 0x100a20b4
mov cl, byte [esi + 1]
test cl, cl
je 0x100a20ce
cmp al, 0xa1
jne 0x100a20a4
cmp cl, al
je 0x100a20b1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100a66b0
inc esi
jmp 0x100a20c6
cmp al, 0x20
je 0x100a20c6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100a66f0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100a208d
push 0
lea ecx, [esp + 0x14]
call fcn.100a66f0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100b3360
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100a2101
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1013e3c8
call fcn.100a65e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100fe67e
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x406640
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9c], 0xffffffff
je 0x40665f
push edi
push 0
push 0
call fcn.00406590
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push esi
push eax
call fcn.00408090
add esp, 8
mov eax, edi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x406677
push esi
call fcn.00407f80
push esi
push pe_nt_image_headers32
push edi
call fcn.00407fc0
push esi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.00407fc0
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00408090
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x4066d0
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret

Function at 0x407f80
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x411365
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x4113a0
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x41137d
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4113bc
dec esi
je 0x4113b5
dec esi
jne 0x4113c1
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x403a70
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403a84
inc dword [0x4d9880]
add dword [0x4d5b14], 0x108
mov edx, dword [0x4d5b14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4d8348
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403ab3
push 0
mov eax, 0x4da728
call fcn.0041e5c0
cmp dword [0x4d98b4], 0
mov dword [0x4db220], 0
mov dword [0x4db224], 0
je 0x403aeb
mov eax, dword [0x4d6d34]
test eax, eax
je 0x403adf
mov eax, dword [eax]
test eax, eax
jne 0x403ae4
mov eax, 0x4b0cf8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403b6f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x403b1a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x403b1a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4db22c], 0
je 0x403b2c
cmp dword [0x4db228], 0
jne 0x403b35
cmp byte [esi + 0xee], 0
je 0x403b6f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x403b6f
cmp dword [0x4db22c], 0
jge 0x403b57
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4db22c]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret

Function at 0x405160
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x405184
push esi
call fcn.00405430
test eax, eax
jne 0x405184
push 0x4afdc0
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4051bd
cmp dword [esi + 0x18], ebx
je 0x4051af
cmp dword [esi + 8], ebx
je 0x4051a4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe04
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x4051f6
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40521d
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40521d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x405213
cmp dword [esi + 8], ebx
je 0x405208
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405232
mov dword [esi + 4], ebx
jmp 0x4051f6
cmp dword [esi + 0x18], ebx
je 0x40524f
cmp dword [esi + 8], ebx
je 0x405244
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe24
call fcn.00405260
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x405330
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x405340
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40540f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push 0x4afe48
push edx
call fcn.0049a3aa
add esp, 0xc
test eax, eax
je 0x405406
lea eax, [esp]
push 0x4afe60
push eax
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea ecx, [esp]
push 0x4afe78
push ecx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea edx, [esp]
push 0x4afe8c
push edx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea eax, [esp]
push 0x4afe9c
push eax
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea ecx, [esp]
push 0x4afeb8
push ecx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x4053fc
lea edx, [esp]
push 0x4afedc
push edx
call fcn.00499c29
add esp, 8
test eax, eax
jne 0x405415
test esi, esi
je 0x405406
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret

Function at 0x405430
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405442
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4d970c]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4054b0
mov eax, dword [0x4d5a18]
cmp eax, 0xffffffff
je 0x405481
test eax, eax
je 0x4054c6
call esi
mov edx, dword [0x4d5a18]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054c6
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
mov eax, dword [0x4d970c]
add esp, 8
push eax
mov dword [0x4d5a1c], 1
call ebx
test eax, eax
je 0x405462
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x405848
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4058bd
cmp word [ebx + 8], 2
jne 0x40589d
cmp word [ebx + 0xa], 4
jne 0x40589d
mov edi, dword [ebx + 0xc]
jmp 0x405897
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004057e1
mov dword [esi], eax
test eax, eax
je 0x4058b8
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40587b
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049b93e
add esp, 0x10
xor eax, eax
jmp 0x4058e3
push 8
pop eax
jmp 0x4058e3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4058e3
dec ecx
je 0x4058de
dec ecx
je 0x4058d7
dec ecx
jmp 0x4058e3
mov eax, 0x2afb
jmp 0x4058e3
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405eb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d8228], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0x4b00a0
mov dword [ebp - 0x14], 0x405a42
mov dword [ebp - 0x10], 0x4b0094
mov dword [ebp - 0xc], 0x405d03
mov dword [ebp - 8], 0x4b0084
mov dword [ebp - 4], fcn.00405a09
jne 0x406011
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406007
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b6ca
push 0x4b00c4
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b729
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405f74
push 0x4b00a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405f70
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405fc9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b6ca
push 0x4b00cc
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b729
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x406007
push 0x4b00a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405fc5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406007
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x405fe6
inc esi
cmp esi, 3
jl 0x405fcb
jmp 0x405fef
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406007
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d53b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x405ff5
mov dword [0x4d8228], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d53b8]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor ebx, ebx
mov eax, dword [edi + 0x2c]
cmp ebx, eax
jae 0x40897d
mov ecx, dword [edi + 0x24]
cmp byte [ecx + ebx], 0
je 0x4089c3
inc ebx
cmp ebx, eax
jb 0x408972
cmp eax, dword [edi + 0x28]
jne 0x40899f
lea esi, [edi + 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x408990
add eax, eax
jmp 0x408995
mov eax, 0x800
push eax
call fcn.00409456
test eax, eax
jne 0x4089ce
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
push 0
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x24]
add ecx, eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4089ce
add dword [edi + 0x2c], eax
jmp 0x408968
test ebp, ebp
je 0x4089ca
mov dword [ebp], ebx
xor eax, eax
jmp 0x4089d9
push 0x4b0bf8
call fcn.00408d72
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4089df
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
push 0xa
lea eax, [esp + 0x10]
push eax
mov edi, ecx
mov eax, dword [edi + 0x3c]
add eax, 0x26
push eax
call fcn.0049ac8f
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049b250
push 0x4b0ccc
lea esi, [eax + 1]
push 0x4b0cf4
push esi
call fcn.0049aa75
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
push 0
sub esi, eax
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x408a6f
xor eax, eax
push 0x4b0cf8
inc eax
lea ecx, [edi + 0x34]
call fcn.00408fea
test eax, eax
jne 0x408a6f
push eax
push dword [edi + 0x3c]
push dword [edi + 0x34]
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x408a6f
and dword [edi + 0x3c], 0
and dword [edi + 0x40], 0
xor eax, eax
jmp 0x408a7a
push 0x4b0bf8
call fcn.00408d72
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408db8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp eax, 0xffffffff
jne 0x408dd6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408dcd
sub eax, edx
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x408e51
push 3
add eax, 0xfffffffd
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
sub dword [ebp - 4], 3
mov eax, ecx
shr eax, 0x12
push 0x3f
pop edx
and eax, edx
mov al, byte [eax + 0x4aff00]
mov byte [edi + esi], al
mov eax, ecx
shr eax, 0xc
and eax, edx
mov al, byte [eax + 0x4aff00]
mov byte [edi + esi + 1], al
mov eax, ecx
shr eax, 6
and eax, edx
mov al, byte [eax + 0x4aff00]
and ecx, edx
mov byte [edi + esi + 2], al
mov al, byte [ecx + 0x4aff00]
mov byte [edi + esi + 3], al
add ebx, 3
add esi, 4
dec dword [ebp - 8]
jne 0x408dec
cmp dword [ebp - 4], 0
jbe 0x408eb0
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp dword [ebp - 4], 1
jbe 0x408e6c
movzx eax, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x4aff00]
lea eax, [esi + edi]
mov byte [eax], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
cmp dword [ebp - 4], 1
mov dl, byte [edx + 0x4aff00]
mov byte [eax + 1], dl
jbe 0x408ea4
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + 0x4aff00]
jmp 0x408ea6
mov cl, 0x3d
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add esi, 4
mov byte [esi + edi], 0
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e4f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4d983c], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e514
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4d9840], 0
je 0x40e523
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e730
test al, al
jne 0x40e566
cmp byte [ebp + 0xc], al
jne 0x40e566
push 0x4d860c
push 0
push 0
push 0x40e820
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d9f3c], eax
test eax, eax
je 0x40e5f7
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4d860c]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e59c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e576
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x40e603
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e66a
cmp dword [esp + 0x2c], 0
je 0x40e612
mov byte [esp + 0x1f], 1
call fcn.0040ebb0
test al, al
jne 0x40e612
cmp byte [ebp + 0xc], al
jne 0x40e6fe
mov byte [ebp + 8], al
jmp 0x40e5b1
call fcn.0040ebd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e64e
call fcn.0040ebb0
test al, al
jne 0x40e66a
cmp byte [ebp + 0xc], 0
jne 0x40e6f7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d983c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40e6a2
test byte [esp + 0x1e], 1
jne 0x40e6bb
push 0x4b2d00
push 0
push 0
call esi
mov dword [0x4d9f34], eax
jmp 0x40e6bb
mov ecx, dword [0x4d9f3c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e682
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e612
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e5b1
mov edx, dword [0x4d9f3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4d9f3c], 0
call fcn.0040ebd0
jmp 0x40e622
test byte [esp + 0x1e], 1
je 0x40e6bb
mov eax, dword [0x4d9f34]
push eax
call edi
mov dword [0x4d9f34], 0
cmp dword [0x4d9840], 0
je 0x40e6dd
test byte [esp + 0x1e], 2
jne 0x40e6f7
push 0x4b2d14
push 0
push 0
call esi
mov dword [0x4d9f38], eax
jmp 0x40e6f7
test byte [esp + 0x1e], 2
je 0x40e6f7
mov ecx, dword [0x4d9f38]
push ecx
call edi
mov dword [0x4d9f38], 0
cmp byte [esp + 0x1f], 0
je 0x40e730
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d5a1c], 0
push 0
push 0
push 0x10000
push 0x4b2d28
call fcn.00484f30
add esp, 0x18
mov dword [0x4d5a1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a7dd0
cmp byte [0x4db430], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41041d
cmp dword [0x4d9f58], 0
jne 0x4102e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d9f58], eax
mov ebx, 1
add dword [0x4db434], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4db434]
mov esi, dword [0x4d5a30]
mov ecx, eax
sub ecx, dword [0x4d9f58]
mov dword [0x4d9f5c], eax
cmp edx, dword [0x4d5a2c]
jbe 0x41031c
cmp ecx, esi
jb 0x41037a
xor ebx, ebx
cmp ecx, esi
jbe 0x410339
mov dword [0x4db434], 0
mov dword [0x4d9f58], eax
test ebx, ebx
jne 0x41041d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4db1ee], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4db17c]
push 0
push edx
push ebp
call fcn.0047ab90
dec byte [ebp + 0x16]
test eax, eax
jne 0x4103ea
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
push ecx
push edx
push 0x4b3678
mov esi, 0x800
lea edi, [esp + 0x1c]
call fcn.0047ffb0
add esp, 0xc
call fcn.0040f150
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4db430], bl
mov dword [0x4d5a1c], 0
call fcn.00484f30
add esp, 0x18
cmp eax, 7
jne 0x4103d3
push 0
push 4
mov ecx, 0x4da728
call fcn.0041eb40
mov eax, dword [0x4d9f5c]
mov dword [0x4d5a1c], ebx
mov byte [0x4db430], 0
jmp 0x410322
cmp byte [ebp + 0x1b], 0
je 0x41041d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41041d
movzx eax, word [esi + 4]
mov ecx, dword [0x4d970c]
push 0
push eax
push 0x312
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8