joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001320
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi

Disassembly:
push 0xffffffffffffffff
push 0x10039562
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004a570]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push 0
push 0x66
mov ecx, esi
call fcn.100069c4
mov dword [esp + 0x1c], 0
mov dword [esi], vtable.CEncryptionDlg.0
call fcn.10009b6a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000137b
push 0x80004005
call fcn.10004230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
mov byte [esp + 0x1c], 1
call fcn.10009b6a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x100013a9
push 0x80004005
call fcn.10004230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x78], eax
lea edi, [esi + 0x80]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.1000ae18
mov dword [edi], vtable.CEdit.0
lea edi, [esi + 0xd4]
mov ecx, edi
mov byte [esp + 0x1c], 3
call fcn.1000ae18
mov dword [edi], vtable.CEdit.0
mov byte [esp + 0x1c], 4
call fcn.10009b6a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10001407
push 0x80004005
call fcn.10004230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x130], eax
lea ecx, [esi + 0x134]
mov byte [esp + 0x1c], 5
call fcn.1000790a
lea ecx, [esi + 0x144]
mov byte [esp + 0x1c], 6
call fcn.1000790a
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x154]
mov byte [esp + 0x28], 7
call fcn.100046e0
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
mov byte [esp + 0x2c], 8
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea edi, [esi + 0x16c]
push edi
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x100014b2
call ebp
cmp eax, 0x80090003
jne 0x10001545
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push edi
call ebx
test eax, eax
jne 0x100014b2
call ebp
push 0
push 0
push str.Fail_to_acquire_Context.
mov dword [esi + 0x168], eax
call fcn.10009acc
jmp 0x10001545
mov edx, dword [edi]
lea ecx, [esi + 0x170]
push ecx
push 0
push 0
push 0x134
push 0x1004bba0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100014f1
call ebp
push 0
push str.Information
push str.Error_CryptImportKey___failed.
mov ecx, esi
mov dword [esi + 0x168], eax
call fcn.1000b053
jmp 0x10001545
mov ecx, dword [edi]
lea eax, [esi + 0x174]
push eax
push 1
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x10001529
call ebp
push 0
push str.Information
push str.Error_CryptGenKey___failed.
mov ecx, esi
mov dword [esi + 0x168], eax
call fcn.1000b053
jmp 0x10001545
call fcn.1000f451
call fcn.1000f451
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x7c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x10001740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push ebp
mov ebp, dword [ebx + 4]
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x10001834
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x100017bd
mov edx, dword [esp + 0x24]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x10001818
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1000184b
mov eax, dword [esi - 4]
add eax, ebp
test edi, edi
mov dword [esi - 8], eax
je 0x10001818
push edi
push 0
push eax
call fcn.10020d60
add esp, 0xc
jmp 0x10001818
mov ecx, dword [esi + 4]
add ecx, eax
cmp dword [esp + 0x20], ecx
jb 0x10001843
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1000184b
mov eax, dword [esi - 4]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
add edx, dword [esp + 0x1c]
add eax, ebp
test ebx, ebx
jbe 0x10001811
mov edi, edx
mov ecx, eax
sub edi, eax
mov ebp, ebx
lea ebx, [ebx]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x10001800
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov dword [esi - 8], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10001772
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x10001900
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x30]
mov esi, dword [ecx + eax + 0x20]
sub edx, 1
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [esp + 0x18], edx
jne 0x10001946
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x1000193f
mov esi, dword [eax + 0x20]
jmp 0x10001946
test bl, bl
jns 0x10001946
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], esi
mov esi, 1
add ecx, 0x28
cmp word [eax + 6], si
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
jbe 0x10001a26
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x30]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
sub esi, 1
not esi
and esi, ebp
test edi, edi
jne 0x10001999
mov ecx, dword [ebx]
test cl, 0x40
je 0x10001992
mov edi, dword [eax + 0x20]
jmp 0x10001999
test cl, cl
jns 0x10001999
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x100019d2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x100019d2
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10001860
test eax, eax
je 0x10001a49
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x100019fe
mov eax, dword [ebx]
test eax, 0x2000000
je 0x100019eb
test dword [esp + 0x20], 0x2000000
je 0x100019eb
or dword [esp + 0x20], eax
jmp 0x100019f8
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
movzx esi, word [eax + 6]
add ecx, 1
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
jl 0x10001972
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x24], 1
call fcn.10001860
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
Function at 0x10004200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x100072da
cmp dword [edi + 0x54], 0
jne 0x100072da
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1000f451
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10007281
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x10004640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004659
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004694
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10004690
lea ebx, [ebx]
cmp esi, eax
jae 0x10004694
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10004680
cmp esi, eax
jb 0x1000469a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10005c97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10005cdd
call fcn.1000f451
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10005cdd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10005d20
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10005d09
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10005d09
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10005d1d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000ecd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000ed1c
call fcn.1000f451
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000ed1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000ed37
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000e890
test ebx, ebx
mov esi, eax
je 0x1000ed35
test edi, edi
je 0x1000ed35
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10010902
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10038c32
call fcn.100207ac
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10010927
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10010973
call fcn.10009b6a
push eax
lea ecx, [ebp - 0x10]
call fcn.100047f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100073c7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001220
mov eax, esi
call fcn.10020884
ret 8
Function at 0x1001f166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a570]
jne 0x1001f170
repz ret
jmp fcn.10023e6a

Function at 0x1002e81a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10023fd1
xor ebx, ebx
cmp dword [0x1004e6d8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1002e8ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1002e85a
xor eax, eax
jmp 0x1002e9b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003e340
push edi
call esi
cmp eax, ebx
je 0x1002e853
push eax
call fcn.10023f6e
mov dword [esp], 0x1003e330
push edi
mov dword [0x1004e6d8], eax
call esi
push eax
call fcn.10023f6e
mov dword [esp], 0x1003e31c
push edi
mov dword [0x1004e6dc], eax
call esi
push eax
call fcn.10023f6e
mov dword [0x1004e6e0], eax
lea eax, [ebp - 8]
push eax
call fcn.1002095f
test eax, eax
pop ecx
pop ecx
je 0x1002e8bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100248ad
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1002e8ef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10023f6e
cmp eax, ebx
pop ecx
mov dword [0x1004e6e8], eax
je 0x1002e8ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10023f6e
pop ecx
mov dword [0x1004e6e4], eax
mov eax, dword [0x1004e6e4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002e968
cmp dword [0x1004e6e8], esi
je 0x1002e968
push eax
call fcn.10023fda
pop ecx
call eax
cmp eax, ebx
je 0x1002e935
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1004e6e8]
call fcn.10023fda
pop ecx
call eax
test eax, eax
je 0x1002e935
test byte [ebp - 0x18], 1
jne 0x1002e968
lea eax, [ebp - 0xc]
push eax
call fcn.10020996
test eax, eax
pop ecx
je 0x1002e950
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100248ad
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002e95f
or dword [ebp + 0x10], 0x200000
jmp 0x1002e999
or dword [ebp + 0x10], 0x40000
jmp 0x1002e999
mov eax, dword [0x1004e6dc]
cmp eax, esi
je 0x1002e999
push eax
call fcn.10023fda
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002e999
mov eax, dword [0x1004e6e0]
cmp eax, esi
je 0x1002e999
push dword [ebp - 4]
push eax
call fcn.10023fda
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1004e6d8]
call fcn.10023fda
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402470
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x40253f
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x4024df
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x40252a
push dword [edi + 0x30]
mov eax, dword [ebp + 0x14]
add eax, dword [esi - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x402547
mov eax, dword [ebp + 0x14]
push ebx
add eax, dword [esi - 4]
push 0
push eax
mov dword [esi - 8], eax
call 0x4076ae
add esp, 0xc
jmp 0x40252a
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.00402457
pop ecx
test eax, eax
pop ecx
je 0x402547
push dword [edi + 0x30]
mov ebx, dword [ebp + 0x14]
mov eax, ebx
add eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x402547
mov eax, dword [esi + 4]
push dword [esi]
add eax, dword [ebp + 8]
add ebx, dword [esi - 4]
push eax
push ebx
call 0x407706
add esp, 0xc
mov dword [esi - 8], ebx
mov eax, dword [edi]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x40249c
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x402542
Function at 0x403a28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x403a51
push 0x40f570
lea ecx, [ebp - 0xc]
call dword [0x408184]
lea eax, [ebp - 0xc]
push 0x40d570
push eax
call 0x40776e
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x403a72
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x403a62
pop edi
pop esi
leave
ret 8

Function at 0x405535
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d054]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d054]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x16aa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.016aa1a8
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 0x16aa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16aa06a
add dl, dl
jne 0x16aa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16aa0dc
xor eax, eax
add dl, dl
jne 0x16aa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16aa17d
add dl, dl
jne 0x16aa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16aa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16aa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16aa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16aa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x16aa075
mov eax, 1
add dl, dl
jne 0x16aa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16aa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16aa0e1
sub eax, ebx
mov ebx, 1
jne 0x16aa128
mov ecx, 1
add dl, dl
jne 0x16aa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16aa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16aa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16aa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16aa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16aa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16aa136
cmp eax, 0x7d00
jae 0x16aa16d
cmp eax, 0x500
jb 0x16aa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16aa075
cmp eax, 0x7f
ja 0x16aa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16aa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x16aa19e
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 0x16aa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100069a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1c651c48], 0
jne 0x10006a45
xor ecx, ecx
nop
mov eax, ecx
shr eax, 1
test cl, 1
je 0x100069be
xor eax, 0xedb88320
test al, 1
je 0x100069cb
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069cd
shr eax, 1
test al, 1
je 0x100069da
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069dc
shr eax, 1
test al, 1
je 0x100069e9
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069eb
shr eax, 1
test al, 1
je 0x100069f8
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069fa
shr eax, 1
test al, 1
je 0x10006a07
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a09
shr eax, 1
test al, 1
je 0x10006a16
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a18
shr eax, 1
test al, 1
je 0x10006a25
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a27
shr eax, 1
mov dword [ecx*4 + 0x1c651c50], eax
inc ecx
cmp ecx, 0x100
jl 0x100069b0
mov dword [0x1c651c48], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x10006a72
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1c651c50]
dec edx
jne 0x10006a56
pop esi
ret
Function at 0x1005be1
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1005c1c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1005c03
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1005c14
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1005c1e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1005bf9
xor eax, eax
pop edi
pop esi
ret
Function at 0x401670
Capabilities:
Terminate process

Disassembly:
push ecx
mov dword [esp], 0
call fcn.00419db0
cmp dword [0x5b607c], 4
mov dword [0x65c184], 0xa
jne 0x40177a
mov eax, dword [0x67d2ac]
sub eax, 1
je 0x4016e6
sub eax, 1
jne 0x4017a8
cmp dword [0x67d288], eax
je 0x4016bf
cmp dword [0x67d27c], 0x65c980
jne 0x4017a8
mov ecx, dword [0x65c180]
push 0
lea eax, [esp + 4]
push eax
push ecx
call fcn.00401280
mov edx, dword [0x67d27c]
push edx
call fcn.00411c20
add esp, 0x10
jmp 0x4017a8
cmp dword [0x67d288], 0
jne 0x4017a8
mov eax, dword [0x67d27c]
cmp dword [eax + 0x10], 0
mov dword [0x67d2a0], 0x12c
jne 0x401732
mov eax, dword [eax]
push 0x12c
push eax
call fcn.004118f0
add esp, 8
test eax, eax
jne 0x401732
mov ecx, dword [0x67d2a0]
push ecx
push 0x452
call fcn.004073f0
add esp, 8
jmp 0x401754
push 0x65c180
call fcn.00414550
mov edx, dword [0x65c978]
push eax
mov eax, dword [0x67d27c]
push 0
push edx
push eax
call fcn.00560310
add esp, 0x14
test eax, eax
jne 0x4017a8
mov edx, dword [0x65c180]
push eax
lea ecx, [esp + 4]
push ecx
push edx
call fcn.00401280
mov eax, dword [0x67d27c]
push eax
call fcn.00411c20
add esp, 0x10
jmp 0x4017a8
push esi
call fcn.00406790
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push eax
push 0x5a8500
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
pop esi
push 1
call fcn.0056c1a0
add esp, 4
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3