joyce8/EMBER2024-capa huggingface dataset:
Function at 0x637010
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.004223a0
mov eax, dword [0x6d906c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
sub eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], ebx
jae 0x637070
push 0x4d4
push 0x6be8a4
push str.assertion_failed:_rec__orig_len___md_size
call fcn.00587930
add esp, 0xc
cmp ebx, 0x40
jbe 0x63708c
push 0x4d5
push 0x6be8a4
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.00587930
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
neg eax
mov dword [esp + 0x20], ecx
and eax, 0x3f
lea edi, [esp + 0x34]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x2c], edi
cmp ecx, eax
jbe 0x6370ba
mov ebp, ecx
sub ebp, ebx
sub ebp, 0x100
push ebx
xor esi, esi
mov dword [esp + 0x18], 0
push esi
push edi
call fcn.004fab00
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ebp, dword [esp + 0x20]
jae 0x63716d
mov eax, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
mov edx, ecx
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ebp
xor eax, dword [esp + 0x10]
neg edi
or edx, eax
mov eax, dword [esp + 0x28]
xor edx, ebp
shr edx, 0x1f
neg edx
mov cl, byte [eax + ebp]
mov eax, edi
or eax, dword [esp + 0x14]
inc ebp
and eax, edx
mov edx, dword [esp + 0x18]
and edi, edx
mov dword [esp + 0x14], eax
and al, cl
or esi, edi
mov edi, dword [esp + 0x2c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x20]
jb 0x6370f5
xor edx, edx
test ebx, ebx
je 0x6371a1
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x637177
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421065
add esp, 0xa8
ret
Function at 0x637ce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.004223a0
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x637d2d
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x637d1d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x637d32
cmp edi, dword [esi + 8]
ja 0x637d14
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.00574d80
push eax
call fcn.005712b0
add esp, 8
test eax, 0x200000
je 0x637d78
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x637e04
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x637dc0
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x63c730
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x63c74b
push eax
push esi
call fcn.0063cd70
add esp, 8
test eax, eax
jle 0x63c793
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.00571060
add esp, 8
test edi, edi
jg 0x63c790
push edi
call fcn.005b92b0
add esp, 4
test eax, eax
je 0x63c790
push 0xa
push esi
call fcn.005717c0
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0xd9f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd9f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd9f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f06a
add dl, dl
jne 0xd9f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f0dc
xor eax, eax
add dl, dl
jne 0xd9f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f17d
add dl, dl
jne 0xd9f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd9f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd9f075
mov eax, 1
add dl, dl
jne 0xd9f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f0e1
sub eax, ebx
mov ebx, 1
jne 0xd9f128
mov ecx, 1
add dl, dl
jne 0xd9f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f136
cmp eax, 0x7d00
jae 0xd9f16d
cmp eax, 0x500
jb 0xd9f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
cmp eax, 0x7f
ja 0xd9f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9f19e
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 0xd9f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x408d1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x408d2d
pop dword [ebp - 0x18]
mov eax, 0x408d2d
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x38480
push 0
mov eax, 0x784ed3d3
sub eax, 0x780df2b3
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xfa89e3d0
sub ecx, 0xfa89a00d
xor edx, edx
add edx, eax
mov ebx, 0x8fb7e3d7
add ebx, 0x70899429
add ebx, dword [ebp - 0x18]
mov edi, 0x42123c
add edi, 0x661b3180
mov dword [ebp - 4], 0x5e0110a3
mov esi, dword [ebx]
sub dword [ebp - 4], ebx
xor esi, edi
xor dword [ebp - 0x14], 0x29a4bf41
mov dword [edx], esi
xor dword [ebp - 0x14], ebx
add edx, 4
add ebx, 0x19adedb9
add ebx, 0xe652124b
loop 0x408d89
add eax, 0xd6b06355
sub eax, 0xd6af6176
xor ebx, ebx
add ebx, eax
add eax, 0xe2ff45b7
add eax, 0x1d00ba4e
mov ecx, 0x4e8ed658
add ecx, 0xb1b129a8
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401057
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.00401000
test eax, eax
je 0x4011b0
lea ecx, [esp + 0x18]
call fcn.00401000
lea ecx, [esp + 0x18]
test eax, eax
je 0x40111f
call fcn.00401000
test eax, eax
je 0x4010e1
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.00401000
lea edi, [eax + edi*2]
dec ebx
jne 0x4010b7
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4010d8
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4010db
mov byte [edx], 0
inc edx
jmp 0x4011c2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x401117
test ecx, ecx
je 0x4011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x401109
jmp 0x4011a7
xor ebp, ebp
inc ebp
jmp 0x4011ab
call fcn.00401036
test edi, edi
jne 0x401154
cmp eax, 2
jne 0x40114f
lea ecx, [esp + 0x18]
call fcn.00401036
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x4011ab
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x401144
jmp 0x4011a7
sub eax, 3
jmp 0x401157
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00401036
mov ecx, eax
cmp esi, 0x7d00
jb 0x40117e
inc ecx
cmp esi, 0x500
jb 0x401187
inc ecx
cmp esi, 0x80
jae 0x401192
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x4011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x40119e
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x4011c8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x401087
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011de
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x18
and dword [eax], 0
mov eax, dword [esp + 0x24]
push esi
and dword [eax], 0
mov esi, ecx
push edi
mov edx, dword [esi + 0x3c]
add edx, esi
mov eax, 0x14c
xor edi, edi
cmp word [edx + 4], ax
jne 0x401332
push ebx
mov ebx, dword [edx + 0x88]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x401331
cmp dword [edx + 0x8c], edi
je 0x401331
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
xor ecx, ecx
test edx, edx
je 0x401331
cmp dword [eax + 0xc], ebx
je 0x401251
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x40123f
jmp 0x401331
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
pop ebx
je 0x401331
xor eax, eax
push ebp
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [esp + 0x14], ecx
pop ecx
mov dword [esp + 0x14], ecx
je 0x401322
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x401312
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
push 0
movzx ebp, word [ecx + 0xe]
movzx eax, word [ecx + 0xc]
add ebp, eax
mov dword [esp + 0x20], ebp
pop ebp
je 0x401306
xor eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [esp + 0x18]
je 0x4012e6
inc ebp
movzx eax, bp
cmp eax, dword [esp + 0x1c]
jb 0x4012ca
jmp 0x401306
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [esp + 0x30]
mov eax, dword [ecx + edx]
sub eax, dword [esp + 0x20]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [esp + 0x34]
xor edi, edi
mov dword [ecx], eax
inc edi
test edi, edi
jne 0x401330
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ecx
movzx eax, cx
mov dword [esp + 0x14], ecx
cmp eax, ebp
jb 0x4012a1
test edi, edi
jne 0x401330
inc ebx
movzx eax, bx
cmp eax, dword [esp + 0x24]
jb 0x401274
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x18
ret 0xc
Function at 0x40133c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.004016d7
mov ebp, eax
push edi
mov edx, esi
mov ecx, ebp
call fcn.004016e7
mov ecx, dword [edi + ebp - 4]
mov eax, dword [edi + ebp - 8]
lea esi, [edi - 8]
mov ebx, esi
shr ebx, 2
and esi, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov edx, ebp
test ebx, ebx
je 0x4013a3
mov edi, eax
lea eax, [ebx + ecx]
movzx ecx, al
mov eax, dword [edx]
ror eax, cl
mov ecx, dword [esp + 0x14]
xor eax, edi
sub eax, ebx
mov dword [edx], eax
add edx, 4
dec ebx
jne 0x401381
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x4013ad
xor byte [edx], al
inc edx
dec esi
jne 0x4013a7
mov edi, dword [edi + ebp - 0xc]
mov ecx, edi
call fcn.004016d7
mov esi, eax
mov edx, esi
mov ecx, ebp
call fcn.00401057
mov ecx, ebp
call fcn.0040172d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x401bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401cdd
pop dword [ebp - 0x28]
mov eax, 0x401cdd
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3ccb3
push 0
mov eax, 0x62764692
add eax, 0x9dcc0b86
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x3426d1b5
sub ecx, 0x34268da7
xor esi, esi
add esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x28]
mov ebx, 0x488a20b3
sub ebx, 0x2d86332
mov edx, dword [edi]
add dword [ebp - 4], eax
xor edx, ebx
xor dword [ebp - 0x10], ebx
mov dword [esi], edx
add esi, 0x5fb3cabd
sub esi, 0x5fb3cab9
add edi, 0xedf9d2ba
sub edi, 0xedf9d2b6
loop 0x401d33
add eax, 0x3d868491
add eax, 0xc27a7e7a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc3eeb5fc
add ecx, 0x3c514a04
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1c38e90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17fb000]
push edi
jmp 0x1c38eaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1c38eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c38ea0
mov eax, 1
add ebx, ebx
jne 0x1c38ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1c38ed4
jne 0x1c38ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c38ef3
dec eax
add ebx, ebx
jne 0x1c38ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1c38eb8
add ebx, ebx
jne 0x1c38eef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1c38f45
xor ecx, ecx
sub eax, 3
jb 0x1c38f0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1c38f7a
sar eax, 1
mov ebp, eax
jmp 0x1c38f16
add ebx, ebx
jne 0x1c38f16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c38ee4
inc ecx
add ebx, ebx
jne 0x1c38f24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c38ee4
add ebx, ebx
jne 0x1c38f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1c38f26
jne 0x1c38f42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1c38f26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1c38f64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1c38f56
jmp 0x1c38ea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1c38f64
add edi, ecx
jmp 0x1c38ea6
pop esi
mov edi, esi
mov ecx, 0x2752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1c38f82
cmp byte [edi], 0x16
jne 0x1c38f82
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 0x1c38f87
lea edi, [esi + 0x1834000]
mov eax, dword [edi]
or eax, eax
je 0x1c38fff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fecdac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2feceac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1c38fb4
mov ecx, edi
jns 0x1c38fe3
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 + 0x2feceb4]
or eax, eax
je 0x1c38ff9
mov dword [ebx], eax
add ebx, 4
jmp 0x1c38fd1
call dword [esi + 0x2feceb0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1c39030
cmp al, 0xef
ja 0x1c39023
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1c39005
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1c39012
mov ebp, dword [esi + 0x2feceb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x1c39064
sub esp, 0xffffff80
jmp 0x4302d3
Function at 0x10031b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x100322a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031de
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x100322d
mov ecx, 0x100229c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100320d
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x100322d
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x10036ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.01003421
adc ecx, ebp
arpl word [0x50a8458d], ax
call fcn.01003431
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.010033e6
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 0x100370f
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.01003421
wait
inc eax
retf 0x8df0
Function at 0x40269d
Capabilities:
Encode data using xor

Disassembly:
pushal
lea ecx, [0xf2dfe0a8]
mov eax, 0x200b924d
xadd dl, bh
mov ch, dh
xadd ah, bl
mov al, bl
shld eax, ebp, 0xba
test ah, bh
movzx eax, bh
not edx
shld esi, ebx, 0x4a
test dh, ah
call 0x402661
shrd edx, eax, cl
mov ecx, 0x6503cb87
btc ebp, ebp
mov ecx, 0xb1353625
bswap edx
rcr dl, 0x60
cmp esi, eax
rcl edx, 0xc1
dec edx
bsf esi, ebx
test bh, 0xa8
inc bl
mov edx, ecx
mov ebx, edx
mov dh, bh
mov eax, 0x539b
imul esi, ebp, 0xa87d74d0
and dh, ch
mov bl, dl
xor eax, 0x4b5f
dec ebx
add byte [eax], al
test ecx, 0x1ce4b73c
sub eax, 0x6e0
neg bh
mov ecx, 0
mov dh, 0x80
add ecx, eax
inc dl
add al, bh
lea edx, [0xca71ca7e]
xchg ecx, edi
cmp esi, 0x9aaa
jae 0x4026cc
add dh, dl
sub edi, 0x13d

Function at 0xed45f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xed45fe
pushal
call 0xed4604
pop ebp
sub ebp, 0x10
sub ebp, 0xad45f4
jmp 0xed461a
mov eax, 0xad45f4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a5
mov edx, 0xb72e3a52
xor byte [eax], dl
inc eax
dec ecx
jne 0xed4631
jmp 0xed4644
fstp dword [edi + 0x526edbd9]
push edx
push edx
rcl dword [ebx + 0x525252aa], cl
push ecx
lahf
ljmp 0x7ae8