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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537410
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x583bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4b9d29
cmp dword [ebp + 0x10], 0
je 0x4b9d29
call fcn.00413e50
mov ecx, eax
test ecx, ecx
je 0x4b9d79
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 4], 1
jge 0x4b9c8e
push 0x105
lea ecx, [ebp + 0xc]
call fcn.0040afd0
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.004fd570
add esp, 8
test eax, eax
js 0x4b9d83
cmp eax, dword [esi - 8]
jg 0x4b9d83
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x14], ecx
je 0x4b9d19
push ecx
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b9d19
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x540960
call fcn.0040df50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b9d06
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.004103d0
jmp 0x4b9ce7
call fcn.00413e50
mov ecx, eax
test ecx, ecx
je 0x4b9d8d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x540960
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040e140
test al, al
jne 0x4b9d66
push 0
push 0x540960
mov ecx, esi
call fcn.0040d780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ab80
push 0x80070057
call fcn.0040ab80
push 0x80004005
call fcn.0040ab80
int3

Function at 0x4bc500
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x4bc50f
pop ebp
jmp fcn.004bc520
xor al, al
pop ebp
ret 4
Function at 0x4bd8d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537980
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x583bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x4bda19
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bda19
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bda19
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4bda19
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x4bda05
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4bd9fe
cmp dword [ebp - 0x1c], ebx
jne 0x4bd9fe
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x4bd99d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4bd997
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4bd9a9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004367a0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.00478e67
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x4bd9fe
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf6d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53963a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x583bb4]
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], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00413e50
mov ecx, eax
test ecx, ecx
je 0x4cf894
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00413e50
mov ecx, eax
test ecx, ecx
je 0x4cf89e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00413e50
mov ecx, eax
test ecx, ecx
je 0x4cf8a8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x4cf7b2
xor ecx, ecx
jmp 0x4cf7d0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf7c0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040d780
push edi
mov ecx, ebx
call fcn.0041c1d0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4cf7ec
xor ecx, ecx
jmp 0x4cf804
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf7f4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040d780
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004d0270
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0041c1d0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cf845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4cf87e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cf87e
cmp dword [esi + 0x10], 0
je 0x4cf875
push dword [edi]
call fcn.0050e060
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040ab80
push 0x80004005
call fcn.0040ab80
push 0x80004005
call fcn.0040ab80
int3
Function at 0x4d0070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539778
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x583bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d0244
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d00c5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4d0244
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d00e3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4d0244
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d0101
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4d0244
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d011f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4d0244
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d0244
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d0144
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x4d0177
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x4d018f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4d01cd
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00436730
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.004d21a0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x558964
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004517a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d01fb
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x4d0234
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4d0234
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0044c400
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00425e20
lea ecx, [ebp - 0x28]
call fcn.00425e20
lea ecx, [ebp - 0x34]
call fcn.0044cb00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a028
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539917
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x583bb4]
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, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4d0bfa
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d0c06
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00436a80
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x4d0c73
push 0x48
call fcn.0049a5c9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4d0c67
push 0x48
push 0
push ebx
call fcn.004d1a10
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.004cf6d0
jmp 0x4d0c69
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d0ca0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00436a80
push 3
push 0x558964
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00436900
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0cef
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x4d0d3e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4d0d3e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00436a80
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00425e20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d0d74
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d0d6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d0db1
push edx
push ecx
call fcn.0049a03e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4d0d93
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0049a028
mov esp, ebp
pop ebp
ret 0x14
call fcn.004ee7a3
int3
Function at 0x4d1440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539a48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x583bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0049a5c9
mov edi, eax
add esp, 4
test edi, edi
je 0x4d14e3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00478667
add esp, 4
mov dword [edi + 4], eax
jmp 0x4d14e5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00456130
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4d1545
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4d1545
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x4d1569
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4d158b
cmp byte [ebp + 0xc], 0
je 0x4d1578
push esi
call fcn.00479793
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4d1597
mov esi, str.ios_base::badbit_set
jmp 0x4d15a7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0045aa80
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00456f20
push 0x570424
lea eax, [ebp - 0x30]
push eax
call fcn.004d1ca7
int3
Function at 0x514d5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051495f

Function at 0x514d65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00514ae0

Function at 0x51bce7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051b4c1

Function at 0x51bcf2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051b6fc

Function at 0x51c185
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051bf0c
Function at 0x401210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
bswap edx
dec esi
rcl ebx, 0x43
rol esi, 0xb1
rcr edi, 0xd8
rcr edi, 0x11
imul esi
neg esi
ror edx, 0x35
neg eax
imul ebx
rcr eax, 0x49
bswap esi
sub edi, 0xac
neg ebx
bswap edi
mov edi, 0x75
and eax, 0x2e
bswap esi
bswap esi
rcr ebx, 0xfa
mov edx, 1
sub ebx, 0x8d
mov eax, 0x4d
add esi, 0x55
add edx, 0x25
dec edx
dec edi
inc ebx
inc esi
inc esi
rcl esi, 0x90
and esi, 0x39
rcr esi, 0x89
dec edi
rol eax, 0xc1
rcl edi, 0xfc
not edx
mov eax, 0x9f
not edi
neg edx
neg edi
not edi
not edi
ror esi, 0x81
or edx, 0xc0
or eax, 7
bswap edi
neg esi
sbb eax, 0xba
xor ecx, ecx
xor edi, edi
not ebx
imul edi
rol edi, 0xc5
sbb edi, 0xf4
inc esi
imul edx
inc edx
add eax, 0x38
inc ebx
bswap edi
bswap ebx
imul edx
dec esi
sub ebx, 0xdc
not eax
add esi, 0x46
dec eax
not ebx
add esi, 0x3a
neg esi
dec edx
imul esi
not edx
or edx, 0x19
and edx, 0x91
sub esi, 0x69
or esi, 0xf4
not eax
add edi, 0xf9
or eax, 0xbc
dec edx
sbb ebx, 0x7a
not esi
sub eax, 8
inc ebx
mov edi, 0xe9
rol edi, 0x39
neg esi
inc eax
rol edx, 0x56
dec edi
and edx, 0xfb
or ebx, 0xaf
sbb edx, 0x59
and edx, 0x38
inc edx
not edi
rcl esi, 0x96
rcr edx, 0x46
neg edx
mov ecx, dword [ebp + 0xc]
neg ebx
bswap ebx
neg eax
dec esi
mov edx, 0xf9
ror esi, 0x67
not edx
neg eax
sbb ebx, 0xa4
dec esi
ror ebx, 0x37
rol edi, 0xbc
inc edx
neg eax
rcr eax, 0x5e
sub esi, 0xe8
neg edi
sub edx, 4
rol edx, 0x7c
rol ebx, 0x61
ror ebx, 0xf8
dec ebx
or edx, 0xb7
inc edi
neg esi
not edx
inc ebx
sbb ebx, 0x97
bswap eax
mov esi, 0xbb
imul edi
imul eax
imul ebx
rcr edx, 0x8f
add edx, 0x8f
or ebx, 0x50
dec eax
sub ebx, 0xdc
add edi, 0xbe
add edx, 0xc6
or eax, 0xc
and edi, 0xcb
imul esi
dec edx
dec ebx
sbb ebx, 0x86
rcl eax, 0xd3
not edx
imul ebx
sbb edi, 0x8a
mov edi, dword [ebp + 8]
mov esi, ebx
mov ebx, ebx
mov esi, ebx
not byte [edi]
xor esi, ebx
mov eax, eax
xor eax, esi
xor ebx, esi
xor ebx, eax
xor eax, ebx
mov eax, esi
mov eax, ebx
xor eax, ebx
add byte [edi], 0x34
mov eax, esi
mov ebx, esi
xor ebx, esi
xor ebx, eax
xor eax, ebx
mov ebx, eax
xor ebx, eax
xor eax, eax
xor ebx, ebx
sub byte [edi], 0x75
mov esi, ebx
mov eax, eax
mov esi, ebx
xor ebx, ebx
xor esi, esi
xor ebx, eax
xor ebx, eax
mov esi, eax
xor eax, esi
imul byte [edi]
inc edi
loop 0x4013d1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407664
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x40766e
repz ret
jmp fcn.0040bb65
Function at 0x407fd3
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.004058fa
and dword [ebp - 4], 0
cmp dword [0x4115cc], 0
mov ebx, eax
jne 0x408084
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408135
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408135
push eax
call fcn.00405888
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115cc], eax
call esi
push eax
call fcn.00405888
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d0], eax
call esi
push eax
call fcn.00405888
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.00405888
pop ecx
mov dword [0x4115dc], eax
test eax, eax
je 0x408084
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405888
pop ecx
mov dword [0x4115d8], eax
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x4080dc
cmp dword [0x4115dc], ebx
je 0x4080dc
push eax
call fcn.00405903
push dword [0x4115dc]
mov esi, eax
call fcn.00405903
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4080dc
test edi, edi
je 0x4080dc
call esi
test eax, eax
je 0x4080d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4080d3
test byte [ebp - 0xc], 1
jne 0x4080dc
or dword [ebp + 0x10], 0x200000
jmp 0x408115
mov eax, dword [0x4115d0]
cmp eax, ebx
je 0x408115
push eax
call fcn.00405903
pop ecx
test eax, eax
je 0x408115
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408115
mov eax, dword [0x4115d4]
cmp eax, ebx
je 0x408115
push eax
call fcn.00405903
pop ecx
test eax, eax
je 0x408115
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115cc]
call fcn.00405903
pop ecx
test eax, eax
je 0x408135
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408137
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x8ebf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9009fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x8ec002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.008efdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x8ec002
lea edx, [esp + 0x14]
push edx
push 0x906140
call fcn.008e76e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.008f020b
push 0x10
call fcn.008f01d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x8ebfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008dc1c0
jmp 0x8ebfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.008ebb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x8ebff0
mov ecx, edi
call fcn.008dc2c0
push edi
call fcn.008f01c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x8ec021
inc ebx
cmp ebx, 0x20
jb 0x8ebf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret