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

Disassembly:
push 8
push 0x418588
call fcn.0040be78
push 8
call fcn.0040b321
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41d110], esi
jne 0x40e023
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41d10c], esi
mov al, byte [ebp + 0x10]
mov byte [0x41d108], al
cmp dword [ebp + 0xc], edi
jne 0x40e06d
cmp dword [0x41d668], edi
je 0x40e05d
mov eax, dword [0x41d664]
sub eax, 4
mov dword [0x41d664], eax
cmp eax, dword [0x41d668]
jb 0x40e05d
mov eax, dword [eax]
cmp eax, edi
je 0x40e03e
call eax
jmp 0x40e03e
push 0x41b028
mov eax, 0x41b020
call fcn.0040df6d
pop ecx
push 0x41b030
mov eax, 0x41b02c
call fcn.0040df6d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e09e
cmp dword [ebp + 0x10], edi
jne 0x40e0ac
mov dword [0x41d110], esi
push dword [ebp + 8]
call fcn.0040df2b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e0ab
push 8
call fcn.0040b26c
pop ecx
ret
call fcn.0040beb3
ret

Function at 0x41002e
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.00409ef0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4100c9
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 [0x41d0d0]
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 0x4100c9
cmp eax, 1
je 0x4100ea
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 0x4100c9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410096
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4100c5
xor eax, eax
inc eax
jmp 0x410109
cmp edi, eax
jae 0x4100cd
xor eax, eax
jmp 0x410109
cmp eax, esi
jae 0x4100d4
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 [0x41d0d0]
jmp 0x4100ed
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 0x410288
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41bec0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41be10]
je 0x4102bf
inc eax
cmp eax, 0x13
jb 0x4102b0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41be10]
jne 0x4103e2
mov eax, dword [0x41cf5c]
cmp eax, 1
je 0x4103bd
cmp eax, edx
jne 0x4102ef
cmp dword [0x41b754], 1
je 0x4103bd
cmp ecx, 0xfc
je 0x4103e2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410325
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0040f870
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0040f0a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410359
mov eax, edi
push eax
call fcn.0040f0a0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x418bc0
push edi
call fcn.004098f0
add esp, 0x10
push edi
call fcn.0040f0a0
push dword [esi + 0x41be14]
mov ebx, eax
call fcn.0040f0a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409ef0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040f870
push edi
push ebx
call fcn.0040f880
push 0x418ba0
push ebx
call fcn.0040f880
push dword [esi + 0x41be14]
push ebx
call fcn.0040f880
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00412be9
add esp, 0x2c
jmp 0x4103e2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41be14]
push dword [esi]
call fcn.0040f0a0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00411128
add ebp, 0x90
leave
ret
Function at 0x410ddd
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 0x410e0b
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 0x410e12
cmp ebx, dword [eax + 4]
jae 0x410e12
xor eax, eax
jmp 0x411002
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410e23
xor eax, eax
inc eax
jmp 0x411001
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410e39
cmp ecx, edx
jae 0x410f7e
cmp dword [eax + 4], 0
je 0x410e42
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410e2a
cmp dword [ebp + 8], 0
je 0x410e64
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410f7e
cmp eax, esi
jae 0x410f7e
mov eax, dword [0x41d320]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410e89
cmp dword [esi*4 + 0x41d328], edi
je 0x410f82
inc esi
cmp esi, eax
jl 0x410e77
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410ffe
cmp dword [ebp - 8], 0x1000000
jne 0x410ffe
test byte [ebp - 0xc], 0xcc
je 0x410f07
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410ffe
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410ffe
cmp word [eax + 0x18], 0x10b
jne 0x410ffe
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410ffe
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410f07
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410f07
test byte [ecx + 0x27], 0x80
jne 0x410f7e
push 1
push 0x41d368
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410e1b
mov ecx, dword [0x41d320]
test ecx, ecx
mov edx, ecx
jle 0x410f3b
lea eax, [ecx*4 + 0x41d324]
cmp dword [eax], edi
je 0x410f3b
dec edx
sub eax, 4
test edx, edx
jg 0x410f2f
test edx, edx
jne 0x410f6c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410f48
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410f60
lea eax, [edx*4 + 0x41d328]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410f4e
cmp ecx, 0x10
jge 0x410f6c
inc ecx
mov dword [0x41d320], ecx
push 0
push 0x41d368
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410e1b
xor eax, eax
jmp 0x411001
test esi, esi
jle 0x410e1b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41d368
call ebx
test eax, eax
jne 0x410e1b
cmp dword [esi*4 + 0x41d328], edi
je 0x410fd8
mov eax, dword [0x41d320]
lea esi, [eax - 1]
test esi, esi
jl 0x410fc6
cmp dword [esi*4 + 0x41d328], edi
je 0x410fc2
dec esi
jns 0x410fb6
test esi, esi
jge 0x410fd6
cmp eax, 0x10
jge 0x410fd1
inc eax
mov dword [0x41d320], eax
lea esi, [eax - 1]
jmp 0x410fd8
je 0x410ff0
xor ecx, ecx
test esi, esi
jl 0x410ff0
lea eax, [ecx*4 + 0x41d328]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410fde
push 0
push 0x41d368
call ebx
jmp 0x410e1b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412be9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d3ec], ebx
push esi
push edi
jne 0x412c69
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412ca4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41924c
push edi
call esi
test eax, eax
mov dword [0x41d3ec], eax
je 0x412ca4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d3f0], eax
call esi
cmp dword [0x41d0d0], 2
mov dword [0x41d3f4], eax
jne 0x412c69
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d3fc], eax
je 0x412c69
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41d3f8], eax
mov eax, dword [0x41d3f8]
test eax, eax
je 0x412cae
call eax
test eax, eax
je 0x412c95
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d3fc]
test eax, eax
je 0x412c95
test byte [ebp - 8], 1
jne 0x412cae
cmp dword [0x41d0dc], 4
jb 0x412ca8
or byte [ebp + 0x12], 0x20
jmp 0x412ccd
xor eax, eax
jmp 0x412cdd
or byte [ebp + 0x12], 4
jmp 0x412ccd
mov eax, dword [0x41d3f0]
test eax, eax
je 0x412ccd
call eax
mov ebx, eax
test ebx, ebx
je 0x412ccd
mov eax, dword [0x41d3f4]
test eax, eax
je 0x412ccd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d3ec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412ed7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00409ef0
mov eax, dword [0x41bec0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040d029
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41300c
push 2
push esi
push dword [ebp + 8]
call fcn.0040d029
add esp, 0xc
cmp eax, ebx
je 0x41300c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x412fac
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f750
push 0x8000
push dword [ebp + 8]
call fcn.00413261
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x412f62
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040c0e6
add esp, 0xc
cmp eax, 0xffffffff
je 0x412f82
sub edi, eax
test edi, edi
jg 0x412f5a
jmp 0x412f9a
call fcn.00409e66
cmp dword [eax], 5
jne 0x412f97
call fcn.00409e5d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00413261
pop ecx
pop ecx
jmp 0x412ff4
jge 0x412ff4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d029
push dword [ebp + 8]
call fcn.00411231
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x412ff4
call fcn.00409e5d
mov dword [eax], 0xd
call fcn.00409e66
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040d029
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41300e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411128
leave
ret
Function at 0x413785
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41379e
or eax, 0xffffffff
jmp 0x4137ff
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4137fb
push 0x3d
push esi
call fcn.00413986
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4137fb
cmp esi, eax
je 0x4137fb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x41d0f0]
sete cl
cmp eax, dword [0x41d0f4]
mov dword [ebp - 4], ecx
jne 0x4137e1
mov edi, eax
call fcn.00413724
mov dword [0x41d0f0], eax
cmp eax, ebx
jne 0x41383a
cmp dword [ebp + 0xc], ebx
je 0x413803
cmp dword [0x41d0f8], ebx
je 0x413803
call fcn.004131d1
test eax, eax
je 0x41383a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41380c
xor eax, eax
jmp 0x4137fe
push 4
call fcn.00409552
cmp eax, ebx
pop ecx
mov dword [0x41d0f0], eax
je 0x4137fb
mov dword [eax], ebx
cmp dword [0x41d0f8], ebx
jne 0x41383a
push 4
call fcn.00409552
cmp eax, ebx
pop ecx
mov dword [0x41d0f8], eax
je 0x4137fb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x41d0f0]
sub edi, esi
push esi
call fcn.004136d7
mov edi, eax
test edi, edi
pop ecx
jl 0x4138a1
cmp dword [ebx], 0
je 0x4138a1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004091b2
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x413881
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4138e2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x413878
mov eax, edi
shl eax, 2
push eax
push dword [0x41d0f0]
call fcn.0040a0a0
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4138e2
jmp 0x4138dd
cmp dword [ebp - 4], 0
jne 0x413949
test edi, edi
jge 0x4138b1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41d0f0]
call fcn.0040a0a0
test eax, eax
pop ecx
pop ecx
je 0x4137fb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x41d0f0], eax
cmp dword [ebp + 0xc], 0
je 0x413934
push esi
call fcn.0040f0a0
inc eax
inc eax
push eax
call fcn.00409552
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x413934
push esi
push edi
call fcn.0040f870
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41392d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004091b2
pop ecx
cmp dword [ebp - 4], 0
je 0x413941
push esi
call fcn.004091b2
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4137fe
push esi
call fcn.004091b2
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x413808
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x4011de
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x402018]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x844]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x888]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x210], si
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x41c], si
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
mov word [ebp - 0x830], si
mov ecx, 0x104
lea edi, [ebp - 0x82e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 0x884], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x40130f
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x401285
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x4010fc
push eax
call edi
add esp, 0xc
call fcn.004011a9
test eax, eax
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x830]
push 0x4010d0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x888]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40135c
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push 0x400
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401372
push 0x10
push 0x4010bc
push dword [ebp - 0x834]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401372
push dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.004013f8
leave
ret
Function at 0x4148b9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
je 0x4148e2
lea eax, [ebp - 0x714]
push eax
call fcn.0041285c
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00412811
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x4148ed
jmp fcn.004148f2
jmp fcn.004141ee

Function at 0x4149ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x414a10
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0041284c
sub dword [ebx - 0x774300e], ecx
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0041284c
add dl, bl
test al, 0x83
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x414a39
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x414a39
call fcn.0041284c
int1
inc eax
adc byte [ebp + 0x3245a8b], dl
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0041284c
cmc
pop esi
leave
cdq
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.0041304c
inc ebp
add al, ch
sub eax, 0x68fffeee
push 0x5600453a
call fcn.0043fb09
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x414aa8
push dword [ebp - 8]
call fcn.00403aa4
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x4214e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.0040229e
mov esi, eax
test esi, esi
jns 0x42150f
push str.Failed_to_copy_file_name.
jmp 0x4215fb
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x42155b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42153a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421541
mov esi, 0x80004005
push esi
push 0x8c
push str.c:_agent_work66_s_src_burnenginecabextract.cpp
call fcn.004038ba
push str.Failed_to_create_begin_operation_event.
jmp 0x4215fb
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x42159e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421580
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421587
mov esi, 0x80004005
push esi
push 0x8f
push str.c:_agent_work66_s_src_burnenginecabextract.cpp
call fcn.004038ba
push str.Failed_to_create_operation_complete_event.
jmp 0x4215fb
push ebx
push ebx
push edi
push 0x420ea0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x4215ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4215cc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4215d3
mov esi, 0x80004005
push esi
push 0x93
push str.c:_agent_work66_s_src_burnenginecabextract.cpp
call fcn.004038ba
push str.Failed_to_create_extraction_thread.
jmp 0x4215fb
push edi
call fcn.00421286
mov esi, eax
test esi, esi
jns 0x421603
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.0043fb09
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426951
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4269be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42699a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4269a1
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work66_s_src_burnenginemsuengine.cpp
call fcn.004038ba
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0043fb09
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042dd1f
leave
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040bbb3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040bbb3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040bbb3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040bbb3
mov dword [0x41203c], eax
call fcn.0040bbb3
test eax, eax
jge 0x402550
push 8
call fcn.0040bbb3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040bbb3
pop ecx
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040bbb3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040bbb3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040bbb3
jmp 0x402495

Function at 0x40bbb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40bbc2
pop dword [ebp - 0xc]
mov eax, 0x40bbc2
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x367cd
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x3c1a
mov esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0xc]
mov edx, 0x3c63f41f
sub edx, 0x4038c51e
mov ebx, dword [edi]
xor ebx, edx
add dword [ebp - 4], edx
mov dword [esi], ebx
xor dword [ebp - 4], 0x5a9b25f7
add esi, 0x66c5cefd
sub esi, 0x66c5cef9
add edi, 0xdca40eab
add edi, 0x235bf159
loop 0x40bc0b
add eax, 0xbc2e9396
sub eax, 0xbc2db05b
mov ebx, eax
add eax, 0x5187c2c5
sub eax, 0x5187c2c0
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret