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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
test esi, esi
je 0x6a64d1
push 0
call fcn.006ad796
pop ecx
mov ecx, dword [ebp + 0xc]
mov cl, byte [edi + ecx]
cmp cl, byte [eax + edi]
jne 0x6a63d7
push 0
call fcn.006ad796
mov al, byte [eax + edi]
inc edi
pop ecx
test al, al
jne 0x6a63b2
jmp 0x6a63e8
and dword [esi + 0x44], 0
push str.Application_uses_deprecated_png_read_init___and_should_be_recompiled.
push esi
call fcn.006bc33a
pop ecx
pop ecx
push 0x40
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005b2260
mov edi, 0x28c
add esp, 0xc
cmp dword [ebp + 0x10], edi
jae 0x6a6414
push esi
call fcn.006bbfcd
push 1
call fcn.006bbfbc
pop ecx
pop ecx
mov dword [ebx], eax
mov esi, eax
push edi
xor edi, edi
push edi
push esi
call fcn.005b33a0
push 0x40
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.005b2260
mov eax, 0xf4240
mov dword [esi + 0x264], eax
mov dword [esi + 0x268], eax
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.006bbfde
push 0x38
mov dword [esi + 0xac], eax
lea eax, [esi + 0x74]
push 0x7aa5f0
push eax
mov dword [esi + 0x94], 0x6ad1cb
mov dword [esi + 0x98], fcn.006ad212
mov dword [esi + 0x9c], esi
call fcn.006b7fca
add esp, 0x2c
cmp eax, 0xfffffffa
je 0x6a64a1
cmp eax, 0xfffffffc
je 0x6a649a
cmp eax, 0xfffffffe
je 0x6a649a
cmp eax, edi
je 0x6a64ae
push str.Unknown_zlib_error
jmp 0x6a64a6
push str.zlib_memory
jmp 0x6a64a6
push str.zlib_version
push esi
call fcn.006bc299
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
push edi
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
push edi
push esi
mov dword [esi + 0x84], eax
call fcn.006adacc
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6a9363
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov cl, byte [eax + 8]
sub esp, 0x14
cmp cl, 3
je 0x6a94e7
mov edx, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp + 8], edi
test cl, 2
je 0x6a93b3
movzx ecx, byte [eax + 9]
movzx edi, byte [esi]
mov ebx, ecx
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, ecx
sub ebx, edi
movzx edi, byte [esi + 2]
sub ecx, edi
push 3
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
pop ebx
xor edi, edi
jmp 0x6a93c3
movzx ecx, byte [esi + 3]
movzx ebx, byte [eax + 9]
sub ebx, ecx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
inc ebx
test byte [eax + 8], 4
je 0x6a93d8
movzx ecx, byte [esi + 4]
movzx esi, byte [eax + 9]
sub esi, ecx
mov dword [ebp + ebx*4 - 0x14], esi
inc ebx
xor esi, esi
cmp ebx, edi
jle 0x6a94e4
lea ecx, [ebp + esi*4 - 0x14]
cmp dword [ecx], edi
jg 0x6a93ee
mov dword [ecx], edi
jmp 0x6a93f5
mov dword [ebp + 8], 1
inc esi
cmp esi, ebx
jl 0x6a93e2
cmp word [ebp + 8], di
je 0x6a94e4
movzx ecx, byte [eax + 9]
dec ecx
dec ecx
je 0x6a94cd
dec ecx
dec ecx
je 0x6a949e
sub ecx, 4
je 0x6a947c
sub ecx, 8
jne 0x6a94e4
mov esi, dword [ebp + 0xc]
imul edx, ebx
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
cmp edx, edi
jbe 0x6a94e4
mov eax, dword [ebp + 8]
xor edx, edx
div ebx
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
lea edi, [esi + 1]
movzx cx, byte [edi]
add ax, cx
mov cx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov esi, edi
mov byte [esi], al
inc esi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x6a943a
jmp 0x6a94e4
mov esi, dword [ebp + 0xc]
imul edx, ebx
mov dword [ebp + 8], edx
cmp edx, edi
jbe 0x6a94e4
xor edx, edx
mov eax, edi
div ebx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi], cl
inc esi
inc edi
cmp edi, dword [ebp + 8]
jb 0x6a9489
jmp 0x6a94e4
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov edx, 0xf0
sar edx, cl
push 0xf
pop eax
sar eax, cl
and dl, 0xf0
or dl, al
test edi, edi
jbe 0x6a94e4
mov al, byte [esi]
mov cl, byte [ebp - 0x14]
shr al, cl
and al, dl
mov byte [esi], al
inc esi
dec edi
jne 0x6a94bc
jmp 0x6a94e4
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
cmp eax, edi
jbe 0x6a94e4
mov dl, byte [ecx]
shr dl, 1
and dl, 0x55
mov byte [ecx], dl
inc ecx
dec eax
jne 0x6a94d7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6ad271
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6ad2a6
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6ad299
push eax
call fcn.006bbfcd
push 2
call fcn.006bbfbc
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.005b33a0
add esp, 0xc
pop edi
pop esi
ret
Function at 0x6ba4e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x6ba56d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.005b2260
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x6ba530
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x6ba552
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x6ba5c8
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.006ba236
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
pop ecx
pop ecx
cmp esi, 3
jb 0x6ba5b4
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x6ba5c8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x6ba4f1
pop esi
pop ebx
leave
ret
Function at 0x6e67e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80b4c0
push 0x722914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.006e9310
test eax, eax
jne 0x6e6855
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x6e6855
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x6e6855
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x6e6881
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6eec80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80b6a8
push 0x722914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x6eed19
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0x4550
jne 0x6eed19
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x6eed0d
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x88]
mov dword [ebp - 0x20], eax
jmp 0x6eed19
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x78]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
jmp 0x6eed32
cmp dword [ebp - 0x20], 0
je 0x6eedf7
mov dword [ebp - 0x2c], 0
jmp 0x6eed4e
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x14]
jae 0x6eedf7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jne 0x6eedf2
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.006eebe0
test eax, eax
je 0x6eedf0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + ecx*4]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x38]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x75254c]
test eax, eax
je 0x6eeddf
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 4
mov eax, dword [ebp - 0x34]
push eax
call dword [0x75254c]
jmp 0x6eedf0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.006eebe0
jmp 0x6eedf7
jmp 0x6eed45
mov dword [ebp - 4], 0xffffffff
jmp 0x6eee23
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6eee50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x6eef59
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x6eef59
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x6eef59
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x50]
jae 0x6eef59
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x6eef59
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x6eef59
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x6eef59
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x50]
jae 0x6eef59
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x10]
je 0x6eef59
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x6eef4b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
jne 0x6eef40
lea edx, [ebp - 0x18]
push edx
push 0x40
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [0x75254c]
test eax, eax
je 0x6eef40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
call dword [0x75254c]
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x6eeefc
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 0x10], ecx
jmp 0x6eeebd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6fccf0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005b33a0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x712d0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x40
mov eax, 0x74e0be
call fcn.005be388
mov eax, dword [ebp + 8]
mov esi, ecx
mov edi, dword [esi + 0x20]
xor ecx, ecx
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ecx
je 0x712c18
lea edi, [esi + 0x38]
mov eax, dword [edi]
lea ebx, [esi + 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [ebx], ecx
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.007110a4
push dword [ebp - 0x44]
mov ecx, esi
call fcn.00711fd5
push edi
call fcn.00574f75
push ebx
call fcn.00574f75
mov eax, dword [ebp - 0x40]
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx], eax
jmp 0x712cd7
push 0x15
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00710fbd
mov eax, dword [esi + 0x38]
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [edi + 0x80], ebx
jne 0x712c7e
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404040
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push ebx
push ebx
push 0x11012
push dword [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
je 0x712c65
push eax
call fcn.0055ccb5
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [esi + 0x4c], eax
mov byte [esi + 0x47], 1
call fcn.00402b30
push 0x7839a8
push dword [esi + 0x24]
call fcn.00574f4f
and dword [ebp - 0x40], 0
cmp dword [edi + 0x80], 0
mov ebx, eax
je 0x712ca4
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
test eax, eax
jne 0x712cb7
push dword [edi + 0x80]
push dword [ebp - 0x48]
push ebx
call dword [0x752fa4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [ebp - 0x40], 0
jge 0x712cc8
push dword [ebp - 0x40]
jmp 0x712c60
mov eax, dword [ebp - 0x48]
push 2
mov byte [esi + 0x47], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
call fcn.005be40b
ret 4
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x20]
cmp dword [eax + 0x78], 0
je 0x712d20
pop ebp
jmp 0x712bba
pop ebp
jmp fcn.00711fd5
Function at 0x85cb90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x85cc9c
test eax, eax
je 0x85cc9c
push esi
push edi
mov ecx, 0x10
mov esi, 0x876fe0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x85cc83
lea edi, [eax + 4]
jmp 0x85cbe7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x85cbfc
mov dword [ebp - 4], 2
jmp 0x85cc1d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x85cc13
mov dword [ebp - 4], 1
jmp 0x85cc1d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x85cc93
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x85cc56
mov byte [ecx], 0x3d
jmp 0x85cc62
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x85cc6d
mov byte [ecx], 0x3d
jmp 0x85cc73
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x85cbe4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8606b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
jne 0x8606d9
push esi
call fcn.00860020
test al, al
jne 0x8606d9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.0085a800
mov edi, eax
call fcn.0085abc0
mov edi, eax
add esp, 4
mov eax, 0x40
call fcn.0085e5f0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc0]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0x40
call fcn.0085cb90
mov ecx, dword [ebp - 4]
add esp, 0x10
xor eax, eax
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x80], al
push 0x10
mov eax, esi
mov byte [ebp + ecx - 0xc0], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
mov dword [ebp - 0x20], 0xc3d2e1f0
call fcn.0085c8d0
test al, al
je 0x86076c
mov edi, dword [ebp - 4]
jmp 0x86076f
or edi, 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 0xc
mov eax, esi
call fcn.0085c8d0
test al, al
je 0x860787
mov eax, dword [ebp - 4]
jmp 0x86078a
or eax, 0xffffffff
push edi
push eax
push esi
lea esi, [ebp - 0x80]
call fcn.0085ce10
cmp byte [ebp - 0x80], 0
mov dword [ebp - 4], 0x40
jne 0x8607ab
call fcn.0085d340
mov byte [ebp - 0x80], 1
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [ebp + eax*4 - 0x30]
bswap ecx
mov dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, 5
jb 0x8607b0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x1c]
push 0x14
push ecx
call fcn.0085cb90
mov edx, dword [ebp - 4]
add esp, 0x10
cmp byte [ebp + 0xc], 0
mov byte [ebp + edx - 0x100], 0
mov eax, 0x877344
jne 0x8607f4
mov eax, 0x87735c
push 0
push eax
mov edi, ebx
call fcn.00860530
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00860530
push 0
push 0x877374
call fcn.00860530
push 1
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00860530
push 0
push 0x87737c
call fcn.00860530
push 1
lea edx, [ebp - 0x100]
push edx
call fcn.00860530
cmp byte [ebp + 0xc], 0
je 0x860848
call fcn.00860610
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x860a50
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
jne 0x860a6f
mov ebx, dword [ebp + 8]
push eax
call fcn.00860020
test al, al
je 0x860aa9
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x860a77
sub eax, edx
mov esi, eax
push esi
mov dword [ebp + 0xc], esi
call fcn.00867bf4
lea ecx, [ebp + 0xc]
push ecx
mov edi, eax
push edi
push esi
push ebx
call fcn.0085ccb0
add esp, 0x14
test al, al
jne 0x860ab4
push edi
call fcn.008682e4
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push edx
push edi
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x2c], 0x67452301
mov dword [ebp - 0x28], 0xefcdab89
mov dword [ebp - 0x24], 0x98badcfe
mov dword [ebp - 0x20], 0x10325476
mov dword [ebp - 0x1c], 0xc3d2e1f0
mov byte [ebp - 0x7c], bl
call fcn.0085cdc0
mov dword [ebp + 0xc], 0x40
cmp byte [ebp - 0x7c], bl
jne 0x860b07
call fcn.0085d340
mov byte [ebp - 0x7c], 1
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x2c]
bswap ecx
mov dword [ebp + eax*4 - 0x18], ecx
inc eax
cmp eax, 5
jb 0x860b10
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x18]
push 0x14
push ecx
call fcn.0085cb90
mov edx, dword [ebp + 0xc]
push edi
mov byte [ebp + edx - 0xbc], bl
call fcn.008682e4
mov bl, byte [ebp + 0x10]
add esp, 0x14
mov eax, 0x8773a0
test bl, bl
jne 0x860b5a
mov eax, 0x8773b8
mov edi, dword [ebp + 8]
push 0
push eax
call fcn.00860530
push 1
lea eax, [ebp - 0xbc]
push eax
call fcn.00860530
test bl, bl
je 0x860b7c
call fcn.00860610
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401670
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x421b53
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x435700]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435700]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x23c]
xor edi, edi
mov dword [esp + 0x234], edi
push 0x428ef0
mov ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x1c]
mov dword [esp + 0x234], edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 0x104
mov dword [esp + 0x1c], 1
call ebp
mov edi, eax
cmp edi, 0x104
jle 0x401731
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d582
add esp, 4
mov ebx, eax
push ebx
push edi
call ebp
push ebx
mov ecx, esi
call dword [0x4230d4]
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40173e
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [0x4230d4]
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041d649
add esp, 0x224
ret
Function at 0x401770
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421b10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x435700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x400
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x400
call fcn.0041d582
add esp, 4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
call sub.urlmon.dll_ObtainUserAgentString
cmp eax, ebx
jge 0x4017f0
cmp eax, 0x8007000e
jne 0x4017ee
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041d582
add esp, 8
lea edx, [ebp - 0x14]
push edx
mov esi, eax
push esi
push ebx
call sub.urlmon.dll_ObtainUserAgentString
cmp eax, ebx
jne 0x40184b
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x40184b
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d582
add esp, 4
push edi
mov ebx, eax
mov eax, dword [ebp - 0x14]
push ebx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40184b
mov ecx, dword [ebp + 8]
push ebx
call dword [0x4230d4]
mov dword [ebp - 0x18], 1
test esi, esi
je 0x401858
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
je 0x401865
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret