joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a9a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0047b510
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047b540
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x47aa55
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00479d50
add esp, 0xc
test eax, eax
jle 0x47aa55
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00473c80
add esp, 0x10
test eax, eax
jne 0x47aa58
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x47aa60
test eax, eax
je 0x47aa55
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.0047b510
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047b540
add esp, 0x10
cmp eax, ebx
jle 0x47a9f0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47c1a0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x47c1af
jmp dword [ecx*4 + 0x47c204]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x47c390
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f55ac
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47c3f5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47c3f5
lea edx, [esp]
push edx
call dword [0x55400c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3ed4
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f3ed4
add esp, 0x108
ret
jmp 0x47c390
Function at 0x47c410
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f55ac
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47c3f5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47c3f5
lea edx, [esp]
push edx
call dword [0x55400c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3ed4
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f3ed4
add esp, 0x108
ret
jmp 0x47c390
Function at 0x47f7e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f4310
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x47f855
cmp ebx, dword [esi]
je 0x47f84c
test edi, edi
je 0x47f832
cmp dword [esp + 0xa0], eax
jge 0x47f84c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f3ed4
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x47f85b
mov ebx, dword [esi]
test ebx, ebx
je 0x47f832
test edi, edi
push ebp
je 0x47f92d
push ebx
call fcn.0049a670
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x47f88b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004840b0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x47f8e5
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47f9e8
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004836f0
add esp, 0xc
test eax, eax
je 0x47f9e8
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00483700
add esp, 0xc
test eax, eax
je 0x47f9e8
jmp 0x47f90a
cmp eax, 0x80
ja 0x47f9e8
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f0240
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x47f935
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004ee380
add esp, 0xc
jmp 0x47f935
test eax, eax
je 0x47f9d4
xor eax, eax
jmp 0x47f940
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47f940
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47f9e8
push ebx
call fcn.0049a670
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004836f0
add esp, 0x10
test eax, eax
je 0x47f9e8
xor eax, eax
jmp 0x47f990
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47f990
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47f9e8
push ebx
call fcn.0049a670
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004836f0
add esp, 0x10
test eax, eax
je 0x47f9e8
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00483860
add esp, 8
test eax, eax
jne 0x47f9ec
xor eax, eax
jmp 0x47f9f1
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f3ed4
add esp, 0x88
ret
Function at 0x483f70
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.004f4310
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x483ff7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x483ff7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f57ad
add esp, 0x10
test eax, eax
jge 0x483fcd
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3ed4
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f57ad
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484085
call fcn.00483e30
test eax, eax
jle 0x484085
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3ed4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f3ed4
add esp, 0x108
ret
Function at 0x4d5b60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d5b79
mov esi, edi
mov edi, eax
jmp 0x4d5b7b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d5b8b
mov eax, ebx
jmp 0x4d5b95
push eax
push ebx
call fcn.0048f160
add esp, 8
test eax, eax
jne 0x4d5b9d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d5bbb
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d5ba4
cmp eax, dword [esi + 4]
jge 0x4d5bd2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d5bc0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d5bf5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d5bf2
sub eax, 1
test eax, eax
jg 0x4d5be2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4eb434
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004eb373
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ee380
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4eb483
cmp dword [ebp - 0x1c], 5
jb 0x4eb49b
jmp 0x4eb497
cmp dword [ebp - 0x10], 1
jne 0x4eb49b
cmp dword [ebp - 0x1c], 4
ja 0x4eb497
jne 0x4eb49b
cmp dword [ebp - 0x18], 0
jbe 0x4eb49b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x537a64
call fcn.00407c88
test eax, eax
jge 0x4eb4bc
mov byte [0x55cb18], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f3ed4
add ebp, 0x78
leave
ret
Function at 0x4eb73b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55baf0], 0
push esi
jne 0x4eb6ae
call fcn.004eb5d9
test eax, eax
je 0x4eb6f1
mov eax, dword [0x55baf0]
cmp eax, 1
jne 0x4eb6cf
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4eb6f1
pop esi
ret
push eax
call dword [0x55baf8]
test eax, eax
jne 0x4eb739
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 0x4eb6f5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55baf0]
call dword [0x55baf8]
mov edi, eax
test edi, edi
je 0x4eb71c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4eb738
lea edi, [esi + 0xff0]
push esi
push dword [0x55baf0]
call dword [0x55baf4]
add esi, 0x10
cmp esi, edi
jb 0x4eb722
mov eax, esi
pop edi
pop esi
ret
jmp 0x4eb69b
Function at 0x4ee0be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ee0fb
cmp dword [ebp + 0x14], edi
je 0x4ee0fb
cmp ecx, edi
jne 0x4ee102
call fcn.004f5020
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004edcea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ee116
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ee137
cmp ebx, 0xffffffff
je 0x4ee126
push ebx
push edi
push ecx
call fcn.004ee380
add esp, 0xc
cmp esi, edi
je 0x4ee0e3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ee0e3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ee153
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ee15a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ee24b
test word [esi + 0xc], 0x10c
je 0x4ee1ae
mov eax, dword [esi + 4]
test eax, eax
je 0x4ee1ae
jl 0x4ee2ac
cmp ebx, eax
mov edi, ebx
jb 0x4ee17f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ee253
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ed5f8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ee243
cmp ebx, dword [ebp - 0xc]
jb 0x4ee21b
cmp dword [ebp - 0xc], 0
je 0x4ee1d8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4ee1cd
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ee1d4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ee1e3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4ee1e3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ee27f
push eax
push dword [ebp - 8]
push esi
call fcn.004f05a5
pop ecx
push eax
call fcn.004fca66
add esp, 0xc
test eax, eax
je 0x4ee2be
cmp eax, 0xffffffff
je 0x4ee2ac
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ee243
push esi
call fcn.004fc385
cmp eax, 0xffffffff
pop ecx
je 0x4ee2b0
cmp dword [ebp - 4], 0
je 0x4ee27f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ee162
mov eax, dword [ebp + 0x14]
jmp 0x4ee0fd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee26a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ee380
add esp, 0xc
call fcn.004f5020
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ee0f3
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee295
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ee380
add esp, 0xc
call fcn.004f5020
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ee0f3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ee0fd
or dword [esi + 0xc], 0x10
jmp 0x4ee2b0
Function at 0x4f197b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f19a8
call fcn.004f5033
mov dword [eax], esi
call fcn.004f5020
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004edcea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f1984
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f19d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5046
pop ecx
call fcn.004f5020
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f19fe
test al, 1
je 0x4f19fe
test byte [esp + 0xc], 2
je 0x4f19fe
call fcn.004f5033
mov dword [eax], 5
call fcn.004f5020
mov dword [eax], 0xd
jmp 0x4f19ce
xor eax, eax
pop esi
ret

Function at 0x4f3ed4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55509c]
jne 0x4f3ede
repz ret
jmp fcn.00505037

Function at 0x4f9c38
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x555c08]
je 0x4f9c53
inc edi
cmp edi, 0x17
jb 0x4f9c44
cmp edi, 0x17
jae 0x4f9dd3
push ebp
push 3
call fcn.00506ba7
cmp eax, 1
pop ecx
je 0x4f9d9f
push 3
call fcn.00506ba7
test eax, eax
pop ecx
jne 0x4f9c87
cmp dword [0x555098], 1
je 0x4f9d9f
cmp ebx, 0xfc
je 0x4f9dd2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55bc08
push ebp
call fcn.004f1a7d
add esp, 0xc
test eax, eax
je 0x4f9cbd
push esi
push esi
push esi
push esi
push esi
call fcn.004edbee
add esp, 0x14
push 0x104
mov esi, 0x55bc21
push esi
push 0
mov byte [0x55bd25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f9d01
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f1a7d
add esp, 0xc
test eax, eax
je 0x4f9d01
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004edbee
add esp, 0x14
push esi
call fcn.004eb7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4f9d46
push esi
call fcn.004eb7d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55bf1c
push 0x53927c
sub ecx, eax
push ecx
push eax
call fcn.00503f88
add esp, 0x14
test eax, eax
je 0x4f9d46
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004edbee
add esp, 0x14
jmp 0x4f9d48
xor esi, esi
push 0x539278
push ebx
push ebp
call fcn.00503f17
add esp, 0xc
test eax, eax
je 0x4f9d68
push esi
push esi
push esi
push esi
push esi
call fcn.004edbee
add esp, 0x14
push dword [edi*8 + 0x555c0c]
push ebx
push ebp
call fcn.00503f17
add esp, 0xc
test eax, eax
je 0x4f9d8a
push esi
push esi
push esi
push esi
push esi
call fcn.004edbee
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005069ea
add esp, 0xc
jmp 0x4f9dd2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4f9dd2
cmp ebp, 0xffffffff
je 0x4f9dd2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x555c0c]
push dword [esi]
call fcn.004eb7d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5069ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004f96b9
xor ebx, ebx
cmp dword [0x55c6a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x506ac0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x506ba0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x539e80
push edi
call esi
cmp eax, ebx
je 0x506ba0
push eax
call fcn.004f964b
mov dword [esp], 0x539e70
push edi
mov dword [0x55c6a8], eax
call esi
push eax
call fcn.004f964b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55c6ac], eax
call esi
push eax
call fcn.004f964b
mov dword [0x55c6b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f3a13
test eax, eax
pop ecx
pop ecx
je 0x506a8e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004edbee
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x506ac0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004f964b
cmp eax, ebx
pop ecx
mov dword [0x55c6b8], eax
je 0x506ac0
push 0x539e28
push edi
call esi
push eax
call fcn.004f964b
pop ecx
mov dword [0x55c6b4], eax
mov eax, dword [0x55c6b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x506b45
cmp dword [0x55c6b8], ecx
je 0x506b45
push eax
call fcn.004f96c2
push dword [0x55c6b8]
mov esi, eax
call fcn.004f96c2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x506b45
cmp edi, ebx
je 0x506b45
call esi
cmp eax, ebx
je 0x506b12
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x506b12
test byte [ebp - 0x18], 1
jne 0x506b45
lea eax, [ebp - 0x10]
push eax
call fcn.004f3a4a
test eax, eax
pop ecx
je 0x506b2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004edbee
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x506b3c
or dword [ebp + 0x10], 0x200000
jmp 0x506b80
or dword [ebp + 0x10], 0x40000
jmp 0x506b80
mov eax, dword [0x55c6ac]
cmp eax, dword [ebp - 8]
je 0x506b80
push eax
call fcn.004f96c2
cmp eax, ebx
pop ecx
je 0x506b80
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x506b80
mov eax, dword [0x55c6b0]
cmp eax, dword [ebp - 8]
je 0x506b80
push eax
call fcn.004f96c2
cmp eax, ebx
pop ecx
je 0x506b80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55c6a8]
call fcn.004f96c2
cmp eax, ebx
pop ecx
je 0x506ba0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x506ba2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419014
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d4d0]
jne 0x41901e
repz ret
jmp fcn.004196c2

Function at 0x4f263c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4f2659
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4f264a
add dl, dl
jne 0x4f2664
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4f26b0
xor eax, eax
add dl, dl
jne 0x4f2671
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4f274d
add dl, dl
jne 0x4f2680
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4f268b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4f2696
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4f26a1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4f26ab
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4f2650
mov eax, 1
add dl, dl
jne 0x4f26be
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4f26c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4f26b5
sub eax, 2
jne 0x4f26f8
mov ecx, 1
add dl, dl
jne 0x4f26de
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4f26e9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4f26d5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f2650
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4f270f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4f271a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4f2706
cmp eax, 0x7d00
jae 0x4f273d
cmp eax, 0x500
jb 0x4f2738
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f2650
cmp eax, 0x7f
ja 0x4f2740
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f2650
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4f2769
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f2650
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x98c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0098c1a8
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 0x98c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98c06a
add dl, dl
jne 0x98c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98c0dc
xor eax, eax
add dl, dl
jne 0x98c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98c17d
add dl, dl
jne 0x98c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x98c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x98c075
mov eax, 1
add dl, dl
jne 0x98c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98c0e1
sub eax, ebx
mov ebx, 1
jne 0x98c128
mov ecx, 1
add dl, dl
jne 0x98c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98c136
cmp eax, 0x7d00
jae 0x98c16d
cmp eax, 0x500
jb 0x98c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98c075
cmp eax, 0x7f
ja 0x98c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x98c19e
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 0x98c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10