joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406eff
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x41cf41
call fcn.004086da
mov eax, dword fs:[0x2c]
xor edi, edi
mov ecx, dword [eax]
mov eax, dword [0x42d518]
cmp eax, dword [ecx + 4]
jle 0x406f5b
mov esi, 0x42d518
push esi
call fcn.00407ed7
cmp dword [0x42d518], 0xffffffff
pop ecx
jne 0x406f5b
push 0x41d076
mov dword [0x42d50c], edi
mov dword [0x42d510], edi
mov dword [0x42d514], edi
call fcn.00408375
push esi
call fcn.00407e8d
pop ecx
pop ecx
mov eax, dword [0x42d510]
sub eax, dword [0x42d50c]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x407006
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x407006
mov ebx, edi
cmp dword [ebp - 0x2c], ebx
jle 0x406fff
push dword [esi + ebx*4]
lea ecx, [ebp - 0x28]
call fcn.00404a0e
mov dword [ebp - 4], edi
mov eax, dword [0x42d510]
cmp eax, dword [0x42d514]
je 0x406fe3
mov dword [eax], edi
lea esi, [ebp - 0x28]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov edi, eax
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x30]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x18], edi
add dword [0x42d510], 0x18
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x406fed
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00407065
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004049e0
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x406f98
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x42d50c
call fcn.00408689
ret

Function at 0x40b28a
Capabilities:
Parse pe header

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

Function at 0x40f7f3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420724
push 0x42071c
push str.FlsAlloc
push 0x1f
call fcn.0040f6cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f827
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e168]
call esi
jmp 0x40f82d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f871
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420734
push 0x42072c
push str.FlsGetValue
push 0x21
call fcn.0040f6cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f8a8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f8b0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42073c
push 0x420734
push str.FlsSetValue
push 0x22
call fcn.0040f6cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f8ea
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4122d5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x412320
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00412470
test al, al
jne 0x41231a
sub edx, 2
cmp edx, edi
jne 0x412300
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x412342
lea eax, [edi + 2]
cmp edx, eax
je 0x412342
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00412221
add esp, 0x10
jmp 0x41243c
push esi
lea ecx, [ebp - 0x255]
call fcn.00412470
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412385
push dword [ebp - 0x25c]
jmp 0x412332
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4123c2
cmp word [ebp - 0x226], 0
je 0x4123e3
cmp word [ebp - 0x226], ax
jne 0x4123c2
cmp word [ebp - 0x224], 0
je 0x4123e3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00412221
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41242f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41239c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x412417
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41243c
push 0x411f80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00417ec0
add esp, 0x10
jmp 0x41240c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407d91
leave
ret
Function at 0x4188e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418861
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418a54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418a54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x418a09
jg 0x418941
test eax, eax
je 0x4189ff
push 1
push 0x1000
call fcn.0040f51f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418964
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4189f6
push 0x8000
push ebx
call fcn.0040eb51
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41898d
jg 0x418988
cmp ecx, 0x1000
jb 0x41898d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00415aef
add esp, 0x10
cmp eax, 0xffffffff
je 0x4189d2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x418988
jl 0x4189b9
test ecx, ecx
jne 0x41897a
push dword [ebp - 0xc]
push ebx
call fcn.0040eb51
push esi
call fcn.0040f57c
add esp, 0xc
xor ebx, ebx
jmp 0x418a62
cmp byte [edi + 0x24], 0
je 0x4189e9
cmp dword [edi + 0x20], 5
jne 0x4189e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4189f4
mov ebx, dword [edi + 0x18]
jmp 0x4189f6
xor ebx, ebx
push esi
call fcn.0040f57c
pop ecx
jmp 0x418a62
test ecx, ecx
jg 0x4189cb
jl 0x418a09
test eax, eax
jae 0x4189cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415f31
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418a29
cmp byte [edi + 0x1c], 0
je 0x4189cb
jmp 0x418a5a
push ebx
call fcn.004135e5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4189cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418a62
cmp byte [edi + 0x1c], 0
je 0x418a5f
mov ebx, dword [edi + 0x18]
jmp 0x418a62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415f31
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418a7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42cfd8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418abc
cmp byte [ebx], 0xa
jne 0x418abc
or byte [edi + eax + 0x28], 4
jmp 0x418ac1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418bc0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418ba3
inc eax
cmp dl, 0xd
je 0x418aed
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418b13
cmp eax, ecx
jae 0x418b21
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418ad5
jmp 0x418bc0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b9e
cmp dword [ebp - 0x10], 0
je 0x418b9e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42cfd8]
test byte [eax + edi + 0x28], 0x48
je 0x418b78
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418b63
mov byte [esi], dl
jmp 0x418b74
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42cfd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418bc0
cmp byte [ebp - 1], 0xa
jne 0x418b87
cmp esi, ebx
jne 0x418b87
mov byte [esi], 0xa
jmp 0x418bbf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415f31
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418bc0
mov byte [esi], 0xd
jmp 0x418bbf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42cfd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418bbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418bc0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418bc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42cfd8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418c0f
cmp word [ebx], dx
jne 0x418c0f
or byte [eax + edi + 0x28], 4
jmp 0x418c14
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418d77
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418d57
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418c55
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418c8b
cmp eax, edx
jae 0x418c99
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418c30
jmp 0x418d77
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418d52
cmp dword [ebp - 0x18], 0
je 0x418d52
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42cfd8]
test byte [eax + edi + 0x28], 0x48
je 0x418d28
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418cec
mov word [esi], cx
jmp 0x418d23
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42cfd8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42cfd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42cfd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418d77
pop eax
cmp word [ebp - 4], ax
jne 0x418d38
cmp esi, ebx
jne 0x418d38
mov word [esi], ax
jmp 0x418d74
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415f31
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418d77
push 0xd
pop eax
jmp 0x418d33
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42cfd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418d71
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418d77
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406d80
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406d99
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406e79
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push 0x4d0e18
push eax
call fcn.0049f522
add esp, 0xc
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push 0x4d0e30
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push 0x4d0e48
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push 0x4d0e5c
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push 0x4d0e6c
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push 0x4d0e88
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
je 0x406e62
lea eax, [esp + 8]
push 0x4d0eac
push eax
call fcn.0049f3a1
add esp, 8
test eax, eax
jne 0x406e80
test esi, esi
je 0x406e6c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

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

Disassembly:
cmp dword [0x4ea608], 0
push ebx
push esi
push edi
jne 0x406f28
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
push dword [0x4e8c5c]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406f1e
nop dword [eax + eax]
mov eax, dword [0x4e4798]
cmp eax, 0xffffffff
je 0x406eef
test eax, eax
je 0x406f31
call esi
mov ecx, dword [0x4e4798]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406f31
mov edx, 1
mov dword [0x4e4780], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e8c5c]
mov dword [0x4e4780], 1
call edi
test eax, eax
je 0x406ed0
mov dword [0x4ea608], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4075a0
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40761e
cmp word [esi + 8], 2
jne 0x407600
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407600
mov edi, dword [esi + 0xc]
jmp 0x4075fa
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00407539
mov dword [ebp], eax
test eax, eax
je 0x407619
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4075da
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a4167
add esp, 0x10
xor eax, eax
jmp 0x407645
push 8
pop eax
jmp 0x407645
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x407643
sub eax, 1
je 0x40763c
sub eax, 1
jne 0x407643
lea eax, [ecx + 2]
jmp 0x407645
mov eax, 0x2afa
jmp 0x407645
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x407c71
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e8c20], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], 0x4d0ee0
mov dword [esp + 8], 0x40778e
mov dword [esp + 0xc], 0x4d0eec
mov dword [esp + 0x10], 0x407aa1
mov dword [esp + 0x14], 0x4d0ef8
mov dword [esp + 0x18], 0x407753
je 0x407cc0
movzx eax, ax
jmp 0x407dc7
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x407db8
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x138]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a4056
push 0x4d0f08
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a4ed9
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [esp + 0x44]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test esi, esi
je 0x407d38
push 0x4d0ee0
push esi
call ebx
test eax, eax
jne 0x407d7c
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a4056
push 0x4d0f10
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a4ed9
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407db4
push 0x4d0ee0
push esi
call ebx
test eax, eax
je 0x407db1
xor edi, edi
mov ebx, edi
push dword [esp + ebx*8 + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407db1
inc ebx
cmp ebx, 3
jl 0x407d80
test esi, esi
je 0x407db4
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e788c], eax
add edi, 8
cmp edi, 0x18
jl 0x407d9d
jmp 0x407db4
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e8c20], 1
mov eax, dword [eax*8 + 0x4e788c]
add esp, 0x230
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebx, [edi + 0x24]
mov eax, dword [edi + 0x2c]
cmp esi, eax
jae 0x40aa00
mov ecx, dword [ebx]
cmp byte [ecx + esi], 0
je 0x40aa43
inc esi
cmp esi, eax
jb 0x40a9f5
cmp eax, dword [edi + 0x28]
jne 0x40aa21
mov eax, dword [ebx + 4]
test eax, eax
je 0x40aa10
add eax, eax
jmp 0x40aa15
mov eax, 0x800
push eax
mov ecx, ebx
call fcn.0040b5bc
test eax, eax
jne 0x40aa51
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x2c]
push 0
push eax
mov eax, dword [ebx]
add eax, dword [edi + 0x2c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40aa51
add dword [edi + 0x2c], eax
jmp 0x40a9ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40aa4d
mov dword [eax], esi
xor eax, eax
jmp 0x40aa5b
mov ecx, 0x4d1b48
call fcn.0040ae37
pop edi
pop esi
pop ebx
ret 4
Function at 0x40aa61
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
lea eax, [esp]
push ebp
push esi
push edi
mov edi, ecx
push 0xa
push eax
mov eax, dword [edi + 0x3c]
add eax, 0x26
push eax
call fcn.004a3f0c
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.0049d560
push 0x4d1c1c
push 0x4d1c44
lea esi, [eax + 1]
push esi
call fcn.0040bf9f
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
sub esi, eax
push ebp
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40aaef
push 1
push 0x4cee98
lea ecx, [edi + 0x34]
call fcn.0040b117
test eax, eax
jne 0x40aaef
push ebp
push dword [edi + 0x3c]
push dword [edi + 0x34]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40aaef
mov dword [edi + 0x3c], ebp
xor eax, eax
mov dword [edi + 0x40], ebp
jmp 0x40aaf9
mov ecx, 0x4d1b48
call fcn.0040ae37
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x40ae7e
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40ae9f
push ebp
call fcn.004a3fc0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40af28
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx ecx, byte [ebp]
sub edi, 3
movzx eax, byte [ebp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + 0x4d1e30]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4d1e30]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + 0x4d1e30]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + 0x4d1e30]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40aec5
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40af82
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40af41
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + 0x4d1e30]
mov byte [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4d1e30]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40af74
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + 0x4d1e30]
jmp 0x40af76
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6ded
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e9e84]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c6f0
push 0x4d1050
push esi
mov ecx, 0x4e9e38
call fcn.0040a8df
mov eax, dword [0x4e9e84]
cmp eax, 2
je 0x40c876
mov eax, dword [0x4ea78c]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c749
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCPInfo]
test eax, eax
jne 0x40c749
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d8]
push 2
push dword [ebp + 0x10]
call fcn.0047eed0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047f6c0
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
test edx, edx
je 0x40c7c3
cmp dword [ebp - 0x18], 0
jne 0x40c7c3
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047fb00
jne 0x40c7b5
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c7be
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047faa0
jne 0x40c801
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c80c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c7f9
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c80c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c83b
cmp dword [ebp - 0x18], 0
jne 0x40c83b
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c85f
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c858
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c876
push eax
call fcn.0049f4a2
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc