joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43177a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4317c5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00431915
test al, al
jne 0x4317bf
sub edx, 2
cmp edx, edi
jne 0x4317a5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4317e7
lea eax, [edi + 2]
cmp edx, eax
je 0x4317e7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004316c6
add esp, 0x10
jmp 0x4318e1
push esi
lea ecx, [ebp - 0x255]
call fcn.00431915
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43182a
push dword [ebp - 0x25c]
jmp 0x4317d7
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x431867
cmp word [ebp - 0x226], 0
je 0x431888
cmp word [ebp - 0x226], ax
jne 0x431867
cmp word [ebp - 0x224], 0
je 0x431888
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004316c6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4318d4
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x431841
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4318bc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4318e1
push 0x4314f6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00437e10
add esp, 0x10
jmp 0x4318b1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b0a8
leave
ret

Function at 0x4347ce
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042acb0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43483d
cmp esi, dword [ebp - 4]
je 0x434838
cmp dword [ebp + 0xc], 0
je 0x434838
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x434815
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00434320
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43483f
xor eax, eax
inc eax
jmp 0x43483f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4348a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042acb0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042acb0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43491b
cmp word [ecx], dx
je 0x43491b
mov eax, dword [0x44191c]
push edi
dec eax
push eax
push 0x441808
call fcn.00434843
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43498e
cmp word [eax], dx
je 0x43498e
mov eax, dword [edi]
test eax, eax
je 0x43493f
cmp word [eax], dx
je 0x43493f
lea eax, [ebp - 0x10]
push eax
call fcn.00434226
jmp 0x434948
lea eax, [ebp - 0x10]
push eax
call fcn.004342c1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4349b8
mov eax, dword [0x441804]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4414f8
call fcn.00434843
add esp, 0xc
test al, al
je 0x4349b8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x434983
cmp word [eax], di
je 0x434983
lea eax, [ebp - 0x10]
push eax
call fcn.00434226
pop ecx
jmp 0x4349ba
lea eax, [ebp - 0x10]
push eax
call fcn.004342c1
jmp 0x434980
mov eax, dword [edi]
test eax, eax
je 0x4349a5
cmp word [eax], dx
je 0x4349a5
lea eax, [ebp - 0x10]
push eax
call fcn.004341db
pop ecx
jmp 0x4349b8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x434a83
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004346c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x434a83
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x434a83
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x434a83
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x434a10
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b62d
test ebx, ebx
je 0x434a7e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b62d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434a83
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434a83
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004384b0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x434a85
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b0a8
leave
ret
Function at 0x438bf5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00438b71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x438d64
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x438d64
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x438d19
jg 0x438c51
test eax, eax
je 0x438d0f
push 1
push 0x1000
call fcn.0042af9b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x438c74
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x438d06
push 0x8000
push ebx
call fcn.00428f94
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x438c9d
jg 0x438c98
cmp ecx, 0x1000
jb 0x438c9d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042c6ca
add esp, 0x10
cmp eax, 0xffffffff
je 0x438ce2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x438c98
jl 0x438cc9
test ecx, ecx
jne 0x438c8a
push dword [ebp - 0xc]
push ebx
call fcn.00428f94
push esi
call fcn.0042aff8
add esp, 0xc
xor ebx, ebx
jmp 0x438d72
cmp byte [edi + 0x24], 0
je 0x438cf9
cmp dword [edi + 0x20], 5
jne 0x438cf9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x438d04
mov ebx, dword [edi + 0x18]
jmp 0x438d06
xor ebx, ebx
push esi
call fcn.0042aff8
pop ecx
jmp 0x438d72
test ecx, ecx
jg 0x438cdb
jl 0x438d19
test eax, eax
jae 0x438cdb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e217
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x438d39
cmp byte [edi + 0x1c], 0
je 0x438cdb
jmp 0x438d6a
push ebx
call fcn.0043279f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x438cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x438d72
cmp byte [edi + 0x1c], 0
je 0x438d6f
mov ebx, dword [edi + 0x18]
jmp 0x438d72
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042e217
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x439e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401371
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401390
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401384
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012d9
mov dword [0x4030fe], eax
push 0x403010
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013d4
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013e5
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4013f9
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x401407
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x401423
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.00401165
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401476
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014ec
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b88
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012a4
push dword [ebp + 0xc]
call fcn.00401272
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401757
add eax, dword [ebp + 8]
call eax
leave
ret 8

Function at 0x4024e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x402502
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x4024f4
pop ebx
pop esi
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x1000408d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
push 0x10001b24
push 0x32
mov word [eax], cx
mov ecx, dword [ebp + 0x10]
pop edx
call fcn.10002860
mov eax, dword [ebp + 0x18]
xor ecx, ecx
push 0x10001bec
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x100041d8
xor edi, edi
push edi
push 1
push 0x10
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
test eax, eax
je 0x100041d8
push eax
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0x100041d8
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100041d8
movzx esi, word [ebx]
mov eax, esi
shr eax, 1
add eax, esi
call fcn.100064b0
mov eax, esp
push esi
push ebx
push eax
mov dword [ebp - 0xc], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10001b3c
push esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x10004171
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, word [edi*8 + 0x100010c0]
je 0x1000415f
inc edi
cmp edi, 0x27
jb 0x1000414d
jmp 0x10004171
push dword [edi*8 + 0x100010c4]
mov ecx, dword [ebp + 8]
push 5
pop edx
call fcn.10002860
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x10001814
push esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x100041d8
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
movzx edx, ax
cmp eax, 0xffffffff
je 0x100041bc
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 0xa]
push edx
push eax
push 0x10001b70
push 0x32
push dword [ebp + 0x10]
call fcn.10003c11
mov ecx, dword [ebp - 8]
add esp, 0x1c
test byte [ecx + 0x1c], 1
mov eax, 0x10001b88
jne 0x100041cc
mov eax, 0x10001b90
mov ecx, dword [ebp + 0x18]
push eax
push 5
pop edx
call fcn.10002860
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005ed0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10004278
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0xc], ebx
shr eax, 0x1e
push esi
push edi
cmp eax, 1
jbe 0x100042ab
push 2
pop edi
cmp eax, edi
je 0x100042ae
xor edi, edi
inc edi
jmp 0x100042ae
push 4
pop edi
mov esi, dword [0x10008d64]
test esi, esi
je 0x10004311
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, esi
call dword [0x1000a1a0]
call esi
test eax, eax
js 0x10004311
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000430e
mov esi, dword [ebx]
xor eax, eax
push eax
push dword [ebp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
push 1
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx eax, ax
push eax
movzx eax, di
push eax
push ebx
call dword [0x1000a1a0]
call dword [esi + 0xc]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1000a1a0]
call esi
jmp 0x10004342
mov ebx, dword [ebp - 0xc]
push 0x10001c04
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x10004342
xor eax, eax
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
mov eax, dword [ebp - 0x10]
push ebx
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005ed0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100044f2
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10007014]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x414], ax
mov edx, 0x208
mov word [ebp - 6], ax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.10003bda
test eax, eax
js 0x100045e7
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x46c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x440], 0x81
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
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x100045d4
push 0xffffffffffffffff
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
push dword [ebp - 0x428]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
jmp 0x100045da
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x100045e6
movzx eax, ax
or eax, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005ed0
mov esp, ebp
pop ebp
ret
Function at 0x10004e99
Capabilities:
Print debug messages

Disassembly:
push 0x18
push 0x100066a0
call fcn.10006364
xor esi, esi
mov dword [ebp - 0x24], esi
mov ebx, esi
mov dword [ebp - 0x20], ebx
cmp dword [0x1000907c], ebx
je 0x10004ec6
push 0x10009064
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
xor eax, eax
mov word [0x10007350], ax
cmp dword [ebp + 0x14], eax
je 0x10004efa
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov edx, 0x3fd
mov ecx, 0x10007350
call fcn.10003bda
xor eax, eax
mov word [0x10007b4a], ax
mov ax, word [0x10007350]
mov edi, 0x400
test ax, ax
je 0x10004f15
push 0x10001e58
mov edx, edi
mov ecx, 0x10007350
call fcn.10002895
mov ecx, 0x10007350
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10004f1d
sub ecx, edx
sar ecx, 1
sub edi, ecx
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
call fcn.10003dd0
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], esi
je 0x10004f4b
lea eax, [ebp - 0x1c]
push eax
call fcn.10003f85
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [edi]
call fcn.10003fbd
cmp dword [edi], esi
jne 0x10004f60
cmp dword [edi + 0x18], esi
je 0x10004f71
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.10004037
lea eax, [ebp - 0x1c]
push eax
call fcn.100041ee
movzx ecx, word [edi + 4]
mov dword [ebp - 0x28], 0x10007350
lea eax, [ebp - 0x28]
push eax
sub esp, 0xc
mov edx, dword [edi + 8]
call fcn.10004278
mov eax, dword [edi + 8]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
jne 0x10004fa9
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.10005041
cmp dword [edi + 0x18], esi
je 0x10005033
cmp dword [edi + 0x1c], esi
je 0x1000501c
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
test eax, eax
jne 0x10004fd1
cmp byte [0x7ffe02d4], al
je 0x1000501c
push dword [edi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
push 0x10001e60
push 0x3ff
mov ebx, 0x10007d60
push ebx
call fcn.10003c11
add esp, 0x20
push 0x10001f08
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
push 0x10001f98
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp dword [edi + 0x18], esi
je 0x10005033
push ecx
push dword [edi + 0x1c]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.10004ae6
call fcn.100063a9
ret