joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403148
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 8]
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x403178
xor edx, edx
cmp dword [ebp - 8], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8

Function at 0x4031a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
cmp dword [ebp + 8], 0
je 0x4031d4
mov eax, dword [0x43a960]
test eax, eax
je 0x4031c5
sub esp, 0xc
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
mov dword [0x43a960], 0
jmp 0x40325a
cmp dword [0x43a960], 0
je 0x4031ec
sub esp, 0xc
push 0
call fcn.00406224
add esp, 0xc
jmp 0x40325a
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x49dcf8]
jbe 0x40325a
cmp dword [0x49dd48], 0
je 0x40322e
test byte [0x49dc7c], 1
je 0x40325a
call fcn.00403181
lea ebx, [ebp - 0x44]
push edx
push eax
push str....__d__
push ebx
call sub.USER32.dll_wsprintfA
pop ecx
pop eax
push ebx
push 0
call fcn.00403f4b
pop eax
pop edx
jmp 0x40325a
sub esp, 0xc
push 0
push 0x40388d
push 0
push 0x6f
push dword [0x49dd58]
call sub.USER32.dll_CreateDialogParamA
sub esp, 0xc
mov dword [0x43a960], eax
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 0x18
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40325f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
sub ebx, dword [0x43a970]
mov edi, eax
add ebx, dword [0x43a980]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x1f4
test ebx, ebx
mov dword [0x49dcf8], eax
jle 0x4033ec
sub esp, 0xc
push dword [0x43a990]
call fcn.0040312c
add esp, 0xc
push 0
push 0
push dword [0x43a970]
push dword [0x409014]
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x43a9b0], ebx
mov dword [0x43a9c0], 0
mov esi, dword [0x43a9a0]
sub esi, dword [0x43a990]
cmp esi, 0x4000
jle 0x4032de
mov esi, 0x4000
push eax
push eax
push esi
push 0x43aa60
call fcn.00403148
pop ecx
test eax, eax
pop ebx
jne 0x4032f9
or eax, 0xffffffff
jmp 0x403409
add dword [0x43a990], esi
mov dword [0x43a9e8], 0x43aa60
mov dword [0x43a9ec], esi
cmp dword [0x49dca8], 0
je 0x403348
cmp dword [0x49dc68], 0
jne 0x403348
mov edx, edi
sub esp, 0xc
sub edx, dword [0x43a970]
mov eax, dword [0x43a9b0]
add edx, dword [0x43a980]
push 0
sub eax, edx
mov dword [0x43a9c0], eax
call fcn.004031a3
add esp, 0x10
mov ecx, 0x43a9d0
mov dword [0x43a9f0], 0x43ea60
mov dword [0x43a9f4], 0x8000
call fcn.00407001
test eax, eax
js 0x4033fd
mov eax, dword [0x43a9f0]
mov ebx, eax
sub ebx, 0x43ea60
je 0x4033b7
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push 0x43ea60
push dword [0x409014]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x403404
cmp ebx, dword [ebp - 0x10]
jne 0x403404
add dword [0x43a970], ebx
cmp dword [0x43a9ec], 0
je 0x4033c4
jmp 0x40330f
cmp dword [0x43a9ec], 0
jne 0x4033fd
test esi, esi
je 0x4033fd
mov edx, dword [0x43a980]
mov eax, edx
sub eax, dword [0x43a970]
add eax, edi
test eax, eax
jg 0x4032c5
push 0
push 0
push edx
push dword [0x409014]
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0xc
push 1
call fcn.004031a3
xor eax, eax
add esp, 0x10
jmp 0x403409
mov eax, 0xfffffffd
jmp 0x403409
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403411
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test eax, eax
js 0x40343f
add eax, dword [0x49dcf0]
push 0
push 0
push eax
push dword [0x409014]
mov dword [0x43a980], eax
call sub.KERNEL32.dll_SetFilePointer
mov eax, 4
call fcn.0040325f
mov ebx, eax
test eax, eax
js 0x403551
sub esp, 0xc
lea eax, [ebp - 0x14]
lea esi, [ebp - 0x10]
push 0
push esi
push 4
push eax
push dword [0x409014]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403545
cmp dword [ebp - 0x10], 4
jne 0x403545
mov eax, dword [ebp - 0x14]
add dword [0x43a980], 4
call fcn.0040325f
mov ebx, eax
test eax, eax
js 0x403551
test edi, edi
je 0x403505
jmp 0x403511
mov esi, eax
cmp eax, 0x4000
jle 0x4034af
mov esi, 0x4000
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push 0x43aa60
push dword [0x409014]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403545
cmp esi, dword [ebp - 0x10]
jne 0x403545
sub esp, 0xc
push 0
push edi
push esi
push 0x43aa60
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x40354c
cmp dword [ebp - 0x18], esi
jne 0x40354c
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
add ebx, eax
add dword [0x43a980], eax
jmp 0x403508
lea edi, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jg 0x4034a1
jmp 0x403551
sub esp, 0xc
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0x14]
cmp eax, edx
jle 0x403526
mov eax, edx
push eax
push edi
push dword [0x409014]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403545
mov ebx, dword [ebp - 0x10]
add dword [0x43a980], ebx
jmp 0x403551
mov ebx, 0xfffffffd
jmp 0x403551
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x403961
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x583500
call fcn.00406376
push 0x583500
call fcn.0040612c
xor edx, edx
add esp, 0xc
test eax, eax
je 0x4039b4
sub esp, 0xc
push 0x583500
call fcn.00406473
sub esp, 0xc
push 0
push 0x583500
call sub.KERNEL32.dll_CreateDirectoryA
push 0x583500
push 0x57b800
call fcn.00406823
mov edx, eax
add esp, 0x18
mov eax, edx
leave
ret
Function at 0x4064e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov byte [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x406560
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x7d00
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x406548
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x40654b
mov byte [ebx], 0
mov byte [ebx + 0x7cff], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x406823
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x406868
mov dword [ebp - 0x10], 0x61736e
mov bl, byte [ebp - 0xe]
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
push esi
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x10]
push 0
push eax
add ebx, edx
push dword [ebp + 0xc]
mov byte [ebp - 0xe], bl
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
jne 0x406873
dec edi
cmp edi, 0xffffffff
jne 0x406836
mov byte [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40687f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x48ddb8
call fcn.004064b0
push ecx
push 0x48ddb8
call fcn.0040630d
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x406934
sub esp, 0xc
push eax
call fcn.00406376
add esp, 0xc
cmp byte [0x49dd08], 0
jns 0x4068f7
mov al, byte [ebx]
test al, al
je 0x406934
cmp al, 0x5c
jne 0x4068f7
jmp 0x406934
sub esp, 0xc
push 0x48ddb8
call fcn.004062ae
add esp, 0xc
test eax, eax
je 0x4068e5
test byte [eax], 0x10
je 0x406934
sub esp, 0xc
push 0x48ddb8
call fcn.0040643e
add esp, 0xc
jmp 0x4068fd
sub ebx, 0x48ddb8
sub esp, 0xc
push 0x48ddb8
call fcn.00406435
add esp, 0xc
cmp eax, ebx
jg 0x4068cc
sub esp, 0xc
push 0x48ddb8
call fcn.00406473
push 0x48ddb8
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x406936
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406975
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x40699b
and eax, 0xfffffffe
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebx
pop eax
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x406a08
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
call fcn.0040625f
add esp, 0xc
test eax, eax
je 0x406a35
push edx
push 5
push ebx
push esi
call eax
pop edi
test eax, eax
jne 0x406bfb
mov dword [0x48d1b8], 0x4c554e
test ebx, ebx
je 0x406a7e
push ecx
push 1
push 0
push ebx
call fcn.0040693d
push edx
push edx
push eax
call sub.KERNEL32.dll_CloseHandle
push eax
push eax
push 0x400
push 0x48d1b8
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
add esp, 0x14
test eax, eax
je 0x406c01
cmp eax, 0x400
jg 0x406c01
push eax
push 0x400
push 0x48d5b8
push esi
call sub.KERNEL32.dll_GetShortPathNameA
pop edi
test eax, eax
je 0x406c01
cmp eax, 0x400
jg 0x406c01
push 0x48d5b8
push 0x48d1b8
push str._s_s_r_n
push 0x48d9b8
call sub.USER32.dll_wsprintfA
pop ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x49dca8]
pop esi
push dword [eax + 0x128]
push 0x48d5b8
call fcn.00406567
sub esp, 0xc
push 4
push 0xc0000000
push 0x48d5b8
call fcn.0040693d
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x406bfb
push ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x24]
mov ebx, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
pop eax
test esi, esi
pop edx
je 0x406bed
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x406bed
cmp ebx, dword [ebp - 0x10]
jne 0x406bed
push edi
push edi
push str._Rename__r_n
push esi
call fcn.004069a2
pop edx
test eax, eax
pop ecx
jne 0x406b73
push eax
push eax
lea eax, [esi + ebx]
push str._Rename__r_n
push eax
call fcn.004064b0
add ebx, 0xa
pop ecx
mov eax, ebx
pop edi
jmp 0x406bac
add eax, 0xa
push edx
push edx
push 0x40a3ef
push eax
call fcn.004069a2
mov edx, eax
pop edi
test edx, edx
pop eax
mov eax, ebx
je 0x406bac
lea ecx, [edx + 1]
lea edi, [esi + ebx]
mov edx, ecx
mov dword [ebp - 0x28], edi
jmp 0x406ba3
mov edi, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
cmp edx, dword [ebp - 0x28]
jb 0x406b9a
mov eax, ecx
sub eax, esi
push dword [ebp - 0x24]
lea eax, [esi + eax]
push 0x48d9b8
push eax
call fcn.0040615b
push 0
push 0
push 0
push dword [ebp - 0x20]
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x24]
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebx + edx]
push eax
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x20]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc dword [0x49dc58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x406f0b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x49d7b8], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x49d7b8
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
pop edx
xor edx, edx
pop ecx
test eax, eax
je 0x406f53
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, edx
leave
ret 4

Function at 0x406f5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x49d80c], 0
push ebx
mov esi, dword [ebp + 0x10]
jne 0x406f99
xor ebx, ebx
mov edx, ebx
xor ecx, ecx
mov eax, edx
inc ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
cmp ecx, 8
jne 0x406f73
mov dword [ebx*4 + 0x49d808], edx
inc ebx
cmp ebx, 0x100
jne 0x406f6f
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not edx
jmp 0x406fb5
mov al, byte [ecx - 1]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x49d808]
dec esi
inc ecx
cmp esi, 0xffffffff
jne 0x406fa3
not edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0xc0e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c0e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc0e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0e06a
add dl, dl
jne 0xc0e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0e0dc
xor eax, eax
add dl, dl
jne 0xc0e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0e17d
add dl, dl
jne 0xc0e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc0e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc0e075
mov eax, 1
add dl, dl
jne 0xc0e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc0e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0e0e1
sub eax, ebx
mov ebx, 1
jne 0xc0e128
mov ecx, 1
add dl, dl
jne 0xc0e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc0e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc0e136
cmp eax, 0x7d00
jae 0xc0e16d
cmp eax, 0x500
jb 0xc0e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0e075
cmp eax, 0x7f
ja 0xc0e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc0e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc0e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4488f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ebp + 0x5d88d445]
aam 0x50
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.004484e5
push eax
push esi
push dword [ebp + 8]
call fcn.0044849a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004484d5
iretd

Function at 0x44a1d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.004484e5
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00448446
add esp, 0xc
jmp 0x44a44d
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.004484d5
invalid
Function at 0x805ddc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805de2
pop ebp
sub ebp, 6
sub ebp, 0x405ddc
jmp 0x805e40
and bh, byte [ebp + 0x77e2a302]
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
mov eax, dword [0xb83790c8]
fcomp qword [ebp + 0x40]
add byte [ebx], al
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x616], bh
jmp 0x805e49
mov eax, 0x405ddc
add eax, ebp
add eax, 0x93
mov ecx, 0x616
mov edx, 0x646f6bd7
xor byte [eax], dl
inc eax
dec ecx
jne 0x805e60
jmp 0x805e73
add al, 0
add byte [eax], al
std
movsb byte es:[edi], byte [esi]
add ch, 0xbd
xchg edi, eax
mov edi, 0xd7d7c7d7
lds edi, [ebp - 0x38284069]
mov ebp, 0xc7d7bf97
xlatb
xlatb
mov edi, 0xd7fb1bd7
push esi
daa
jb 0x805e35
cmc
and dl, byte [esi + 0x27]
jb 0x805e3b
cmc
and ah, ah
pop ss
xchg dword [eax], ebp
inc edx
xlatb
push es
loope 0x805e6b
xchg dword [edx + ebx + 0x5c], ebx
pop esi
jmp 0x805e72
Function at 0x40104f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, str.Unknown_error.
mov edi, str.G2M_Exe
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x4010b9
push eax
call fcn.00401010
pop ecx
mov dword [ebp - 4], eax
jmp loc.0040d6d6
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x401211
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, 0x104
lea eax, [ebp - 0x19c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40120c
cmp eax, esi
je 0x40120c
cmp byte [ebp - 0x19c], 0
lea eax, [ebp - 0x19c]
je 0x401117
inc eax
cmp byte [eax], 0
jne 0x401111
mov dl, byte [eax]
mov ecx, eax
cmp dl, 0x2e
je 0x401130
lea esi, [ebp - 0x19c]
cmp ecx, esi
jbe 0x401130
dec ecx
cmp byte [ecx], 0x2e
jne 0x401120
cmp dl, 0x5c
je 0x401145
lea edx, [ebp - 0x19c]
cmp eax, edx
jbe 0x401145
dec eax
cmp byte [eax], 0x5c
jne 0x401135
mov ebx, ecx
lea edx, [ebp - 0x19c]
sub ebx, eax
dec ebx
cmp ecx, edx
je 0x401205
cmp eax, edx
je 0x401205
cmp ecx, eax
jbe 0x401205
test ebx, ebx
je 0x401205
cmp ebx, 0x40
jbe 0x40117f
mov esi, str.Module_base_name_too_long.
jmp 0x401211
xor ecx, ecx
test ebx, ebx
je 0x401196
inc eax
push ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00401250
add esp, 0xc
mov ecx, ebx
lea eax, [ebp - 0x54]
mov esi, str._WinMain
add eax, ecx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 9], 0
lea eax, [ebp - 0x54]
push eax
call fcn.00401229
mov dword [esp], 0x402100
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4011d2
mov esi, str.Error_loading_DLL.
lea edi, [ebp - 0x54]
mov byte [ebp + ebx - 0x54], 0
jmp 0x401211
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
jne 0x4011ea
mov esi, str.Error_getting_DLL_entry_point.
jmp 0x4011c8
test byte [ebp - 0x6c], 1
movzx eax, word [ebp - 0x68]
push 0xa
pop ecx
cmovne ecx, eax
push ecx
push dword [ebp - 4]
push 0
push dword [ebp - 8]
call edx
jmp 0x401223
mov esi, str.Error_parsing_base_module_name.
jmp 0x401211
mov esi, str.Error_getting_module_name.
push 0x1010
push edi
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
push eax
jmp 0x4010b3
Function at 0x4b0b70
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004adbeb
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x4b0bf8
push 2
push esi
push esi
push edi
call fcn.004adbeb
mov ecx, eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c8f
jg 0x4b0bd2
or esi, esi
je 0x4b0c8f
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x4b0c04
call fcn.004a86b4
mov dword [eax], 0xc
call fcn.004a86b4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.004b0d4e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x4b0c2c
jg 0x4b0c25
cmp esi, 0x1000
jb 0x4b0c2c
mov eax, 0x1000
jmp 0x4b0c2e
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.004acff8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b0c55
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c70
jg 0x4b0c17
or esi, esi
je 0x4b0c70
jmp 0x4b0c17
call fcn.004a8680
cmp dword [eax], 5
jne 0x4b0c6a
call fcn.004a86b4
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.004b0d4e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4b0cf5
or eax, eax
jg 0x4b0d01
jl 0x4b0c99
or esi, esi
jae 0x4b0d01
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
push edi
call fcn.004b077a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x4b0d01
call fcn.004a86b4
mov dword [eax], 0xd
call fcn.004a8680
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4b0bf8
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
xor eax, eax
jmp 0x4b0bff

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

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219