joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b1a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405c03
cmp byte [edi + 0x4a], 0
je 0x405c03
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405b58
xor al, al
jmp 0x405c05
lea esi, [ebp - 0x20]
call fcn.004053c5
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405ba5
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405baa
dec eax
je 0x405bae
dec eax
dec eax
je 0x405bff
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004054f9
mov al, bl
pop ebx
jmp 0x405c05
mov edx, dword [ebp - 0x20]
jmp 0x405b6f
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405bba
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405be0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405bcd
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040da33
add esp, 0x10
cmp esi, eax
jne 0x405b92
cmp byte [edi + 0x4a], 0
je 0x405bff
test esi, esi
jne 0x405b61
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405409
jmp 0x405b61
mov bl, 1
jmp 0x405b94
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bad1
leave
ret
Function at 0x406837
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x40686d
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406986
push 0x422888
push edi
call fcn.00401312
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4068b6
mov eax, dword [esi]
jmp 0x4068b8
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406986
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406907
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.00401312
jmp 0x406986
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x40691c
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406986
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422b24
push 0x40
push eax
call fcn.0040681b
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012da
mov edi, dword [ebp - 0x4bc]
call fcn.00401364
push ebx
push 1
mov ecx, esi
call fcn.00401451
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bad1
leave
ret 4

Function at 0x406999
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040aecb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4069db
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426560
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426560]
xor cx, word [edx*2 + 0x426560]
inc edx
mov word [edi + edx*2 + 0x42655e], cx
cmp edx, dword [ebp + 0xc]
jl 0x4069bb
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x407246
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041ace0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4072b8
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x4072b6
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x4072a8
push eax
push ebx
call fcn.004072ca
test al, al
je 0x4072af
inc edi
cmp edi, esi
jb 0x407292
jmp 0x4072b6
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bad1
leave
ret
Function at 0x4075cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4075d4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4075ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4075ef
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e1ff
push eax
call fcn.0040e1cc
pop ecx
pop ecx
call fcn.0040e1de
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x40764c
mov eax, dword [esi]
jmp 0x40764e
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x426190
call fcn.00406999
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012da
mov esi, eax
call fcn.00401364
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401451
cmp dword [edi + 0x14], 8
jb 0x4076a4
mov eax, dword [edi]
jmp 0x4076a6
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4076ca
shr eax, 4
and al, 1
je 0x4076ca
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407642
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bad1
leave
ret
Function at 0x4076da
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.00404387
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40771a
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407753
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401451
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bad1
leave
ret 4
push 0x422880
lea esi, [ebp - 0x284]
call fcn.004012da
push 0x422884
lea esi, [ebp - 0x268]
call fcn.004012da
test byte [ebp - 0x4d4], 0x10
je 0x4077d2
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.00406565
test eax, eax
je 0x40783c
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.00406565
test eax, eax
je 0x40783c
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012da
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.004076da
jmp 0x40782d
cmp dword [edi + 0x14], 8
jb 0x4077dc
mov eax, dword [edi]
jmp 0x4077de
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
push 5
push 0x42619c
call fcn.00406999
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012da
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x407826
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401451
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407773
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407861
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401451
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401451
mov bl, 1
jmp 0x407731
Function at 0x409091
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40909c
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x409150
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422410]
add ecx, 8
sub edi, 8
dec esi
jne 0x4090b3
pop ebx
test edi, edi
je 0x409169
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x422410]
inc ecx
dec edi
jne 0x409154
pop esi
not eax
pop edi
ret

Function at 0x40916e
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422410]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422410]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4097d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x409801
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4097fc
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x409829
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x409812
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040e6c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40a5b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40a658
cmp dword [ebx + 4], 0xffffffff
jne 0x40a658
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a5e3
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40a61b
cmp eax, 0x2f
je 0x40a61b
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40a607
mov edi, esi
mov esi, 0x42104c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c123
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.00409a46
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40a65d
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40bad1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40badb
repz ret
jmp fcn.004105d3
Function at 0x41c033
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411268
and dword [ebp - 0x14], 0
cmp dword [0x4768d4], 0
mov dword [ebp - 0x18], eax
jne 0x41c0e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c18e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420f84
push ebx
call edi
test eax, eax
je 0x41c18e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4768d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4768d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4768dc], eax
call edi
push eax
call esi
mov dword [0x4768e4], eax
test eax, eax
je 0x41c0e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4768e0], eax
mov eax, dword [0x4768e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c13f
cmp dword [0x4768e4], ecx
je 0x41c13f
push eax
call esi
push dword [0x4768e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c13f
test ebx, ebx
je 0x41c13f
call edi
test eax, eax
je 0x41c136
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c136
test byte [ebp - 8], 1
jne 0x41c13f
or dword [ebp + 0x10], 0x200000
jmp 0x41c172
mov eax, dword [0x4768d8]
cmp eax, dword [ebp - 0x18]
je 0x41c172
push eax
call esi
test eax, eax
je 0x41c172
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c172
mov eax, dword [0x4768dc]
cmp eax, dword [ebp - 0x18]
je 0x41c172
push eax
call esi
test eax, eax
je 0x41c172
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4768d4]
call esi
test eax, eax
je 0x41c18e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c190
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bad1
leave
ret
Function at 0x414f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x414f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414f30
mov eax, 1
add ebx, ebx
jne 0x414f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414f48
jne 0x414f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414f48
xor ecx, ecx
sub eax, 3
jb 0x414f78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414fea
mov ebp, eax
add ebx, ebx
jne 0x414f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414fb4
inc ecx
add ebx, ebx
jne 0x414fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414f95
jne 0x414fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414f95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414fc5
jmp 0x414f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414fd4
add edi, ecx
jmp 0x414f36
pop esi
mov edi, esi
mov ecx, 0xf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414ff2
cmp byte [edi], 0
jne 0x414ff2
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 0x414ff7
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x415066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18bf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18c34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18c38]
or eax, eax
je 0x415060
mov dword [ebx], eax
add ebx, 4
jmp 0x415041
call dword [esi + 0x18c48]
mov ebp, dword [esi + 0x18c3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x41509a
sub esp, 0xffffff80
jmp 0x4012ad
Function at 0x401035
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x407696
call fcn.004073d7
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
push str.TencentQQLiveFlashDllFlash.ocx
mov ecx, edi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, edi
call esi
push eax
lea eax, [ebp - 0x21c]
push str.OSRoot:
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call esi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileExist_wchar_t_const__]
test eax, eax
pop ecx
je 0x4010e0
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, ebx
call fcn.0040745a
ret
push 0x4088d0
mov ecx, edi
call dword [0x408050]
jmp 0x4010c8
Function at 0x403186
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x21c
mov eax, 0x40753c
call fcn.004073d7
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
je 0x4032c0
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403300
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [ebp - 0x21c]
call edi
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
jne 0x403217
push 0x40a4a8
lea ecx, [ebp - 0x21c]
call dword [0x408050]
lea ecx, [ebp - 0x228]
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
push str._s_regsvr32.exe
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x224]
call edi
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
lea ecx, [ebp - 0x220]
call edi
push eax
lea ecx, [ebp - 0x21c]
call edi
push eax
lea eax, [ebp - 0x224]
push str._s__s___s_
push eax
call ebx
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
add esp, 0x10
push 5
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x224]
call edi
push eax
lea ecx, [ebp - 0x228]
call edi
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], bl
call esi
jmp 0x403300
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.Common.dll_struct_HINSTANCE______cdecl_Util::Sys::SafeLoadLibrary_wchar_t_const__]
mov edi, eax
cmp edi, 0x20
pop ecx
jb 0x403300
cmp dword [ebp + 0xc], ebx
je 0x4032e7
push str.DllRegisterServer
jmp 0x4032ec
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4032f9
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call esi
call fcn.0040745a
ret
Function at 0x40366c
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [ebp - 4], ebx
je 0x403748
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x403748
push dword [ebp - 4]
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
je 0x4036e9
cmp dword [0x40d4b4], 2
jne 0x4036e0
push str.GetIpForwardTable_fail_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
push edi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x403767
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
jbe 0x40372f
lea esi, [edi + 4]
cmp dword [0x40d4b4], 2
jne 0x403719
push dword [esi + 4]
push dword [esi]
push str.MIB_IPFORWARDROW__lu__lu_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
cmp dword [esi], ebx
jne 0x403722
cmp dword [esi + 4], ebx
je 0x40373b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x38
cmp eax, dword [edi]
jb 0x4036f3
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
jmp 0x40376a
push edi
call dword [sym.imp.MSVCR80.dll_free]
xor eax, eax
pop ecx
inc eax
jmp 0x40376a
cmp dword [0x40d4b4], 2
jne 0x403768
push str.size__0__malloc_fail_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40376f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x40d01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x7fe
lea eax, [ebp - 0x802]
push edi
push eax
mov word [ebp - 0x804], di
call sub.MSVCR80.dll_memset
push 0xffffffffffffffff
push str.SOFTWARETencent_bugReport_
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push 0x40d4e0
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x28
lea eax, [ebp - 0x810]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x804]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403850
push 4
pop esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
push str.lcdbg
push dword [ebp - 0x810]
mov dword [ebp - 0x808], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x80c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80c], esi
je 0x403848
mov dword [ebp - 0x808], edi
mov eax, dword [ebp - 0x808]
jmp 0x403852
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004069a4
leave
ret