joyce8/EMBER2024-capa huggingface dataset:
Function at 0x69e774
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x69e78d
or eax, 0xffffffff
jmp 0x69e7ee
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x69e7ea
push 0x3d
push esi
call fcn.006a01f3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x69e7ea
cmp esi, eax
je 0x69e7ea
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x7ed73c]
sete cl
cmp eax, dword [0x7ed740]
mov dword [ebp - 4], ecx
jne 0x69e7d0
mov edi, eax
call fcn.0069e713
mov dword [0x7ed73c], eax
cmp eax, ebx
jne 0x69e829
cmp dword [ebp + 0xc], ebx
je 0x69e7f2
cmp dword [0x7ed744], ebx
je 0x69e7f2
call fcn.0069a16b
test eax, eax
je 0x69e829
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x69e7fb
xor eax, eax
jmp 0x69e7ed
push 4
call fcn.006962ca
cmp eax, ebx
pop ecx
mov dword [0x7ed73c], eax
je 0x69e7ea
mov dword [eax], ebx
cmp dword [0x7ed744], ebx
jne 0x69e829
push 4
call fcn.006962ca
cmp eax, ebx
pop ecx
mov dword [0x7ed744], eax
je 0x69e7ea
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x7ed73c]
sub edi, esi
push esi
call fcn.0069e6c6
mov edi, eax
test edi, edi
pop ecx
jl 0x69e890
cmp dword [ebx], 0
je 0x69e890
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00696220
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x69e870
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x69e8d1
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x69e867
mov eax, edi
shl eax, 2
push eax
push dword [0x7ed73c]
call fcn.00697bb3
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x69e8d1
jmp 0x69e8cc
cmp dword [ebp - 4], 0
jne 0x69e938
test edi, edi
jge 0x69e8a0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x7ed73c]
call fcn.00697bb3
test eax, eax
pop ecx
pop ecx
je 0x69e7ea
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x7ed73c], eax
cmp dword [ebp + 0xc], 0
je 0x69e923
push esi
call fcn.0069a0e0
inc eax
inc eax
push eax
call fcn.006962ca
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x69e923
push esi
push edi
call fcn.0069d510
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x69e91c
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00696220
pop ecx
cmp dword [ebp - 4], 0
je 0x69e930
push esi
call fcn.00696220
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x69e7ed
push esi
call fcn.00696220
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x69e7f7
Function at 0x69f0c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00696350
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x69f15b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x7ed71c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x69f15b
cmp eax, 1
je 0x69f17c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x69f15b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x69f128
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x69f157
xor eax, eax
inc eax
jmp 0x69f19b
cmp edi, eax
jae 0x69f15f
xor eax, eax
jmp 0x69f19b
cmp eax, esi
jae 0x69f166
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x7ed71c]
jmp 0x69f17f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x69f26b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7eda4c], ebx
push esi
push edi
jne 0x69f2eb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x69f326
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6e2b74
push edi
call esi
test eax, eax
mov dword [0x7eda4c], eax
je 0x69f326
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x7eda50], eax
call esi
cmp dword [0x7ed71c], 2
mov dword [0x7eda54], eax
jne 0x69f2eb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x7eda5c], eax
je 0x69f2eb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x7eda58], eax
mov eax, dword [0x7eda58]
test eax, eax
je 0x69f330
call eax
test eax, eax
je 0x69f317
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x7eda5c]
test eax, eax
je 0x69f317
test byte [ebp - 8], 1
jne 0x69f330
cmp dword [0x7ed728], 4
jb 0x69f32a
or byte [ebp + 0x12], 0x20
jmp 0x69f34f
xor eax, eax
jmp 0x69f35f
or byte [ebp + 0x12], 4
jmp 0x69f34f
mov eax, dword [0x7eda50]
test eax, eax
je 0x69f34f
call eax
mov ebx, eax
test ebx, ebx
je 0x69f34f
mov eax, dword [0x7eda54]
test eax, eax
je 0x69f34f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x7eda4c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6a025a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00696350
mov eax, dword [0x6fa3d0]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x7ee4a0]
mov dword [ebp - 4], eax
jae 0x6a03a5
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x7ee4c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x6a03a5
push 1
push esi
push ebx
call fcn.0069dafb
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x6a03af
push 2
push esi
push ebx
call fcn.0069dafb
add esp, 0xc
cmp eax, 0xffffffff
je 0x6a03af
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x6a034f
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0069f060
push 0x8000
push ebx
call fcn.006984a3
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x6a030b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0069d8d6
add esp, 0xc
cmp eax, 0xffffffff
je 0x6a0329
sub edi, eax
test edi, edi
jg 0x6a0300
jmp 0x6a033f
cmp dword [0x7ed714], 5
jne 0x6a033c
mov dword [0x7ed710], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.006984a3
pop ecx
pop ecx
jmp 0x6a038f
jge 0x6a038f
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0069dafb
push ebx
call fcn.0069ece8
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x6a038f
mov dword [0x7ed710], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x7ed714], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0069dafb
add esp, 0xc
mov eax, esi
pop edi
jmp 0x6a03b2
mov dword [0x7ed710], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0069a22c
leave
ret
Function at 0x6a6f50
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
push esi
push esi
rdtsc
mov esi, dword [esp + 0x10]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop esi
pop edi
ret

Function at 0x6b697b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x6b69a9
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x6b69ae
cmp eax, 1
je 0x6b69ae
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x6b69b2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6fa3d0]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x6b6a42
push ebx
call fcn.006b697b
test eax, eax
pop ecx
jne 0x6b6a17
mov dword [0x7ed714], 0xf
mov dword [0x7ed710], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0069a22c
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x6b6a51
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x6b69fe
inc eax
cmp eax, 0x104
ja 0x6b69fe
test edi, edi
mov ecx, edi
jne 0x6b6a8d
cmp eax, dword [ebp + 0xa0]
jg 0x6b6a71
mov eax, dword [ebp + 0xa0]
push eax
call fcn.006962ca
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x6b6aa4
mov dword [0x7ed710], 0xc
jmp 0x6b69fe
cmp eax, dword [ebp + 0xa0]
jle 0x6b6aa4
mov dword [0x7ed710], 0x22
jmp 0x6b69fe
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0069d510
pop ecx
pop ecx
jmp 0x6b6a00
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
nop
mov ecx, 0x5ee460c0
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x17c76f4
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x8e15455
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x29293647
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4321c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg ebp, eax
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00431e0e
push eax
push esi
push dword [ebp + 8]
call fcn.00431dc3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00431e0e
push eax
push esi
push dword [ebp + 8]
call fcn.00431dc3
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00431dfe
cld
cdq
xor eax, 0xff7c9d88
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x131413cf
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], 2
push esi
push edi
jbe 0x1314147d
mov esi, dword [ebp + 8]
push 4
pop edi
mov cl, byte [esi]
mov dl, byte [esi + 1]
inc esi
sub dword [ebp + 0xc], 3
inc esi
mov bl, byte [esi]
inc esi
mov byte [ebp + 0xa], bl
mov bl, cl
shr bl, 2
mov byte [ebp - 4], bl
and cl, 3
mov bl, dl
and dl, 0xf
shl cl, 4
shr bl, 4
add cl, bl
mov bl, byte [ebp + 0xa]
mov byte [ebp - 3], cl
mov cl, bl
shl dl, 2
shr cl, 6
add dl, cl
and bl, 0x3f
cmp edi, dword [ebp + 0x14]
mov byte [ebp - 1], bl
ja 0x1314151e
movzx ecx, byte [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov cl, byte [ecx + 0x13141014]
mov byte [eax + ebx], cl
inc eax
movzx ecx, byte [ebp - 3]
inc edi
mov cl, byte [ecx + 0x13141014]
mov byte [eax + ebx], cl
inc eax
movzx ecx, dl
inc edi
mov cl, byte [ecx + 0x13141014]
mov byte [eax + ebx], cl
inc eax
movzx ecx, byte [ebp - 1]
inc edi
mov cl, byte [ecx + 0x13141014]
mov byte [eax + ebx], cl
inc eax
inc edi
cmp dword [ebp + 0xc], 2
ja 0x131413eb
jmp 0x13141480
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x13141519
mov byte [ebp + 0xa], cl
mov byte [ebp + 9], cl
mov byte [ebp + 8], cl
jbe 0x131414ad
mov ecx, dword [ebp + 0xc]
lea edi, [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp + 8]
mov dl, cl
and cl, 3
shr dl, 2
mov byte [ebp - 4], dl
mov dl, byte [ebp + 9]
shl cl, 4
shr dl, 4
add cl, dl
mov dl, byte [ebp + 0xa]
mov byte [ebp - 3], cl
mov cl, byte [ebp + 9]
and cl, 0xf
shl cl, 2
shr dl, 6
add cl, dl
lea edx, [eax + 4]
cmp edx, dword [ebp + 0x14]
ja 0x1314151e
movzx edx, byte [ebp - 4]
mov dl, byte [edx + 0x13141014]
mov byte [eax + ebx], dl
inc eax
movzx edx, byte [ebp - 3]
mov dl, byte [edx + 0x13141014]
mov byte [eax + ebx], dl
inc eax
cmp dword [ebp + 0xc], 1
jne 0x13141507
mov byte [eax + ebx], 0x3d
jmp 0x13141513
movzx ecx, cl
mov cl, byte [ecx + 0x13141014]
mov byte [eax + ebx], cl
inc eax
mov byte [eax + ebx], 0x3d
inc eax
cmp eax, dword [ebp + 0x14]
jb 0x13141523
or eax, 0xffffffff
jmp 0x13141527
and byte [eax + ebx], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1314287d
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows__U__Windows_NT_5.2__en_US__rv:1.5a__Gecko_20030728_Mozilla_Firebird_0.6.1
call dword [0x13153994]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x131428a5
push 5
jmp 0x1314291f
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [ebp + 8]
push eax
call dword [0x131533dc]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x131428c3
push 6
jmp 0x1314291f
push 1
push 0x400000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push 0x1314d8e0
push eax
call dword [0x13153770]
mov edi, eax
cmp edi, ebx
jne 0x131428e6
push 7
jmp 0x1314291f
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x13153680]
test eax, eax
jne 0x131428f9
push 8
jmp 0x1314291f
push dword [ebp + 0x10]
call dword [0x131536c8]
push ebx
push ebx
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call dword [0x131533e0]
mov esi, eax
cmp esi, 0xffffffff
jne 0x13142925
push 9
pop eax
jmp 0x131429ae
cmp dword [0x13152b10], ebx
je 0x1314297f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push 0x3ff
push eax
push edi
call dword [0x131536c0]
add dword [0x13152b0c], 0x400
cmp eax, ebx
je 0x13142981
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x13142981
lea ecx, [ebp - 4]
push ebx
push ecx
mov byte [ebp + eax - 0x40c], bl
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [0x131533b4]
test eax, eax
je 0x13142981
cmp dword [ebp - 4], ebx
je 0x13142981
jmp 0x13142925
mov bl, 1
push esi
call dword [0x13153380]
push edi
call dword [0x1315353c]
push dword [ebp + 8]
call dword [0x1315353c]
push dword [ebp - 8]
call dword [0x1315353c]
neg bl
sbb ebx, ebx
and ebx, 0xfe
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1314300d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x800]
lea ebx, [edi + 0x312]
push eax
push ebx
call fcn.13142e57
mov esi, 0x1314ed1c
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.13142772
add edi, 0x213
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.13142772
lea eax, [ebp - 0x400]
push eax
push ebx
call fcn.13142e57
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.13142772
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push eax
call fcn.13142772
add esp, 0x30
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x13145ca0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push ebx
xor esi, esi
and byte [edi], 0
call fcn.131426fd
test eax, eax
pop ecx
jl 0x13145cd1
mov al, byte [esi + ebx]
push ebx
xor al, byte [esp + 0x1c]
inc esi
mov byte [edi + esi], al
call fcn.131426fd
cmp esi, eax
pop ecx
jle 0x13145cbb
add esi, edi
call fcn.131426d0
mov byte [esi + 1], al
and byte [esi + 2], 0
pop edi
pop esi
pop ebx
ret

Function at 0x13145ce3
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [0x131533d8]
push eax
call dword [0x13153418]
test eax, eax
je 0x13145d48
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [0x131533ec]
test eax, eax
je 0x13145d48
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [0x131533c4]
test eax, eax
jne 0x13145d50
call dword [0x13153670]
leave
ret
push dword [ebp - 4]
call dword [0x13153380]
push 1
pop eax
leave
ret

Function at 0x13145f55
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x131494b4
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, 0x100
xor ebx, ebx
push edi
push ebx
push 0x131746a8
call fcn.13142622
push edi
mov esi, 0x13176434
push ebx
push esi
call fcn.13142622
push 0x2b
push 0x131746a8
push dword [ebp + 8]
call fcn.13145c7d
push 0x2b
push esi
push dword [ebp + 0x10]
call fcn.13145c7d
mov eax, dword [ebp + 0x1c]
add esp, 0x30
add eax, 0x200
push 0x400
push ebx
cmp byte [eax], bl
mov dword [ebp + 8], eax
push 0x131751ac
je 0x1314954e
call fcn.13142622
add esp, 0xc
push 0x400
push 0x131751ac
push dword [ebp + 8]
call fcn.131426fd
pop ecx
push eax
push dword [ebp + 8]
call fcn.131413cf
push 0x400
push ebx
push dword [ebp + 8]
call fcn.13142622
add esp, 0x1c
jmp 0x13149566
call fcn.13142622
push 0x400
push ebx
push 0x13176034
call fcn.13142622
add esp, 0x18
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], ebx
call fcn.13147e06
test eax, eax
je 0x1314957d
call fcn.13147e0c
mov dword [ebp + 0x10], eax
call fcn.13148387
test eax, eax
je 0x1314958e
call fcn.1314838d
mov dword [ebp + 8], eax
lea eax, [ebp - 0x104]
push edi
push eax
push dword [ebp + 0x14]
call fcn.131426fd
pop ecx
push eax
push dword [ebp + 0x14]
call fcn.131413cf
lea eax, [ebp - 0x104]
mov edi, 0x131759ac
push eax
push dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push str._s_actonlines4_ds5_dnickname_s
push edi
call dword [0x13153998]
push 0x131751ac
mov esi, 0x13176034
push str.msg_out_s_r_n
push esi
call dword [0x13153998]
push esi
call fcn.131426fd
add esp, 0x38
mov dword [0x13176534], eax
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows__U__Windows_NT_5.2__en_US__rv:1.5a__Gecko_20030728_Mozilla_Firebird_0.6.1
call dword [0x13153994]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x13149654
push 1
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
push 0x131746a8
push eax
call dword [0x131533dc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x13149654
push 1
push 0x400000
push ebx
push ebx
push ebx
push edi
push str.POST
push eax
call dword [0x13153770]
mov edi, eax
cmp edi, ebx
je 0x13149654
push dword [0x13176534]
push esi
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [0x13153680]
test eax, eax
jne 0x13149658
xor eax, eax
jmp 0x131496c2
lea eax, [ebp - 4]
mov esi, 0x131747a8
push eax
push 0x3ff
push esi
push edi
call dword [0x131536c0]
mov eax, dword [ebp - 4]
mov dword [ebp + 0x14], 1
mov byte [eax + 0x131747a8], bl
cmp byte [0x131747a8], bl
mov eax, dword [ebp + 0x18]
je 0x131496a0
add eax, 0x200
push eax
push esi
call fcn.1314941a
pop ecx
test eax, eax
pop ecx
jne 0x131496a6
mov dword [ebp + 0x14], ebx
jmp 0x131496a6
mov byte [eax + 0x200], bl
push edi
call dword [0x1315353c]
push dword [ebp + 8]
call dword [0x1315353c]
push dword [ebp + 0x10]
call dword [0x1315353c]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret