joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40ba30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ba6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40ba6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40bb51
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40ba94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40bac7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00434552
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40bb51
cmp eax, 1
jle 0x40bb24
cmp eax, 3
jne 0x40bb51
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00402a50
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40bb41
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004362b2
add esp, 0x10
cmp edi, eax
jne 0x40bb51
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40ba57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f609
mov esp, ebp
pop ebp
ret 4
Function at 0x40c360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40c401
cmp byte [esi + 0x3d], 0
je 0x40c401
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40c3b7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c3c9
sub eax, 1
je 0x40c3cd
sub eax, 2
je 0x40c401
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c3ea
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004362b2
add esp, 0x10
cmp edi, eax
jne 0x40c3b7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042f609
mov esp, ebp
pop ebp
ret

Function at 0x42bb50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453c2e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x1c
push str.boost::filesystem::copy_file
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004299c0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x42bbb6
mov ecx, dword [esi]
jmp 0x42bbb8
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x42bbc2
mov edx, dword [edi]
jmp 0x42bbc4
mov edx, edi
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42bbe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42bbe3
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
push esi
push edi
push eax
call fcn.0042bfe0
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp eax, 0x10
jb 0x42bc0f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00429f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
Function at 0x42bc30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453c68
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x42bc6b
mov eax, dword [edi]
jmp 0x42bc6d
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42bc93
test esi, esi
je 0x42bc8c
mov dword [esi], 0
call fcn.0042f580
mov dword [esi + 4], eax
mov al, 1
jmp 0x42bd20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.0042f580
mov dword [ebp - 0x60], eax
cmp ebx, 0xb7
jne 0x42bcde
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0042c6b0
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, 3
jne 0x42bcde
test esi, esi
je 0x42bd1e
mov dword [esi], 0
call fcn.0042f580
jmp 0x42bd1b
test esi, esi
jne 0x42bd14
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.0042ae40
mov dword [ebp - 4], esi
call fcn.0042f580
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042b050
push 0x46b190
lea eax, [ebp - 0x5c]
push eax
call fcn.00430e29
call fcn.0042f580
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
Function at 0x42bd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], 0
call ebx
mov edi, eax
mov edx, 2
test edi, edi
mov eax, 1
cmove edi, eax
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042fd6d
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004299c0
push esi
push edi
mov byte [ebp - 4], 1
call ebx
test eax, eax
jne 0x42be22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x42be22
mov ebx, dword [ebp - 0x60]
call fcn.0042f580
test ebx, ebx
jne 0x42be1e
push eax
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042b1c0
push 0x46b190
lea eax, [ebp - 0x5c]
push eax
call fcn.00430e29
mov dword [ebx], edi
jmp 0x42be34
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x42be37
mov dword [ebx], 0
call fcn.0042f580
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x42be50
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00429f20
mov ebx, dword [ebp - 0x64]
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [esi], ax
jne 0x42be73
xor ecx, ecx
jmp 0x42be8f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42be80
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.0042ba50
push esi
call fcn.0042f61a
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
Function at 0x42bec0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cde
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
push 0x1f
push str.boost::filesystem::current_path
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004299c0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x42bf23
mov eax, dword [edi]
jmp 0x42bf25
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x42bf66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x42bf66
call fcn.0042f580
test esi, esi
jne 0x42bf62
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042b050
push 0x46b190
lea eax, [ebp - 0x5c]
push eax
call fcn.00430e29
mov dword [esi], ebx
jmp 0x42bf75
test esi, esi
je 0x42bf78
mov dword [esi], 0
call fcn.0042f580
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp eax, 0x10
jb 0x42bf94
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00429f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
Function at 0x42c6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f22
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x42c6f1
mov eax, dword [edi]
jmp 0x42c6f3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x42c712
push esi
push edi
push ebx
call fcn.0042c520
add esp, 0xc
jmp 0x42c80e
test eax, 0x400
je 0x42c7cd
cmp dword [edi + 0x14], 8
jb 0x42c727
mov eax, dword [edi]
jmp 0x42c729
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0042b3a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402bf0
cmp esi, 0xffffffff
jne 0x42c782
push dword [ebp - 0x34]
push edi
push ebx
call fcn.0042c520
add esp, 0xc
jmp 0x42c80e
push edi
call fcn.0042c080
add esp, 4
test al, al
jne 0x42c7b5
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.0042c160
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42c80e
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42c7df
mov dword [esi], 0
call fcn.0042f580
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x42c7f6
mov dword [ebp - 0x30], 2
call fcn.0042c160
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f609
mov esp, ebp
pop ebp
ret
Function at 0x42cb60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x46d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
push 0x459210
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004015e0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.004142b1
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.004016a0
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44394d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004437cc

Function at 0x4495cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044928f
Function at 0x4f29a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x12d000
lea edi, [esi - 0x9c000]
push edi
jmp 0x4f29ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f29c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f29b0
mov eax, 1
add ebx, ebx
jne 0x4f29d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f29e4
jne 0x4f2a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2a03
dec eax
add ebx, ebx
jne 0x4f29f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f29c8
add ebx, ebx
jne 0x4f29ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f2a55
xor ecx, ecx
sub eax, 3
jb 0x4f2a1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f2a8a
sar eax, 1
mov ebp, eax
jmp 0x4f2a26
add ebx, ebx
jne 0x4f2a26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f29f4
inc ecx
add ebx, ebx
jne 0x4f2a34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f29f4
add ebx, ebx
jne 0x4f2a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f2a36
jne 0x4f2a52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f2a36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f2a74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f2a66
jmp 0x4f29b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f2a74
add edi, ecx
jmp 0x4f29b6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f2a92
cmp byte [edi], 0x11
jne 0x4f2a92
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 0x4f2a97
lea edi, [esi + 0xeb000]
mov eax, dword [edi]
or eax, eax
je 0x4f2b0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10cb64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10cce0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f2ac4
mov ecx, edi
jns 0x4f2af3
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 + 0x10cce4]
or eax, eax
je 0x4f2b09
mov dword [ebx], eax
add ebx, 4
jmp 0x4f2ae1
call dword [esi + 0x10ccf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f2b40
cmp al, 0xef
ja 0x4f2b33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f2b15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f2b22
mov ebp, dword [esi + 0x10cce8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4f2b74
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4011a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x20c
lea eax, [esp]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 8], 0x64
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4011d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
add esp, 0x20c
ret
lea edx, [esp + 0x18]
push edx
push str._n_Local_node_name__s
call fcn.004010c0
add esp, 8
lea eax, [esp + 0x7c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40120f
push str._n_WSAStartup_Failed...Cannot_proceed
call fcn.004010c0
add esp, 4
or eax, 0xffffffff
add esp, 0x20c
ret
push esi
push edi
push 0x10
call fcn.0040213f
add esp, 4
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x401262
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
lea edx, [esp + 0x10]
push esi
mov edi, eax
push edx
push 0x400
push edi
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0xc]
push eax
push edi
push str._n_Error:_Failed_in_call_to_gethostbyname_:__error__d____s
call fcn.004010c0
add esp, 0xc
jmp 0x401275
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edx
push str._n_LocMacInfo___s
call fcn.004010c0
add esp, 8
movsx ecx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov edx, ecx
lea edi, [esp + 0x14]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
push str._n_IP_Address_is__s
call fcn.004010c0
mov edx, dword [0x409748]
lea ecx, [esp + 0x28]
push ecx
push 0x40807c
push edx
call fcn.0040245d
mov eax, dword [0x409748]
push esi
add eax, 0x64
push 0x40807c
push eax
call fcn.0040245d
add esp, 0x20
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x401630
Capabilities:
Modify service
Query service configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
push 3
push str.OraclePreInstService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x40165d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push eax
push 0
push 0
push ebp
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040213f
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push ebp
call edi
mov esi, dword [esi + 0x10]
pop edi
test esi, esi
je 0x4016c7
mov eax, str.Streams_Drivers
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4016be
test cl, cl
je 0x4016ba
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4016be
add eax, 2
add esi, 2
test cl, cl
jne 0x40169a
xor eax, eax
jmp 0x4016c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4016fd
push 0
push 0
push 0
push 0
push 0
push str.Streams_Drivers
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x4016fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_failed_error:_d
call fcn.004010c0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
pop esi
pop ebp
pop ebx
pop ecx
ret