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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10079b18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004c037
cmp byte [ebx], 0xa
jne 0x1004c037
or byte [eax + edi + 0x28], 4
jmp 0x1004c03c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004c13a
mov al, byte [edx]
cmp al, 0x1a
je 0x1004c11c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1004c06b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1004c090
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1004c09a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1004c04d
jmp 0x1004c13a
push 0
lea eax, [ebp - 0xc]
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 0x1004c117
cmp dword [ebp - 0xc], 0
je 0x1004c117
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10079b18]
test byte [eax + edi + 0x28], 0x48
je 0x1004c0f1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004c0dc
mov byte [esi], dl
jmp 0x1004c0ed
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10079b18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004c13a
cmp byte [ebp - 1], 0xa
jne 0x1004c100
cmp esi, ebx
jne 0x1004c100
mov byte [esi], 0xa
jmp 0x1004c139
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004cb77
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004c13a
mov byte [esi], 0xd
jmp 0x1004c139
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10079b18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004c136
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004c13a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004c143
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10079b18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004c186
cmp word [esi], dx
jne 0x1004c186
or byte [edi + eax + 0x28], 4
jmp 0x1004c18b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1004c2de
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1004c2be
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1004c1cd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004c203
cmp eax, edx
jae 0x1004c20f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1004c1a5
jmp 0x1004c2de
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004c2ba
cmp dword [ebp - 0x14], 0
je 0x1004c2ba
mov eax, dword [ebx*4 + 0x10079b18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004c292
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1004c25b
mov word [esi], cx
jmp 0x1004c28e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10079b18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10079b18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10079b18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1004c2de
pop ebx
cmp word [ebp - 4], bx
jne 0x1004c2a3
cmp esi, dword [ebp + 0xc]
jne 0x1004c2a3
mov word [esi], bx
jmp 0x1004c2db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004cb77
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1004c2de
push 0xd
jmp 0x1004c2d7
mov ecx, dword [ebx*4 + 0x10079b18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004c2d5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004c2de
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10052291
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005232e
push ebx
push esi
call fcn.1005225a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10050ff1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100522db
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005232d
push edi
push eax
call fcn.1004cd56
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100522fb
call fcn.10049bf8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005232c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10050ff1
add esp, 0x20
test eax, eax
jne 0x1005231a
push edi
call fcn.10049bf8
jmp 0x10052322
push ebx
call fcn.10049bf8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10058ee1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058e5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10059059
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10059059
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10059008
jg 0x10058f3a
test eax, eax
je 0x10058ffe
push 1
push 0x1000
call fcn.10049b9b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10058f60
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10058ff5
push 0x8000
push ebx
call fcn.10058d8e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10058f8c
jg 0x10058f87
cmp ecx, 0x1000
jb 0x10058f8c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004b3d9
add esp, 0x10
cmp eax, 0xffffffff
je 0x10058fd1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10058f87
jl 0x10058fb8
test ecx, ecx
jne 0x10058f79
push dword [ebp - 0xc]
push ebx
call fcn.10058d8e
push esi
call fcn.10049bf8
add esp, 0xc
xor edi, edi
jmp 0x1005906a
cmp byte [edi + 0x24], 0
je 0x10058fe8
cmp dword [edi + 0x20], 5
jne 0x10058fe8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10058ff3
mov edi, dword [edi + 0x18]
jmp 0x10058ff5
xor edi, edi
push esi
call fcn.10049bf8
pop ecx
jmp 0x1005906a
test ecx, ecx
jg 0x10058fca
jl 0x10059008
test eax, eax
jae 0x10058fca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004cb77
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005902b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10058fca
jmp 0x10059062
push ebx
call fcn.10054db3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10058fca
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1005906a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10059067
mov edi, dword [edi + 0x18]
jmp 0x1005906a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004cb77
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10059a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10059a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1004581
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x80004005
call esi
test eax, eax
jne 0x100466b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100466b
mov eax, dword [ebp - 4]
cmp eax, edi
jbe 0x100466b
push ebx
add eax, eax
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100466a
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x1004663
mov esi, ebx
cmp word [ebx], di
je 0x1004663
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1004601
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x1004631
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_isalpha]
pop ecx
test eax, eax
je 0x1004631
cmp word [esi + 2], 0x3a
jne 0x1004631
cmp word [esi + 4], 0x5c
je 0x100464f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1004636
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x10045fc
jmp 0x1004663
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov dword [ebp - 8], edi
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 8

Function at 0x1004679
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test eax, eax
jbe 0x100468d
xor edx, edx
mov word [ecx], dx
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
push 0
push 2
push 0x10016c4
push 0x1001648
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
pop ebp
ret 8
Function at 0x1004bab
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1008110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x21c], 0x80004005
cmp dword [ebp + 0x10], esi
jbe 0x1004bdb
xor eax, eax
mov word [ebx], ax
cmp word [ebp + 8], si
jbe 0x1004c92
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x1001738
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004c92
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1004c70
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01004b67
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.01004581
mov eax, dword [ebp - 0x218]
test ax, ax
je 0x1004c5c
cmp ax, word [ebp + 8]
je 0x1004c7e
inc dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x1004c27
jmp 0x1004c85
and dword [ebp - 0x21c], 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100677b
leave
ret 0xc
Function at 0x1005582
Capabilities:
Inspect load icon resource

Disassembly:
cmp dword [0x1008174], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x10055eb
mov al, byte [0x1008178]
cmp al, 4
jae 0x100559d
test al, al
jne 0x10055eb
mov eax, dword [0x1008160]
mov ecx, dword [0x1008164]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x10055eb
mov eax, dword [0x1008168]
mov ebx, dword [0x100816c]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, esi
cmp ecx, eax
jne 0x10055eb
cmp edx, ebx
jne 0x10055eb
push 0x10012d8
push dword [0x100814c]
push dword [0x1008148]
call fcn.01001e56
push 0xa
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.UxTheme.dll_EnableThemeDialogTexture]
push 0x65
push dword [0x1008190]
call dword [sym.imp.USER32.dll_LoadIconW]
push 0
push eax
mov ecx, esi
call fcn.010043ae
push 0x1001828
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push dword [edi + 0x40]
mov dword [edi + 0x60], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0xcb
push dword [esi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, edi
call fcn.010052e1
test eax, eax
jl 0x100566d
mov ebx, 0xcd
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0x44], 0
je 0x1005681
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push ebx
push 0x111
jmp 0x1005679
push 0xc0aaf001
push 1
push 0x8001
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 0x10

Function at 0x100611d
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
push 2
pop ecx
cmp ax, 0x22
jne 0x1006152
add esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x100614a
cmp ax, 0x22
jne 0x100613a
cmp word [esi], 0x22
jne 0x1006160
jmp 0x100616f
cmp ax, 0x20
jbe 0x1006160
add esi, ecx
cmp word [esi], 0x20
ja 0x1006158
movzx eax, word [esi]
cmp ax, 0x20
je 0x100616f
cmp ax, 9
jne 0x1006173
add esi, ecx
jmp 0x1006160
push 0x44
lea eax, [ebp - 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x1006199
movzx eax, word [ebp - 0x14]
jmp 0x100619c
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01005f1e
pop esi
leave
ret 0x10
Function at 0x1006386
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1008230], 0
push esi
jne 0x10062f4
call fcn.010061eb
test eax, eax
je 0x1006337
mov eax, dword [0x1008230]
cmp eax, 1
jne 0x1006315
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1006337
pop esi
ret
push eax
call dword [0x1008238]
test eax, eax
jne 0x100637f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100633b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1008230]
call dword [0x1008238]
mov edi, eax
test edi, edi
je 0x1006360
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100637c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1008230]
call dword [0x1008234]
add edi, 0x10
cmp edi, esi
jb 0x1006368
mov eax, edi
pop edi
pop esi
ret
jmp 0x10062e1

Function at 0x845058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008451a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84506a
add dl, dl
jne 0x845089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8450dc
xor eax, eax
add dl, dl
jne 0x845096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84517d
add dl, dl
jne 0x8450a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8450d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x845075
mov eax, 1
add dl, dl
jne 0x8450ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8450e1
sub eax, ebx
mov ebx, 1
jne 0x845128
mov ecx, 1
add dl, dl
jne 0x84510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x845119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845136
cmp eax, 0x7d00
jae 0x84516d
cmp eax, 0x500
jb 0x845168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
cmp eax, 0x7f
ja 0x845170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84519e
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 0x845075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x3000b65f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x3000f398
call fcn.3000b6c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x30011cd4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x3000b402
cmp eax, esi
jne 0x3000b3f5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000b405
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3000b3dc
xor esi, esi
inc esi
mov eax, dword [0x30011cd0]
cmp eax, esi
jne 0x3000b418
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000b447
mov eax, dword [0x30011cd0]
test eax, eax
jne 0x3000b441
mov dword [0x30011cd0], esi
push 0x30001360
push 0x30001354
call fcn.300a0000
pop ecx
pop ecx
test eax, eax
je 0x3000b447
jmp 0x3000b56b
mov dword [0x30011940], esi
mov eax, dword [0x30011cd0]
cmp eax, esi
jne 0x3000b46b
push 0x30001350
push 0x30001334
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30011cd0], 2
cmp dword [ebp - 0x20], ebx
jne 0x3000b478
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30011ce0], ebx
je 0x3000b499
push 0x30011ce0
call fcn.3000bbe4
pop ecx
test eax, eax
je 0x3000b499
push ebx
push 2
push ebx
call dword [0x30011ce0]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x3000b56b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x3000b503
cmp cx, bx
je 0x3000b4be
cmp dword [ebp - 0x1c], ebx
jne 0x3000b503
movzx ecx, word [eax]
cmp cx, bx
je 0x3000b4d3
cmp cx, 0x20
ja 0x3000b4d3
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3000b4be
test byte [ebp - 0x40], 1
je 0x3000b4df
movzx ecx, word [ebp - 0x3c]
jmp 0x3000b4e2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x3001193c], eax
cmp dword [0x30011930], ebx
jne 0x3000b548
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x3000b514
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x3000b4a8
cmp dword [0x30011940], ebx
jne 0x3000b556
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3001193c]
jmp 0x3000b577
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000b709
ret
call fcn.3000ad02
jmp 0x3000b39f
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4878261f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3349481e
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x805d60
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805d66
pop ebp
sub ebp, 6
sub ebp, 0x405d60
jmp 0x805dc4
jmp 0x805dcd
mov eax, 0x405d60
add eax, ebp
add eax, 0x93
mov ecx, 0x621
mov edx, 0x20f96b6
xor byte [eax], dl
inc eax
dec ecx
jne 0x805de4
jmp 0x805df7
fdivr st(6), st(0)
fidiv word [esi - 0x2149495a]
mov dh, 0x7a
lcall 0x719, 0xfa4637b6
mov eax, dword [0x19fa4637]
pop es
mov eax, dword [0x49e67685]
and esi, dword [esi - 0x19497f99]
cmp eax, 0x8a3f3d7b
mov dh, 0xb6
mov dh, 0x37
ja 0x805e72
mov dh, 0xb6
mov dh, 0xb5
jnp 0x805e38
mov al, 0xb6
mov dh, 0xb6
or al, 0x9e
mov dh, 0xb6
mov dh, 0xc
sahf
mov dh, 0xb6
mov dh, 0x41
push esp
mov ch, 0x7e
cmp eax, 0xb6b6ba37
mov dh, 0xb5
aaa
mov edx, 0xb5b6b6b6
jae 0x805e26
fimul word [esi]
cmp dword [edi - 0x6eee214a], 0xffffff81
mov dh, 0xb7
lcall 0xb6b6, 0xb6b6de92
pop esi
mov bl, 0xb6
mov dh, 0xb6
pop edi
sahf
mov dh, 0xb6
mov dh, 0xe3
cmp eax, 0xbe333d5a
mov dh, 0xb6
mov dh, 0x3d
and edi, dword [edx + 0x3db6b6b6]
cmp esp, dword [esi + 0x77b6b6b6]
pop edi
mov ah, 0x87
mov ah, 0x35
je 0x805e2b
invalid