joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd2c08c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4dd78004]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [0x4dd7800c], eax
mov eax, dword [sym.imp.MSDART.DLL_GetModuleHandleI]
xor esi, esi
push 0x4dd2c138
inc esi
call dword [eax]
test eax, eax
setne al
mov byte [0x4dd78009], al
mov byte [0x4dd78008], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4dd78018], eax
je 0x4dd4066f
call dword [sym.imp.OLEAUT32.dll_ClearCustData]
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x1e
jbe 0x4dd40676
mov byte [0x4dd78046], 1
push 0x45
xor eax, eax
pop ecx
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [sym.imp.MSDART.DLL_GetVersionExI]
mov dword [ebp - 0x118], 0x114
call dword [eax]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 4]
mov dword [0x4dd78050], eax
pop edi
mov eax, esi
pop esi
call fcn.4dd11321
leave
ret
xor esi, esi
jmp 0x4dd2c0dd
jne 0x4dd40682
cmp ax, 0x10a2
jae 0x4dd2c0f2
mov byte [0x4dd78046], 0
jmp 0x4dd2c0f9
Function at 0x4dd459b4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x94]
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
je 0x4dd45a3f
cmp eax, dword [edi + 0x10]
je 0x4dd45a3f
cmp byte [esi], 0
je 0x4dd45b31
push 0xb0
call fcn.4dd113f7
test eax, eax
pop ecx
je 0x4dd45a07
push ebx
mov ecx, eax
call fcn.4dd450aa
jmp 0x4dd45a09
xor eax, eax
test eax, eax
je 0x4dd45a38
mov ecx, dword [ebx + 0x80]
cmp byte [ecx + 0x4dd45b70], 0
je 0x4dd45a26
mov dword [eax + 0xa8], 3
push eax
mov eax, dword [sym.imp.MSDART.DLL_PostMessageI]
push 0
push 0x2001
push dword [edi + 0x14]
call dword [eax]
xor eax, eax
jmp 0x4dd45b67
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x4dd45b05
push 0x24
push 0xa00000
push dword [section..data]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
je 0x4dd45a98
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
push 9
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push 9
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov byte [edx + 0x12], 1
cmp byte [esi], 0
je 0x4dd45ac6
mov esi, dword [esi + 8]
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebx + 0x84]
push eax
push 1
push 0x800
push 0x4dd44304
push dword [ebx + 0x80]
push esi
call dword [ecx + 0x18]
jmp 0x4dd45acf
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
mov esi, dword [ebp - 4]
test esi, esi
mov dword [ebp + 8], eax
je 0x4dd45b3d
mov edi, dword [ebp + 0xc]
push 9
pop ecx
push dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 4]
push dword [section..data]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
pop ecx
pop ecx
jmp 0x4dd45b3d
cmp byte [esi], 0
je 0x4dd45b31
mov esi, dword [esi + 8]
mov ecx, dword [esi]
push eax
push eax
push eax
lea eax, [ebx + 0x84]
push eax
push 1
push 0x800
push 0x4dd44304
push dword [ebx + 0x80]
push esi
call dword [ecx + 0x18]
jmp 0x4dd45b3a
mov eax, dword [edi]
push ebx
mov ecx, edi
push esi
call dword [eax + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x4dd45b70], 0
je 0x4dd45b64
cmp dword [ebp - 0xc], 3
je 0x4dd45b64
mov eax, dword [ebx + 0x94]
cmp dword [eax], 4
jne 0x4dd45b64
mov ecx, ebx
call fcn.4dd743c0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4dd4b4d9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x4dd79140], 1
push ebx
push esi
push edi
jne 0x4dd4b4fe
or dword [0x4dd79140], 1
call fcn.4dd4b5cb
mov dword [0x4dd7913c], eax
push 4
pop eax
call fcn.4dd2ade1
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4dd4b58a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4dd7911c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4dd4b58a
cmp eax, 1
je 0x4dd4b5a2
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4dd4b58a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4dd4b55f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4dd4b586
xor eax, eax
inc eax
jmp 0x4dd4b5be
cmp esi, ebx
jae 0x4dd4b58e
xor eax, eax
jmp 0x4dd4b5be
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4dd7911c]
jmp 0x4dd4b5a4
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dd5c56d
Capabilities:
Check http status code

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
test bh, 0x10
push esi
mov esi, ecx
je 0x4dd5c589
or ebx, 0x2000
push 2
push ebx
call fcn.4dd730ce
test eax, eax
pop ecx
pop ecx
jne 0x4dd5c5a1
mov eax, 0x800a0bb9
jmp 0x4dd5c75d
push edi
and ebx, 0xffff3fff
mov edi, ebx
mov edx, ebx
mov ecx, esi
and edi, 0xffffdfff
and edx, 0x2000
call fcn.4dd5c232
test eax, eax
jne 0x4dd5c5cd
mov eax, 0x800a0c93
jmp 0x4dd5c75c
mov eax, 0xc9
cmp edi, eax
mov ecx, 0xcb
je 0x4dd5c613
cmp edi, 0xc8
je 0x4dd5c613
cmp edi, 0xca
je 0x4dd5c60c
cmp edi, ecx
je 0x4dd5c60c
cmp edi, 0xcd
je 0x4dd5c605
cmp edi, 0xcc
je 0x4dd5c605
mov word [esi + 0x4c], bx
jmp 0x4dd5c61c
or dx, 0x80
jmp 0x4dd5c618
or dx, 0x82
jmp 0x4dd5c618
or dx, 0x81
mov word [esi + 0x4c], dx
mov edx, dword [ebp + 0x10]
cmp edx, 0xffffffff
push 0x10
mov dword [esi + 0x50], edx
pop ebx
je 0x4dd5c62f
test dl, 0x90
jne 0x4dd5c663
cmp edi, eax
je 0x4dd5c65c
cmp edi, ecx
je 0x4dd5c65c
cmp edi, 0xcd
je 0x4dd5c65c
cmp edi, 0xc8
je 0x4dd5c663
cmp edi, 0xca
je 0x4dd5c663
cmp edi, 0xcc
je 0x4dd5c663
mov dword [esi + 0x50], ebx
jmp 0x4dd5c663
mov dword [esi + 0x50], 0x80
cmp edx, 0xffffffff
je 0x4dd5c66d
or dword [esi + 0x50], edx
jmp 0x4dd5c671
or dword [esi + 0x50], 0x24
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4dd5c68d
test byte [esi + 0x50], bl
jne 0x4dd5c68d
mov dword [esi + 0x58], edi
mov byte [esi + 0x5c], 0xff
mov byte [esi + 0x5d], 0xff
jmp 0x4dd5c759
test byte [esi + 0x50], bl
mov dword [ebp + 8], 1
jne 0x4dd5c6a3
mov eax, 0x800a0bb9
jmp 0x4dd5c75c
mov cx, word [esi + 0x4c]
movzx eax, cx
mov edx, 0x2000
and eax, 0xffffdfff
test dx, cx
je 0x4dd5c6bb
mov eax, edx
cmp eax, 0x40
jg 0x4dd5c708
je case.0x4dd5c6d1.1
lea ecx, [eax - 1]
cmp ecx, 0x14
ja case.0x4dd5c6d1.15
movzx ecx, byte [ecx + 0x4dd5c791]
jmp dword [ecx*4 + 0x4dd5c769]
mov byte [esi + 0x5c], 3
jmp 0x4dd5c745
mov byte [esi + 0x5c], 5
jmp 0x4dd5c745
mov byte [esi + 0x5c], 7
jmp 0x4dd5c745
mov byte [esi + 0x5c], 0xa
jmp 0x4dd5c745
mov byte [esi + 0x5c], 0xf
jmp 0x4dd5c745
mov byte [esi + 0x5c], 0x13
jmp 0x4dd5c745
mov byte [esi + 0x5c], 0x14
jmp 0x4dd5c745
mov byte [esi + 0x5c], 0x1d
jmp 0x4dd5c745
cmp eax, 0x48
je case.0x4dd5c6d1.1
cmp eax, 0x83
je 0x4dd5c763
cmp eax, 0x84
jle case.0x4dd5c6d1.15
cmp eax, 0x87
jle case.0x4dd5c6d1.1
cmp eax, edx
je case.0x4dd5c6d1.1
cmp eax, 0x8000
je case.0x4dd5c6d1.1
test edi, edi
jne 0x4dd5c73a
mov dword [ebp - 4], 0x800a0bb9
jmp 0x4dd5c73d
mov dword [esi + 0x58], edi
and dword [ebp + 8], 0
mov byte [esi + 0x5c], 0xff
cmp dword [ebp + 8], 0
mov byte [esi + 0x5d], 0xff
je 0x4dd5c759
push eax
call fcn.4dd7313e
pop ecx
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov byte [esi + 0x5c], 0x27
jmp 0x4dd5c745
Function at 0x4dd601ca
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x94]
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
je 0x4dd60255
cmp eax, dword [edi + 0x10]
je 0x4dd60255
cmp byte [esi], 0
je 0x4dd60347
push 0xb0
call fcn.4dd113f7
test eax, eax
pop ecx
je 0x4dd6021d
push ebx
mov ecx, eax
call fcn.4dd450aa
jmp 0x4dd6021f
xor eax, eax
test eax, eax
je 0x4dd6024e
mov ecx, dword [ebx + 0x80]
cmp byte [ecx + 0x4dd60388], 0
je 0x4dd6023c
mov dword [eax + 0xa8], 3
push eax
mov eax, dword [sym.imp.MSDART.DLL_PostMessageI]
push 0
push 0x2001
push dword [edi + 0x14]
call dword [eax]
xor eax, eax
jmp 0x4dd6037d
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x4dd6031b
push 0x24
push 0xa00000
push dword [section..data]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
je 0x4dd602ae
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
push 9
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push 9
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov byte [edx + 0x12], 1
cmp byte [esi], 0
je 0x4dd602dc
mov esi, dword [esi + 8]
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebx + 0x84]
push eax
push 1
push 0x800
push 0x4dd44304
push dword [ebx + 0x80]
push esi
call dword [ecx + 0x18]
jmp 0x4dd602e5
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
mov esi, dword [ebp - 4]
test esi, esi
mov dword [ebp + 8], eax
je 0x4dd60353
mov edi, dword [ebp + 0xc]
push 9
pop ecx
push dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 4]
push dword [section..data]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
pop ecx
pop ecx
jmp 0x4dd60353
cmp byte [esi], 0
je 0x4dd60347
mov esi, dword [esi + 8]
mov ecx, dword [esi]
push eax
push eax
push eax
lea eax, [ebx + 0x84]
push eax
push 1
push 0x800
push 0x4dd44304
push dword [ebx + 0x80]
push esi
call dword [ecx + 0x18]
jmp 0x4dd60350
mov eax, dword [edi]
push ebx
mov ecx, edi
push esi
call dword [eax + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x4dd60388], 0
je 0x4dd6037a
cmp dword [ebp - 0xc], 3
je 0x4dd6037a
mov eax, dword [ebx + 0x94]
cmp dword [eax], 4
jne 0x4dd6037a
mov ecx, ebx
call fcn.4dd743c0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4dd6071b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0xffffff7f
cmp ecx, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x4dd6076b
xor eax, eax
inc eax
cmp dword [esi + 0x118], ebx
mov dword [ebp - 0xc], eax
je 0x4dd60752
mov eax, dword [esi + 0x128]
jmp 0x4dd60769
push eax
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, esi
call fcn.4dd1e28a
test eax, eax
jl 0x4dd6076b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
cmp byte [ebp + 0xc], bl
jne 0x4dd60779
mov word [esi + 0x1bc], bx
jmp 0x4dd60780
mov word [esi + 0x1be], bx
mov ecx, esi
call fcn.4dd164bf
test al, al
jne 0x4dd607cc
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
xor eax, eax
cmp dword [ebp + 8], edi
push 1
setne al
push 1
push dword [ebp + 0xc]
lea ecx, [esi + 0x114]
push eax
call fcn.4dd165a3
cmp dword [ebp - 4], ebx
je 0x4dd607cc
push dword [ebp - 4]
push ebx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], ebx
jne 0x4dd60856
cmp byte [ebp + 0xc], bl
jne 0x4dd607e3
cmp word [esi + 0x1bc], bx
jmp 0x4dd607ea
cmp word [esi + 0x1be], bx
jne 0x4dd607fe
cmp word [esi + 0x1bc], bx
je 0x4dd60841
cmp word [esi + 0x1be], bx
je 0x4dd60841
call fcn.4dd11340
push dword [eax + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x4dd60841
call fcn.4dd11340
push dword [eax + 0x10]
call edi
cmp dword [eax + 4], ebx
je 0x4dd60841
call fcn.4dd11340
push dword [eax + 0x10]
call edi
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.4dd11340
push dword [eax + 0x10]
call edi
mov dword [eax + 4], ebx
cmp byte [ebp + 0xc], bl
mov ecx, esi
jne 0x4dd6084f
call fcn.4dd14b0f
jmp 0x4dd60864
call fcn.4dd164d6
jmp 0x4dd60864
mov word [esi + 0x1be], bx
mov word [esi + 0x1bc], bx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4dd7522f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x4dd7524e
mov eax, 0x80004005
jmp 0x4dd752a6
cmp dword [esi + 0xc], 0
je 0x4dd7525b
mov ecx, esi
call fcn.4dd2a572
mov eax, dword [sym.imp.MSDART.DLL_DeleteFileI]
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4dd75273
cmp eax, 6
jne 0x4dd752a4
test edi, edi
jne 0x4dd7527b
xor eax, eax
jmp 0x4dd7529d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.4dd2ade1
mov eax, esp
push esi
push edi
push eax
call fcn.4dd6f08f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4dd752b4
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4dd78004]
and dword [ebp - 0x48], 0
and dword [ebp - 0x50], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x60], ecx
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], eax
call fcn.4dd1167d
push 0
lea ecx, [ebp - 0x5c]
call fcn.4dd11757
test eax, eax
jne 0x4dd752fa
mov esi, 0x80030103
jmp 0x4dd75424
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x4c]
push eax
push 0x3c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [sym.imp.MSDART.DLL_GetFileSecurityI]
push 4
push esi
mov byte [ebp - 0x41], 0
call dword [eax]
cmp dword [ebp - 0x4c], 0x3c
jbe 0x4dd75354
push dword [ebp - 0x4c]
call fcn.4dd113f7
test eax, eax
pop ecx
mov dword [ebp - 0x54], eax
jne 0x4dd7533e
mov dword [ebp - 0x48], 0x8007000e
jmp 0x4dd75421
lea ecx, [ebp - 0x4c]
push ecx
push dword [ebp - 0x4c]
mov byte [ebp - 0x41], 1
push eax
mov eax, dword [sym.imp.MSDART.DLL_GetFileSecurityI]
push 4
push esi
call dword [eax]
test eax, eax
jne 0x4dd75362
call dword [sym.imp.MSDART.DLL__OnUnicodeSystem_0]
test eax, eax
jne 0x4dd75373
push dword [ebp - 0x54]
mov eax, dword [sym.imp.MSDART.DLL_SetFileSecurityI]
push 4
push ebx
call dword [eax]
test eax, eax
jne 0x4dd7537f
mov dword [ebp - 0x48], 0x80070005
jmp 0x4dd75412
mov ecx, dword [ebp - 0x60]
push esi
call fcn.4dd7522f
push esi
push ebx
call dword [sym.imp.msvcrt.dll__wrename]
test eax, eax
pop ecx
pop ecx
je 0x4dd75412
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4dd753af
cmp eax, 6
je 0x4dd753af
mov dword [ebp - 0x48], 0x80030103
jmp 0x4dd75412
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.4dd74f17
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x4dd75412
cmp dword [ebp - 0x50], 0
je 0x4dd75412
test ebx, ebx
jne 0x4dd753d0
xor eax, eax
jmp 0x4dd753f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.4dd2ade1
mov eax, esp
push esi
push ebx
push eax
call fcn.4dd6f08f
push dword [ebp - 0x50]
push eax
call dword [sym.imp.msvcrt.dll_rename]
test eax, eax
pop ecx
pop ecx
je 0x4dd75409
mov dword [ebp - 0x48], 0x80030103
push dword [ebp - 0x50]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x41], 0
je 0x4dd75421
push dword [ebp - 0x54]
call fcn.4dd11451
pop ecx
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x5c]
call fcn.4dd11434
mov eax, esi
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 4]
call fcn.4dd11321
pop esi
pop ebx
leave
ret 8

Function at 0x4dd76242
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [ecx + 0x51], 0
jne 0x4dd7625e
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dd7625e
and dword [eax + 0xc], 0
ret
Function at 0x4dd76264
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
test al, al
push ebx
push esi
mov esi, ecx
mov byte [esi + 0x51], al
je 0x4dd7627b
xor ebx, ebx
jmp 0x4dd7628b
call fcn.4dd11340
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [ebp + 8]
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
push edi
mov dword [esi + 0x54], eax
mov eax, 0x30000
lea edx, [esi + 0x20]
push 6
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], eax
pop ecx
xor eax, eax
mov edi, edx
mov byte [esi + 0x50], 0
mov dword [esi + 8], 0x4005
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0x10], 0x4001
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0x4002
mov dword [esi + 0x1c], 0x4003
rep stosd dword es:[edi], eax
push esi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test ebx, ebx
pop edi
je 0x4dd762f6
mov dword [ebx + 0xc], esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100040fd
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x10006c4f
call fcn.10006887
push 1
mov esi, 0xa8
push esi
push str._LIB::SendByte__opcode:__d__byte:__d_n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push 0x10
call fcn.10005768
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
add esp, 0x14
mov ecx, eax
call fcn.100022eb
mov edi, eax
push esi
mov ecx, edi
call fcn.10002313
push 1
call fcn.10002313
call fcn.10002337
mov ecx, edi
call fcn.1000556c
mov eax, dword [edi + 0xc]
push 0
movzx esi, word [eax]
add esi, 2
push esi
push eax
push dword [0x1000a500]
call dword [sym.imp.WS2_32.dll_send]
push eax
push esi
push str._LIB::SendByte__bytestosend:__d__ret:__d_n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push dword [edi + 0xc]
call fcn.100059ae
push 0x10
push edi
call fcn.10005798
add esp, 0x20
call fcn.10006864
ret 8
Function at 0x10004d55
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x10004d7b
mov word [esi], bx
jmp 0x10004d83
cmp dword [ebp + 8], 1
jne 0x10004d83
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret

Function at 0x10004d98
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
mov ebx, edx
push eax
mov esi, ecx
push 0x40
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push dword [ebp - 4]
call esi
pop esi
pop ebx
leave
ret

Function at 0x10005540
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10002d9f
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
mov byte [esi + 8], al
mov eax, esi
pop esi
ret 0xc
Function at 0x1000556c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1000a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x719d78]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x719d7c]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x719d80]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete bl
mov dword [ebp - 0xc], eax
mov eax, dword [0x719d84]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 8], eax
lea ebx, [ebx*4 + 2]
add esi, ebx
mov dword [ebp - 0x28], ebx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x100055cf
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x100055db
push 8
pop eax
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
add ecx, ebx
and edx, 3
mov dword [ebp - 0x20], ecx
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x1000566f
mov edi, dword [ecx + edx*4]
xor esi, esi
mov ebx, dword [ecx + edx*4 + 4]
push 0x20
pop edx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
sub esi, 0x61c88647
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
add ebx, ecx
sub edx, 1
jne 0x10005606
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x24]
jl 0x100055fa
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
lea ecx, [ebx - 2]
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000575a
leave
ret
Function at 0x1000568b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x719d78]
mov dword [ebp - 0x14], eax
mov eax, dword [0x719d7c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x719d80]
mov dword [ebp - 0xc], eax
mov eax, dword [0x719d84]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
test eax, eax
jle 0x1000574d
push ebx
push edi
mov edi, dword [esi + edx*4 + 2]
mov ebx, dword [esi + edx*4 + 6]
mov esi, 0xc6ef3720
push 0x20
pop edx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
add esi, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
sub edi, ecx
sub edx, 1
jne 0x100056ea
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esi + edx*4 + 2], edi
mov dword [esi + edx*4 + 6], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x100056da
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000575a
leave
ret