joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x54a7f0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x473d9a
sub esp, 0x48
mov eax, dword [0x508b70]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.00470890
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.004602be
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.004602be
call fcn.00470080
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.0045aec0
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x473c87
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x473ca1
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x473d18
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x473cee
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x473cea
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x473ce3
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x473cf0
mov ebx, 0x1d
jmp 0x473d0e
mov ebp, eax
jmp 0x473cf0
mov ebp, eax
cmp ebp, 0xd
jae 0x473d8d
lea eax, [ebp - 1]
lea edx, [0x5074c0]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x473d83
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x473d18
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x473d4a
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x473d52
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call fcn.0045fca0
mov eax, ebp
mov ecx, 0xd
call fcn.0045fca0
nop
call fcn.0045e830
jmp fcn.00473bb0
Function at 0x1003c900
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1003cac4
pushal
mov esi, section.data
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x1003c92a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1003c931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1003c920
mov eax, 1
add ebx, ebx
jne 0x1003c943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1003c938
jne 0x1003c954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003c938
xor ecx, ecx
sub eax, 3
jb 0x1003c968
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1003c9da
mov ebp, eax
add ebx, ebx
jne 0x1003c973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1003c980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1003c9a4
inc ecx
add ebx, ebx
jne 0x1003c990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1003c985
jne 0x1003c9a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003c985
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1003c9c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1003c9b5
jmp 0x1003c926
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1003c9c4
add edi, ecx
jmp 0x1003c926
pop esi
mov edi, esi
mov ecx, 0xbe1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1003c9e2
cmp byte [edi], 0x12
jne 0x1003c9e2
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 0x1003c9e7
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x1003ca56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1003ca14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c11c]
or eax, eax
je 0x1003ca50
mov dword [ebx], eax
add ebx, 4
jmp 0x1003ca31
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1003ca87
cmp al, 0xef
ja 0x1003ca7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1003ca5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1003ca69
mov ebp, dword [esi + 0x3c120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x1003cabb
sub esp, 0xffffff80
jmp 0x10007d3e
Function at 0x40a1d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a212
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a212
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a212
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a212
cmp dword [ecx + 0x74], 0xe
jbe 0x40a212
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40af1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419694
push 0x41968c
push str.FlsAlloc
push 0x1f
call fcn.0040addc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af51
push dword [ebp + 8]
mov ecx, esi
call dword [0x418174]
call esi
jmp 0x40af57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40af9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4196a4
push 0x41969c
push str.FlsGetValue
push 0x21
call fcn.0040addc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40afd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x418174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40afda
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4196ac
push 0x4196a4
push str.FlsSetValue
push 0x22
call fcn.0040addc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b014
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x418174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e7ab
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 0x40e848
push ebx
push esi
call fcn.0040e774
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.0040e708
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e7f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e847
push edi
push eax
call fcn.0040b70c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e815
call fcn.0040ac6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e846
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e708
add esp, 0x20
test eax, eax
jne 0x40e834
push edi
call fcn.0040ac6f
jmp 0x40e83c
push ebx
call fcn.0040ac6f
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 0xdbca30
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdbca3a
pushal
call 0xdbca40
pop ebp
sub ebp, 0x10
sub ebp, 0x9bca30
jmp 0xdbca56
mov eax, 0x9bca30
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d7
mov edx, 0x1e03d122
xor byte [eax], dl
inc eax
dec ecx
jne 0xdbca6d
jmp 0xdbca80
test eax, 0x1eaba9ef
and ah, byte [edx]
and ah, byte [ebx + 0x2222dae3]
and ah, byte [ecx]
out dx, eax
lcall 0xa98, 0x22222227
and ah, byte [edx]
and dl, ch
shl byte [ecx], 0xea
test eax, 0x22222ea3
and ah, byte [ecx]
out 0xaf, eax
inc esi
push es
fisubr word [ebx + 0x46af0626]
push es
fisubr word [ebx - 0x55b5f9da]
test byte [edx], 0x22
dec edx
mov dl, bh
pop eax
and ah, byte [ebx]
push cs
push es
dec edx
retf
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
mov ebx, 0x408ed0
nop
mov ecx, 0x27e6733f
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4ac8152f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x40180f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edi, dword [0x403050]
cdq
or di, 1
idiv edi
mov edx, dword [0x403050]
mov ebx, esi
add edx, eax
mov eax, 0x403054
call fcn.0040176c
xor eax, eax
jmp 0x401867
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x402cde
push eax
sub edi, fcn.004024a9
push edi
push fcn.004024a9
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4018af
mov eax, fcn.004024a9
mov ebx, esi
mov edx, edi
call fcn.0040176c
mov edx, 0x1be00
mov eax, 0x403054
mov ebx, esi
call fcn.00402028
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402230
Capabilities:
Delete file
Encode data using base64 via winapi
Get common file path
Initialize winsock library

Disassembly:
push ecx
push edx
enter 0x2cc, 0
lea eax, [ebp - 0x2cc]
push eax
push 2
call dword [sym.imp.WS2_32.DLL_WSAStartup]
push 0x104
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor eax, eax
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassA]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x13c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
push 0
call dword [sym.imp.USER32.DLL_GetDC]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
movzx eax, byte [ebp - 0x10]
sub eax, 0x47
add eax, dword [ebp - 4]
leave
pop edx
pop ecx
ret
Function at 0x82e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x82e1a8
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 0x82e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82e06a
add dl, dl
jne 0x82e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82e0dc
xor eax, eax
add dl, dl
jne 0x82e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82e17d
add dl, dl
jne 0x82e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x82e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x82e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x82e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x82e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x82e075
mov eax, 1
add dl, dl
jne 0x82e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x82e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x82e0e1
sub eax, ebx
mov ebx, 1
jne 0x82e128
mov ecx, 1
add dl, dl
jne 0x82e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x82e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x82e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x82e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x82e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x82e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x82e136
cmp eax, 0x7d00
jae 0x82e16d
cmp eax, 0x500
jb 0x82e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x82e075
cmp eax, 0x7f
ja 0x82e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x82e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x82e19e
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 0x82e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
leave
ret

Function at 0x401c75
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfd8
call fcn.00402a80
sub esp, eax
mov dword [ebp - 0xc], 0
jmp 0x401cb7
mov eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 0xc]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax*8 + 0x4052a4]
mov eax, dword [eax*8 + 0x4052a0]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 7
jbe 0x401c8d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x401d88
lea eax, [ebp - 0xfc8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._read_block
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, 0
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
cmp dword [ebp - 0x24], 0x7f
ja 0x401d26
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._pad_block
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x24], 0x6f
ja 0x401d4f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._seal_block
mov dword [ebp - 0x1c], 1
mov dword [esp + 4], 0x10
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._swap_endianness
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._extend_block
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._compress_block
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and eax, 0x10
test eax, eax
je 0x401cde
cmp dword [ebp - 0x1c], 0
jne 0x401dc3
cmp dword [ebp - 0x20], 1
jne 0x401dc3
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._memset
cmp dword [ebp - 0x20], 0
jne 0x401ddf
mov dword [esp + 4], 0
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._pad_block
cmp dword [ebp - 0x1c], 0
jne 0x401e01
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._seal_block
cmp dword [ebp - 0x1c], 0
je 0x401e0d
cmp dword [ebp - 0x20], 0
jne 0x401e46
mov dword [esp + 4], 0x10
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._swap_endianness
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._extend_block
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xfc8]
mov dword [esp], eax
call sym._compress_block
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x402540
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40258b
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 0x402584
test esi, esi
je 0x402584
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402560
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402770
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], str.Mingw_runtime_failure:_n
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 0x4027c0
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 0x402898
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4027fe
cmp eax, 4
jne 0x402820
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 0x40280e
cmp edx, 4
je 0x40280e
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.00402770
Function at 0x43a47b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a630]
jne 0x43a485
repz ret
jmp fcn.004446e5

Function at 0x4500cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a630]
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.00446db2
and dword [ebp - 0x14], 0
cmp dword [0x47e1f8], 0
mov dword [ebp - 0x18], eax
jne 0x45017f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x450227
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x450227
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47e1f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47e1fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47e200], eax
call edi
push eax
call esi
mov dword [0x47e208], eax
test eax, eax
je 0x45017f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47e204], eax
mov eax, dword [0x47e204]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4501d8
cmp dword [0x47e208], ecx
je 0x4501d8
push eax
call esi
push dword [0x47e208]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4501d8
test ebx, ebx
je 0x4501d8
call edi
test eax, eax
je 0x4501cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4501cf
test byte [ebp - 8], 1
jne 0x4501d8
or dword [ebp + 0x10], 0x200000
jmp 0x45020b
mov eax, dword [0x47e1fc]
cmp eax, dword [ebp - 0x18]
je 0x45020b
push eax
call esi
test eax, eax
je 0x45020b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45020b
mov eax, dword [0x47e200]
cmp eax, dword [ebp - 0x18]
je 0x45020b
push eax
call esi
test eax, eax
je 0x45020b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47e1f8]
call esi
test eax, eax
je 0x450227
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x450229
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a47b
leave
ret
Function at 0x1d49058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01d491a8
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 0x1d4907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d4906a
add dl, dl
jne 0x1d49089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d490dc
xor eax, eax
add dl, dl
jne 0x1d49096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d4917d
add dl, dl
jne 0x1d490a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d490d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d49075
mov eax, 1
add dl, dl
jne 0x1d490ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d490e1
sub eax, ebx
mov ebx, 1
jne 0x1d49128
mov ecx, 1
add dl, dl
jne 0x1d4910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d49119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d49105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d4913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d4914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d49136
cmp eax, 0x7d00
jae 0x1d4916d
cmp eax, 0x500
jb 0x1d49168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
cmp eax, 0x7f
ja 0x1d49170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d4919e
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 0x1d49075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10