joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5eb5b7
Capabilities:
Create directory

Disassembly:
sub esp, 0x390
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 5], bl
jne 0x5eb702
mov eax, dword [esi + 0x14]
mov byte [esi + 5], 1
cmp eax, ebx
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov byte [esi + 4], bl
je 0x5eb5dc
mov dword [eax + 4], ebx
mov eax, dword [str.updates_]
push edi
push eax
push 0x61f094
lea ecx, [esp + 0x20]
push 0x60b0bc
push ecx
call fcn.005f106c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
lea edx, [esp + 0x18]
push ebx
push edx
call edi
mov eax, dword [str.updates_tmp_]
lea ecx, [esp + 0x144]
push eax
push 0x61f094
push 0x60b0bc
push ecx
call fcn.005f106c
add esp, 0x10
lea edx, [esp + 0x144]
push ebx
push edx
call edi
mov eax, dword [esp + 0x3a0]
mov dword [esi + 0x18], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov ecx, esi
mov dword [esi + 0x20], eax
add eax, 8
push eax
call fcn.005ea8e0
test al, al
pop edi
je 0x5eb6a6
mov edx, dword [esi + 0x20]
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add eax, 8
cmp ecx, dword [eax]
jne 0x5eb694
push eax
mov ecx, esi
call fcn.005ea780
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
cmp eax, dword [ecx]
je 0x5eb70d
mov edx, dword [eax + 8]
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
add ecx, 8
push ecx
mov ecx, esi
call fcn.005ea8e0
test al, al
jne 0x5eb65c
mov edx, dword [esi + 0x20]
push 1
add edx, 0x14
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.005ea550
mov ecx, dword [eax]
lea edx, [esp + 0x26c]
push ecx
push 0x60b218
push edx
call fcn.005f106c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 0xc
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0041d810
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x26c]
mov edx, dword [eax + 0x38]
push edx
mov edx, dword [eax + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.005eb4c0
pop esi
pop ebx
add esp, 0x390
ret 4
mov dword [esi + 0x18], ebx
pop esi
pop ebx
add esp, 0x390
ret 4
Function at 0x5ecbb0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x5ecc1e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x624270]
mov esi, eax
push esi
push str.myWSAError___d
push 0
push 0
push ecx
push 0xc
push 0xc
push 0x9f
push str.C:_aqua_srchttpHTTPUtil.cpp
call fcn.00456580
mov ecx, dword [ebx]
add esp, 0x24
test ecx, ecx
je 0x5ecc16
mov edx, dword [ecx]
push esi
push 3
call dword [edx + 8]
pop esi
pop edi
xor al, al
pop ebx
ret 8
pop edi
mov al, 1
pop ebx
ret 8
Function at 0x5ef040
Capabilities:
Get file version info
Get keyboard layout

Disassembly:
sub esp, 0x40c
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x6298e8], eax
jne 0x5ef068
mov eax, dword [0x6298e4]
pop edi
pop esi
pop ebx
add esp, 0x40c
ret
cmp eax, 0xe0080404
mov dword [0x6298e8], eax
je 0x5ef07f
cmp eax, 0xe0090404
jne 0x5ef1fa
lea ecx, [esp + 0x18]
push 0x3ff
push ecx
push eax
call dword [0x628b24]
test eax, eax
jbe 0x5ef1fa
mov esi, str.TINTLGNT.IME
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5ef0c9
test cl, cl
je 0x5ef0c5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5ef0c9
add eax, 2
add esi, 2
test cl, cl
jne 0x5ef0a1
xor eax, eax
jmp 0x5ef0ce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5ef14a
mov esi, str.CINTLGNT.IME
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5ef103
test cl, cl
je 0x5ef0ff
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5ef103
add eax, 2
add esi, 2
test cl, cl
jne 0x5ef0db
xor eax, eax
jmp 0x5ef108
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5ef14a
mov esi, str.MSTCIPHA.IME
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5ef13d
test cl, cl
je 0x5ef139
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5ef13d
add eax, 2
add esi, 2
test cl, cl
jne 0x5ef115
xor eax, eax
jmp 0x5ef142
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5ef1fa
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x5ef1fa
push edi
call dword [0x6289bc]
mov esi, eax
add esp, 4
test esi, esi
je 0x5ef1f0
mov edx, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x20]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5ef1f0
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x609640
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5ef1f0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
cmp eax, 0x40002
je 0x5ef1d2
cmp eax, 0x40003
je 0x5ef1d2
cmp eax, 0x40004
je 0x5ef1d2
cmp eax, 0x50000
je 0x5ef1d2
cmp eax, 0x50001
je 0x5ef1d2
cmp eax, 0x50002
jne 0x5ef1f0
push esi
mov dword [0x6298e4], eax
call dword [0x6289b4]
mov eax, dword [0x6298e4]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x40c
ret
push esi
call dword [0x6289b4]
add esp, 4
pop edi
pop esi
mov dword [0x6298e4], 0
xor eax, eax
pop ebx
add esp, 0x40c
ret
Function at 0x5ef4c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov al, byte [0x6298d2]
push ebx
test al, al
push edi
je 0x5ef536
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5ef536
cmp dword [eax + 8], 0xe5
jne 0x5ef536
mov ecx, dword [eax + 4]
cmp ecx, 0x100
je 0x5ef4ef
cmp ecx, 0x104
jne 0x5ef536
mov eax, dword [eax]
push esi
push eax
call dword [0x6289ac]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov edi, eax
call esi
mov bx, ax
push 0x10
shr ebx, 0xf
and bl, 1
call esi
shr eax, 0xf
and al, 1
mov ecx, 0x61d641
pop esi
cmp byte [ecx - 1], bl
jne 0x5ef52b
cmp byte [ecx], al
jne 0x5ef52b
cmp dword [ecx + 3], edi
je 0x5ef53b
add ecx, 8
cmp ecx, 0x61d6e1
jl 0x5ef51d
pop edi
xor al, al
pop ebx
ret
pop edi
mov al, 1
pop ebx
ret

Function at 0x5ef750
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [0x6298c4]
sub esp, 8
cmp eax, 0x3b6
push esi
je 0x5ef767
cmp eax, 0x3a8
jne 0x5ef7e6
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x5ef78e
push eax
call dword [0x6298a0]
test eax, eax
mov byte [0x628d5c], 1
jne 0x5ef795
mov byte [0x628d5c], 0
mov edx, dword [0x628b04]
push edx
call dword [0x6289a4]
mov esi, eax
test esi, esi
je 0x5ef7df
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push esi
call dword [0x6289a8]
mov edx, dword [0x628b04]
push esi
push edx
call dword [0x629894]
mov al, byte [0x628d5c]
test al, al
je 0x5ef7df
mov al, byte [esp + 4]
mov byte [0x6298d8], 1
test al, 1
jne 0x5ef7e6
mov byte [0x6298d8], 0
pop esi
add esp, 8
ret
Function at 0x5efee0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp eax, 0xe0090404
je 0x5effaf
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x5effaf
cmp esi, 0x50001
mov byte [0x6298c1], 0
mov eax, str.MSTCIPH
jae 0x5eff22
mov eax, str.TINTLGNT
push eax
lea eax, [esp + 0x18]
push str.softwaremicrosoftwindowscurrentversion_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5effb6
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.keyboard_mapping
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5effb6
mov al, byte [esp + 4]
cmp esi, 0x50000
ja 0x5eff97
cmp al, 0x22
je 0x5effaf
cmp al, 0x23
je 0x5effaf
cmp esi, 0x50001
je 0x5effa7
cmp esi, 0x50002
jne 0x5effb6
cmp al, 0x22
jb 0x5effb6
cmp al, 0x24
ja 0x5effb6
mov byte [0x6298c1], 1
pop esi
add esp, 0x114
ret
Function at 0x413dc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x413de2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413dd8
mov eax, 1
add ebx, ebx
jne 0x413dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413df0
jne 0x413e0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413df0
xor ecx, ecx
sub eax, 3
jb 0x413e20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413e92
mov ebp, eax
add ebx, ebx
jne 0x413e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413e5c
inc ecx
add ebx, ebx
jne 0x413e48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413e3d
jne 0x413e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413e3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413e7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413e6d
jmp 0x413dde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413e7c
add edi, ecx
jmp 0x413dde
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413e9a
cmp byte [edi], 5
jne 0x413e9a
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 0x413e9f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413f0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14448]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x144fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413ecc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14500]
or eax, eax
je 0x413f08
mov dword [ebx], eax
add ebx, 4
jmp 0x413ee9
call dword [esi + 0x14510]
mov ebp, dword [esi + 0x14504]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x413f42
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x11692
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x116a7
mov eax, edx
ret
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x116cc
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x116c4
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x116d3
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x116b4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x116cf

Function at 0x14440
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x1448e
xor eax, eax
jmp 0x144ff
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x144b1
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1448a
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x144a6
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x144ef
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1448a
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1450a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x145cb
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x145d1
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x1456a
push ebx
push esi
call edi
jmp 0x145d1
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x145aa
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
push esi
call edi
mov eax, dword [ebp - 8]
jmp 0x145d3
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4daac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x98000]
push edi
jmp 0x4daada
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4daae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4daad0
mov eax, 1
add ebx, ebx
jne 0x4daaf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dab04
jne 0x4dab23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dab23
dec eax
add ebx, ebx
jne 0x4dab10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4daae8
add ebx, ebx
jne 0x4dab1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dab75
xor ecx, ecx
sub eax, 3
jb 0x4dab3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dabaa
sar eax, 1
mov ebp, eax
jmp 0x4dab46
add ebx, ebx
jne 0x4dab46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dab14
inc ecx
add ebx, ebx
jne 0x4dab54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dab14
add ebx, ebx
jne 0x4dab61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dab56
jne 0x4dab72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dab56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dab94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dab86
jmp 0x4daad6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dab94
add edi, ecx
jmp 0x4daad6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dabb2
cmp byte [edi], 0x11
jne 0x4dabb2
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 0x4dabb7
lea edi, [esi + 0xd6000]
mov eax, dword [edi]
or eax, eax
je 0x4dac2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x104b08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104c5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dabe4
mov ecx, edi
jns 0x4dac13
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 + 0x104c60]
or eax, eax
je 0x4dac29
mov dword [ebx], eax
add ebx, 4
jmp 0x4dac01
call dword [esi + 0x104c70]
mov ebp, dword [esi + 0x104c64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4dac63
sub esp, 0xffffff80
jmp 0x416310
Function at 0x401180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x406048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
mov dword [ebp - 0x21c], ebx
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
test eax, 0xffff0000
jne 0x40122f
mov ecx, eax
movzx edi, cx
push edi
call fcn.00402bd0
add esp, 4
cmp eax, ebx
je 0x401263
push eax
mov eax, edi
lea edi, [ebp - 0x21c]
call fcn.00402750
jmp 0x401263
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x401240
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401240
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x218]
push edx
mov edi, eax
lea ebx, [ebp - 0x21c]
call fcn.00402870
lea eax, [ebp - 0x21c]
push eax
push esi
mov ebx, str.TencentQQCollectionForOL
mov dword [ebp - 4], 1
call fcn.004023b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403476
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea esi, [ebp - 8]
call fcn.00401180
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [ebp - 0xc]
push edi
push ecx
call fcn.004012d0
mov eax, dword [eax]
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
cmp edi, 0xffffffff
je 0x401477
lea ecx, [ebp - 4]
xor eax, eax
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.00401100
mov esi, eax
add esp, 8
test esi, esi
je 0x401448
cmp esi, 0xb7
jne 0x401470
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40146c
xor esi, esi
jmp 0x401470
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
test esi, esi
je 0x401485
cmp esi, 0xb7
jne 0x40148c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c82
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x406048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, section..data
mov dword [ebp - 0x228], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x21c]
push eax
push 1
push esi
push str.CLSIDF284FAEF_A985_4A38_89AE_58CC337F4508InprocServer32
mov dword [ebp - 4], esi
push 0x80000000
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4015aa
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x21c]
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push esi
push esi
push edx
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40159d
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401580
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x218]
push ecx
mov edi, eax
call fcn.00402870
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403476
mov esp, ebp
pop ebp
ret