joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8c6
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 0x40f8f4
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 0x40f8fb
cmp ebx, dword [eax + 4]
jae 0x40f8fb
xor eax, eax
jmp 0x40faeb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f90c
xor eax, eax
inc eax
jmp 0x40faea
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f922
cmp ecx, edx
jae 0x40fa67
cmp dword [eax + 4], 0
je 0x40f92b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f913
cmp dword [ebp + 8], 0
je 0x40f94d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40fa67
cmp eax, esi
jae 0x40fa67
mov eax, dword [0x4210c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f972
cmp dword [esi*4 + 0x4210d0], edi
je 0x40fa6b
inc esi
cmp esi, eax
jl 0x40f960
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fae7
cmp dword [ebp - 8], 0x1000000
jne 0x40fae7
test byte [ebp - 0xc], 0xcc
je 0x40f9f0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40fae7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40fae7
cmp word [eax + 0x18], 0x10b
jne 0x40fae7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40fae7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f9f0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f9f0
test byte [ecx + 0x27], 0x80
jne 0x40fa67
push 1
push 0x421110
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f904
mov ecx, dword [0x4210c8]
test ecx, ecx
mov edx, ecx
jle 0x40fa24
lea eax, [ecx*4 + 0x4210cc]
cmp dword [eax], edi
je 0x40fa24
dec edx
sub eax, 4
test edx, edx
jg 0x40fa18
test edx, edx
jne 0x40fa55
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40fa31
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40fa49
lea eax, [edx*4 + 0x4210d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40fa37
cmp ecx, 0x10
jge 0x40fa55
inc ecx
mov dword [0x4210c8], ecx
push 0
push 0x421110
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f904
xor eax, eax
jmp 0x40faea
test esi, esi
jle 0x40f904
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x421110
call ebx
test eax, eax
jne 0x40f904
cmp dword [esi*4 + 0x4210d0], edi
je 0x40fac1
mov eax, dword [0x4210c8]
lea esi, [eax - 1]
test esi, esi
jl 0x40faaf
cmp dword [esi*4 + 0x4210d0], edi
je 0x40faab
dec esi
jns 0x40fa9f
test esi, esi
jge 0x40fabf
cmp eax, 0x10
jge 0x40faba
inc eax
mov dword [0x4210c8], eax
lea esi, [eax - 1]
jmp 0x40fac1
je 0x40fad9
xor ecx, ecx
test esi, esi
jl 0x40fad9
lea eax, [ecx*4 + 0x4210d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40fac7
push 0
push 0x421110
call ebx
jmp 0x40f904
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41164d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41c198
call fcn.0040f5fc
push 8
call fcn.0040f79b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x421174], esi
jne 0x411681
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x421170], esi
mov al, byte [ebp + 0x10]
mov byte [0x42116c], al
cmp dword [ebp + 0xc], edi
jne 0x4116cb
cmp dword [0x422908], edi
je 0x4116bb
mov eax, dword [0x422904]
sub eax, 4
mov dword [0x422904], eax
cmp eax, dword [0x422908]
jb 0x4116bb
mov eax, dword [eax]
cmp eax, edi
je 0x41169c
call eax
jmp 0x41169c
push 0x41f038
mov eax, 0x41f030
call fcn.004115cb
pop ecx
push 0x41f044
mov eax, 0x41f03c
call fcn.004115cb
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4116fc
cmp dword [ebp + 0x10], edi
jne 0x41170a
mov dword [0x421174], esi
push dword [ebp + 8]
call fcn.00411589
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411709
push 8
call fcn.0040f6e6
pop ecx
ret
call fcn.0040f637
ret

Function at 0x41232b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040e7a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4123c6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x421134]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4123c6
cmp eax, 1
je 0x4123e7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4123c6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412393
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4123c2
xor eax, eax
inc eax
jmp 0x412406
cmp edi, eax
jae 0x4123ca
xor eax, eax
jmp 0x412406
cmp eax, esi
jae 0x4123d1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421134]
jmp 0x4123ea
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41435e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41f908]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41fe90]
je 0x414393
inc eax
cmp eax, 0x13
jb 0x414384
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41fe90]
jne 0x4144b9
mov eax, dword [0x420f64]
cmp eax, 1
je 0x414491
cmp eax, edx
jne 0x4143c3
cmp dword [0x41f944], 1
je 0x414491
cmp ecx, 0xfc
je 0x4144b9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4143f9
lea eax, [ebp - 0x80]
push 0x41bd48
push eax
call fcn.004121a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004122a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41442d
mov eax, edi
push eax
call fcn.004122a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41bd44
push edi
call fcn.00414f10
add esp, 0x10
push edi
call fcn.004122a0
push dword [esi + 0x41fe94]
mov ebx, eax
call fcn.004122a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040e7a0
mov ebx, esp
push 0x41c630
push ebx
call fcn.004121a0
push edi
push ebx
call fcn.004121b0
push 0x41bd40
push ebx
call fcn.004121b0
push dword [esi + 0x41fe94]
push ebx
call fcn.004121b0
push 0x12010
push 0x41bd0c
push ebx
call fcn.00414e10
add esp, 0x2c
jmp 0x4144b9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41fe94]
push dword [esi]
call fcn.004122a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040da10
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x414981
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42139c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4149ca
call ebp
mov esi, eax
cmp esi, ebx
je 0x4149b0
mov dword [0x42139c], 1
jmp 0x4149cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4149c5
push 2
pop eax
mov dword [0x42139c], eax
jmp 0x4149ca
mov eax, dword [0x42139c]
cmp eax, 1
jne 0x414a27
cmp esi, ebx
jne 0x4149e2
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4149e2
xor eax, eax
jmp 0x414ace
cmp word [esi], bx
mov eax, esi
je 0x4149f7
inc eax
inc eax
cmp word [eax], bx
jne 0x4149e9
inc eax
inc eax
cmp word [eax], bx
jne 0x4149e9
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00410724
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x414a1a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x414ace
push ebp
push esi
push edi
call fcn.004127b0
add esp, 0xc
jmp 0x414a0c
cmp eax, 2
je 0x414a30
cmp eax, ebx
jne 0x4149db
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4149db
cmp byte [ebp], bl
mov esi, ebp
je 0x414a66
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4149db
push esi
add edi, eax
call fcn.004122a0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x414a43
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00410724
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x414adf
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x414ac0
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x414ad5
push edi
call fcn.004122a0
push esi
lea edi, [edi + eax + 1]
call fcn.0040e053
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x414a86
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040e0db
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4149db
Function at 0x414aeb
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4213a0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x414b2b
call esi
test eax, eax
je 0x414b10
mov dword [0x4213a0], 1
jmp 0x414b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414b27
mov dword [0x4213a0], 2
jmp 0x414b39
xor eax, eax
jmp 0x414b87
cmp eax, 1
jne 0x414b34
call esi
jmp 0x414b87
cmp eax, 2
jne 0x414b27
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x414b7f
lea eax, [esi + esi]
push eax
call fcn.00410724
mov ebp, eax
test ebp, ebp
pop ecx
je 0x414b7f
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x414b83
push ebp
call fcn.0040e0db
pop ecx
xor eax, eax
jmp 0x414b85
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x414e10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4213a4], ebx
push esi
push edi
jne 0x414e90
push 0x41c6d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414ecb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c6c4
push edi
call esi
test eax, eax
mov dword [0x4213a4], eax
je 0x414ecb
push 0x41c6b4
push edi
call esi
push 0x41c6a0
push edi
mov dword [0x4213a8], eax
call esi
cmp dword [0x421134], 2
mov dword [0x4213ac], eax
jne 0x414e90
push 0x41c684
push edi
call esi
test eax, eax
mov dword [0x4213b4], eax
je 0x414e90
push 0x41c66c
push edi
call esi
mov dword [0x4213b0], eax
mov eax, dword [0x4213b0]
test eax, eax
je 0x414ed5
call eax
test eax, eax
je 0x414ebc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4213b4]
test eax, eax
je 0x414ebc
test byte [ebp - 8], 1
jne 0x414ed5
cmp dword [0x421140], 4
jb 0x414ecf
or byte [ebp + 0x12], 0x20
jmp 0x414ef4
xor eax, eax
jmp 0x414f04
or byte [ebp + 0x12], 4
jmp 0x414ef4
mov eax, dword [0x4213a8]
test eax, eax
je 0x414ef4
call eax
mov ebx, eax
test ebx, ebx
je 0x414ef4
mov eax, dword [0x4213ac]
test eax, eax
je 0x414ef4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4213a4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41594f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41f908]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x415980
xor eax, eax
jmp 0x415b09
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4225c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4159bc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416cd8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415a97
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x415ad5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x415a20
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415a11
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4159f1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415a60
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415a69
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4159e2
jmp 0x415a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x415b04
cmp dword [ebp - 0x6c], edi
je 0x415ad5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x415aca
call fcn.00412667
mov dword [eax], 9
call fcn.00412670
mov dword [eax], esi
jmp 0x415aff
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415abf
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x415a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x415a6b
push dword [ebp - 0x6c]
call fcn.00412679
pop ecx
jmp 0x415aff
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415aed
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x415aed
xor eax, eax
jmp 0x415b07
call fcn.00412667
mov dword [eax], 0x1c
call fcn.00412670
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x415b07
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040da10
add ebp, 0x3a0
leave
ret
Function at 0x4174ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41769e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4225c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41769e
test cl, 0x48
je 0x417535
cmp byte [eax + 5], 0xa
je 0x417535
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417587
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41756f
call fcn.00412667
mov dword [eax], 9
call fcn.00412670
mov dword [eax], esi
jmp 0x41757f
cmp eax, 0x6d
je 0x41769e
push eax
call fcn.00412679
pop ecx
or eax, 0xffffffff
jmp 0x4176a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x417699
test eax, eax
je 0x4175ae
cmp byte [ebx], 0xa
jne 0x4175ae
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4175b7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x417693
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x417683
cmp al, 0xd
je 0x4175e9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x417675
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x417603
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4175fe
add dword [ebp + 0x10], 2
jmp 0x417657
mov dword [ebp + 0x10], eax
jmp 0x417671
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41762b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417671
cmp dword [ebp - 0xc], 0
je 0x417671
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41764c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x417657
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x417674
cmp ebx, dword [ebp + 0xc]
jne 0x41765c
cmp byte [ebp - 1], 0xa
jne 0x41765c
mov byte [ebx], 0xa
jmp 0x417674
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415830
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x417675
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4175cd
jmp 0x417693
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x417693
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4176a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4129b7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x4129d9
mov eax, 0xfffffffd
jmp 0x412a51
mov ebx, dword [0xef0c78]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x412a1f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0xef0c78]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x412a47
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x412a51
mov esp, ebp
pop ebp
ret 4
Function at 0x4179ed
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret

Function at 0x402140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x402166
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021fa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4021b5
cmp eax, 0x40
je 0x4021b5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402159
cmp eax, 0x40
je 0x402159
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x402159
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x404208
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401000
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x62c
mov eax, dword [0x404028]
xor eax, esp
mov dword [esp + 0x628], eax
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4032c0
push 0x80000002
call dword [section..rdata]
test eax, eax
jne 0x40116e
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x10]
push eax
push esi
push str.version
push ecx
mov dword [esp + 0x20], 4
mov dword [esp + 0x28], 0x104
call dword [0x403004]
test eax, eax
jne 0x401163
cmp dword [esp + 8], 1
jne 0x401163
lea eax, [esp + 0x424]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401090
sub eax, edx
sar eax, 1
je 0x401163
push 0x206
lea edx, [esp + 0x222]
push esi
push edx
mov dword [esp + 0x10], esi
mov word [esp + 0x228], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x1a
push esi
call dword [0x4031e4]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x21c]
push ecx
push edx
call dword [0x4031e0]
push 0x206
lea eax, [esp + 0x1a]
push esi
push eax
mov word [esp + 0x20], si
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll__snwprintf_s]
push str.QQ.msi
lea ecx, [esp + 0x434]
push ecx
lea edx, [esp + 0x230]
push edx
push str._sTencentQQSTempUninstall_s_s
push 0x208
lea eax, [esp + 0x34]
push 0x104
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
push 0x403358
push 0x104
push 0x104
push edi
call esi
add esp, 0x3c
mov eax, 1
pop esi
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.004019a6
add esp, 0x62c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [0x403008]
mov ecx, dword [esp + 0x62c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004019a6
add esp, 0x62c
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40245b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408420
add esp, 4
or eax, 0xffffffff
jmp 0x40248a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x402488
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x402488
mov dword [0x429c84], 0xd
mov dword [0x429c88], 5
or eax, 0xffffffff
jmp 0x40248a
xor eax, eax
mov esp, ebp
pop ebp
ret