joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464b80
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x464b99
push 9
push esi
call sub.user32.dll_ShowWindow
mov eax, dword [0x4a6460]
cmp dword [eax], 2
jne 0x464bad
mov eax, dword [0x4a5fcc]
cmp dword [eax], 4
jg 0x464be1
mov eax, dword [0x4a6460]
cmp dword [eax], 1
jne 0x464c70
mov eax, dword [0x4a5fcc]
cmp dword [eax], 4
jg 0x464be1
mov eax, dword [0x4a5fcc]
cmp dword [eax], 4
jne 0x464c70
mov eax, dword [0x4a62ac]
cmp dword [eax], 0
jle 0x464c70
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x464c28
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x464c7c
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x464c7c
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x464d50
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x464e5d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
mov edx, 0x44
call fcn.00406ed8
lea eax, [ebp - 0x5c]
mov edx, 0x10
call fcn.00406ed8
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x70], 0xb
mov dword [ebp - 0x6c], esi
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x74]
mov ecx, 1
mov eax, 0x464e78
call fcn.004095ec
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00408470
mov eax, dword [ebp - 0x60]
call fcn.0040459c
push eax
mov eax, ebx
call fcn.0040459c
push eax
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x464e42
cmp dword [ebp + 0xc], 0
je 0x464e08
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.user32.dll_WaitForInputIdle
cmp dword [ebp + 8], 0
je 0x464e42
lea eax, [ebp - 8]
mov edx, 8
call fcn.00406ed8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x464c90
call sub.user32.dll_EnumWindows
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464e64
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00404100
ret

Function at 0x478148
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4781a2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00478138
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00475e0c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00475924
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4781a9
lea eax, [ebp - 4]
call fcn.004040dc
ret
Function at 0x47ebe0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47ec0e
mov eax, ebx
call fcn.0047f694
cmp dword [ebx + 0x40], 0
je 0x47ec07
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47ec7f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47ec71
cmp dword [ebx + 8], 0
je 0x47ec30
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47ec42
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47ec71
cmp dword [ebx + 8], 0
je 0x47ec23
cmp eax, 3
je 0x47ec55
dec eax
jne 0x47ec23
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47ec23
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47ec23
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47ec9d
cmp dword [ebx + 0x14], 0xcc
je 0x47ec9d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047eca8
pop ebx
ret
Function at 0x49fcf0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x49fe81
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
mov eax, dword [0x4a5e58]
call fcn.004901ec
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, 0x49fe94
call fcn.00405b94
mov eax, ebx
call fcn.0040459c
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x124]
mov eax, ebx
call fcn.00408dac
mov eax, dword [ebp - 0x124]
call fcn.0040459c
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea edx, [ebp - 0x128]
mov eax, dword [0x4a6218]
mov eax, dword [eax]
call fcn.00454a3c
mov eax, dword [ebp - 0x128]
call fcn.0040459c
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x11d]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 6
mov dword [ebp - 0x134], esi
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x49feac
call fcn.004095ec
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x18]
call fcn.00404934
mov eax, dword [ebp - 0x18]
call fcn.00404944
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, 0x49feb8
call fcn.00405b94
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x49fe43
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fe88
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404100
lea eax, [ebp - 0x18]
call fcn.004047e8
lea eax, [ebp - 0x10]
call fcn.00405b50
lea eax, [ebp - 0xc]
call fcn.00405b50
lea eax, [ebp - 8]
call fcn.00405b50
ret
Function at 0x4a18e8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
test eax, eax
je 0x4a199a
test esi, esi
setg bl
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a199a
xor edi, edi
xor eax, eax
push ebp
push 0x4a1993
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a194e
cmp edi, 0xa
jl 0x4a194d
call fcn.00403b20
jmp 0x4a199a
inc edi
push 0x64
call sub.kernel32.dll_Sleep
cmp dword [ebp - 8], 0
jne 0x4a1962
call fcn.00403b20
jmp 0x4a199a
sub esi, 0x64
test bl, bl
je 0x4a192a
test esi, esi
jg 0x4a192a
xor ebx, ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x4a192a
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a19a4
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4a19ac
push ebx
push esi
xor eax, eax
push ebp
push 0x4a1bb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea edx, [ebp - 8]
mov eax, 1
call fcn.00402a34
mov eax, dword [ebp - 8]
mov edx, 0x4a1bc8
call fcn.004044e8
jne 0x4a1b11
lea edx, [ebp - 0xc]
mov eax, 2
call fcn.00402a34
mov eax, dword [ebp - 0xc]
call fcn.00408cac
test al, al
je 0x4a1b11
lea edx, [ebp - 0x10]
mov eax, 2
call fcn.00402a34
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4a1bd4
call fcn.004043e8
mov eax, dword [ebp - 4]
call fcn.00408cac
test al, al
je 0x4a1a46
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.00408ce0
mov eax, dword [ebp - 4]
call fcn.0040459c
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.00402a34
mov eax, dword [ebp - 0x14]
mov edx, 0x20
call fcn.00408ce0
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00402a34
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00408d08
push 0
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402a34
mov eax, dword [ebp - 0x1c]
call fcn.0040459c
push eax
lea edx, [ebp - 0x20]
mov eax, dword [0x4a6218]
mov eax, dword [eax]
call fcn.00455538
mov eax, dword [ebp - 0x20]
call fcn.0040459c
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x24]
mov eax, 3
call fcn.00402a34
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00408850
mov edx, 0xbb8
call fcn.004a18e8
lea edx, [ebp - 0x28]
mov eax, 4
call fcn.00402a34
mov eax, dword [ebp - 0x28]
xor edx, edx
call fcn.00408850
mov edx, 0x7d0
call fcn.004a18e8
push 0
push 0
lea edx, [ebp - 0x2c]
mov eax, 2
call fcn.00402a34
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
xor edx, edx
call fcn.00464d50
jmp 0x4a1b96
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x4a6358]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x4a1be4
call fcn.004095ec
mov eax, dword [ebp - 0x30]
call fcn.0040459c
push eax
call sub.user32.dll_RegisterWindowMessageA
mov edx, dword [0x4a6444]
mov dword [edx], eax
mov eax, dword [0x4a6444]
cmp dword [eax], 0
je 0x4a1b94
push 0
push 0x4a1bf8
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4a1b94
push 0
push 0x4a1c04
push 0
push esi
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4a1b94
mov eax, dword [0x4a6444]
mov eax, dword [eax]
push eax
push 1
push 0x401
push esi
call sub.user32.dll_SendMessageA
test eax, eax
jne 0x4a1b96
xor ebx, ebx
jmp 0x4a1b96
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1bb8
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00404100
ret
Function at 0x412c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407610
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411873
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c000
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x65b2d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00413c29
mov ecx, dword [esi*4 + 0x65b2d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412dc3
cmp eax, dword [ecx + edi + 0x24]
jne 0x412dc3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dc3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413c29
add esp, 0x14
test edx, edx
jl 0x412dc3
jg 0x412d39
test eax, eax
jb 0x412dc3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dc3
jl 0x412d53
cmp dword [ebp - 0x1008], eax
ja 0x412dc3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d71
test ebx, ebx
je 0x412daa
cmp ecx, edi
jae 0x412daa
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d8b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412d97
cmp byte [ecx + 1], 0xa
jne 0x412d97
inc ecx
jmp 0x412d97
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d71
cmp edx, ebx
jne 0x412d71
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dc8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406931
leave
ret
Function at 0x4130c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x65b2d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413101
cmp byte [ebx], 0xa
jne 0x413101
or byte [edi + eax + 0x28], 4
jmp 0x413106
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413205
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4131e8
inc eax
cmp dl, 0xd
je 0x413132
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413158
cmp eax, ecx
jae 0x413166
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41311a
jmp 0x413205
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4131e3
cmp dword [ebp - 0x10], 0
je 0x4131e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x65b2d8]
test byte [eax + edi + 0x28], 0x48
je 0x4131bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4131a8
mov byte [esi], dl
jmp 0x4131b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x65b2d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413205
cmp byte [ebp - 1], 0xa
jne 0x4131cc
cmp esi, ebx
jne 0x4131cc
mov byte [esi], 0xa
jmp 0x413204
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413205
mov byte [esi], 0xd
jmp 0x413204
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x65b2d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413202
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413205
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41320e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x65b2d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413254
cmp word [ebx], dx
jne 0x413254
or byte [eax + edi + 0x28], 4
jmp 0x413259
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4133bc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41339c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41329a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4132d0
cmp eax, edx
jae 0x4132de
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413275
jmp 0x4133bc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413397
cmp dword [ebp - 0x18], 0
je 0x413397
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x65b2d8]
test byte [eax + edi + 0x28], 0x48
je 0x41336d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413331
mov word [esi], cx
jmp 0x413368
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x65b2d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x65b2d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x65b2d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4133bc
pop eax
cmp word [ebp - 4], ax
jne 0x41337d
cmp esi, ebx
jne 0x41337d
mov word [esi], ax
jmp 0x4133b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4133bc
push 0xd
pop eax
jmp 0x413378
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x65b2d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4133b6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4133bc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bfc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41bfed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bfed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x698f1000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x698f1031
cmp dword [ebp - 0xc], 2
jne 0x698f1031
cmp dword [ebp - 0x18], 5
mov eax, 0x698f70c0
jae 0x698f1036
mov eax, 0x698f70bc
add ebp, 0x78
leave
ret

Function at 0x698f19eb
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x698f1ac2
push ebx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x698f1a30
push 0xe
pop eax
jmp 0x698f1ac1
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x698f1a49
mov esi, eax
jmp 0x698f1a71
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x698f1aba
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push edi
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
jne 0x698f1a7d
push 0xe
pop esi
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
jmp 0x698f1ac1
push dword [ebp + 8]
push eax
push ebx
call esi
test eax, eax
push ebx
jne 0x698f1aa0
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp + 0xc]
call esi
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x698f1ac1
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x698f1abf
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4a8b80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0
push 0x4a43e8
call fcn.004c4af0
add esp, 0xc
mov byte [0x4a43e8], 0x80
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret
Function at 0x4a9b00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0xd
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004c8cd0
add esp, 0xc
stc
cmc
jg 0x4a9b1d
jns 0x4a9b34
pushf
mov esp, esp
xor ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
popf
lea eax, [eax]
jnp 0x4a9b31
js 0x4a9b34
xor eax, 0x45c666b3
call 0xeda8238d
mov bl, 0x66
mov byte [ebp - 0x18], 0x50
mov byte [ebp - 0x13], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0x17], 0x71
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0xd], 0x42
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x11], 0x77
mov byte [ebp - 0xc], 0
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x10], 0x6a
mov byte [ebp - 0x14], 0x54
mov byte [ebp - 0xf], 0x64
lea ecx, [ecx + 0x11fd]
sub ecx, 0x11fd
and esp, 0xffffffff
call fcn.004a9b7b