joyce8/EMBER2024-capa huggingface dataset:
Function at 0x623429
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 0x623442
or eax, 0xffffffff
jmp 0x6234a3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x62349f
push 0x3d
push esi
call fcn.00624dae
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x62349f
cmp esi, eax
je 0x62349f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x16c7fdc]
sete cl
cmp eax, dword [0x16c7fe0]
mov dword [ebp - 8], ecx
jne 0x623485
mov edi, eax
call fcn.006233c8
mov dword [0x16c7fdc], eax
cmp eax, ebx
jne 0x6234de
cmp dword [ebp + 0xc], ebx
je 0x6234a7
cmp dword [0x16c7fe4], ebx
je 0x6234a7
call fcn.0061f5bc
test eax, eax
je 0x6234de
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x6234b0
xor eax, eax
jmp 0x6234a2
push 4
call fcn.0061222c
cmp eax, ebx
pop ecx
mov dword [0x16c7fdc], eax
je 0x62349f
mov dword [eax], ebx
cmp dword [0x16c7fe4], ebx
jne 0x6234de
push 4
call fcn.0061222c
cmp eax, ebx
pop ecx
mov dword [0x16c7fe4], eax
je 0x62349f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x16c7fdc]
call fcn.0062337b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x62353f
cmp dword [esi], ebx
je 0x62353f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00611cc8
cmp dword [ebp - 8], ebx
pop ecx
jne 0x623522
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x623580
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x623519
mov eax, edi
shl eax, 2
push eax
push dword [0x16c7fdc]
call fcn.00615016
cmp eax, ebx
pop ecx
pop ecx
je 0x623580
jmp 0x62357b
cmp dword [ebp - 8], ebx
jne 0x6235eb
cmp edi, ebx
jge 0x62354e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x16c7fdc]
call fcn.00615016
cmp eax, ebx
pop ecx
pop ecx
je 0x62349f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x16c7fdc], eax
cmp dword [ebp + 0xc], ebx
je 0x6235d5
push dword [ebp - 4]
call fcn.00617530
inc eax
inc eax
push eax
call fcn.0061222c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x6235d5
push dword [ebp - 4]
push esi
call fcn.00617430
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x6235ce
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00611cc8
pop ecx
cmp dword [ebp - 8], ebx
je 0x6235e3
push dword [ebp - 4]
call fcn.00611cc8
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x6234a2
push dword [ebp - 4]
call fcn.00611cc8
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x6234ac
Function at 0x62496f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00615620
mov eax, dword [0x6bd8a0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x16c87d4]
mov dword [ebp - 4], eax
jae 0x624ab2
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x16c87e0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x624ab2
push 1
push esi
push ebx
call fcn.006197d5
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x624abc
push 2
push esi
push ebx
call fcn.006197d5
add esp, 0xc
cmp eax, 0xffffffff
je 0x624abc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x624a5c
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.006208c0
push 0x8000
push ebx
call fcn.006256f1
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x624a1b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0061b4c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x624a39
sub edi, eax
test edi, edi
jg 0x624a10
jmp 0x624a4f
cmp dword [0x16c7fb4], 5
jne 0x624a4c
mov dword [0x16c7fb0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.006256f1
pop ecx
pop ecx
jmp 0x624a9c
jge 0x624a9c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.006197d5
push ebx
call fcn.00615543
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, 0xffffffff
jne 0x624a9c
mov dword [0x16c7fb0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x16c7fb4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.006197d5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x624abf
mov dword [0x16c7fb0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.006122a5
leave
ret
Function at 0x624e15
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6789e8
call fcn.00618e58
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x16c845c], edi
jne 0x624e59
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x624e44
mov dword [0x16c845c], ebx
jmp 0x624e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x624e59
mov dword [0x16c845c], 2
mov eax, dword [0x16c845c]
cmp eax, ebx
jne 0x624e79
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x624f3c
cmp eax, 2
je 0x624e82
cmp eax, edi
jne 0x624eaa
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x624e95
mov eax, dword [0x16c821c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x624eb1
xor eax, eax
jmp 0x624f3c
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00615620
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x624ee4
cmp esi, edi
jne 0x624efa
push dword [ebp - 0x20]
call fcn.0061222c
pop ecx
mov esi, eax
cmp esi, edi
je 0x624eaa
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x624f2d
cmp dword [ebp + 0x14], edi
jne 0x624f17
push edi
push edi
jmp 0x624f1d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x624f39
push esi
call fcn.00611cc8
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00618e93
ret
Function at 0x624f45
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6789f8
call fcn.00618e58
xor esi, esi
cmp dword [0x16c8460], esi
jne 0x624f89
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x624f74
mov dword [0x16c8460], edi
jmp 0x624f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x624f89
mov dword [0x16c8460], 2
mov eax, dword [0x16c8460]
cmp eax, 2
je 0x62506a
cmp eax, esi
je 0x62506a
cmp eax, 1
jne 0x624fce
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x624fb7
mov eax, dword [0x16c821c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x624fd5
xor eax, eax
jmp 0x62507c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00615620
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x62500b
cmp edi, esi
jne 0x625026
lea eax, [ebx + ebx]
push eax
call fcn.0061222c
pop ecx
mov edi, eax
cmp edi, esi
je 0x624fce
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x625059
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x625043
push esi
push esi
jmp 0x625049
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x625065
push edi
call fcn.00611cc8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x62507c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00618e93
ret
Function at 0x403631
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
jne 0x403653
xor eax, eax
jmp 0x403777
push edi
call fcn.0040352c
cmp word [eax], bx
jne 0x403665
jmp 0x40364c
cmp word [eax], bx
je 0x403672
inc dword [ebp - 4]
push eax
call fcn.0040359c
cmp eax, ebx
jne 0x403660
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403782
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x403699
xor esi, esi
jmp 0x40376e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40369e
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403782
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4036d4
xor esi, esi
jmp 0x403757
push edi
push esi
push eax
call fcn.004035f2
mov eax, dword [ebp - 0xc]
xor edi, edi
cmp word [eax], bx
je 0x40370e
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
push eax
inc edi
call fcn.00403550
cmp eax, ebx
je 0x40370e
cmp word [eax], bx
je 0x40370a
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.0040352c
cmp eax, ebx
jne 0x4036e1
xor esi, esi
cmp edi, ebx
jle 0x403740
mov eax, dword [ebp - 8]
lea ecx, [eax + esi*4]
mov eax, dword [ecx]
cmp word [eax], 0x22
jne 0x40373b
add eax, 2
push 0x22
push eax
mov dword [ecx], eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x40373b
xor ecx, ecx
mov word [eax], cx
inc esi
cmp esi, edi
jl 0x403714
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 3
push dword [ebp - 8]
push dword [ebp - 4]
call sub.MSDTCTM.dll_Ordinal_4
mov esi, eax
cmp dword [ebp - 0xc], ebx
je 0x403765
push dword [ebp - 0xc]
call fcn.004037b0
pop ecx
push dword [ebp - 8]
call fcn.004037b0
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x403ac9
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x407f90
call fcn.00403c84
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40b2f4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403884
cmp eax, esi
jne 0x403877
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x403887
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40385e
xor esi, esi
inc esi
mov eax, dword [0x40b2f0]
cmp eax, esi
jne 0x40389a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4038c9
mov eax, dword [0x40b2f0]
test eax, eax
jne 0x4038c3
mov dword [0x40b2f0], esi
push 0x4012ac
push 0x4012a0
call fcn.004037c0
pop ecx
pop ecx
test eax, eax
je 0x4038c9
jmp 0x4039ed
mov dword [0x4091ac], esi
mov eax, dword [0x40b2f0]
cmp eax, esi
jne 0x4038ed
push 0x40129c
push 0x401264
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40b2f0], 2
cmp dword [ebp - 0x20], ebx
jne 0x4038fa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40b2f8], ebx
je 0x40391b
push 0x40b2f8
call fcn.00403bf9
pop ecx
test eax, eax
je 0x40391b
push ebx
push 2
push ebx
call dword [0x40b2f8]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4039ed
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x403985
cmp cx, bx
je 0x403940
cmp dword [ebp - 0x1c], ebx
jne 0x403985
movzx ecx, word [eax]
cmp cx, bx
je 0x403955
cmp cx, 0x20
ja 0x403955
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x403940
test byte [ebp - 0x40], 1
je 0x403961
movzx ecx, word [ebp - 0x3c]
jmp 0x403964
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x4091a8], eax
cmp dword [0x40919c], ebx
jne 0x4039ca
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x403996
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x40392a
cmp dword [0x4091ac], ebx
jne 0x4039d8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4091a8]
jmp 0x4039f9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00403cc9
ret
call fcn.00403e77
jmp 0x403821
Function at 0x4041bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x20119
xor ebx, ebx
push ebx
push 0x4015c4
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40421f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40421f
cmp dword [ebp - 8], 4
je 0x404222
mov dword [ebp + 0xc], esi
cmp dword [ebp - 4], ebx
pop esi
pop ebx
je 0x404232
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 8

Function at 0x4042fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x20119
push ebx
push 0x401590
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40433e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004035b8
jmp 0x404399
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + esi - 2]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404373
push dword [ebp + 0x14]
push esi
push edi
call fcn.004035b8
jmp 0x40437e
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
cmp dword [ebp - 0xc], 1
je 0x40438e
push dword [ebp + 0x14]
push esi
push edi
call fcn.004035b8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40479b
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
and dword [ebp - 0x324], 0
push esi
mov esi, dword [ebp + 8]
push 0x4c
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jne 0x404817
lea eax, [ebp - 0x2cc]
push eax
mov dword [ebp - 0x2d0], eax
call dword [sym.imp.ntdll.dll_RtlCaptureContext]
and dword [ebp - 0x31c], esi
and dword [ebp - 0x314], esi
lea eax, [ebp - 0x324]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x324], 0xc00000e5
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x318], fcn.0040479b
lea esi, [ebp - 0x2d4]
call fcn.00404759
push 1
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlReportException]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
leave
ret 4
Function at 0x404842
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x19
pop ecx
mov esi, 0x401a30
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push 0x401a24
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x404899
cmp ebx, esi
jne 0x40487d
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
jmp 0x404880
mov dword [ebp - 0x68], ebx
push esi
lea eax, [ebp - 0x68]
push eax
push esi
push 1
push esi
push 0xc0001159
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
call fcn.0040423e
cmp edi, esi
je 0x4048a9
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push esi
call fcn.0040479b
int3

Function at 0x4053a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x4020a0
push dword [ebp + 0x14]
xor eax, eax
push dword [ebp + 0x18]
mov word [ecx], ax
call fcn.004035b8
mov ecx, dword [ebp + 0x20]
push dword [ebp + 8]
xor eax, eax
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4054e1
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4054e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4054e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4054e1
movzx esi, word [edi]
mov eax, esi
shr eax, 1
add eax, esi
call fcn.00407aa0
mov ebx, esp
push esi
push edi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40206c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40547b
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx]
xor eax, eax
cmp cx, word [eax*8 + 0x401d70]
je 0x405469
inc eax
cmp eax, 0x27
jb 0x405457
jmp 0x40547b
push dword [eax*8 + 0x401d74]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004035b8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x40135c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4054e1
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
je 0x4054c5
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x402054
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.00404296
mov eax, dword [ebp - 8]
add esp, 0x1c
test byte [eax + 0x1c], 1
mov eax, 0x40204c
jne 0x4054d5
mov eax, 0x402044
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
call fcn.004035b8
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f0d
leave
ret 0x1c
Function at 0x405595
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
shr eax, 0x1e
push esi
push edi
cmp eax, 1
jbe 0x4055b5
push 2
pop ebx
cmp eax, ebx
je 0x4055b8
xor ebx, ebx
inc ebx
jmp 0x4055b8
push 4
pop ebx
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00404cdc
mov esi, dword [ebp - 4]
cmp esi, edi
je 0x4055f2
movzx ecx, word [ebp + 0x18]
mov eax, dword [esi]
push edi
push dword [ebp + 0x1c]
push edi
push ecx
movzx ecx, word [ebp + 8]
push edi
push dword [ebp + 0xc]
push ecx
movzx ecx, bx
push ecx
push esi
call dword [eax + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x405622
push 0x402124
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x405622
push edi
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4056bb
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x87c], eax
xor eax, eax
push 0x206
mov word [ebp - 0x624], ax
xor edi, edi
lea eax, [ebp - 0x622]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x24c
lea eax, [ebp - 0x870]
push edi
push eax
xor esi, esi
mov dword [ebp - 0x874], edi
call sub.msvcrt.dll_memset
push ebx
push dword [ebp - 0x87c]
lea eax, [ebp - 0x624]
push 0x40213c
push 0x104
push eax
call fcn.00404296
add esp, 0x44
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x878], eax
cmp eax, 0xffffffff
je 0x4057db
inc esi
cmp word [ebp - 0x41c], di
je 0x4057ac
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jle 0x4057c4
lea eax, [ebp - 0x848]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
call fcn.004035b8
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x878]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405788
cmp esi, dword [ebp + 0x10]
jb 0x405871
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x87c]
lea eax, [ebp - 0x210]
push 0x401650
push 0x105
push eax
call fcn.00404296
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0x14
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x210]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x405871
xor ecx, ecx
push 0x402130
mov word [eax], cx
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.00404255
push ebx
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call edi
cmp dword [ebp - 0x878], 0xffffffff
pop edi
pop esi
pop ebx
je 0x405889
push dword [ebp - 0x878]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f0d
leave
ret 0xc
Function at 0x40589c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [ebp - 0x414], ax
mov word [ebp - 6], ax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00405047
xor edi, edi
cmp eax, edi
jl 0x40598d
push 0x40
lea eax, [ebp - 0x468]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 6
pop eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push edi
push edi
push 8
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x440], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405979
push esi
push 0xffffffffffffffff
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
mov eax, dword [ebp - 0x418]
pop esi
jmp 0x40597f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40598d
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00403f0d
leave
ret