joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
jmp loc.00408000

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x503014eb
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3f096344
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x592583
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0583e04
jmp 0x59251e
jae 0x5924c0
mov dword [esp + 0x1c], ecx
jmp 0x5924c4
mov dword [esp + 0x1c], ecx
call fcn.00592428
pop word [esp + 3]
lea esp, [esp + 2]
mov dword [esp + 0x3c], edi
jmp 0x592604
jl 0x5924fb
jge 0x5924fb
call 0x59253e
mov ebp, dword [esp + 0x30]
mov ax, bp
jmp 0x592528
mov eax, 0x9665051b
cmp dh, 0xea
jmp 0x5924e5
sub esp, 0xf
jbe 0x59257e
ja 0x59257e
dec ebp
in eax, dx
jge 0x592537
div dword [edx + 0x7c]
invalid
insb byte es:[edi], dx
or eax, dword [esi]
invalid
call 0x59255a
bswap ebx
mov eax, 0x1a0014fb
neg bx
call fcn.005925af
or byte [esi + 0x29967b1c], cl
lahf
sub esp, 0xac
jmp 0x59260e
lea esp, [esp + 0x3c]
pushfd
jmp 0x5923ea
mov esi, esp
xchg bl, dl
mov bx, 0xe420
setge dl
lea ecx, [esi + 0x17]
jmp fcn.00592651
push eax
pushal
mov word [esp + 3], cx
pop dword [esp + 3]
push dword [esp + 8]
jmp 0x592480

Function at 0x592762
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 0xc]
jbe 0x592731
xor ch, al
jmp 0x592780

Function at 0x593e19
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0583e04
jmp 0x59251e
jae 0x5924c0
mov dword [esp + 0x1c], ecx
jmp 0x5924c4
mov dword [esp + 0x1c], ecx
call fcn.00592428
pop word [esp + 3]
lea esp, [esp + 2]
mov dword [esp + 0x3c], edi
jmp 0x592604
jl 0x5924fb
jge 0x5924fb
call 0x59253e
mov ebp, dword [esp + 0x30]
mov ax, bp
jmp 0x592528
mov eax, 0x9665051b
cmp dh, 0xea
jmp 0x5924e5
sub esp, 0xf
jbe 0x59257e
ja 0x59257e
dec ebp
in eax, dx
jge 0x592537
div dword [edx + 0x7c]
invalid
insb byte es:[edi], dx
or eax, dword [esi]
invalid
call 0x59255a
bswap ebx
mov eax, 0x1a0014fb
neg bx
call fcn.005925af
or byte [esi + 0x29967b1c], cl
lahf
sub esp, 0xac
jmp 0x59260e
lea esp, [esp + 0x3c]
pushfd
jmp 0x5923ea
mov esi, esp
xchg bl, dl
mov bx, 0xe420
setge dl
lea ecx, [esi + 0x17]
jmp fcn.00592651
push eax
pushal
mov word [esp + 3], cx
pop dword [esp + 3]
push dword [esp + 8]
jmp 0x592480

Function at 0x614d61
Capabilities:
Encode data using xor

Disassembly:
mov ah, byte [esp]
dec ebx
jbe 0x614d4b
ja 0x614d71
sbb cl, byte [esi + 0x54967b1c]
lahf
out 0x8a, al
jl 0x614d98
mov bh, byte [esp + 1]
jmp 0x615187
add ecx, ebp
or eax, 0x8a000004
cmp al, 0x24
Function at 0x674805
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0x67208a
call fcn.0067208f
call 0x674034
jmp 0x67482d
movzx ebx, word [eax + 0x3c]
jmp 0x67484c
mov byte [esp + 6], cl
lea esp, [esp + 4]
jmp 0x6747cf
push word [esp + 3]
mov dword [esp], edi
lea esp, [esp + 2]
mov dword [esp], edx
call fcn.0067479e
pop edi
aad 0x45
sub al, 0xdf
or esp, eax
ja 0x6747d7
invalid
mov byte [ebx + 0x27eb0c40], cl
push ebp
fdiv qword [edx + 0x15]
in al, 0xb
movsd dword es:[edi], dword [esi]
sub dword [ecx - 0x3a38d428], edi
dec edx
fdivr dword [edi + 0x666ba84a]
mov word [esp], ax
mov eax, dword [eax + 0xc]
jmp 0x674819
mov dword [esp + 0x34], edi
lea esp, [esp + 0x34]
mov eax, dword fs:[0x30]
jmp 0x6747ed
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x674827
push eax
jmp 0x67402f
pop eax
jmp 0x674862
add ebx, eax
jmp 0x674870
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x67487b
cmp word [ebx], 0x4550
jmp 0x6748c3
je 0x6740b2
sub eax, 0x10000
jmp 0x674865
je 0x671fdc
jne 0x674881
test al, 0x32
mov al, byte [0xaa8532c7]
aaa
cmpsd dword [esi], dword es:[edi]
ret 0x9631

Function at 0x6748f3
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0x34], esi
call fcn.00674805
lea esp, [esp + 2]
mov dword [esp + 0x18], ebp
pushfd
lea esp, [esp + 2]
pushal
lea esp, [esp + 2]
jmp 0x674843
pop word [esp + 9]
jmp 0x674899
Function at 0x10002f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x100094d0
call fcn.10009170
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.10003b03
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x10002f4c
push edi
call esi
cmp eax, 0xffffffff
jne 0x10002f8e
test ebx, ebx
je 0x10002f8b
lea ecx, [ebp - 0x18]
call fcn.10001b3f
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.10003c0c
test al, al
push dword [ebp - 0x18]
je 0x10002f85
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.10002194
pop ecx
mov eax, esi
jmp 0x10002f8e
call fcn.10002194
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000353e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003568
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003568
xor al, al
jmp 0x10003588
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.100091c0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x10004453
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x100095d8
call fcn.10009170
sub esp, 0x84
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi]
cmp eax, esi
je 0x1000447f
push eax
call ebx
test eax, eax
je 0x1000447f
mov dword [edi], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.10001b82
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call fcn.10004566
push 0x20
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1000454b
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10001aa7
push dword [ebp - 0x40]
call fcn.10002194
push dword [ebp - 0x4c]
call fcn.10002194
push dword [ebp - 0x24]
call fcn.10002194
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x8c], esi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x88], esi
push dword [ebp + 0x10]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x5e], si
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x5c], esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10004525
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000452f
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
push dword [ebp - 0x18]
call fcn.10002194
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000469c
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x1000602c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x100098bc
call fcn.10009170
sub esp, 0x1c
push esi
push edi
push str.CLSID_
lea ecx, [ebp - 0x1c]
call fcn.10001bc5
push dword [0x1000a6f8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001e03
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push str.InprocServer32
call fcn.10001acb
push dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, 0x80000000
push edi
call esi
push dword [ebp - 0x28]
call fcn.10002194
pop ecx
push dword [ebp - 0x1c]
push edi
call esi
call fcn.10005cf8
test al, al
pop edi
pop esi
je 0x100060c9
lea eax, [ebp - 0x10]
push eax
push 2
push 0
push dword [0x1000a6f4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100060c9
push dword [0x1000a6f8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call fcn.10002194
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40735f
pop dword [ebp - 0x30]
mov eax, 0x8c4897d8
add eax, 0x73f7db87
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3e7ae
push 0
mov eax, 0x467bb2d7
add eax, 0xb9c69f41
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xd4a306cc
add ecx, 0x2b5d441b
xor ebx, ebx
add ebx, eax
mov esi, 0x3d2da067
sub esi, 0x3cea4c67
add esi, dword [ebp - 0x30]
mov edx, 0xf1f4bf01
sub edx, 0x51edeab0
mov edi, dword [esi]
xor edi, edx
add dword [ebp - 0x1c], 0x2a9844e7
mov dword [ebx], edi
xor dword [ebp - 0x28], 0xca1f685d
add ebx, 0xcde2e14e
add ebx, 0x321d1eb6
add esi, 4
loop 0x4073c0
add eax, 0x11e6f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7

Function at 0x412590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4125aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4125b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4125a0
mov eax, 1
add ebx, ebx
jne 0x4125c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4125b8
jne 0x4125d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4125b8
xor ecx, ecx
sub eax, 3
jb 0x4125e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41265a
mov ebp, eax
add ebx, ebx
jne 0x4125f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412624
inc ecx
add ebx, ebx
jne 0x412610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412605
jne 0x412621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412605
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412635
jmp 0x4125a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412644
add edi, ecx
jmp 0x4125a6
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4126ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x127c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412661
mov ecx, edi
jns 0x412690
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 + 0x127cc]
or eax, eax
je 0x4126a6
mov dword [ebx], eax
add ebx, 4
jmp 0x41267e
call dword [esi + 0x127c8]
mov ebp, dword [esi + 0x127d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4126e0
sub esp, 0xffffff80
jmp 0x403ac6
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6abf3283
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7d655054
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x405a12
pop dword [ebp - 0x18]
mov eax, 0x40bdf729
add eax, 0xbf8262e9
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x6e8c1525
sub dword [ebp - 0x28], 0x2039cfda
mov dword [ebp - 0x24], 0x37638259
add dword [ebp - 0x24], 0xfacfc9ec
mov dword [ebp - 0x20], 0x3301420d
sub dword [ebp - 0x20], 0xe6b4fddf
mov dword [ebp - 0x1c], 0xc3e4cd0e
sub dword [ebp - 0x1c], 0xc3e4cd0e
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe3615e94
sub eax, 0xe320dd90
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x689d6c06
add dword [ebp - 0x28], 0xbd4fd50
mov dword [ebp - 0x24], 0xe6fefa87
sub dword [ebp - 0x24], 0xa5929912
mov dword [ebp - 0x20], 0x2f3506d3
add dword [ebp - 0x20], 0x343a6599
mov dword [ebp - 0x1c], 0x66bcec90
add dword [ebp - 0x1c], 0x99431370
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x385fc
push 0
call eax
mov ecx, 0x9bddf919
sub ecx, 0x9bddab86
xor edx, edx
add edx, eax
mov edi, 0x94a7ee57
add edi, 0x6b9ef5a9
add edi, dword [ebp - 0x18]
mov esi, 0xa6334f6a
sub esi, 0x4939b819
xor dword [ebp - 0xc], 0x737ff1b7
mov ebx, dword [edi]
xor dword [ebp - 4], 0x8711de09
sub ebx, esi
mov dword [edx], ebx
add edx, 4
add edi, 0x32afe781
add edi, 0xcd501883
loop 0x405b31
add eax, 0x1291f
xor ebx, ebx
add ebx, eax
add eax, 0x4ab6e953
sub eax, 0x4ab6e94e
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
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 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0xaaa058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xaaa1a8
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 0xaaa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaaa06a
add dl, dl
jne 0xaaa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaaa0dc
xor eax, eax
add dl, dl
jne 0xaaa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaaa17d
add dl, dl
jne 0xaaa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaaa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaaa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaaa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaaa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaaa075
mov eax, 1
add dl, dl
jne 0xaaa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaaa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaaa0e1
sub eax, ebx
mov ebx, 1
jne 0xaaa128
mov ecx, 1
add dl, dl
jne 0xaaa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaaa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaaa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaaa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaaa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaaa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaaa136
cmp eax, 0x7d00
jae 0xaaa16d
cmp eax, 0x500
jb 0xaaa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaaa075
cmp eax, 0x7f
ja 0xaaa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaaa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaaa19e
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 0xaaa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4054c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405778
mov byte [esp], al
cmp byte [esp], 0
jne 0x405654
test edi, edi
je 0x405654
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40558b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405566
cmp edi, 0xffffffff
je 0x405527
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405527
mov byte [esp], 0
jmp 0x405654
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405566
test ebx, ebx
jne 0x40555c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026f4
test eax, eax
jne 0x40555c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405654
call 0x4057bc
dec ebp
test ebp, ebp
jg 0x40550c
cmp edi, 0xffffffff
je 0x40558b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405589
mov byte [esp], 0
jmp 0x405654
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4054d6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x40558b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004056c4
mov edx, eax
mov ebx, dword [0x44f8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4055f2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4055f0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4055f2
xor edi, edi
cmp byte [esp], 0
je 0x40561b
mov ebx, dword [esi]
test bl, 1
jne 0x405634
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x4055f8
mov byte [esp + 1], 1
jmp 0x405634
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x40561b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4055a5
cmp byte [esp], 0
je 0x405654
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4061b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f058], 0
je 0x40621f
cmp word [0x44f340], 0xd7b2
jne 0x4061e1
cmp dword [0x44f348], 0
jbe 0x4061e1
mov eax, 0x44f33c
call dword [0x44f358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40624c
call fcn.00406b6c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44c032], 0
jne 0x40623b
push 0
push 0x44c9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret