joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423160
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 0x4231fd
push ebx
push esi
call fcn.00423129
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.0041fa33
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4231aa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4231fc
push edi
push eax
call fcn.00401700
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4231ca
call fcn.004017e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4231fb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041fa33
add esp, 0x20
test eax, eax
jne 0x4231e9
push edi
call fcn.004017e0
jmp 0x4231f1
push ebx
call fcn.004017e0
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 0x423200
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x423211
pop esi
ret
push ebx
push edi
push esi
call fcn.00423129
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00401700
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x423239
push ebx
push esi
push edi
call fcn.0040fe20
add esp, 0xc
push 0
call fcn.004017e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x427c58
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.00427bd4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x427dc7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x427dc7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x427d7c
jg 0x427cb4
test eax, eax
je 0x427d72
push 1
push 0x1000
call fcn.00401730
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x427cd7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x427d69
push 0x8000
push ebx
call fcn.0041c211
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x427d00
jg 0x427cfb
cmp ecx, 0x1000
jb 0x427d00
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00421ce0
add esp, 0x10
cmp eax, 0xffffffff
je 0x427d45
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 0x427cfb
jl 0x427d2c
test ecx, ecx
jne 0x427ced
push dword [ebp - 0xc]
push ebx
call fcn.0041c211
push esi
call fcn.004017e0
add esp, 0xc
xor ebx, ebx
jmp 0x427dd5
cmp byte [edi + 0x24], 0
je 0x427d5c
cmp dword [edi + 0x20], 5
jne 0x427d5c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x427d67
mov ebx, dword [edi + 0x18]
jmp 0x427d69
xor ebx, ebx
push esi
call fcn.004017e0
pop ecx
jmp 0x427dd5
test ecx, ecx
jg 0x427d3e
jl 0x427d7c
test eax, eax
jae 0x427d3e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ea67
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x427d9c
cmp byte [edi + 0x1c], 0
je 0x427d3e
jmp 0x427dcd
push ebx
call fcn.004239ff
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x427d3e
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 0x427dd5
cmp byte [edi + 0x1c], 0
je 0x427dd2
mov ebx, dword [edi + 0x18]
jmp 0x427dd5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ea67
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x428eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428edd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c8b05ff
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x70ac33ac
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x40892c
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov edx, dword [esp]
add esp, 4
and ecx, ecx
mov eax, ecx
call main
sub ecx, ecx
and eax, ecx
xor dword [esi], edx
dec ecx
add esi, 1
add eax, 0xe5ae0086
sub ecx, ecx
cmp esi, edi
jne fcn.0040892c
add eax, 0xd7759c36
sub ecx, ecx
ret
Function at 0x7ff830
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ff83a
pushal
call 0x7ff840
pop ebp
sub ebp, 0x10
sub ebp, 0x3ff830
jmp 0x7ff856
mov eax, 0x3ff830
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f9
mov edx, 0xc7decbc
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ff86d
jmp 0x7ff880
aaa
jno 0x7ff8ba
xor eax, 0xbcbcbc80
cmp eax, 0xbcbc447d
mov esp, 0xba0471bf
mov esp, 0x9406bcbc
mov esp, 0x5e4bbcbc
mov edi, 0xb03d3774
mov esp, 0x79bfbcbc
in al, dx
in al, dx
aam 0xb4
adc dword [edx - 0x8642b44], esi
lea edi, [ebp + edi*4 - 0x222b6770]
mov eax, dword [0xb954729d]
mov esp, 0x8855bcbc
mov esp, 0xd831bcbc
cwde
push esp
mov ecx, 0x55bcbcbc
mov byte [esp + edi*4 - 0x6727ce44], bh
inc eax
xor eax, 0x50379890
aaa
cmp dword [esp + edi*4 + 0x2937bcbc], esi
mov al, 0xbc
mov esp, 0xac3137bc
mov esp, 0x557dbcbc
mov esi, 0x7e3fbe8d
mov eax, 0x4839b3f5
inc ebx
inc ebx
inc ebx
aaa
nop
cwde
xor eax, ebx
cwde
mov eax, 0x37bcb07e
xor byte [eax - 0x43434348], bl
aam 0xb4
adc dword [edx - 0x8642b44], esi
lea edi, [ebp + edi*4 - 0x27ce6770]
cwde
inc eax
xor eax, 0xb95498b0
mov esp, 0x8555bcbc
mov esi, 0xd831bcbc
cwde
inc eax
xor eax, 0x50379890
inc ebx
leave
mov al, 0x43
leave
mov ah, 0x54
fidivr dword [esp + edi*4 - 0x4bfec844]
mov esp, 0x758fbcbc
invalid
Function at 0x10001910
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x1000192c
call fcn.100326c2
mov esi, dword [edi + 0x18]
call fcn.10032662
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x1000193f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100040fd
mov ecx, dword [edi + 0x30]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100040fd
add esp, 0x14
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x100019fc
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100019fc
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100019c0
mov eax, dword [edi + 0x24]
jmp 0x10001a01
push dword [edi + 0x14]
call fcn.1003261b
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x100019fc
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.10032934
cmp eax, 1
je 0x100019bb
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x10001a16
xor eax, eax
jmp 0x10001a8d
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001a8a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x10001a35
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001a53
push ecx
push eax
call fcn.1003580d
test eax, eax
pop ecx
pop ecx
jge 0x10001a60
or esi, 0xffffffff
jmp 0x10001a62
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001a90
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001a7f
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001a90
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x10001a24
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x10001a12
Function at 0x10001a99
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001aab
xor eax, eax
jmp 0x10001b82
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, bind
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x10001b0f
jg 0x10001acf
cmp eax, ebp
jbe 0x10001b0f
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x10001b0f
cmp edi, ebp
je 0x10001ae6
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x10001b0f
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x10001b1f
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001b3c
push ecx
push eax
push edx
call fcn.1003269b
add esp, 0xc
jmp 0x10001b48
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x10001b56
mov dword [esi + 0x24], ebx
jmp 0x10001aa4
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001b6e
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001b4e
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001b7f
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002a96
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
and ecx, 0xff00
mov edx, edi
shl edx, 0x10
or ecx, edx
shl ecx, 8
movzx edx, di
or ecx, edx
xor ecx, 0xb11924e1
movsx esi, cl
mov edx, ecx
shr edx, 8
movsx edx, dl
mov ebx, esi
mov ebp, dword [esp + 0x14]
shl ebx, 5
add ebx, esi
add edx, ebx
mov esi, edx
shl esi, 5
add esi, edx
mov edx, ecx
shr edx, 0x10
movsx edx, dl
add esi, edx
shr ecx, 0x18
mov edx, esi
shl edx, 5
add edx, esi
movsx ecx, cl
mov ebx, edi
and ebx, 3
mov eax, 0x96438af7
lea ecx, [ecx + edx + 0x7c5d0f85]
mov dword [esp + 0x14], ebx
je 0x10002b58
mov esi, ebp
jmp 0x10002b11
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058058]
mov ebp, ecx
not ebp
shl ebp, 0x15
mov dl, al
add dl, cl
xor dl, byte ds:[esi]
add ebp, 0x2611501
shr ecx, 0xb
or ecx, ebp
mov ebp, eax
shl ebp, 5
add ebp, eax
movzx eax, dl
mov byte ds:[esi], dl
add esi, 1
sub ebx, 1
lea eax, [ebp + eax + 3]
jne 0x10002b11
sub edi, dword [esp + 0x14]
mov ebp, esi
test edi, edi
mov esi, ebp
je 0x10002b9f
jmp 0x10002b62
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058058]
mov ebx, ecx
not ebx
shl ebx, 0x15
lea edx, [eax + ecx]
xor edx, dword ds:[esi]
add ebx, 0x3938731
shr ecx, 0xb
or ecx, ebx
mov ebx, eax
shl ebx, 5
add ebx, edx
mov dword ds:[esi], edx
add esi, 4
sub edi, 4
lea eax, [ebx + eax + 3]
jne 0x10002b62
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10002f49
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push str..cached_header
push dword [ebp + 0xc]
call fcn.10004039
pop ecx
pop ecx
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002f75
test al, 0x10
je 0x10002f7d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.10003d13
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.10003fe9
xor ebx, ebx
cmp edi, ebx
jne 0x10002f9c
xor eax, eax
jmp 0x100030ed
mov esi, dword [ebp + 8]
add esi, 0x2d8
mov dword [ebp - 8], 0x21
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100040fd
add esp, 0x14
add esi, 8
dec dword [ebp - 8]
jne 0x10002fac
mov esi, dword [edi]
mov eax, dword [edi + 4]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0xe
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x28], 0x15
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0x1d
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 4], eax
je 0x100030e5
jmp 0x10003034
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp + 8]
lea edi, [eax + ebx*8 + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100030ad
mov edx, dword [ebp - 4]
sub edx, esi
cmp ecx, edx
jg 0x100030ad
mov eax, dword [eax]
push esi
call fcn.1000493e
test eax, eax
pop ecx
je 0x100030ad
mov eax, dword [edi]
add esi, dword [eax + 4]
cmp esi, dword [ebp - 4]
mov edi, esi
jmp 0x1000308b
push 0x100444a0
push edi
call fcn.1000491d
test eax, eax
pop ecx
pop ecx
jne 0x10003090
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
jne 0x10003076
mov eax, dword [ebp + 8]
sub edi, esi
push esi
mov esi, dword [eax + ebx*8 + 0x2d8]
call fcn.1000408d
mov esi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0xc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xd
jb 0x1000303a
cmp dword [ebp - 0xc], 0
jne 0x100030bd
inc esi
cmp esi, dword [ebp - 4]
je 0x100030e2
push 0x100444a0
push esi
call fcn.1000491d
test eax, eax
pop ecx
pop ecx
jne 0x100030d9
inc esi
cmp esi, dword [ebp - 4]
jne 0x100030c2
cmp esi, dword [ebp - 4]
jne 0x10003032
mov edi, dword [ebp - 0x10]
call fcn.10003da7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000487b
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push 0
push 0x100445ac
call fcn.10004039
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x10], eax
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x10004913
cmp word [edi], 0
push esi
mov esi, edi
je 0x1000490b
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
jne 0x1000490b
push 0x3d
lea eax, [esi + 2]
call fcn.1000497f
mov dword [esp + 0x18], eax
sub eax, esi
sar eax, 1
cmp eax, ebp
pop ecx
jne 0x100048fe
lea eax, [ebp + ebp]
push eax
push esi
push dword [esp + 0x24]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100048fe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 2
push eax
call fcn.100040d2
pop ecx
push esi
call ebx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x100048b5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10004bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10004c52
push esi
push 0x104
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.10004039
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, edi
pop ecx
pop ecx
je 0x10004c4d
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10004c4d
push 0x5c
call fcn.10004228
pop ecx
mov eax, esi
pop esi
jmp 0x10004c5f
push edi
push 0x100445ac
call fcn.10004039
pop ecx
pop ecx
pop edi
leave
ret

Function at 0x10006af7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
call fcn.10003df3
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
pop esi
call fcn.10003f7f
mov edi, dword [ebp + 8]
push dword [edi]
mov ebx, dword [edi + 4]
mov esi, eax
call fcn.100041b8
mov eax, dword [esi]
mov edx, dword [eax]
pop ecx
pop ecx
push 4
pop ecx
cmp dword [esi + 4], ecx
jbe 0x10006b50
mov eax, dword [esi]
imul edx, edx, 0x3279092d
add edx, 0x54d794f
add eax, ecx
mov ebx, edx
shr ebx, 0x18
xor byte [eax], bl
inc ecx
cmp ecx, dword [esi + 4]
jb 0x10006b33
push dword [esi + 4]
push dword [esi]
call fcn.10004795
pop ecx
pop ecx
mov ebx, eax
call fcn.10004011
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], ecx
mov esi, ebx
mov dword [ebx], eax
call fcn.10004011
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e10
Capabilities:
Encode data using xor
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 8
pop ebx
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov eax, 0x288
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_malloc
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10006e65
push dword [ebp - 4]
call sub.MSVCRT.dll_free
push dword [ebp - 8]
call sub.MSVCRT.dll_malloc
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x10006eb1
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xc], ebx
mov eax, esi
sub dword [ebp - 0xc], eax
test edi, edi
je 0x10006eb1
push ebx
lea eax, [edi + 0x194]
push eax
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
or eax, dword [esi + 4]
je 0x10006ea3
or cl, 0xff
mov eax, esi
mov edx, ebx
xor byte [eax], cl
inc eax
add cl, 0xf3
dec edx
jne 0x10006e9a
mov eax, dword [ebp - 0xc]
mov edi, dword [edi]
add esi, ebx
add eax, esi
cmp eax, 0x20
jbe 0x10006e77
push dword [ebp - 4]
call sub.MSVCRT.dll_free
mov edi, ebx
lea ebx, [ebp - 0x2c]
pop ecx
sub ebx, 8
lea eax, [ebx + edi]
push 8
push eax
call fcn.10004795
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [esi]
mov eax, 0x100445cc
push dword [ebp + 8]
call fcn.1000429f
add esp, 0x28
call fcn.10004011
add edi, 8
cmp edi, 0x20
jbe 0x10006ec2
push 0x20
pop ecx
pop edi
pop esi
lea eax, [ebp - 0x2c]
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x10006eff
leave
ret
Function at 0x10006f08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.0002
call fcn.10004055
mov edi, eax
push edi
call fcn.10006e10
add esp, 0x24
push 0x65
pop eax
mov esi, 0x100445ac
push esi
push 0x28
push 2
push edi
mov word [ebp - 0x38], 0x4d
mov word [ebp - 0x36], 0x69
mov word [ebp - 0x34], 0x63
mov word [ebp - 0x32], 0x72
mov word [ebp - 0x30], 0x6f
mov word [ebp - 0x2e], 0x73
mov word [ebp - 0x2c], 0x6f
mov word [ebp - 0x2a], 0x66
mov word [ebp - 0x28], 0x74
mov word [ebp - 0x26], 0x5c
mov word [ebp - 0x24], 0x53
mov word [ebp - 0x22], ax
mov word [ebp - 0x20], 0x61
mov word [ebp - 0x1e], 0x72
mov word [ebp - 0x1c], 0x63
mov word [ebp - 0x1a], 0x68
mov word [ebp - 0x18], bx
mov word [ebp - 0x14], 0x47
mov word [ebp - 0x12], 0x61
mov word [ebp - 0x10], 0x6d
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], 0x74
mov word [ebp - 0xa], 0x72
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov word [ebp - 4], bx
call fcn.10006bef
lea eax, [ebp - 0x38]
push eax
push 0x23
push 3
push edi
call fcn.10006bef
lea eax, [ebp - 0x14]
push eax
push 0x23
push 4
push edi
call fcn.10006bef
push esi
push 0x1a
push 5
push edi
call fcn.10006bef
add esp, 0x40
push 0x22
pop ecx
lea eax, [ebp - 0x38]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10007002
push 0x12
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1000700e
push edi
call fcn.10006af7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret