joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7cc6a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x304000]
push edi
or ebp, 0xffffffff
jmp 0x7cc6c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7cc6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7cc6b8
mov eax, 1
add ebx, ebx
jne 0x7cc6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7cc6ec
jne 0x7cc70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7cc70b
dec eax
add ebx, ebx
jne 0x7cc6f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7cc6d0
add ebx, ebx
jne 0x7cc707
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7cc75d
xor ecx, ecx
sub eax, 3
jb 0x7cc723
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7cc792
sar eax, 1
mov ebp, eax
jmp 0x7cc72e
add ebx, ebx
jne 0x7cc72e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7cc6fc
inc ecx
add ebx, ebx
jne 0x7cc73c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7cc6fc
add ebx, ebx
jne 0x7cc749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7cc73e
jne 0x7cc75a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7cc73e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7cc77c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7cc76e
jmp 0x7cc6be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7cc77c
add edi, ecx
jmp 0x7cc6be
pop esi
mov edi, esi
mov ecx, 0x13fb4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7cc79a
cmp byte [edi], 0x65
jne 0x7cc79a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7cc79f
lea edi, [esi + 0x3c8000]
mov eax, dword [edi]
or eax, eax
je 0x7cc817
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3db258]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3db398]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7cc7cc
mov ecx, edi
jns 0x7cc7fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3db39c]
or eax, eax
je 0x7cc811
mov dword [ebx], eax
add ebx, 4
jmp 0x7cc7e9
call dword [esi + 0x3db3a4]
mov ebp, dword [esi + 0x3db3a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7cc84b
sub esp, 0xffffff80
jmp 0x6ef2e0
Function at 0x406977
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062d8
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069e9
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069e9
cmp dword [ebp + 0x18], 1
je 0x4069ee
cmp dword [ebp + 0x18], 2
je 0x4069ee
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4069f3
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406a56
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406aa0
test edi, edi
jne 0x406a63
mov word [esi], ax
jmp 0x406aa2
mov eax, esi
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bbf
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x432414], 0
push esi
jne 0x406e76
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e4d
mov dword [ecx*4 + 0x432410], edx
inc ecx
cmp ecx, 0x100
jl 0x406e48
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406ea0
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x432410]
inc esi
sub edx, 1
jne 0x406e88
not ecx
mov eax, ecx
pop esi
ret 0xc

Function at 0x408915
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408932
xor dword [ebx], edi
or esi, esi
inc ebx
sub ecx, ecx
cmp ebx, edx
jne fcn.00408915
push esi
mov esi, dword [esp]
add esp, 4
ret
Function at 0x10001980
Capabilities:
Encode data using xor

Disassembly:
insd dword es:[edi], dx
pop ds
nop
div dword [edi + ebx - 0x7384bfd8]
push edi
sbb esi, dword [ecx + 0x78ee3a00]
loop 0x10001944
les eax, [esp + ebx*4 + 0x1d9c6885]
cld
and eax, 0xa78fd476
in eax, 0x2e
xlatb
pop esi
dec esp
push 0xb839e8f1
std
mov dh, 0xfe
salc
retf
xchg esp, eax
loope 0x10001967
pop ds
xor ah, dh
mov dl, 5
aad 0x39
int 0x72
mov esp, 0x120b9e09
pop esp
xchg esi, eax
sbb bh, dl
jle 0x100019b8
sti
sub eax, 0xc5e8a08c
in al, dx
mov al, dh
xor dl, dh
das
cwde
xor eax, 0xf42596d7
popfd
retf 0x90f3
mov eax, 0x4b7031a6
js 0x100019fd
ffreep st(2)
mov dword [0x19b085db], eax
xor dword [eax], edx
fld qword [0x15b80794]
xchg esp, eax
ret 0x28e6
rcl byte [eax - 0x12677bd3]
fnstsw word [edx + ebp + 0x4cbb14f8]
sbb al, 0xe8
jnp 0x1000197d
jecxz 0x100019e0
xchg ebp, eax
sal edi, 0x63
pushal
pop es
arpl word [eax + 7], sp
inc eax
fstp xword [ebx]
push cs
in al, dx
adc byte [eax - 7], al
xor edx, edi
ja 0x100019cf
or esi, dword [ecx - 0x5bf6daa6]
clc
add edx, dword [ebp - 0x45]
fdivp st(0)
inc esp
clc
pop edx
and eax, 0x3f8a409
push ebp
mov ebx, 0xf844f8de
test byte [eax + 0x5d], bl
mov dh, byte [ebp - 0x52]
add bl, byte [esi + 0x71292c6d]
bound edx, qword [eax + 0x22]
inc ebp
xor byte [edx - 0x40], bh
invalid
Function at 0x104801b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10480308
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 0x104801de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104801ca
add dl, dl
jne 0x104801e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1048023c
xor eax, eax
add dl, dl
jne 0x104801f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104802dd
add dl, dl
jne 0x10480205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10480210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1048021b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10480226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10480232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104801d5
mov eax, 1
add dl, dl
jne 0x1048024a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10480255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10480241
sub eax, ebx
mov ebx, 1
jne 0x10480288
mov ecx, 1
add dl, dl
jne 0x1048026e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10480279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10480265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104801d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1048029f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104802aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10480296
cmp eax, 0x7d00
jae 0x104802cd
cmp eax, 0x500
jb 0x104802c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104801d5
cmp eax, 0x7f
ja 0x104802d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104801d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104802fe
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 0x104801d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6bfc130a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x6bfc1446
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x6bfc153f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6bfc15a2
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bfc1664
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6bfc15d7
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bfc1664
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6bfc1601
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bfc1664
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6bfc1648
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bfc1664
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x6bfc1c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6bfc603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6bfc6034]
sub esp, 4
test ebx, ebx
je 0x6bfc1c8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6bfc1c84
test esi, esi
je 0x6bfc1c84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bfc1c60
mov dword [esp], 0x6bfc603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6bfc1e70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6bfc41ec
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x6bfc1ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6bfc1f98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6bfc1efe
cmp eax, 4
jne 0x6bfc1f20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6bfc1f0e
cmp edx, 4
je 0x6bfc1f0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6bfc1e70
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.00401448
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401305
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov esi, dword [ebp + 0x10]
or esi, esi
je 0x401319
cmp byte [esi], 0
jne 0x401320
xor eax, eax
jmp 0x401440
cmp dword [ebp + 0xc], 0
je 0x40133f
push 0
push str.mIRC_Uninstall
call sub.USER32.DLL_FindWindowA
push eax
call sub.USER32.DLL_BringWindowToTop
xor eax, eax
jmp 0x401440
mov dword [ebp - 0x44], 0x2000
lea eax, [0x40123c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xd
mov dword [ebp - 0x24], 0
lea eax, str.mIRC_Uninstall
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
push eax
call sub.USER32.DLL_RegisterClassA
or ax, ax
jne 0x40139d
xor eax, eax
jmp 0x401440
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0xffffff38
push 0xffffffffffffff9c
push 0xcf0000
push str.mIRC_Uninstall
push str.mIRC_Uninstall
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
or edi, edi
jne 0x4013d1
xor eax, eax
jmp 0x401440
mov dword [ebp + 0x14], 0
push 0
push edi
call sub.USER32.DLL_ShowWindow
push edi
call sub.USER32.DLL_UpdateWindow
push esi
push 0x402310
call sub.CRTDLL.DLL_sprintf
add esp, 8
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x403048], eax
push 0
push 0xfa
push 0x464
push edi
call sub.USER32.DLL_SetTimer
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_GetMessageA
mov edi, eax
cmp edi, 0xffffffff
je 0x40143c
or edi, edi
je 0x40143e
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
jmp 0x401410
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x401448
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x40147c
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x401497
mov edi, eax
inc edi
jmp 0x401474
inc edi
cmp byte [edi], 0x20
je 0x401473
jmp 0x401497
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401488
cmp eax, 0x20
jne 0x40147b
jmp 0x40148b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401497
cmp eax, 0x20
je 0x40148a
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00401305
pop edi
leave
ret
Function at 0x401114
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437004]
jne 0x40111e
repz ret
jmp fcn.00401636

Function at 0x4087aa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403df0
and dword [ebp - 0x14], 0
cmp dword [0x439c9c], 0
mov dword [ebp - 0x18], eax
jne 0x40885d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408905
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408905
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439c9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439ca0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439ca4], eax
call edi
push eax
call esi
mov dword [0x439cac], eax
test eax, eax
je 0x40885d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439ca8], eax
mov eax, dword [0x439ca8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4088b6
cmp dword [0x439cac], ecx
je 0x4088b6
push eax
call esi
push dword [0x439cac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4088b6
test ebx, ebx
je 0x4088b6
call edi
test eax, eax
je 0x4088ad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4088ad
test byte [ebp - 8], 1
jne 0x4088b6
or dword [ebp + 0x10], 0x200000
jmp 0x4088e9
mov eax, dword [0x439ca0]
cmp eax, dword [ebp - 0x18]
je 0x4088e9
push eax
call esi
test eax, eax
je 0x4088e9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4088e9
mov eax, dword [0x439ca4]
cmp eax, dword [ebp - 0x18]
je 0x4088e9
push eax
call esi
test eax, eax
je 0x4088e9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439c9c]
call esi
test eax, eax
je 0x408905
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408907
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401114
leave
ret
Function at 0x42b7c0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x43ba34]
push edi
mov edi, dword [0x43deb4]
call fcn.0042b700
cmp dword [0x43deb4], 0x2f
jne 0x42b854
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0042b730
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00401114
add esp, 0x41c
ret
Function at 0x42bcd0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1010
call fcn.0040c410
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [0x43deb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
mov dword [0x43db1c], edi
cmp eax, 0x3dc
jne 0x42bd1a
push 0
push 0
push 0
call esi
mov eax, dword [0x43deb4]
dec ebx
jne 0x42bd00
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x42bd30
cmp eax, 0xa5f
jne 0x42bd67
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x830]
push ecx
push 0x43550c
call ebx
mov eax, dword [0x43deb4]
cmp esi, 0x846143
jne 0x42bd7e
mov eax, dword [0x438bf0]
add eax, 0xa231
mov dword [0x43deb4], eax
cmp eax, 0x141
jne 0x42bd99
mov dword [0x43a1c0], 0xec58acac
mov dword [0x43a1c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x42bd30
call fcn.0042b870
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401114
add esp, 0x1010
ret 0x10