joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.0041bd40
mov eax, dword [0x552994]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x490230
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x490230
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4902a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x49028a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4902a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x49033a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x490328
lea eax, [esi + esi]
call fcn.004243b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x49033a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4902d3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x49033a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00420bd6
mov esi, eax
add esp, 8
test esi, esi
jne 0x4903de
call fcn.00424417
cmp dword [eax], 2
je 0x490320
call fcn.00424417
cmp dword [eax], 9
jne 0x490332
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00423f65
mov esi, eax
add esp, 8
test esi, esi
jne 0x4903de
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00482ef0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x5172b8
push eax
push 0x52d7ac
push ecx
push str.fopen_
push 5
call fcn.004831f0
add esp, 0x2c
call fcn.00424417
cmp dword [eax], 2
jne 0x4903b0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00482ef0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bab8
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00482ef0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bab8
mov esp, ebp
pop ebp
ret
push 0x55704c
call fcn.0047ed40
mov edi, eax
add esp, 4
test edi, edi
jne 0x490410
push esi
call fcn.004208b3
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bab8
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0047e780
push esi
push 1
push 0x6a
push edi
call fcn.0047eae0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bab8
mov esp, ebp
pop ebp
ret
Function at 0x4ba480
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4ba563
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4ba4fe
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x540c80]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x540c80]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x540c80]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x540c80]
mov byte [ecx], dl
jmp 0x4ba550
shl edx, 0x10
cmp edi, 2
jne 0x4ba50f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x540c80]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x540c80]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4ba53d
lea edx, [edi + 0x3c]
jmp 0x4ba54a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x540c80]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4ba4a0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4cef80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4cef99
mov esi, edi
mov edi, eax
jmp 0x4cef9b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4cefab
mov eax, ebx
jmp 0x4cefb5
push eax
push ebx
call fcn.00487a90
add esp, 8
test eax, eax
jne 0x4cefbd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4cefd9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4cefc4
cmp eax, dword [esi + 4]
jge 0x4ceff0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4cefe0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4cf011
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4cf00e
dec eax
test eax, eax
jg 0x4cf000
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4d8bf7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0041bd40
mov eax, dword [0x552994]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4d8d64
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.00489910
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00489a10
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004f1dc0
push ebp
call fcn.00489910
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00489a10
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004f1dc0
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4d8c13
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0041bab8
add esp, 0xa0
ret
Function at 0x4e91b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x562b60
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x4e91c0
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x562f60
jl 0x4e91b9
cmp esi, 0x800
jae 0x4e921a
lea ecx, [esi*4 + 0x562b60]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x562b60]
xor edx, eax
cmp ecx, 0x564b60
mov dword [ecx - 4], edx
jl 0x4e91f2
mov dword [0x561860], fcn.004e9cc0
call fcn.004e9ea0
pop edi
pop esi
test eax, eax
jne 0x4e9239
mov dword [0x561860], 0x4e9d70
ret
Function at 0x4ed8d5
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x4ed8e9
cmp eax, 1
je 0x4ed8e9
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x4ed639
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x4edacf
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x552994]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 8
mov eax, 0x507dcc
call fcn.0041bac7
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x4edb26
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.0041bab8
add ebp, 0x454
leave
ret 4
mov esi, 0xff
push esi
lea eax, [ebp + 0x351]
push ebx
push eax
mov byte [ebp + 0x350], bl
call fcn.0041bd70
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.00420510
push edi
mov dword [ebp - 0x14], ebx
call fcn.0041b4b0
add esp, 0x18
push 0x56198c
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004ed905
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.0041bd70
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x4edb91
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x4edc09
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x4edbab
inc esi
inc esi
jmp 0x4edbfd
cmp al, 0x5c
jne 0x4edbfc
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.0041c0c0
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.004eda85
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4edbfc
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4edc0c
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x4edb99
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004ed30d
mov eax, ebx
jmp 0x4edb01
Function at 0x4ee112
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ee14f
cmp dword [ebp + 0x14], edi
je 0x4ee14f
cmp ecx, edi
jne 0x4ee156
call fcn.00424417
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041c55b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ee16a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ee18b
cmp ebx, 0xffffffff
je 0x4ee17a
push ebx
push edi
push ecx
call fcn.0041bd70
add esp, 0xc
cmp esi, edi
je 0x4ee137
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ee137
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ee1a7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ee1ae
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ee29f
test word [esi + 0xc], 0x10c
je 0x4ee202
mov eax, dword [esi + 4]
test eax, eax
je 0x4ee202
jl 0x4ee300
cmp ebx, eax
mov edi, ebx
jb 0x4ee1d3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ee2a7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041b3be
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ee297
cmp ebx, dword [ebp - 0xc]
jb 0x4ee26f
cmp dword [ebp - 0xc], 0
je 0x4ee22c
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4ee221
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ee228
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ee237
mov eax, closesocket
cmp ebx, eax
ja 0x4ee237
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ee2d3
push eax
push dword [ebp - 8]
push esi
call fcn.0042d761
pop ecx
push eax
call fcn.0041d874
add esp, 0xc
test eax, eax
je 0x4ee312
cmp eax, 0xffffffff
je 0x4ee300
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ee297
push esi
call fcn.0043020b
cmp eax, 0xffffffff
pop ecx
je 0x4ee304
cmp dword [ebp - 4], 0
je 0x4ee2d3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ee1b6
mov eax, dword [ebp + 0x14]
jmp 0x4ee151
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee2be
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041bd70
add esp, 0xc
call fcn.00424417
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ee147
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee2e9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041bd70
add esp, 0xc
call fcn.00424417
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ee147
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ee151
or dword [esi + 0xc], 0x10
jmp 0x4ee304
Function at 0x453ff0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
jmp 0x45400a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454000
mov eax, 1
add ebx, ebx
jne 0x454023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454034
jne 0x454053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454053
dec eax
add ebx, ebx
jne 0x454040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454018
add ebx, ebx
jne 0x45404f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4540a5
xor ecx, ecx
sub eax, 3
jb 0x45406b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4540da
sar eax, 1
mov ebp, eax
jmp 0x454076
add ebx, ebx
jne 0x454076
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454044
inc ecx
add ebx, ebx
jne 0x454084
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454044
add ebx, ebx
jne 0x454091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454086
jne 0x4540a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454086
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4540c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4540b6
jmp 0x454006
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4540c4
add edi, ecx
jmp 0x454006
pop esi
mov edi, esi
mov ecx, 0x2b3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4540e2
cmp byte [edi], 6
jne 0x4540e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4540e7
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x45415f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x553a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x553dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x454114
mov ecx, edi
jns 0x454143
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x553e4]
or eax, eax
je 0x454159
mov dword [ebx], eax
add ebx, 4
jmp 0x454131
call dword [esi + 0x553e0]
mov ebp, dword [esi + 0x553e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x454193
sub esp, 0xffffff80
jmp 0x404e98

Function at 0x414de6
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], esi
and edx, ebx
push ebx
pop edx
dec ebx
add edi, 4
add eax, edx
cmp edi, ecx
jne fcn.00414de6
mov ebx, 0x569f8e1f
ret
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad74708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x3ad74717
pop dword [ebp - 0x4c]
mov eax, 0xc8c9537c
add eax, 0x720df39b
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x39114
push 0
mov eax, 0x366589ce
sub eax, 0xfb8e791a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4dcd
xor esi, esi
add esi, eax
mov edx, 0x35fb4ce1
add edx, 0x4dd311f
add edx, dword [ebp - 0x4c]
mov ebx, 0xd7e6497f
sub ebx, 0xc3105e5
mov edi, dword [edx]
xor dword [ebp - 0x18], eax
xor edi, ebx
mov dword [esi], edi
add dword [ebp - 0x34], 0xbfd7a6aa
add esi, 0x8e75c60e
add esi, 0x718a39f6
add edx, 0x544b6b97
add edx, 0xabb4946d
loop 0x3ad74772
add eax, 0x8ccb728c
sub eax, 0x8cca4885
mov ebx, eax
add eax, 0xef1a632b
add eax, 0x10e59cda
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401710
Capabilities:
Query environment variable

Disassembly:
call fcn.00406420
test eax, eax
je 0x401745
mov eax, dword [sym.imp.php5ts.dll_sapi_globals_id]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + ecx*4 - 4]
mov eax, dword [ecx]
mov edx, dword [esp + 8]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
jmp fcn.00406180
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
ret

Function at 0x401760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebx, ebx
jne 0x40176d
xor eax, eax
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401772
sub eax, edx
push esi
mov esi, eax
call fcn.00406420
test eax, eax
je 0x4017a9
mov eax, dword [sym.imp.php5ts.dll_sapi_globals_id]
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + ecx*4 - 4]
mov eax, dword [ecx]
push ebp
push esi
push ebx
push eax
call fcn.004061c0
add esp, 0x10
pop esi
pop ebp
ret
test ebp, ebp
je 0x4017bd
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017b2
sub eax, edx
jmp 0x4017bf
xor eax, eax
push edi
lea edi, [eax + esi + 4]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x401818
dec edi
test ebp, ebp
je 0x401800
push ebp
push ebx
push str._s_s
push edi
push esi
call dword [sym.imp.php5ts.dll_ap_php_slprintf]
push esi
call dword [sym.imp.MSVCR90.dll__putenv]
add esp, 0x18
push ebx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
pop edi
pop esi
pop ebp
ret
push ebx
push 0x408d4c
push edi
push esi
call dword [sym.imp.php5ts.dll_ap_php_slprintf]
push esi
call dword [sym.imp.MSVCR90.dll__putenv]
add esp, 0x14
push ebx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x405a50
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
push edi
test eax, eax
je 0x405ac6
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 1]
sub ecx, eax
sub ecx, 8
mov dword [esp + 0x10], edx
mov edx, ecx
sar edx, 8
mov byte [eax + 4], dl
mov edx, dword [esp + 0x18]
lea ebx, [ecx + 7]
mov byte [eax + 3], dl
sar edx, 8
and ebx, 0xfffffff8
sub ebx, ecx
mov byte [eax + 2], dl
mov dl, byte [esp + 0x10]
mov byte [eax + 5], cl
mov byte [eax + 6], bl
mov byte [eax + 7], 0
mov byte [eax + 1], dl
mov byte [eax], 1
test ebx, ebx
je 0x405abc
push ebx
lea eax, [eax + ecx + 8]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
add dword [esi + 0x24], ebx
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x24]
mov ebp, eax
sub ebp, esi
sub ebp, 0x28
cmp dword [esp + 0x1c], 0
je 0x405b11
mov ecx, dword [esi + 0xc]
mov byte [eax + 3], cl
sar ecx, 8
mov byte [eax + 5], 8
mov byte [eax + 4], 0
mov byte [eax + 6], 0
mov byte [eax + 2], cl
mov byte [eax + 7], 0
mov byte [eax + 1], 3
mov byte [eax], 1
mov byte [eax + 8], 0
mov byte [eax + 9], 0
mov byte [eax + 0xa], 0
mov byte [eax + 0xb], 0
mov byte [eax + 0xc], 0
add ebp, 0x10
xor edi, edi
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, ebp
mov dword [eax], 0
mov eax, dword [esi + 8]
sub ecx, edi
cmp dword [esi + 4], 0
lea edx, [esi + edi + 0x28]
jne 0x405b40
push ecx
push edx
push eax
call dword [sym.imp.MSVCR90.dll__write]
add esp, 0xc
mov ebx, eax
jmp 0x405b67
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
jg 0x405b6b
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
test ebx, ebx
jle 0x405b6f
add edi, ebx
jmp 0x405b85
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0
je 0x405b85
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
jne 0x405b8b
cmp edi, ebp
jne 0x405b13
jmp 0x405b8d
mov edi, ebx
cmp edi, ebp
je 0x405ba0
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea eax, [esi + 0x28]
pop edi
mov dword [esi + 0x24], eax
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret