joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049121
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004909d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10049299
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10049299
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10049248
jg 0x1004917a
test eax, eax
je 0x1004923e
push 1
push 0x1000
call fcn.100425db
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100491a0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10049235
push 0x8000
push ebx
call fcn.10048fce
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100491cc
jg 0x100491c7
cmp ecx, 0x1000
jb 0x100491cc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004318f
add esp, 0x10
cmp eax, 0xffffffff
je 0x10049211
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100491c7
jl 0x100491f8
test ecx, ecx
jne 0x100491b9
push dword [ebp - 0xc]
push ebx
call fcn.10048fce
push esi
call fcn.1003ea16
add esp, 0xc
xor edi, edi
jmp 0x100492aa
cmp byte [edi + 0x24], 0
je 0x10049228
cmp dword [edi + 0x20], 5
jne 0x10049228
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049233
mov edi, dword [edi + 0x18]
jmp 0x10049235
xor edi, edi
push esi
call fcn.1003ea16
pop ecx
jmp 0x100492aa
test ecx, ecx
jg 0x1004920a
jl 0x10049248
test eax, eax
jae 0x1004920a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003ce7d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004926b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1004920a
jmp 0x100492a2
push ebx
call fcn.10045370
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004920a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100492aa
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100492a7
mov edi, dword [edi + 0x18]
jmp 0x100492aa
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003ce7d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004b880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004b8ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004b8ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x17ac80a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17ac811
ret
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x17adb83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x17cb5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x17cb5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x17ca3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17adb8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x405130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x486780]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
call fcn.0040f625
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x405190
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4051d3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x4051b0
mov ebp, dword [esp + 0x240]
xor edx, edx
xor edi, edi
xor esi, esi
test ebp, ebp
jle 0x4052e0
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x405211
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x34]
movzx eax, cl
add edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
and edi, 0x800000ff
jns 0x405232
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
push 0x431638
mov byte [esp + edx + 0x38], al
push 0x4886c8
mov dword [esp + 0x30], edi
mov byte [esp + edi + 0x3c], cl
call fcn.004018a0
mov ebx, eax
add esp, 8
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x30], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x2c]
push eax
call fcn.00402790
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x4052a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4052a1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0040ab40
mov ecx, ebx
call fcn.004091b0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, byte [esp + edx + 0x34]
add eax, dword [esp + 0x20]
movzx eax, al
mov al, byte [esp + eax + 0x34]
xor byte [esi + ecx], al
inc esi
cmp esi, ebp
jl 0x405200
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401c80
push 0x2c
push dword [esp + 0x18]
call fcn.0040f655
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f96e
add esp, 0x228
ret
Function at 0x422954
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004225f6

Function at 0x42295f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422785

Function at 0x422d59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00410330
mov eax, dword [0x486780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00421659
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x422d9b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422ef7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042fc80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x489038]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423f29
mov ecx, dword [esi*4 + 0x489038]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422ef0
cmp eax, dword [edi + ecx + 0x24]
jne 0x422ef0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422ef0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423f29
add esp, 0x14
test edx, edx
jl 0x422ef0
jg 0x422e66
test eax, eax
jb 0x422ef0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422ef0
jl 0x422e80
cmp dword [ebp - 0x1008], eax
ja 0x422ef0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422e9e
test ebx, ebx
je 0x422ed7
cmp ecx, edi
jae 0x422ed7
mov al, byte [ecx]
cmp al, 0xd
jne 0x422eb8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422ec4
cmp byte [ecx + 1], 0xa
jne 0x422ec4
inc ecx
jmp 0x422ec4
movzx eax, al
movsx eax, byte [eax + 0x486a50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422e9e
cmp edx, ebx
jne 0x422e9e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422ef5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f96e
leave
ret
Function at 0x4233c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x489038]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423407
cmp byte [ebx], 0xa
jne 0x423407
or byte [eax + edi + 0x28], 4
jmp 0x42340c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42350a
mov al, byte [edx]
cmp al, 0x1a
je 0x4234ec
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42343b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423460
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42346a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42341d
jmp 0x42350a
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4234e7
cmp dword [ebp - 0xc], 0
je 0x4234e7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489038]
test byte [eax + edi + 0x28], 0x48
je 0x4234c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4234ac
mov byte [esi], dl
jmp 0x4234bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489038]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42350a
cmp byte [ebp - 1], 0xa
jne 0x4234d0
cmp esi, ebx
jne 0x4234d0
mov byte [esi], 0xa
jmp 0x423509
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00423f47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42350a
mov byte [esi], 0xd
jmp 0x423509
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423506
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42350a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423513
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x489038]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423556
cmp word [esi], dx
jne 0x423556
or byte [edi + eax + 0x28], 4
jmp 0x42355b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4236ae
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42368e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42359d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4235d3
cmp eax, edx
jae 0x4235df
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423575
jmp 0x4236ae
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42368a
cmp dword [ebp - 0x14], 0
je 0x42368a
mov eax, dword [ebx*4 + 0x489038]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423662
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42362b
mov word [esi], cx
jmp 0x42365e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489038]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489038]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489038]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4236ae
pop ebx
cmp word [ebp - 4], bx
jne 0x423673
cmp esi, dword [ebp + 0xc]
jne 0x423673
mov word [esi], bx
jmp 0x4236ab
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00423f47
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4236ae
push 0xd
jmp 0x4236a7
mov ecx, dword [ebx*4 + 0x489038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4236a5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4236ae
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4054c8
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441494], 2
jl 0x4054ed
movaps xmm0, xmmword [0x42f400]
movaps xmmword [0x439bb0], xmm0
movaps xmm0, xmmword [0x42f3f0]
movaps xmmword [0x439bc0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405893
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x42f3c8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4054fb
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405c44
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test ebp, eax
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x405c6a
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x405c64
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x405c55
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00405a10
cmp edx, dword [ecx + ecx - 0x39]
lea eax, [ebp - 0x58]
push eax
call fcn.00405a20
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004059d5
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x405cfe
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00405a10
invalid