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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
lea esp, [esp - 4]
pushfd
push edx
neg dh
push eax
xadd eax, eax
daa
push ecx
xor al, cl
push ebx
shl ebx, 6
aaa
das
xor dh, 0x7f
bsf edx, edx
push ecx
shr dx, 0
das
shl dx, 0
mov eax, 0xc0a8
mov ecx, 0x465c
mul ecx
bt ax, 4
cmc
rol dl, 6
aad 0xa
cwd
mov edx, dword [esp + 0x10]
mov bh, cl
add bl, 0x6d
mov ebx, dword [esp + 4]
not cx
mov eax, dword [esp + 0x14]
push eax
popfd
mov ecx, dword [esp + 8]
cbw
mov eax, dword [esp + 0xc]
lea esp, [esp + 0x18]
mov dword [esp], 0x3f5a888
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
lea esp, [esp - 4]
lea esp, [esp - 0x1c]
push ebx
pushfd
clc
push edx
not dx
push eax
das
mov eax, dword [esp]
mov dword [esp + 0x28], eax
pop edx
mov eax, 0x5822
push ecx
mov ecx, 0x6e4c
mul ecx
cmc
cdq
nop
xor dx, dx
mov ax, 0x8950
mov cx, 0x848d
div cx
push ebx
not bx
mov ebx, dword [esp]
nop
not ax
inc edx
neg ecx
cdq
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 8]
cmc
mov ecx, dword [esp + 0xc]
push ecx
popfd
bswap ecx
mov ecx, dword [esp + 4]
lea esp, [esp + 0x30]
mov dword [esp], edi
mov eax, dword [0x3f67864]
jmp 0x100555d6
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.10054ef0
mov esi, dword [ebp - 0x14]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10055729
cmp byte [ebp + 0x18], 0
jmp 0x10055640
push esi
push 0
call dword [0x3f5d098]
push eax
call dword [0x3f5d030]
test eax, eax
jmp 0x10055650
mov eax, dword [ebp + 0x14]
push 0
je 0x10055713
jmp 0x10055701
jne 0x1005565c
call dword [0x3f5d108]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100556ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
lea esp, [esp - 4]
push eax
push edx
lea edx, [eax + edx - 0x35cb]
mov ax, 0x8c
push ecx
mov cx, 0xab
pushfd
mul cx
aas
and ch, 0x61
dec eax
cmp eax, 0x179c
cwd
aas
mov cl, 0x82
xchg ah, cl
daa
aas
inc ax
push ebx
lea ebx, [ecx - 0x1c95]
cwd
sahf
inc edx
aas
cmc
rol ecx, 1
bsr cx, ax
cwd
neg dh
bswap ebx
dec ch
inc bl
not al
or cl, cl
shr bx, 5
mov ebx, dword [esp]
daa
cdq
mov eax, dword [esp + 0x10]
stc
dec edx
mov edx, dword [esp + 0xc]
inc cx
mov ecx, dword [esp + 8]
clc
push ecx
mov ecx, dword [esp + 8]
push ecx
popfd
pop ecx
lea esp, [esp + 0x14]
mov dword [esp], eax
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push esi
push eax
call edx
jmp 0x10055729
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
add edx, 0xffffff80
push edx
lea edx, [esi + 0x80]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test esi, esi
je 0x1005565c
jmp 0x10055629
Function at 0x867510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d6000]
push edi
or ebp, 0xffffffff
jmp 0x867532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x867539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x867528
mov eax, 1
add ebx, ebx
jne 0x86754b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86755c
jne 0x86757b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86757b
dec eax
add ebx, ebx
jne 0x867568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x867540
add ebx, ebx
jne 0x867577
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8675cd
xor ecx, ecx
sub eax, 3
jb 0x867593
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x867602
sar eax, 1
mov ebp, eax
jmp 0x86759e
add ebx, ebx
jne 0x86759e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86756c
inc ecx
add ebx, ebx
jne 0x8675ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86756c
add ebx, ebx
jne 0x8675b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8675ae
jne 0x8675ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8675ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8675ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8675de
jmp 0x86752e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8675ec
add edi, ecx
jmp 0x86752e
pop esi
mov edi, esi
mov ecx, 0x69f8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86760a
cmp byte [edi], 0xe
jne 0x86760a
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 0x86760f
lea edi, [esi + 0x45e000]
mov eax, dword [edi]
or eax, eax
je 0x867687
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46bb94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46bcd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x86763c
mov ecx, edi
jns 0x86766b
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 + 0x46bcd8]
or eax, eax
je 0x867681
mov dword [ebx], eax
add ebx, 4
jmp 0x867659
call dword [esi + 0x46bce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8676b8
cmp al, 0xef
ja 0x8676ab
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x86768d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x86769a
mov ebp, dword [esi + 0x46bcdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x8676ec
sub esp, 0xffffff80
jmp 0x4af4e0
Function at 0x4034e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406748
test esi, esi
jne 0x403520
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.004013f4
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406884
jmp 0x40353e
call fcn.004013dc
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033cc
mov edi, eax
test esi, esi
je 0x40353e
cmp dword [ebx], 0
je 0x40353e
dec esi
jmp 0x403527
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57d008], 0x8088405
inc edx
mov dword [ebx + 0x57d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403da0
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403dbe
push dword [eax]
call fcn.0040136c
dec eax
je 0x403dc8
jmp fcn.004032a0
mov eax, 0x67
jmp fcn.00403290
ret

Function at 0x4043c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x57d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404458
push 0x80000002
call fcn.0040144c
test eax, eax
jne 0x404438
xor eax, eax
push ebp
push 0x404431
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404490
mov eax, dword [ebp - 4]
push eax
call fcn.00401454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404438
mov eax, dword [ebp - 4]
push eax
call fcn.00401444
ret
movzx eax, word [0x57d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x57d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40562c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x589054], 0
je 0x40568d
cmp word [0x589330], 0xd7b2
jne 0x405655
cmp dword [0x589338], 0
jbe 0x405655
mov eax, 0x58932c
call dword [0x589348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.0040134c
push eax
call fcn.00401384
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4056b8
push 0xfffffffffffffff5
call fcn.0040134c
push eax
call fcn.00401384
pop edx
ret
cmp byte [0x57d034], 0
jne 0x4056a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.004013bc
pop edx
ret
Function at 0x4056bc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x58baec
mov edi, 0x589050
cmp byte [esi + 0x28], 0
jne 0x4056e4
cmp dword [edi], 0
je 0x4056e4
mov eax, dword [edi]
mov ebx, eax
xor eax, eax
mov dword [edi], eax
call ebx
cmp dword [edi], 0
jne 0x4056d5
cmp dword [0x57d004], 0
je 0x4056fe
call fcn.00405590
call fcn.0040562c
xor eax, eax
mov dword [0x57d004], eax
cmp byte [esi + 0x28], 2
jne 0x405712
cmp dword [section..data], 0
jne 0x405712
xor eax, eax
mov dword [esi + 0xc], eax
call fcn.004031cc
mov ebx, eax
test ebx, ebx
je 0x40572f
mov eax, ebx
call fcn.004045f8
call fcn.004031cc
mov ebx, eax
test ebx, ebx
jne 0x40571d
call fcn.00405344
cmp byte [esi + 0x28], 1
jbe 0x405743
cmp dword [section..data], 0
je 0x405769
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x405769
mov eax, ebp
call fcn.0040875c
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
mov eax, dword [esi + 0x10]
cmp edi, dword [eax + 4]
je 0x405769
test edi, edi
je 0x405769
push edi
call fcn.004013d4
call fcn.0040531c
cmp byte [esi + 0x28], 1
jne 0x405777
call dword [esi + 0x24]
cmp byte [esi + 0x28], 0
je 0x405782
call fcn.004055fc
cmp dword [esi], 0
jne 0x4057a1
cmp dword [0x589030], 0
je 0x405796
call dword [0x589030]
mov eax, dword [section..data]
push eax
call fcn.004013b4
mov eax, dword [esi]
push esi
mov edi, esi
mov esi, eax
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4056fe

Function at 0x40582c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x57d03c], 0
je 0x405852
mov edx, esi
mov eax, ebx
call dword [0x57d03c]
jmp 0x405861
mov eax, 8
call fcn.00403108
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x589055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4057f4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call fcn.004013a4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408330
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x22a]
push eax
push 0
call fcn.004013f4
mov word [ebp - 0x1c], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4085b0
push 0x80000001
call fcn.0040144c
test eax, eax
je 0x4083d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4085b0
push 0x80000002
call fcn.0040144c
test eax, eax
je 0x4083d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4085e4
push 0x80000001
call fcn.0040144c
test eax, eax
je 0x4083d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x408618
push 0x80000001
call fcn.0040144c
test eax, eax
jne 0x40846b
xor eax, eax
push ebp
push 0x408464
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xa
lea eax, [ebp - 0x22a]
mov edx, 0x105
call fcn.00408134
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401454
test eax, eax
je 0x40843c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x408658
mov eax, dword [ebp - 8]
push eax
call fcn.00401454
test eax, eax
je 0x40843c
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
sar eax, 1
jns 0x408446
adc eax, 0
mov word [ebp + eax*2 - 0x1c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40846b
mov eax, dword [ebp - 8]
push eax
call fcn.00401444
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x22a]
push eax
call fcn.0040142c
push 5
lea eax, [ebp - 0x12]
push eax
push 3
call fcn.00401414
push eax
call fcn.004013ec
xor esi, esi
cmp word [ebp - 0x22a], 0
je 0x4085a8
cmp word [ebp - 0x12], 0
jne 0x4084b5
cmp word [ebp - 0x1c], 0
je 0x4085a8
lea eax, [ebp - 0x22a]
push eax
call fcn.00401434
mov ebx, eax
add ebx, ebx
lea eax, [ebp - 0x22a]
add ebx, eax
jmp 0x4084d2
sub ebx, 2
cmp word [ebx], 0x2e
je 0x4084e2
lea eax, [ebp - 0x22a]
cmp ebx, eax
jne 0x4084cf
lea eax, [ebp - 0x22a]
cmp ebx, eax
je 0x4085a8
add ebx, 2
cmp word [ebp - 0x1c], 0
je 0x408529
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x408505
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0040142c
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.0040141c
mov esi, eax
test esi, esi
jne 0x4085a8
cmp word [ebp - 0x12], 0
je 0x4085a8
lea eax, [ebp - 0x22a]
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x408545
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.0040142c
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.0040141c
mov esi, eax
test esi, esi
jne 0x4085a8
mov word [ebp - 0xe], 0
lea eax, [ebp - 0x22a]
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x408584
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.0040142c
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.0040141c
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405f54
xor eax, eax
push ebp
push 0x40abd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00407d08
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40ab68
test esi, esi
jle 0x40ab68
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.00405958
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40a808]
call fcn.00407ed0
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.004058fc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abde
lea eax, [ebp - 4]
call fcn.004058a8
ret
Function at 0x40d540
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40d5e0
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.00406248
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00405fdc
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d56a
cmp byte [esp], 0
je 0x40d5af
mov eax, edi
call fcn.00405fdc
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d5ec
mov eax, edi
call fcn.00405fdc
push eax
mov eax, edi
call fcn.00405fdc
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004032cc
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.00406248
jmp 0x40d5ec
mov eax, edi
mov edx, 0x40d600
call fcn.004058fc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e270
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x57da08], 0
jne 0x40e2a4
push 2
lea eax, [esp + 4]
push eax
push 0xe
call fcn.00409820
push eax
call fcn.00409714
test eax, eax
jle 0x40e29d
movzx eax, byte [esp]
mov byte [0x57da08], al
jmp 0x40e2a4
mov byte [0x57da08], 0x2c
movzx eax, byte [0x57da08]
pop edx
ret

Function at 0x40e7f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004058fc
mov eax, ebx
call fcn.00405fd4
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x40e820
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40e834
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40e829
pop edx
pop esi
pop ebx
ret
Function at 0x40ea78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x40ebc2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40eaa0
cmp dword [ebx + 4], 0
jne 0x40ebc2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40eac6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40eac6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call fcn.00409a60
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e9cc
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x40ebc2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x40eb75
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40eb1b
push 4
push 0x1000
push 0x100000
push 0
call fcn.00409a68
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040ea0c
test al, al
je 0x40eb6b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call fcn.004099a0
test eax, eax
je 0x40eb6b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x40eb6b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x40eb93
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x40eb93
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040ea60
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x40ebc2
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00412d0c
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40ef8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x40efbd
cmp dword [ebx + 0x54], 0
jne 0x40efbd
cmp dword [ebx + 0x5c], 0
jne 0x40efbd
mov esi, dword [ebp - 8]
jmp 0x40f068
cmp esi, 0xffffffff
jne 0x40efc8
dec esi
jmp 0x40f068
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x40f068
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.004032cc
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40f02a
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40f02f
mov word [edx], 0
dec eax
test eax, eax
jne 0x40f00c
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40f05b
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40f060
mov word [edx], 0
dec eax
test eax, eax
jne 0x40f03d
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x40f084
cmp eax, dword [esp]
pop edx
pop eax
je 0x40f0f2
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.0040ef18
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x40f0cc
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x40f0f2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x40ef9c
cmp eax, dword [ecx + 0x14]
jne 0x40ef9c
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x410648
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x410795
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410670
cmp dword [ebx + 4], 0
jne 0x410795
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x410696
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410696
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call fcn.00409a60
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e9cc
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x410795
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x410745
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4106eb
push 4
push 0x1000
push 0x100000
push 0
call fcn.00409a68
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040ea0c
test al, al
je 0x41073b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call fcn.004099a0
test eax, eax
je 0x41073b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41073b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x410763
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x410763
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040ea60
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x410795
cmp dword [ebx + 8], 0
jne 0x410795
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x412d0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x412d30
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x57e6dc]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x412d17
mov eax, esi
pop esi
ret