joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, eax
mov dword [ebp - 4], eax
add eax, 0x3c
mov eax, dword [eax]
add eax, edx
add eax, 0x78
mov eax, dword [eax]
add eax, edx
mov edi, eax
add eax, 0x20
mov eax, dword [eax]
add eax, edx
xor esi, esi
push eax
mov eax, dword [eax]
add eax, edx
mov ebx, str.GetProcAddress
mov cl, byte [eax]
mov ch, byte [ebx]
test cl, cl
je 0x401055
test ch, ch
je 0x401063
jmp 0x40105b
test ch, ch
je 0x40106a
jmp 0x401063
cmp cl, ch
jne 0x401063
inc eax
inc ebx
jmp 0x401047
inc esi
pop eax
add eax, 4
jmp 0x40103d
pop eax
mov eax, edi
add eax, 0x24
mov eax, dword [eax]
add eax, edx
add eax, esi
add eax, esi
mov bx, word [eax]
movzx ebx, bx
mov eax, edi
add eax, 0x1c
mov eax, dword [eax]
add eax, edx
add ebx, ebx
add eax, ebx
add eax, ebx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x10], eax
push str.LoadLibraryA
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push str.GetModuleHandle
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov edi, str._98:_199U
xor byte [edi], 0x55
inc edi
xor byte [edi], 0x55
loopne 0x4010b8
mov edi, 0x402037
xor byte [edi], 0x55
loope 0x4010cb
inc edi
loop 0x4010c3
mov edi, 0x402064
xor byte [edi], 0x55
inc edi
xor byte [edi], 0x55
loopne 0x4010d3
push str._98:_199U
call dword [ebp - 0xc]
mov edx, eax
add eax, 0x3c
mov eax, dword [eax]
add eax, edx
add eax, 0x78
mov eax, dword [eax]
add eax, edx
mov edi, eax
add eax, 0x20
mov eax, dword [eax]
add eax, edx
xor esi, esi
push eax
mov eax, dword [eax]
add eax, edx
mov ebx, 0x402037
mov cl, byte [eax]
mov ch, byte [ebx]
test cl, cl
je 0x401114
test ch, ch
je 0x401122
jmp 0x40111a
test ch, ch
je 0x401129
jmp 0x401122
cmp cl, ch
jne 0x401122
inc eax
inc ebx
jmp 0x401106
inc esi
pop eax
add eax, 4
jmp 0x4010fc
pop eax
mov eax, edi
add eax, 0x24
mov eax, dword [eax]
add eax, edx
add eax, esi
add eax, esi
mov bx, word [eax]
movzx ebx, bx
mov eax, edi
add eax, 0x1c
mov eax, dword [eax]
add eax, edx
add ebx, ebx
add eax, ebx
add eax, ebx
mov eax, dword [eax]
add eax, edx
push 0
push 0
push 0x4020cc
push 0x402064
push 0
push 0x40116d
push ebp
mov ebp, esp
add eax, 5
jmp eax
Function at 0x9170b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00917200
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 0x9170d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9170c2
add dl, dl
jne 0x9170e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x917134
xor eax, eax
add dl, dl
jne 0x9170ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9171d5
add dl, dl
jne 0x9170fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x917108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x917113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91711e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x91712a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9170cd
mov eax, 1
add dl, dl
jne 0x917142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91714d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x917139
sub eax, ebx
mov ebx, 1
jne 0x917180
mov ecx, 1
add dl, dl
jne 0x917166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x917171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91715d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9170cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x917197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9171a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91718e
cmp eax, 0x7d00
jae 0x9171c5
cmp eax, 0x500
jb 0x9171c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9170cd
cmp eax, 0x7f
ja 0x9171c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9170cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9171f6
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 0x9170cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x5be788
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1002b760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0xc]
lea eax, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
call fcn.005b3af8
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0xc]
lea edx, [esp + 8]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
call fcn.005b3af8
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x44]
mov dword [ecx], edx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.005c81a8
test al, al
je 0x5be836
lea edx, [esp + 0x14]
push edx
push 8
mov ecx, esi
call fcn.005be918
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x5be847
push eax
call fcn.005cf115
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp eax, edi
pop edi
pop esi
je 0x5be866
push eax
call fcn.005cf115
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x5beb88
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1002b760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0xc]
lea eax, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
call fcn.005b3af8
lea eax, [esp + 0xc]
lea edx, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
call fcn.005b3af8
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov dword [esp + 0x10], 2
call fcn.005b3af8
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.005c81a8
test al, al
je 0x5bec54
lea ecx, [esp + 0x14]
push ecx
push 0xa
mov ecx, esi
call fcn.005be918
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x5bec65
push eax
call fcn.005cf115
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp eax, edi
pop edi
pop esi
je 0x5bec84
push eax
call fcn.005cf115
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x5bfa88
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002b828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
push edi
mov dword [esp + 0xc], 0x1002d414
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x2c], 0
jne 0x5bfb0f
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push eax
push edi
mov ecx, esi
call fcn.005bf718
push 1
mov ecx, esi
mov ebx, eax
call fcn.005bf918
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 4]
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x18]
mov edi, edx
sub edi, ebx
cmp edi, 0x1770
jbe 0x5bfb7b
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov ecx, esi
mov dword [esi + 0x18], edx
call fcn.005bf758
mov edi, dword [esi + 4]
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005bf718
push 1
mov ecx, esi
mov ebx, eax
call fcn.005bf918
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [ecx]
sub edx, dword [eax + 0x18]
cmp edx, 0x1770
ja 0x5bfba8
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005bf9b8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.005bf9f8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x5c6bf2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push ebx
push esi
push edi
je 0x5c6d08
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x5c6d08
xor esi, esi
xor ebx, ebx
xor edx, edx
test edi, edi
jbe 0x5c6d04
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x5c6c33
cmp byte [edx + ecx], 0xd
jne 0x5c6c33
cmp byte [edx + ecx + 1], 0xa
je 0x5c6c6e
mov al, byte [edx + ecx]
cmp al, 0xa
je 0x5c6c6e
cmp al, 0x3d
jne 0x5c6c48
inc ebx
cmp ebx, 2
ja 0x5c6d08
cmp al, 0x7f
ja 0x5c6d08
movzx eax, al
mov al, byte [eax + 0x1002d7c8]
cmp al, 0x7f
je 0x5c6d08
cmp al, 0x40
jae 0x5c6c6d
test ebx, ebx
jne 0x5c6d08
inc esi
inc edx
cmp edx, edi
jb 0x5c6c1d
test esi, esi
je 0x5c6d04
mov ecx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
lea eax, [eax + eax + 7]
shr eax, 3
cmp dword [ecx], eax
jae 0x5c6c92
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x5c6d0a
mov ecx, dword [ebp + 8]
push 3
xor ebx, ebx
xor esi, esi
test edx, edx
pop edi
jbe 0x5c6cfc
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0xd
je 0x5c6cf4
cmp al, 0xa
je 0x5c6cf4
movzx eax, al
movzx eax, byte [eax + 0x1002d7c8]
xor edx, edx
cmp al, 0x40
sete dl
shl ebx, 6
and eax, 0x3f
or eax, ebx
mov ebx, eax
sub edi, edx
inc esi
cmp esi, 4
jne 0x5c6cf4
xor esi, esi
test edi, edi
jbe 0x5c6cdf
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jbe 0x5c6cec
mov eax, ebx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x5c6cf4
mov byte [ecx], bl
inc ecx
inc dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x5c6ca3
sub ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
jmp 0x5c6d0b
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d2b26
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5d2b54
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5d2b5b
cmp ebx, dword [eax + 4]
jae 0x5d2b5b
xor eax, eax
jmp 0x5d2d4b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5d2b6c
xor eax, eax
inc eax
jmp 0x5d2d4a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5d2b82
cmp ecx, edx
jae 0x5d2cc7
cmp dword [eax + 4], 0
je 0x5d2b8b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5d2b73
cmp dword [ebp + 8], 0
je 0x5d2bad
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5d2cc7
cmp eax, esi
jae 0x5d2cc7
mov eax, dword [0x10035cf0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5d2bd2
cmp dword [esi*4 + 0x10035cf8], edi
je 0x5d2ccb
inc esi
cmp esi, eax
jl 0x5d2bc0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1002d088]
test eax, eax
je 0x5d2d47
cmp dword [ebp - 8], 0x1000000
jne 0x5d2d47
test byte [ebp - 0xc], 0xcc
je 0x5d2c50
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5d2d47
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5d2d47
cmp word [eax + 0x18], 0x10b
jne 0x5d2d47
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5d2d47
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5d2c50
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5d2c50
test byte [ecx + 0x27], 0x80
jne 0x5d2cc7
push 1
push 0x10035d38
call dword [0x1002d070]
test eax, eax
jne 0x5d2b64
mov ecx, dword [0x10035cf0]
test ecx, ecx
mov edx, ecx
jle 0x5d2c84
lea eax, [ecx*4 + 0x10035cf4]
cmp dword [eax], edi
je 0x5d2c84
dec edx
sub eax, 4
test edx, edx
jg 0x5d2c78
test edx, edx
jne 0x5d2cb5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5d2c91
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5d2ca9
lea eax, [edx*4 + 0x10035cf8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5d2c97
cmp ecx, 0x10
jge 0x5d2cb5
inc ecx
mov dword [0x10035cf0], ecx
push 0
push 0x10035d38
call dword [0x1002d070]
jmp 0x5d2b64
xor eax, eax
jmp 0x5d2d4a
test esi, esi
jle 0x5d2b64
mov ebx, dword [0x1002d070]
push 1
push 0x10035d38
call ebx
test eax, eax
jne 0x5d2b64
cmp dword [esi*4 + 0x10035cf8], edi
je 0x5d2d21
mov eax, dword [0x10035cf0]
lea esi, [eax - 1]
test esi, esi
jl 0x5d2d0f
cmp dword [esi*4 + 0x10035cf8], edi
je 0x5d2d0b
dec esi
jns 0x5d2cff
test esi, esi
jge 0x5d2d1f
cmp eax, 0x10
jge 0x5d2d1a
inc eax
mov dword [0x10035cf0], eax
lea esi, [eax - 1]
jmp 0x5d2d21
je 0x5d2d39
xor ecx, ecx
test esi, esi
jl 0x5d2d39
lea eax, [ecx*4 + 0x10035cf8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5d2d27
push 0
push 0x10035d38
call ebx
jmp 0x5d2b64
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40106d
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push 0x6d
pop eax
mov byte [ebp - 0x14], al
xor edx, edx
mov byte [ebp - 0x2f], al
mov ebx, edx
mov eax, dword [ecx + 0x3c]
mov edi, edx
mov dword [ebp - 4], edx
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x28], dl
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x13], 0x2e33646f
mov dword [ebp - 0xf], 0x6c6c64
mov dword [ebp - 0x24], 0x64616f4c
mov edx, dword [eax + 0x1c]
add edx, ecx
mov dword [ebp - 0x20], 0x7262694c
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x20]
add edx, ecx
mov dword [ebp - 0x1c], 0x41797261
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x24]
add edx, ecx
mov dword [ebp - 0x34], 0x54746547
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0x18]
mov eax, ebx
mov byte [ebp - 0x30], 0x65
mov dword [ebp - 0x2e], 0x74615070
mov word [ebp - 0x2a], 0x4168
mov dword [ebp - 0x38], edx
xor esi, esi
test edx, edx
je 0x401140
mov eax, dword [ebp - 0x44]
push 0xd
mov eax, dword [eax + esi*4]
add eax, ecx
lea ecx, [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x48], eax
call section..text
test eax, eax
je 0x40111d
test edi, edi
je 0x40117d
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
push 0xd
call section..text
test eax, eax
je 0x401132
test ebx, ebx
je 0x40119b
mov edx, dword [ebp - 0x38]
inc esi
mov ecx, dword [ebp - 8]
cmp esi, edx
jb 0x4010fe
mov eax, dword [ebp - 4]
cmp eax, 2
jne 0x4010f8
lea eax, [ebp - 0x45c]
push eax
push 0x105
call ebx
lea ecx, [ebp - 0x45c]
add eax, ecx
lea ecx, [ebp - 0x14]
push 0x6d
sub ecx, eax
pop edx
mov byte [eax], dl
inc eax
mov dl, byte [ecx + eax]
test dl, dl
jne 0x401163
mov byte [eax], dl
lea eax, [ebp - 0x45c]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
mov edi, dword [ecx + eax*4]
mov ecx, dword [ebp - 8]
add edi, ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
inc eax
mov dword [ebp - 4], eax
jmp 0x401140
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebp - 8]
add ebx, ecx
jmp 0x40118f
Function at 0x401183
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466ed5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x2712
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411530
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
push str.Mozilla_5.0__hp_tablet__Linux__hpwOS_3.0.0__U__en_US__AppleWebKit_534.6__KHTML__like_Gecko__wOSBrowser_233.70_Safari_534.6_TouchPad_1.0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x2722
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411530
add esp, 0xc
push 5
push 0x44
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00411530
add esp, 0xc
push 1
push 0x34
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00411530
add esp, 0xc
push 1
push 0x63
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411530
add esp, 0xc
push 0
push 0x2f
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00411530
add esp, 0xc
push 0x40138c
push 0x4e2b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00411530
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 0x2711
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00411530
add esp, 0xc
push 0
push 0x40
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411530
add esp, 0xc
push 3
push 0x54
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00411530
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4013b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40376a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0x47998c
mov eax, dword [ebp + 0xc]
push eax
call fcn.004103a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403794
xor eax, eax
jmp 0x40387d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00410583
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4037c0
mov eax, dword [ebp - 4]
push eax
call fcn.004105e2
add esp, 4
xor eax, eax
jmp 0x40387d
lea ecx, [ebp - 0x134]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call fcn.004103d4
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4037f1
mov eax, dword [ebp - 4]
push eax
call fcn.004105e2
add esp, 4
xor eax, eax
jmp 0x40387d
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], 0
jmp 0x403818
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x13c]
jge 0x403862
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004103d4
add esp, 0xc
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00410547
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x403809
mov ecx, dword [ebp - 4]
push ecx
call fcn.004105e2
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403881
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x9e3779b9
mov ecx, dword [ebp - 0x10]
shl ecx, 3
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x4038c0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x403924
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
xor eax, edx
mov ecx, dword [ebp - 0xc]
shr ecx, 5
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
xor edx, ecx
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 4]
xor edx, eax
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x4038b7
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x40398a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x478324
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00403938
add esp, 0xc
push 0x478328
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esp, ebp
pop ebp
ret