joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
and dword [esi + 0x30], 0
push edi
call fcn.004015ad
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ebx, dword [edi]
jmp 0x40172c
push 0xa
push 0xa
push 0xc94204
push 0x3114b604
call fcn.00401dd2
add esp, 0xc
push eax
push dword [ebx + 0x30]
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x401735
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x401704
jmp 0x4017c7
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4017c7
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
and dword [esp + 0xc], 0
add edi, ebx
mov eax, dword [edi + 0x1c]
add eax, ebx
push ebp
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x4017c3
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
push 0x16
add eax, ebx
push 0xc941ec
push 0x40704011
mov dword [esp + 0x20], eax
call fcn.00401d84
push eax
push dword [esp + 0x24]
call fcn.00401648
add esp, 0x14
test eax, eax
je 0x4017ab
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x18]
jb 0x40176c
jmp 0x4017c3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x30], ebx
pop ebp
cmp dword [esi + 0x30], 0
je 0x40192e
push 0xa
push 0xc941e0
push 0x29a1a909
call fcn.00401d84
add esp, 0xc
push eax
push esi
mov ecx, esi
call fcn.004016be
push 0xc
push 0xc941d0
push 0x13cbcee9
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
mov ecx, esi
call fcn.004016be
push 0x18
push 0xc941b4
push 0x17ce53be
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004016be
push 0xf
push 0xc941a4
push 0x26b30b69
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.004016be
push 0x12
push 0xc94190
push 0x3d924530
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.004016be
push 7
push 0xc94188
push 0x2236409a
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x18]
push eax
mov ecx, esi
call fcn.004016be
push 0x14
push 0xc94170
push 0x149ccd04
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.004016be
push 0x11
push 0xc9415c
push 0x673ebfe9
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.004016be
push 0x11
push 0xc94148
push 0x68d29b96
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x24]
push eax
mov ecx, esi
call fcn.004016be
push 0x16
push 0xc94130
push 0x7db65c79
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x28]
push eax
mov ecx, esi
call fcn.004016be
push 0x13
push 0xc9411c
push 0x65fa79df
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x2c]
push eax
mov ecx, esi
call fcn.004016be
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401937
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x13af
mov esi, 0x2c15f8
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401947
pop esi
ret

Function at 0x401aa3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401aea
push 7
push str..custom
push edi
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x401af1
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e30
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x401960
mov dword [ebp - 0x14], 0x40196b
call fcn.0040379c
add esp, 0x28
test eax, eax
je 0x401b51
push dword [ebp - 4]
call fcn.00401e47
pop ecx
jmp 0x401aea
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401aec

Function at 0x401d84
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x401dc3
push edi
mov edi, dword [esp + 0x14]
sub edi, 0xf56600
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0xf56600]
inc esi
mov byte [esi + 0xf565ff], al
cmp esi, ebx
jb 0x401d9f
pop edi
pop esi
mov byte [ebx + 0xf56600], 0
mov eax, 0xf56600
pop ebx
ret

Function at 0x401dd2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x401e10
mov eax, dword [esp + 0x10]
sub eax, 0xf56600
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0xf56600]
inc esi
mov byte [esi + 0xf565ff], bl
cmp esi, edi
jb 0x401dec
pop ebx
mov byte [edi + 0xf56600], 0
mov byte [edi + 0xf56601], 0
pop edi
mov eax, 0xf56600
pop esi
ret
Function at 0x401eec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401f05
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x401f28
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x401f2d
inc edi
cmp edi, dword [ebp - 4]
jb 0x401f1f
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x402025
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x401f84
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x401f58
cmp cl, 0xff
jne 0x401faf
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x401fbd
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x401fc4
dec ecx
shl edx, cl
and edx, 7
je 0x401f49
movzx ecx, byte [edx + 0xc94280]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0xc94278], 0
mov cl, byte [ebx + 4]
je 0x401fac
test cl, cl
je 0x401fac
cmp cl, 0xff
jne 0x401f49
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401f1a
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x401ff8
movzx esi, byte [edx + 0xc94280]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x401fe3
cmp al, 0xff
jne 0x401ff5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x401f76
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401f1a
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x40667f
Capabilities:
Encode data using xor

Disassembly:
ror dword [esi + 0x48], 1
in al, 0x35
in eax, 0x91
fcom qword [eax - 0x18b3865]
enter 0x43fa, 0xffffffffffffffed
or ah, byte [eax - 0x4302bbf4]
push 0x568e9b3f
nop
sbb byte [ebp + 0xd], ch
mov eax, dword [esi]
jo 0x406714
movsb byte es:[edi], byte [esi]
xor byte [edx - 0x23], dh
fcom qword [ecx + 0x6458e1f]
xchg ecx, eax
pop ds
mov es, word [ebp + 6]
xor al, 0x88
pop esp
cmp ah, byte [edx]
mov ebp, 0x31735f15
std
cmc
in eax, 0x3c
adc byte [ebx - 0x140099db], ch
push ds
call 0xc390e038
cmp dword [esi + 0x23], 0x28e5b217
js 0x4066a9
insd dword es:[edi], dx
nop
pop ds
movsb byte es:[edi], byte [esi]
push esp
mov esp, esp
adc cl, byte [edx + 0x54]
dec esp
or eax, 0x5246170e
add bl, 5
jae 0x4066f9
lcall 0x1fab, 0x8f6236a6
movsd dword es:[edi], dword [esi]
and dword [edi - 0x45184936], ecx
imul esp, dword [ebx + 0x72], 0x3b6fadba
std
outsd dx, dword [esi]
cmp edi, ebp
push 0xffffffffffffffd1
and dword [ebx + edx - 0xb], 0x63
jmp 0xe6da7f73
cmp dh, byte [esi + ebp*8 + 0x6e]
jl 0x406747
jmp 0x40674b
ljmp 0x5a0:0x5ee20f7b
pop esi
mov al, byte [0x9ec71f05]
mov cl, bh
stosd dword es:[edi], eax
mov edi, 0xf46ccf24
cld
adc dword [ebp - 0x77], ebp
pop edx
adc al, 0xb6
fdiv dword [edx + edi + 0x70]
jmp 0x4067c2
iretd
addps xmm6, xmm2
int 0x78
xor al, 0xa4
dec ecx
lahf
xchg esi, eax
push 0x3afd499f
jge 0x40676e
inc eax
inc esp
invalid
Function at 0x1000ec86
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x1000eca0
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1000ec93
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1000f8cb
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000f8d7
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000f8ff
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000f8e5
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x100209fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10020a09
pop dword [ebp - 0x38]
mov eax, 0xe8a19426
sub eax, 0xd89f8a1d
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x6308dde0
sub dword [ebp - 0x48], 0x14b69895
mov dword [ebp - 0x44], 0x4cafa959
add dword [ebp - 0x44], 0xe583a2ec
mov dword [ebp - 0x40], 0x11139946
sub dword [ebp - 0x40], 0xc4c75518
mov dword [ebp - 0x3c], 0xe2b1653d
sub dword [ebp - 0x3c], 0xe2b1653d
lea eax, [ebp - 0x48]
push eax
mov eax, 0x8767f44d
add eax, 0x889a7caf
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x85b2ced8
sub dword [ebp - 0x48], 0x11406582
mov dword [ebp - 0x44], 0xb7cab787
add dword [ebp - 0x44], 0x89a1a9ee
mov dword [ebp - 0x40], 0xccebe896
add dword [ebp - 0x40], 0x968383d6
mov dword [ebp - 0x3c], 0xe2af66e5
add dword [ebp - 0x3c], 0x1d50991b
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x906f7c39
add eax, 0x7f92f3ef
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3b1ff
push 0
call eax
mov ecx, 0x3e4f
mov esi, eax
mov edi, 0xd0d3e3fe
sub edi, 0xc0cfc7fe
add edi, dword [ebp - 0x38]
mov edx, 0x37eee4a1
add edx, 0x33cd03e1
mov dword [ebp - 0x18], 0x590ba647
mov ebx, dword [edi]
add ebx, edx
xor dword [ebp - 0x2c], esi
mov dword [esi], ebx
xor dword [ebp - 0x18], esi
add esi, 0xa5aefc85
add esi, 0x5a51037f
add edi, 0x46d7d666
add edi, 0xb928299e
loop 0x10020b25
add eax, 0xec0f
mov ebx, eax
add eax, 0x462c8a7
add eax, 0xfb9d375e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100220b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100250d3
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10030080]
push ecx
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x100]
push eax
lea eax, [ecx + 0xe0]
push eax
lea eax, [ecx + 0xc4]
push eax
push ecx
push ecx
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0x98]
push eax
lea eax, [ecx + 0x78]
push eax
lea eax, [ecx + 0x68]
push eax
lea eax, [ecx + 0x60]
push eax
lea eax, [ecx + 0x48]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.100209fa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x10002a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002aa8
cmp byte [esi + ebx - 1], 0xa
je 0x10002a7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x406d57
pop dword [ebp - 8]
mov eax, 0x406d57
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x39386
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x48cf
xor edi, edi
add edi, eax
mov ebx, 0xc0c32bb0
sub ebx, 0xc07fbdb0
add ebx, dword [ebp - 8]
mov esi, 0xc384c56e
sub esi, 0x7568ae2b
add dword [ebp - 4], ecx
mov edx, dword [ebx]
mov dword [ebp - 4], 0xe1dc8da6
xor edx, esi
xor dword [ebp - 4], 0x9cf64b90
mov dword [edi], edx
add dword [ebp - 4], 0x33d248c6
add edi, 0xa35c2a3
sub edi, 0xa35c29f
add ebx, 4
loop 0x406da8
add eax, 0x1156f0e0
add eax, 0xeeaa252f
mov ebx, eax
add eax, 0xe4339605
sub eax, 0xe4339600
mov ecx, 0x86cf746f
sub ecx, 0x868f746f
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x709840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1ea000]
lea eax, [edi + 0x2e50e0]
push dword [eax]
mov dword [eax], 0x522d0610
push eax
push edi
or ebp, 0xffffffff
jmp 0x709872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x709879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x709868
mov eax, 1
add ebx, ebx
jne 0x70988b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x70989c
jne 0x7098bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7098bb
dec eax
add ebx, ebx
jne 0x7098a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x709880
add ebx, ebx
jne 0x7098b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x70990d
xor ecx, ecx
sub eax, 3
jb 0x7098d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x709942
sar eax, 1
mov ebp, eax
jmp 0x7098de
add ebx, ebx
jne 0x7098de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7098ac
inc ecx
add ebx, ebx
jne 0x7098ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7098ac
add ebx, ebx
jne 0x7098f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7098ee
jne 0x70990a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7098ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x70992c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x70991e
jmp 0x70986e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x70992c
add edi, ecx
jmp 0x70986e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x10ac5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x70994e
cmp byte [edi], 0x36
jne 0x70994e
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 0x709953
lea edi, [esi + 0x2fc000]
mov eax, dword [edi]
or eax, eax
je 0x7099cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3091e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3093dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x709980
mov ecx, edi
jns 0x7099af
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3093e4]
or eax, eax
je 0x7099c5
mov dword [ebx], eax
add ebx, 4
jmp 0x70999d
call dword [esi + 0x3093e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7099fc
cmp al, 0xef
ja 0x7099ef
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7099d1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7099de
mov ebp, dword [esi + 0x3093e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x709a30
sub esp, 0xffffff80
jmp 0x5be1f0
Function at 0x405140
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x405130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1084], eax
jne 0x40517d
push 0x4e33
push esi
call fcn.004060b0
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
pop ecx
ret

Function at 0x405700
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x114
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret 4

Function at 0x405770
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
mov esi, ecx
push 1
push 0x80000000
push esi
call dword [sym.imp.SQLWOA.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x4057ac
mov ecx, esi
call fcn.004058e0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.0040a050
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], edi
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x43c], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x40580b
cmp dword [esi + 0x420], edi
jbe 0x405842
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x405842
mov ecx, esi
call fcn.00405b50
test eax, eax
jne 0x405842
mov ecx, esi
call fcn.004058e0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0x208]
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x16]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40586f
mov ecx, esi
call fcn.004058e0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x14], ebx
jne 0x4058ab
mov ax, word [esp + 0xe]
cmp al, 0xff
jne 0x4058ab
cmp ah, 0xfe
jne 0x4058ab
mov ecx, dword [esi + 0x440]
mov dword [esi + 0x414], 1
add ecx, ebx
mov dword [esi + 0x440], ecx
mov eax, dword [esi + 0x444]
adc eax, edi
mov dword [esi + 0x444], eax
jmp 0x4058c1
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x410], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret