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

Disassembly:
cmp ecx, dword [0x1008fe00]
jne 0x1003a30a
repz ret
jmp fcn.100426ec

Function at 0x1004ee53
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10040d70
xor ebx, ebx
cmp dword [0x10092294], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1004ef28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1004ee93
xor eax, eax
jmp 0x1004efec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1004ee8c
push eax
call fcn.10040d0d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10092294], eax
call esi
push eax
call fcn.10040d0d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10092298], eax
call esi
push eax
call fcn.10040d0d
mov dword [0x1009229c], eax
lea eax, [ebp - 8]
push eax
call fcn.10044d04
test eax, eax
pop ecx
pop ecx
je 0x1004eef6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10044303
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1004ef28
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10040d0d
cmp eax, ebx
pop ecx
mov dword [0x100922a4], eax
je 0x1004ef28
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10040d0d
pop ecx
mov dword [0x100922a0], eax
mov eax, dword [0x100922a0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1004efa1
cmp dword [0x100922a4], esi
je 0x1004efa1
push eax
call fcn.10040d79
pop ecx
call eax
cmp eax, ebx
je 0x1004ef6e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100922a4]
call fcn.10040d79
pop ecx
call eax
test eax, eax
je 0x1004ef6e
test byte [ebp - 0x18], 1
jne 0x1004efa1
lea eax, [ebp - 0xc]
push eax
call fcn.10044db3
test eax, eax
pop ecx
je 0x1004ef89
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10044303
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1004ef98
or dword [ebp + 0x10], 0x200000
jmp 0x1004efd2
or dword [ebp + 0x10], 0x40000
jmp 0x1004efd2
mov eax, dword [0x10092298]
cmp eax, esi
je 0x1004efd2
push eax
call fcn.10040d79
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004efd2
mov eax, dword [0x1009229c]
cmp eax, esi
je 0x1004efd2
push dword [ebp - 4]
push eax
call fcn.10040d79
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10092294]
call fcn.10040d79
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56d044], 0
je 0x403895
cmp word [0x56d218], 0xd7b2
jne 0x40385d
cmp dword [0x56d220], 0
jbe 0x40385d
mov eax, 0x56d214
call dword [0x56d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4038bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038b1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40473e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404728
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404745
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

Function at 0x40593c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405955
test al, 0x10
jne 0x405959
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4065b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4065e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x4065f2
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4065fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40661d
mov al, byte [esp]
jmp 0x40661f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406cb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b1c
mov eax, dword [0x56c264]
cmp byte [eax], 0
je 0x406d30
mov eax, dword [0x56c1c0]
call fcn.00402a40
call fcn.00402968
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405a84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x56c1a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56d660]
call fcn.004040a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x408548
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x408508
call fcn.00404950
xor eax, eax
push ebp
push 0x408653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x408668
call fcn.0040593c
test al, al
jne 0x40857e
mov eax, 0x408668
call fcn.00405a68
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x40859f
push 0
push 0x408688
push 0x40868c
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x409294
mov eax, 0x56d798
mov ecx, 0xda2a8
call fcn.00403aa8
mov edx, dword [0x56d798]
mov eax, 0x408698
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x4085e4
push 0
push 0x408688
push 0x4086b0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4e353c
mov eax, 0x56d798
mov ecx, 0x88c16
call fcn.00403aa8
mov edx, dword [0x56d798]
mov eax, 0x4086bc
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x408629
push 0
push 0x408688
push 0x4086d0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4086bc
mov eax, 0x408698
call fcn.004083ac
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40865a
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x325160cc
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x32b02ff3
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x7d42de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x7d42fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d42ec
add dl, dl
jne 0x7d4306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d4352
xor eax, eax
add dl, dl
jne 0x7d4313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d43ef
add dl, dl
jne 0x7d4322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d432d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d4338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d4343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d434d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x7d42f2
mov eax, 1
add dl, dl
jne 0x7d4360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d436b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d4357
sub eax, 2
jne 0x7d439a
mov ecx, 1
add dl, dl
jne 0x7d4380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d438b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d4377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d42f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d43b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d43bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d43a8
cmp eax, 0x7d00
jae 0x7d43df
cmp eax, 0x500
jb 0x7d43da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d42f2
cmp eax, 0x7f
ja 0x7d43e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d42f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d440b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d42f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8

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

Disassembly:
imul edx, dword [0x83903c], 0x8088405
inc edx
mov dword [0x83903c], edx
mul edx
mov eax, edx
ret

Function at 0x816d88
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
mov al, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x816da0
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ecx, ecx
mov cl, dl
add esi, ecx
xor ecx, ecx
mov cl, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
mov cl, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x816dc6
mov edx, dword [esp]
mov eax, dword [esp]
add eax, 0x100
mov ecx, pe_nt_image_headers32
call fcn.00812a98
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x816e20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x816eb1
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x816e46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x81e478
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
mov eax, ebx
shl eax, 3
mov edx, eax
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x54]
jae 0x81e4c1
inc dword [ebp - 0x58]
add dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
cmp ebx, 0x40
jb 0x81e4e9
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.0081e588
add esi, 0x40
sub ebx, 0x40
cmp ebx, 0x40
jae 0x81e4d4
test ebx, ebx
jbe 0x81e4fe
mov edi, ebx
lea eax, [ebp - 0xa8]
mov ecx, edi
mov edx, esi
call fcn.00812a98
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.00812a98
mov byte [ebp + edi - 0x50], 0x80
lea eax, [edi + 1]
cmp eax, 0x38
jbe 0x81e547
mov edx, 0x40
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00812aac
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.0081e588
xor eax, eax
mov edx, 0x38
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00812aac
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.0081e588
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x8286e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
mov ebp, edi
mov dword [esp], 1
mov cl, 1
mov edx, edi
mov eax, esi
call fcn.00825b7c
mov ebx, eax
mov byte [ebp + 0xb4], bl
xor eax, eax
mov al, bl
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
mov edx, eax
and edx, 0xf0
cmp edx, 0x90
jg 0x82873a
je 0x82879a
sub edx, 1
jb 0x828750
sub edx, 0x2f
je 0x828767
sub edx, 0x50
je 0x828789
jmp 0x828941
sub edx, 0xa0
je 0x8287b3
sub edx, 0x10
je 0x8288a1
jmp 0x828941
cmp eax, 2
jae 0x828941
mov edx, edi
mov eax, esi
call fcn.00824798
jmp 0x828941
cmp eax, 0x31
jne 0x828941
mov eax, dword [ebp + 0x94]
xor edx, edx
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x90]
mov dword [ebp + 0x20], eax
jmp 0x828941
mov edx, edi
mov eax, esi
call fcn.008267f0
mov dword [esp], eax
jmp 0x828941
mov edx, ebx
add dl, byte [esi + 0x10]
and dl, 0xf
mov ecx, edi
mov eax, esi
call fcn.0082853c
mov dword [esp], eax
jmp 0x828941
xor edx, edx
mov dl, byte [ebp + 0xb4]
xor eax, eax
mov al, byte [esi + 0x10]
add edx, eax
mov eax, edx
and eax, 7
cmp eax, 4
je 0x8287d1
cmp eax, 5
jne 0x8287df
mov edx, edi
mov eax, esi
call fcn.008259dc
jmp 0x828941
cmp edx, 0xaf
jne 0x828848
push edi
lea ecx, [ebp + 0xa2]
lea edx, [ebp + 0xa7]
mov eax, esi
call fcn.008245ac
lea edx, [ebp + 0xa2]
mov ecx, edi
mov eax, esi
call fcn.0082486c
mov ebx, eax
lea edx, [ebp + 0xa7]
mov ecx, edi
mov eax, esi
call fcn.0082486c
imul ebx, eax
push edi
lea edx, [ebp + 0xa7]
mov ecx, ebx
mov eax, esi
call fcn.008248f8
mov eax, ebx
xor edx, edx
push edx
push eax
mov ecx, edi
mov dl, byte [ebp + 0xac]
mov eax, esi
call fcn.00824988
jmp 0x828941
cmp edx, 0xa2
jne 0x828941
mov eax, dword [ebp + 0x20]
sub eax, 1
jb 0x828863
je 0x828884
jmp 0x828941
mov dword [ebp + 0x20], 2
mov dword [ebp + 0x2c], 0x756e6547
mov dword [ebp + 0x24], 0x6c65746e
mov dword [ebp + 0x28], 0x49656e69
jmp 0x828941
mov dword [ebp + 0x20], 0xf10
mov dword [ebp + 0x2c], 0xb
xor eax, eax
mov dword [ebp + 0x24], eax
xor eax, eax
mov dword [ebp + 0x28], eax
jmp 0x828941
xor eax, eax
mov al, byte [ebp + 0xb4]
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
and eax, 7
cmp eax, 6
jne 0x8288c4
mov dword [ebp + 0xac], 1
jmp 0x8288ce
mov dword [ebp + 0xac], 2
push edi
lea ecx, [ebp + 0xa2]
lea edx, [ebp + 0xa7]
mov eax, esi
call fcn.008245ac
lea edx, [ebp + 0xa2]
mov ecx, edi
mov eax, esi
call fcn.0082486c
mov ebx, eax
xor eax, eax
mov al, byte [ebp + 0xb4]
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
test al, 8
je 0x828927
cmp dword [ebp + 0xac], 1
jne 0x82891c
mov edx, ebx
mov eax, esi
call fcn.00823ff4
mov ebx, eax
jmp 0x828927
mov edx, ebx
mov eax, esi
call fcn.00823ff0
mov ebx, eax
mov dword [ebp + 0xac], 4
push edi
lea edx, [ebp + 0xa7]
mov ecx, ebx
mov eax, esi
call fcn.008248f8
mov eax, dword [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x82fe2c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ecx
push edx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, eax
je 0x82fe5a
mov edx, ecx
mov ecx, dword [ecx]
cmp dword [edx + 8], 0
je 0x82fe5a
push dword [edx + 0x18]
call fcn.0082fcb0
jmp 0x82fe42
pop edi
pop esi
pop edx
pop ecx
ret

Function at 0x840651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x84066e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84065f
add dl, dl
jne 0x840679
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8406c5
xor eax, eax
add dl, dl
jne 0x840686
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x840762
add dl, dl
jne 0x840695
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8406a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8406ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8406b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8406c0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x840665
mov eax, 1
add dl, dl
jne 0x8406d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8406de
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8406ca
sub eax, 2
jne 0x84070d
mov ecx, 1
add dl, dl
jne 0x8406f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8406fe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8406ea
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x840665
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x840724
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84072f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x84071b
cmp eax, 0x7d00
jae 0x840752
cmp eax, 0x500
jb 0x84074d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x840665
cmp eax, 0x7f
ja 0x840755
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x840665
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84077e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x840665
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x10003fa1
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x1000692a
call fcn.100065c7
push 0x10
call fcn.100054a4
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.10002436
mov esi, eax
push 0xa8
mov ecx, esi
call fcn.1000245e
push 1
call fcn.1000245e
call fcn.10002482
mov ecx, esi
call fcn.100052a8
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x10009500]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.100056ea
push 0x10
push esi
call fcn.100054d4
add esp, 0xc
call fcn.100065a4
ret 8
Function at 0x100043f9
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x144
mov eax, 0x10006994
call fcn.100065fa
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x144]
push str.SOFTWARETibiazQt_DLL_Gorgo
call fcn.100011f8
xor ebx, ebx
lea ecx, [ebp - 0x12c]
push str.remember
mov dword [ebp - 4], ebx
call fcn.100011f8
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x150], 0xff
mov dword [ebp - 0x14c], ebx
test eax, eax
jne 0x100044f4
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10004464
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100045ee
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x1000449a
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push ebx
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100045e2
cmp dword [ebp - 0x14c], 1
jne 0x100045e2
lea eax, [ebp - 0x114]
mov byte [0x100094c0], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
jmp 0x100045d8
cmp eax, 1
jne 0x1000456f
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x1000450e
mov eax, dword [ebp - 0x144]
push ebx
lea ecx, [ebp - 0x148]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100045ee
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
jb 0x10004548
mov edi, dword [ebp - 0x12c]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
push esi
call ebx
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100045e2
push esi
call ebx
jmp 0x100045d5
cmp eax, 2
jne 0x100045ee
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10004589
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 2
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100045ee
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x100045b8
mov eax, dword [ebp - 0x12c]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100045e2
mov esi, 0x10007334
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov ecx, 0x100094c4
call fcn.100019f6
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x12c]
call fcn.100011d5
lea ecx, [ebp - 0x144]
call fcn.100011d5
call fcn.100065b8
ret 8