joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c8e21
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [0x100ca644]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0xc]
push str.select__from_hash_where_hash_s
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::Format]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
call dword [0x100ca608]
lea ecx, [esp + 0x10]
call dword [0x100ca644]
xor eax, eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
test esi, esi
jne 0x1001cfd5
lea esi, [esp + 0xc]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_char_1_::Empty]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ecx + 8]
push esi
push 0x1001d100
push eax
push edx
call fcn.1006f7d0
mov eax, dword [esi]
mov esi, dword [eax - 0xc]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
xor eax, eax
test esi, esi
setne al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
Function at 0x1001def0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c8de8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [0x100ca800]
lea ecx, [esp + 0x1c]
call dword [0x100ca800]
lea ecx, [esp + 0x20]
call dword [0x100ca800]
lea ecx, [esp + 0x24]
call dword [0x100ca800]
push 0x30
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x74], esi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push 0x1001e040
push str.select__from_Quarantine_order_by_add_time_desc
push eax
call fcn.1006f7d0
add esp, 0x14
lea ecx, [esp + 0x24]
test eax, eax
jne 0x1001dfd7
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esi + 1]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10020ed0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x10020ee1
mov ebx, dword [edi + 0x1c]
push 0
push 0x18
push 0
push 0
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [esi]
add edi, 0x10
push edi
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebx
ret 4

Function at 0x10021150
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov eax, 1
ret 4
Function at 0x10025850
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x10025857
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x10025934
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d3680]
inc ecx
sub edx, 8
sub esi, 1
jne 0x10025870
pop edi
test edx, edx
je 0x1002595b
jmp 0x10025940
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100d3680]
inc ecx
sub edx, 1
jne 0x10025940
not eax
pop esi
ret

Function at 0x10026050
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x10026082
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10026078
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x10026095
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call sub.MSVCR90.dll_memcpy
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x10026260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x100262a5
cmp byte [esi + 1], 0
je 0x100262ad
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x100262c1
cmp byte [esi + 1], 0
je 0x100262b3
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x100262ca
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x1002627e
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x100262ca
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x100262de
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100262fa
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x1002640c
jmp 0x1002631d
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x1002632e
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x10026347
mov ebp, 0x404
cmp byte [esi], 0
je 0x1002636c
cmp byte [esi + 1], 0
je 0x1002640c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1002636f
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x10026397
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10026391
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x100263bd
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x100263a8
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x1002640c
lea eax, [ebp - 3]
test eax, eax
jle 0x100263fe
lea ecx, [ecx]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x100263ec
cmp byte [eax + ebx + 1], 0x4b
jne 0x100263ec
cmp byte [eax + ebx + 2], 5
jne 0x100263ec
cmp byte [eax + ebx + 3], 6
je 0x100263f2
test eax, eax
jg 0x100263d0
jmp 0x100263fe
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x1002640c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x10026311
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x10026f20
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x10026f80
cmp dword [esi + 4], 0xffffffff
jne 0x10026f80
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10026f42
mov eax, dword [0x100cc7d8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea edi, [esp + 0xc]
call fcn.10025fb0
test eax, eax
jne 0x10026f6f
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.10026430
mov dword [esi], eax
mov eax, dword [0x100f2560]
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4
Function at 0x1002a450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x1002a457
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1002a534
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x100d1ed0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x1002a470
pop edi
test edx, edx
je 0x1002a55b
jmp 0x1002a540
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100d1ed0]
inc ecx
sub edx, 1
jne 0x1002a540
not eax
pop esi
ret

Function at 0x1002a560
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100d1ed0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100d1ed0]
mov dword [edx + 8], ecx
ret
Function at 0x1002a6f0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, eax
push edi
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1002a71a
mov eax, 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov edx, eax
xor edi, edi
and edx, 1
je 0x1002a733
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
test al, 2
je 0x1002a73a
or edi, 2
test al, 4
je 0x1002a741
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x1002a74b
or edi, 0x10
test al, 0x20
je 0x1002a752
or edi, 0x20
test ecx, ecx
je 0x1002a75e
or edi, 0x40000000
jmp 0x1002a764
or edi, 0x80000000
or edi, 0x1000000
mov dword [esp + 0x14], edi
test edx, edx
jne 0x1002a77c
or edi, 0x800000
mov dword [esp + 0x14], edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp eax, 0x28
jbe 0x1002a830
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x1002a82c
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x1c], ecx
jbe 0x1002a82c
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x1002a824
cmp eax, 0x454e
je 0x1002a824
cmp eax, 0x454c
je 0x1002a824
cmp eax, 0x4550
jne 0x1002a82c
or dword [esp + 0x14], 0x400000
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1002a83a
mov dword [eax], edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1002a848
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x1002a8c6
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.100c1a80
mov dword [ebp + 4], edx
push 0
mov ecx, edi
sub ecx, 0xd53e8000
mov edx, esi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebp], eax
call fcn.100c1a80
mov ecx, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [ebp + 0xc], edx
call fcn.100c1a80
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x1002a8f3
push esi
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.1002a680
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x24]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [ebx], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
Function at 0x1002a9a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x1002aa7b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x1002a9d4
cmp dword [esi + 0x40], edi
jae 0x1002a9d4
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x1002a9eb
lea eax, [edi + edi]
push eax
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp edi, ebp
jbe 0x1002aa77
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100d1ed0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100d1ed0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x1002aa00
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x1002aab4
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1002aa9c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002aad5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x1002ad80
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x1002adce
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x1002ae0b
sub edi, eax
cmp edi, edx
jbe 0x1002ada4
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.1002a450
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x1002ae04
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002ae0b
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.1002a450
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x10031a40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x10031a6d
push esi
push edi
jmp 0x10031a50
movzx esi, byte [edx]
movzx esi, byte [esi + 0x100ce228]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x10031a50
pop edi
pop esi
ret

Function at 0x10031ad0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x10031aed
mov esi, 0x80
cmp esi, dword [edi]
jne 0x10031afa
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x100f25e0]
test eax, eax
je 0x10031b05
call eax
lea ecx, [esi*8]
push ecx
call fcn.1002e5e0
mov ebp, eax
mov eax, dword [0x100f25e4]
add esp, 4
mov dword [esp + 0x10], ebp
test eax, eax
je 0x10031b26
call eax
test ebp, ebp
je 0x10031af1
mov edx, dword [edi + 0xc]
push edx
call fcn.1002e8b0
add esp, 4
push ebp
mov dword [edi + 0xc], ebp
call dword [0x100ef20c]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call sub.MSVCR90.dll_memset
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x10031c0f
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x10031ba3
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x100ce228]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x10031b80
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x10031bea
mov esi, dword [eax]
test esi, esi
je 0x10031bc0
mov edx, dword [eax + 4]
jmp 0x10031bc2
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x10031bea
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x10031be2
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10031c03
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10031c03
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x10031bf9
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x10031b73
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x10043060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x34]
push edi
mov edi, eax
push esi
lea eax, [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.1003e170
mov ax, word [esp + 0x3c]
add esp, 4
test ax, ax
je 0x10043105
movzx ecx, word [esi + 0x12]
add ecx, dword [esi + 0x38]
movzx eax, ax
add eax, edi
lea edx, [eax + 3]
cmp edx, ecx
jbe 0x100430c8
push 0x100d7bfc
push 0xd6e8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10030090
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, byte [eax]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl esi, 8
or esi, ecx
mov ecx, dword [ebx + 0x24]
shl esi, 8
or esi, edx
movzx edx, word [esp + 0x36]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x30]
sub ecx, 4
sub eax, edx
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
xor ecx, ecx
cmp eax, ecx
jne 0x1004311a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
dec eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp esi, 2
jb 0x10043206
cmp esi, dword [ebx + 0x2c]
ja 0x10043206
cmp eax, ecx
je 0x1004315e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
mov edi, ebx
call fcn.10041470
add esp, 0xc
test eax, eax
jne 0x10043107
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x1004316d
call fcn.1003eda0
mov ebx, dword [esp + 0x10]
mov edi, eax
test edi, edi
je 0x10043197
mov eax, dword [edi + 0x44]
cmp word [eax + 0x1a], 1
je 0x10043197
push 0x100d7bfc
push 0xd70a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10030090
add esp, 0x10
mov ebx, 0xb
jmp 0x100431a5
push esi
push ebx
mov eax, edi
call fcn.10042d10
add esp, 8
mov ebx, eax
test edi, edi
je 0x100431e2
mov eax, dword [edi + 0x44]
test eax, eax
je 0x100431e2
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x100431c2
mov ecx, eax
call fcn.10038eb0
jmp 0x100431c7
call fcn.10035500
cmp dword [esi + 0x78], 0
jne 0x100431e2
mov ecx, dword [esi + 0xcc]
cmp dword [ecx + 0xc], 0
jne 0x100431e2
push esi
call fcn.10037830
add esp, 4
test ebx, ebx
jne 0x100431fd
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x1c], ebx
jne 0x10043110
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100d7bfc
push 0xd6f6
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10030090
add esp, 0x10
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret