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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004c5acc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b4091
test al, 0x10
jne 0x4b4095
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4b6a80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b6ab9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004c570c
jmp 0x4b6ac2
mov eax, ebx
mov edx, esi
call fcn.004c5670
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b6acc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b6aed
mov al, byte [esp]
jmp 0x4b6aef
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b8090
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4b80f4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004c5884
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004b3d68
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b80fb
lea eax, [ebp - 0xc]
call fcn.004c561c
ret

Function at 0x4c475c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ddf78]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c47f4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c47d4
xor eax, eax
push ebp
push 0x4c47cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4c4810
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c47d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4ddf78]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ddf78], ax
mov esp, ebp
pop ebp
ret
Function at 0x4c541c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2b00], 0
je 0x4c547d
cmp word [0x4e2cd4], 0xd7b2
jne 0x4c5445
cmp dword [0x4e2cdc], 0
jbe 0x4c5445
mov eax, 0x4e2cd0
call dword [0x4e2cec]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4c54a4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4ddf88], 0
jne 0x4c5499
push 0
push 0x4ddfe0
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4c55d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004c39cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e2b01], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4c5598
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4c6fc4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c71f4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c7047
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c71f4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c7047
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c7210
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c70d0
xor eax, eax
push ebp
push 0x4c70c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004c6e0c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c70ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4c7230
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c70ae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c70d0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4c71ea
cmp byte [ebp - 0xd], 0
jne 0x4c7117
cmp byte [ebp - 0x12], 0
je 0x4c71ea
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4c7130
dec ebx
cmp byte [ebx], 0x2e
je 0x4c713f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4c712f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4c71ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4c717c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c71ea
cmp byte [ebp - 0xd], 0
je 0x4c71ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c71ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c799c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4e3074], 1
jae 0x4c7a22
mov byte [0x4ddf74], 2
mov dword [0x4e2ac4], 0x4d6270
mov dword [0x4e2ac8], 0x4d628e
mov byte [0x4e2b02], 2
mov dword [0x4e2ab0], 0x4c65f4
call fcn.004c472c
test al, al
je 0x4c79df
call fcn.004c475c
call fcn.004c4820
mov word [0x4e2b08], 0xd7b0
mov word [0x4e2cd4], 0xd7b0
mov word [0x4e2ea0], 0xd7b0
call fcn.004c64cc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4e2af4], eax
call fcn.004c2668
mov dword [0x4e2af0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4e2ae8], eax
ret

Function at 0x4ca194
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ca1b0
call fcn.004cb8f8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4ca1cc
test bl, 1
je 0x4ca1cc
call fcn.004cff74
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4ca3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004cb494
test byte [ebp + 0xd], 0xc0
jne 0x4ca3d4
mov eax, dword [0x4defd8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4ca3e1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4ca40e
je 0x4ca420
sub ecx, 0x100
je 0x4ca42e
sub ecx, 0x100
je 0x4ca435
sub ecx, 0x100
je 0x4ca427
jmp 0x4ca43c
sub ecx, 0x600
je 0x4ca435
sub ecx, 0x100
je 0x4ca420
jmp 0x4ca43c
mov edi, 1
jmp 0x4ca441
mov edi, 2
jmp 0x4ca441
mov edi, 4
jmp 0x4ca441
mov edi, 5
jmp 0x4ca441
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4ca468
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4dea50]
test al, 0x80
je 0x4ca461
mov ebx, pe_nt_image_headers32
jmp 0x4ca47a
mov ebx, 1
jmp 0x4ca47a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ca47a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4ca48c
je 0x4ca495
dec eax
je 0x4ca49e
jmp 0x4ca4a7
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x4ca4b6
mov dword [ebp - 4], 0x40000000
jmp 0x4ca4b6
mov dword [ebp - 4], 0xc0000000
jmp 0x4ca4b6
push 1
call fcn.004cb88c
pop ecx
mov ebx, eax
jmp 0x4ca5a6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4ca4d2
sub eax, 0x10
je 0x4ca4d9
sub eax, 0x10
je 0x4ca4e2
sub eax, 0x10
je 0x4ca4eb
jmp 0x4ca4eb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4ca4f2
mov dword [ebp - 8], 1
jmp 0x4ca4f2
mov dword [ebp - 8], 2
jmp 0x4ca4f2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4ca55f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4ca554
test byte [ebp + 0xd], 1
je 0x4ca54f
mov ebx, 0x50
jmp 0x4ca554
mov ebx, 2
push ebx
call fcn.004cb88c
pop ecx
mov ebx, eax
jmp 0x4ca5a6
mov edi, esi
push edi
call fcn.004ca314
pop ecx
test eax, eax
je 0x4ca573
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4ca57f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004cb5b4
add esp, 8
mov ebx, eax
inc eax
jne 0x4ca5a6
push 4
call fcn.004cb88c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004cb4c8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4caa44
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4caa60
call fcn.004cb8f8
jmp 0x4caacf
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4caa7c
call fcn.004cb8f8
jmp 0x4caacf
cmp dword [0x4e3a04], 1
je 0x4caacd
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004cfdf4
pop ecx
cmp al, 0x41
jl 0x4caacd
cmp al, 0x5a
jg 0x4caacd
cmp byte [ebp - 0x107], 0x3a
jne 0x4caacd
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4caacd
call fcn.004cb8f8
jmp 0x4caacf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4caad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4cab03
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4cab0d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4cab18
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4cab7e
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4cab7e
call fcn.004cb8f8
jmp 0x4cabb9
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4cab8e
call fcn.004cb8f8
jmp 0x4cabb9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4cabb4
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4cabb2
cmp ebx, 1
je 0x4cabb2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4cab9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb34c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004c8748
pop ecx
mov ebx, eax
test eax, eax
jne 0x4cb370
xor eax, eax
jmp 0x4cb419
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4cb391
cmp esi, 0x104
jb 0x4cb39c
push ebx
call fcn.004c8758
pop ecx
xor eax, eax
jmp 0x4cb419
cmp byte [ebx + 1], 0x3a
jne 0x4cb3cc
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x4cb3cc
push ebx
call fcn.004c8758
pop ecx
xor eax, eax
jmp 0x4cb419
inc esi
test edi, edi
je 0x4cb40f
cmp esi, dword [ebp + 0x10]
jbe 0x4cb3e1
push ebx
call fcn.004c8758
pop ecx
xor eax, eax
jmp 0x4cb419
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004c8758
pop ecx
mov eax, edi
jmp 0x4cb419
push esi
push ebx
call fcn.004c8768
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4cbbbc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
dec eax
je 0x4cbbea
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x4cbbe3
push 5
call fcn.004cb88c
pop ecx
pop ebp
ret
call fcn.004cb8f8
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4cc14c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x24
push 0
push ebx
call fcn.004c8d84
add esp, 0xc
mov word [ebx + 6], 1
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4cc259
push 0x4df5f4
push edi
call fcn.004cfd30
add esp, 8
test eax, eax
je 0x4cc1fb
push 0
push edi
push 0
call fcn.004cb34c
add esp, 0xc
mov esi, eax
test eax, eax
je 0x4cc1fb
push esi
call fcn.004c8eb8
pop ecx
cmp eax, 3
jne 0x4cc1fb
push esi
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x4cc1d2
call fcn.004cb8f8
jmp 0x4cc34a
mov word [ebx + 4], 0x4000
movsx edx, byte [esi]
push edx
call fcn.004cfdf4
add ax, 0xffc0
pop ecx
mov word [ebx + 0x10], ax
mov word [ebx], ax
push esi
call fcn.004c8758
pop ecx
xor eax, eax
jmp 0x4cc34a
test esi, esi
je 0x4cc206
push esi
call fcn.004c8758
pop ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4cc22d
call fcn.004cb8f8
jmp 0x4cc34a
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetFileType
cmp eax, 3
jne 0x4cc241
mov cx, 0x1000
jmp 0x4cc245
mov cx, 0x2000
mov word [ebx + 4], cx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4cc34a
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x130]
push ecx
push eax
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x140]
push edx
push ecx
mov eax, dword [ebp - 0x144]
push eax
push ebx
call fcn.004d1cf0
add esp, 0x18
test byte [ebx + 5], 0x40
jne 0x4cc2f2
push 0x2e
push edi
call fcn.004cfd9c
add esp, 8
mov esi, eax
test eax, eax
je 0x4cc2f2
push str..bat
push esi
call fcn.004cfb80
add esp, 8
test eax, eax
je 0x4cc2ed
push str..cmd
push esi
call fcn.004cfb80
add esp, 8
test eax, eax
je 0x4cc2ed
push str..com
push esi
call fcn.004cfb80
add esp, 8
test eax, eax
je 0x4cc2ed
push str..exe
push esi
call fcn.004cfb80
add esp, 8
test eax, eax
jne 0x4cc2f2
or word [ebx + 4], 0x40
cmp byte [edi + 1], 0x3a
jne 0x4cc2fc
mov al, byte [edi]
jmp 0x4cc31b
lea edx, [ebp - 0x248]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4cc315
mov al, 0x41
jmp 0x4cc31b
mov al, byte [ebp - 0x248]
cmp al, 0x61
jl 0x4cc32f
cmp al, 0x7a
jg 0x4cc32f
movsx edx, al
add dx, 0xff9f
mov word [ebx], dx
jmp 0x4cc341
cmp al, 0x41
jl 0x4cc341
cmp al, 0x5a
jg 0x4cc341
movsx ecx, al
add cx, 0xffbf
mov word [ebx], cx
mov ax, word [ebx]
mov word [ebx + 0x10], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cff0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4cff6e
call fcn.004cfebc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c8eb8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004c8eb8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cffec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4dfffc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4d00c6
cmp dword [0x4dfff8], 0
jne 0x4d00c6
cmp dword [0x4e0204], 0
je 0x4d0080
push pe_nt_image_headers32
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004cfd9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d0066
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004cfd9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d0066
lea ebx, [ebp - 0x84]
jmp 0x4d0067
inc ebx
call fcn.004cffa8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4d0101
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e0000
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c8eb8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e0003
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4d0101
cmp dword [0x4dfff8], 0
je 0x4d00e0
cmp dword [0x4dfff8], 0xffffffff
je 0x4d0101
push esi
call dword [0x4dfff8]
pop ecx
mov eax, dword [0x4dfffc]
test eax, eax
je 0x4d0101
cmp dword [0x4dfffc], 0xffffffff
je 0x4d0101
cmp byte [eax], 0
je 0x4d0101
push esi
push eax
call fcn.004cff0c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d15c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4d15ee
test esi, esi
je 0x4d15ee
call fcn.004cff74
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4d1660
call fcn.004d12dc
mov ebx, eax
test eax, eax
jne 0x4d1609
call fcn.004cff74
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4d1660
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x4d1524
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4d1654
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4d164d
push 0x59
call fcn.004cb88c
pop ecx
jmp 0x4d1660
call fcn.004cb8f8
jmp 0x4d1660
mov dword [ebx + 8], eax
test edi, edi
je 0x4d1660
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5c413a31
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x366f4918
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219