joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019a9e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b2cc8]
jne 0x1019a9f2
repz ret
jmp fcn.1019e4bb

Function at 0x101a066f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019aa83
and dword [ebp - 4], 0
cmp dword [0x101b43e8], 0
mov ebx, eax
jne 0x101a0720
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101a07d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101a07d1
push eax
call fcn.1019aa11
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b43e8], eax
call esi
push eax
call fcn.1019aa11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b43ec], eax
call esi
push eax
call fcn.1019aa11
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b43f0], eax
call esi
push eax
call fcn.1019aa11
pop ecx
mov dword [0x101b43f8], eax
test eax, eax
je 0x101a0720
push 0x101adc04
push edi
call esi
push eax
call fcn.1019aa11
pop ecx
mov dword [0x101b43f4], eax
mov eax, dword [0x101b43f4]
cmp eax, ebx
je 0x101a0778
cmp dword [0x101b43f8], ebx
je 0x101a0778
push eax
call fcn.1019aa8c
push dword [0x101b43f8]
mov esi, eax
call fcn.1019aa8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101a0778
test edi, edi
je 0x101a0778
call esi
test eax, eax
je 0x101a076f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101a076f
test byte [ebp - 0xc], 1
jne 0x101a0778
or dword [ebp + 0x10], 0x200000
jmp 0x101a07b1
mov eax, dword [0x101b43ec]
cmp eax, ebx
je 0x101a07b1
push eax
call fcn.1019aa8c
pop ecx
test eax, eax
je 0x101a07b1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101a07b1
mov eax, dword [0x101b43f0]
cmp eax, ebx
je 0x101a07b1
push eax
call fcn.1019aa8c
pop ecx
test eax, eax
je 0x101a07b1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b43e8]
call fcn.1019aa8c
pop ecx
test eax, eax
je 0x101a07d1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101a07d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101aae54
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101b2748], 0x1dce
mov dword [ebp - 0x10], eax
call fcn.101abd80
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101aae9a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101b2744], 0x18ed
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x101aafc7
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x101aaf1c
mov al, byte [ebp - 0x39]
test al, 1
jne 0x101aaf9a
jmp 0x101aaef4
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jae 0x101aafc7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101b2748], 0x1dce
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x39], cl
je 0x101aaee7
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x39]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x101aaf40
jmp 0x101aaee7
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov dword [0x101b2744], 0x1941
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b2748], 0x92b
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ab2ea
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101ab351
mov dword [0x101b2744], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101ab3b9
jmp 0x101ab3fc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101ab3dd
jmp 0x101ab3fc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x101ab37e
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
jl 0x101ab351
mov eax, dword [ebp - 0x20]
mov dword [0x101b2748], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
jne 0x101ab3fc
mov dword [0x101b2744], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101ab317
jmp 0x101ab3fc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101ab3fc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101ab339
jmp 0x101ab3fc
mov eax, 1
mov ecx, 0x18d0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x101ab40b
xor eax, eax
mov ecx, 0x1088
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x101ab40b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x101b2744], eax
mov eax, ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x101ab5de
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b2750], 0
mov byte [0x101b2754], 0
mov edi, dword [0x101b2744]
add edi, 0xfffff8e9
mov dword [0x101b2748], edi
mov dword [0x101b274c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x101b2744], 0x7c1
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b2748], 0x17ea
mov eax, dword [0x101b274c]
add eax, 1
mov dword [0x101b274c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101ab62b
xor eax, eax
mov dword [0x101b274c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101b2758], 0
mov edi, dword [0x101b2750]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b2758], esi
mov dword [0x101b2744], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101b2750], edx
mov dword [0x101b2748], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b2754], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b2754]
mov esi, dword [0x101b2750]
mov byte [ebx + esi], cl
mov esi, dword [0x101b274c]
add esi, 1
mov dword [0x101b274c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101ab674
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101abab6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b2748], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101abb84
mov dword [0x101b2744], 0x2091
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.101ab429
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101b2744], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov dword [0x101b2748], 0x8aa
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x34], ecx
add ecx, 0x2605
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x101abb7b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101ad33c]
mov dh, byte [eax + 0x101ad30d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101abb84
lea eax, [ebp - 0x24]
mov dword [0x101b2748], 0x1a22
mov ecx, dword [0x101b2744]
add ecx, 0xffffefe3
mov dword [0x101b2744], ecx
mov dword [ebp - 0x44], eax
call fcn.101aafd2
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101aabda
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x101abadd
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101abefe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101b274c], 0
mov dword [0x101b2750], 0
mov dword [0x101b275c], 0
mov dword [0x101b2744], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x101ac096
jmp 0x101abf7d
mov eax, dword [0x101b2744]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x101ac096
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101b274c], edx
mov dword [0x101b2744], 0x3264
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b2750], edx
mov ecx, dword [0x101b2748]
add ecx, 0xfffff82b
mov dword [0x101b2748], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101b2754], cl
mov dword [0x101b2744], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101b2748], 0x112a
mov cl, byte [0x101b2754]
mov edx, dword [0x101b2750]
mov byte [ebx + edx], cl
mov edx, dword [0x101b274c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b2750]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101b2748], 0x55d
and ecx, 0xff
mov dword [0x101b275c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101b2744], 0x65f
mov dword [0x101b2748], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x101abf6b
mov eax, dword [0x101b274c]
mov ecx, dword [0x101b2750]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jmp 0x101abf7d
mov eax, dword [ebp - 0x2c]
mov dword [0x101b2744], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ac0a6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101b2744]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101b2748], esi
add edx, 0xffffe928
mov dword [0x101b2744], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101ab7e7
lea ecx, [0x101ab577]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x70], edx
mov dword [esp + 0x4c], 0x14fa00
mov edx, dword [0x101b2730]
mov dword [esp + 0x44], edx
mov edx, dword [0x101b2734]
mov dword [esp + 0x50], edx
mov edx, dword [0x101b2738]
mov dword [esp + 0x48], edx
mov edx, dword [0x101b273c]
mov dword [esp + 0x28], edx
mov dword [0x101b2744], 0x5bd
mov edx, dword [0x101b2740]
mov dword [esp + 0x74], edx
mov dword [0x101b2748], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac173
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101ac196
jmp 0x101ac182
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101ac153
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac173
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], edx
mov dword [0x101b2744], 0xe1c
call fcn.101ab2ea
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101ac169
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101abab6
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
jmp 0x101ac169
Function at 0x4103c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x4fcd40], 0
je 0x410417
mov eax, dword [0x5010e8]
test eax, eax
je 0x4103f0
push eax
call dword [0x4fcd94]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.0040dbb0
mov eax, dword [0x5010e8]
test eax, eax
je 0x410412
push eax
call dword [0x4fcd9c]
mov esi, dword [ebp - 4]
jmp 0x410421
mov esi, dword [ebp - 4]
jmp 0x410424
push 0x14
call dword [0x4fcd64]
mov esi, eax
add esp, 4
test esi, esi
jne 0x410432
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4fcd44], 0
mov ebx, dword [ebp + 8]
je 0x410466
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x410390
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x410473
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x41048c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4122d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x4122fe
nop dword [eax + eax]
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x4d4498]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x4122e0
pop esi
ret
Function at 0x412370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx*8]
mov esi, ecx
push edi
cmp eax, 0x400
mov dword [ebp - 4], esi
mov edi, 0x80
cmovbe edi, edx
cmp edi, dword [esi]
jne 0x41239f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x501110]
test eax, eax
je 0x4123aa
call eax
lea eax, [edi*8]
push 0
push eax
call fcn.0040dca0
mov ecx, dword [0x501114]
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x4123cd
call ecx
test ebx, ebx
je 0x412396
push dword [esi + 0xc]
call fcn.0040e000
add esp, 4
mov dword [esi + 0xc], ebx
push ebx
call dword [0x4fcd70]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esi + 8], 0
test ecx, ecx
je 0x4124b0
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x41243f
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x4d4498]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x412421
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x41248a
mov eax, dword [esi]
test eax, eax
je 0x41245d
mov edx, dword [esi + 4]
jmp 0x41245f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x41248a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x41247f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x4124a6
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x4124a6
mov esi, dword [ebp - 4]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41249c
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x412416
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], esi
test ecx, ecx
je 0x412514
mov eax, edx
mov edi, esi
xor esi, esi
mov al, byte [eax]
test al, al
je 0x412502
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x4d4498]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x4124e1
mov ecx, dword [ebx + 0xc]
mov eax, esi
xor edx, edx
div dword [ebx]
mov esi, dword [ebp - 4]
mov edi, dword [ecx + edx*8 + 4]
mov ebx, dword [ecx + edx*8]
jmp 0x41251c
mov edi, dword [ebx + 8]
xor edx, edx
mov ebx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
test ebx, ebx
je 0x41256e
mov eax, dword [edi + 0xc]
dec ebx
mov cl, byte [eax]
test cl, cl
je 0x41254d
nop
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x4d4498]
cmp cl, byte [edx + 0x4d4498]
jne 0x41254d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x412530
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x4d4498]
movzx ecx, byte [ecx + 0x4d4498]
sub eax, ecx
je 0x412577
mov edi, dword [edi]
mov esi, dword [ebp - 4]
test ebx, ebx
jne 0x412525
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
cmp edx, dword [ebx + 0x2c]
jbe 0x426d5c
push 0x4e900c
push 0xe96c
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004101d0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00420650
add esp, 8
test eax, eax
jne 0x426eed
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x14], ecx
movzx edi, byte [esi + 6]
mov dword [esp + 0x1c], edi
cmp ax, word [esi + 0x12]
jae 0x426e1f
nop
mov eax, dword [esi + 0x40]
movzx edi, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edi, 8
or edi, eax
movzx eax, word [esi + 0x14]
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x426de7
movzx edx, byte [edi]
mov ecx, ebx
movzx eax, byte [edi + 1]
push dword [ebp + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
push 1
call fcn.00426d20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x426ebe
lea eax, [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.004248a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x426ebe
mov ecx, dword [esp + 0x14]
movzx eax, word [esi + 0x12]
inc ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x426d90
mov edi, dword [esp + 0x1c]
cmp byte [esi + 5], 0
jne 0x426e60
mov ecx, dword [esi + 0x38]
push dword [ebp + 0xc]
add ecx, edi
push 1
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
mov ecx, ebx
or edx, eax
call fcn.00426d20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x426ebe
jmp 0x426e6d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x426e6d
movzx eax, word [esi + 0x12]
add dword [ecx], eax
cmp dword [ebp + 8], 0
je 0x426e87
push dword [esi + 0x48]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.004244d0
add esp, 4
mov ebx, eax
jmp 0x426ebe
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x426ea2
call fcn.0041bcf0
jmp 0x426ea7
call fcn.0041bb50
mov ebx, eax
test ebx, ebx
jne 0x426ebe
mov eax, dword [esi + 0x38]
mov ecx, esi
movzx edx, byte [eax + edi]
or edx, 8
call fcn.00420530
mov ecx, dword [esi + 0x44]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
je 0x426edf
call fcn.0041a270
mov ecx, esi
call fcn.0041b490
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004164a0
mov ecx, esi
call fcn.0041b490
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret