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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408c9c], esi
push edi
jne 0x401e27
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408c98], esi
mov byte [0x408c94], al
jne 0x401e8d
mov ecx, dword [0x4091c8]
test ecx, ecx
je 0x401e6e
mov eax, dword [0x4091c4]
sub eax, 4
cmp eax, ecx
jmp 0x401e67
mov eax, dword [eax]
test eax, eax
je 0x401e59
call eax
mov eax, dword [0x4091c4]
sub eax, 4
cmp eax, dword [0x4091c8]
mov dword [0x4091c4], eax
jae 0x401e51
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x401e8d
mov eax, dword [edi]
test eax, eax
je 0x401e86
call eax
add edi, 4
cmp edi, esi
jb 0x401e7e
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x401eac
mov eax, dword [edi]
test eax, eax
je 0x401ea5
call eax
add edi, 4
cmp edi, esi
jb 0x401e9d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ec6
push dword [ebp + 8]
mov dword [0x408c9c], 1
call fcn.00401d6d
pop ebp
ret

Function at 0x401f08
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4081d0]
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 + 0x4081e0]
je 0x401f3d
inc eax
cmp eax, 0x13
jb 0x401f2e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4081e0]
jne 0x402063
mov eax, dword [0x408c48]
cmp eax, 1
je 0x40203b
cmp eax, edx
jne 0x401f6d
cmp dword [0x4081d8], 1
je 0x40203b
cmp ecx, 0xfc
je 0x402063
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 0x401fa3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004035a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004037d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401fd7
mov eax, edi
push eax
call fcn.004037d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4068bc
push edi
call fcn.004036a0
add esp, 0x10
push edi
call fcn.004037d0
push dword [esi + 0x4081e4]
mov ebx, eax
call fcn.004037d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402920
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004035a0
push edi
push ebx
call fcn.004035b0
push 0x4068b8
push ebx
call fcn.004035b0
push dword [esi + 0x4081e4]
push ebx
call fcn.004035b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040349b
add esp, 0x2c
jmp 0x402063
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4081e4]
push dword [esi]
call fcn.004037d0
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.0040179e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40349b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408dbc], ebx
push esi
push edi
jne 0x40351b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403556
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408dbc], eax
je 0x403556
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408dc0], eax
call esi
cmp dword [0x408c5c], 2
mov dword [0x408dc4], eax
jne 0x40351b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408dcc], eax
je 0x40351b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408dc8], eax
mov eax, dword [0x408dc8]
test eax, eax
je 0x403560
call eax
test eax, eax
je 0x403547
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408dcc]
test eax, eax
je 0x403547
test byte [ebp - 8], 1
jne 0x403560
cmp dword [0x408c68], 4
jb 0x40355a
or byte [ebp + 0x12], 0x20
jmp 0x40357f
xor eax, eax
jmp 0x40358f
or byte [ebp + 0x12], 4
jmp 0x40357f
mov eax, dword [0x408dc0]
test eax, eax
je 0x40357f
call eax
mov ebx, eax
test ebx, ebx
je 0x40357f
mov eax, dword [0x408dc4]
test eax, eax
je 0x40357f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408dbc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40394a
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 0x403978
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 0x40397f
cmp ebx, dword [eax + 4]
jae 0x40397f
xor eax, eax
jmp 0x403b6f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403990
xor eax, eax
inc eax
jmp 0x403b6e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4039a6
cmp ecx, edx
jae 0x403aeb
cmp dword [eax + 4], 0
je 0x4039af
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403997
cmp dword [ebp + 8], 0
je 0x4039d1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403aeb
cmp eax, esi
jae 0x403aeb
mov eax, dword [0x408dd0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4039f6
cmp dword [esi*4 + 0x408dd8], edi
je 0x403aef
inc esi
cmp esi, eax
jl 0x4039e4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403b6b
cmp dword [ebp - 8], 0x1000000
jne 0x403b6b
test byte [ebp - 0xc], 0xcc
je 0x403a74
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403b6b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403b6b
cmp word [eax + 0x18], 0x10b
jne 0x403b6b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403b6b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403a74
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403a74
test byte [ecx + 0x27], 0x80
jne 0x403aeb
push 1
push 0x408e18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403988
mov ecx, dword [0x408dd0]
test ecx, ecx
mov edx, ecx
jle 0x403aa8
lea eax, [ecx*4 + 0x408dd4]
cmp dword [eax], edi
je 0x403aa8
dec edx
sub eax, 4
test edx, edx
jg 0x403a9c
test edx, edx
jne 0x403ad9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403ab5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403acd
lea eax, [edx*4 + 0x408dd8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403abb
cmp ecx, 0x10
jge 0x403ad9
inc ecx
mov dword [0x408dd0], ecx
push 0
push 0x408e18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403988
xor eax, eax
jmp 0x403b6e
test esi, esi
jle 0x403988
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408e18
call ebx
test eax, eax
jne 0x403988
cmp dword [esi*4 + 0x408dd8], edi
je 0x403b45
mov eax, dword [0x408dd0]
lea esi, [eax - 1]
test esi, esi
jl 0x403b33
cmp dword [esi*4 + 0x408dd8], edi
je 0x403b2f
dec esi
jns 0x403b23
test esi, esi
jge 0x403b43
cmp eax, 0x10
jge 0x403b3e
inc eax
mov dword [0x408dd0], eax
lea esi, [eax - 1]
jmp 0x403b45
je 0x403b5d
xor ecx, ecx
test esi, esi
jl 0x403b5d
lea eax, [ecx*4 + 0x408dd8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403b4b
push 0
push 0x408e18
call ebx
jmp 0x403988
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40505c
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.00402920
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4050f7
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 [0x408c5c]
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 0x4050f7
cmp eax, 1
je 0x405118
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 0x4050f7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4050c4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4050f3
xor eax, eax
inc eax
jmp 0x405137
cmp edi, eax
jae 0x4050fb
xor eax, eax
jmp 0x405137
cmp eax, esi
jae 0x405102
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 [0x408c5c]
jmp 0x40511b
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 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x468290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x451015
lea edi, [esi - 0x50015]
push edi
or ebp, 0xffffffff
jmp 0x4682b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4682b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4682a8
mov eax, 1
add ebx, ebx
jne 0x4682cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4682c0
jne 0x4682dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4682c0
xor ecx, ecx
sub eax, 3
jb 0x4682f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x468362
mov ebp, eax
add ebx, ebx
jne 0x4682fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x468308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46832c
inc ecx
add ebx, ebx
jne 0x468318
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46830d
jne 0x468329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46830d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46834c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46833d
jmp 0x4682ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46834c
add edi, ecx
jmp 0x4682ae
pop esi
mov edi, esi
mov ecx, 0x9c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46836a
cmp byte [edi], 0
jne 0x46836a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46836f
lea edi, [esi + 0x66000]
mov eax, dword [edi]
or eax, eax
je 0x4683e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77898]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x77980]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46839c
mov ecx, edi
jns 0x4683cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x77988]
or eax, eax
je 0x4683e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4683b9
call dword [esi + 0x77984]
mov ebp, dword [esi + 0x7798c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46841b
sub esp, 0xffffff80
jmp 0x406fb0
Function at 0x100327c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x100329c
cmp eax, 1
je 0x100329c
push 6
pop eax
jmp 0x10034aa
cmp dword [esi + 0xbc8], ebx
jne 0x10032c5
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0100279d
test eax, eax
jne 0x10032c5
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
jmp 0x10034aa
push edi
call sub.cmutil.dll_GetOSVersion
cmp eax, 0x64
je 0x10032dc
call sub.cmutil.dll_GetOSVersion
cmp eax, 0xc8
jne 0x1003301
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.01002255
test eax, eax
jne 0x1003301
push dword [esi + 0x50]
mov ecx, edi
push dword [esi + 0x4c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x1009028]
call fcn.01004729
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.01002255
test eax, eax
je 0x1003338
mov ecx, edi
call fcn.0100448b
lea ecx, [esi + 0xc4]
cmp dword [ecx], ebx
je 0x1003338
mov eax, dword [edi]
push 3
dec eax
pop ebx
xor edx, edx
div ebx
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 4]
call fcn.010047ee
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jne 0x10033f9
lea ecx, [esi + 0xc4]
call fcn.01002292
test eax, eax
je 0x1003358
xor eax, eax
inc eax
jmp 0x10034a9
lea ecx, [esi + 0x1f0]
call fcn.01002302
test eax, eax
jne 0x1003350
push dword [esi + 0x210]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10034a6
mov ecx, edi
call fcn.01002255
test eax, eax
je 0x10033bf
push dword [esi + 0x80]
mov eax, dword [edi]
push dword [esi + 0x7c]
dec eax
push 3
pop ecx
xor edx, edx
div ecx
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 8]
mov eax, dword [edi]
dec eax
xor edx, edx
div ecx
lea ecx, [esi + 0x20c]
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 4]
push dword [esi + 0x84]
call fcn.010058c6
mov ecx, edi
call fcn.0100222e
test eax, eax
je 0x10033d3
mov ecx, edi
call fcn.0100222e
jmp 0x10033df
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x204]
mov ecx, 0x3e8
xor edx, edx
div ecx
lea ecx, [esi + 0x20c]
push eax
call fcn.0100585c
jmp 0x10034a6
lea ecx, [esi + 0x1f0]
call fcn.01002302
test eax, eax
jne 0x1003448
lea eax, [esi + 0xc4]
cmp dword [eax], ebx
je 0x1003417
cmp dword [eax + 8], ebx
jne 0x1003448
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1003438
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x1003438
lea ecx, [esi + 0x20c]
call fcn.01005729
jmp 0x1003443
lea ecx, [esi + 0x20c]
call fcn.0100577b
mov dword [esi + 0x44], ebx
jmp 0x10034a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x208]
mov eax, 0x7530
cmp ecx, eax
jbe 0x1003463
push 2
jmp 0x10034a8
sub eax, ecx
mov ebx, 0x3e8
xor edx, edx
mov ecx, ebx
div ecx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0100222e
test eax, eax
push dword [ebp - 4]
je 0x100348a
mov ecx, edi
call fcn.0100222e
jmp 0x1003496
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x204]
xor edx, edx
div ebx
lea ecx, [esi + 0x20c]
push eax
call fcn.01005aed
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003c8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jmp 0x1003ca2
xor ebx, ebx
xor esi, esi
inc esi
jmp 0x1003ce6
cmp dword [ebp - 0x30], ebx
jne 0x1003cbd
cmp dword [ebp - 0x2c], 0x402
jne 0x1003ce6
mov eax, dword [ebp - 0x28]
jmp 0x1003e02
mov eax, dword [edi + 0x210]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [0x1009070]
test eax, eax
jne 0x1003ce6
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [0x10090cc]
push esi
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [0x10090b0]
test eax, eax
jne 0x1003ca7
cmp dword [edi + 0xbc8], ebx
je 0x1003d21
cmp dword [edi + 0xc4], ebx
jne 0x1003d21
cmp dword [edi + 0x44], esi
je 0x1003d21
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1003d21
xor esi, esi
jmp 0x1003d4a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jb 0x1003d48
call ebx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0100327c
cmp eax, 6
jne 0x1003e02
xor ebx, ebx
mov eax, dword [edi + 0xbc8]
test eax, eax
je 0x1003d5a
xor ebx, ebx
mov dword [ebp - 0x14], eax
inc ebx
cmp dword [edi + 0x1f4], 0
je 0x1003d70
mov eax, dword [edi + 0x1f0]
mov eax, dword [eax]
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1003d87
test ebx, ebx
je 0x1003d87
mov eax, dword [ebp + ebx*4 - 0x18]
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
cmp dword [edi + 0xbdc], 0
je 0x1003d9c
call fcn.01002451
and dword [edi + 0xbdc], 0
neg esi
sbb esi, esi
push 0xff
and esi, 0x3e9
dec esi
push esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
je 0x1003ca0
cmp eax, ebx
jae 0x1003ca0
mov ecx, dword [edi + 0xbc8]
test ecx, ecx
je 0x1003dec
cmp dword [ebp + eax*4 - 0x14], ecx
jne 0x1003dec
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.0100279d
test eax, eax
je 0x1003e07
lea ecx, [edi + 0x1f0]
call fcn.01002302
test eax, eax
je 0x1003ca0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1003e02

Function at 0x1003ff4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100405e
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jae 0x100405e
push esi
push 8
call sub.cmutil.dll_CmMalloc
mov esi, eax
test esi, esi
je 0x100405d
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x1004029
mov eax, dword [edi + 0x4c]
mov dword [esi], eax
mov eax, dword [edi + 0x210]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1003556
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1004056
push esi
call sub.cmutil.dll_CmFree
jmp 0x100405d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret
Function at 0x1004132
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x100411c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1004154
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
leave
ret

Function at 0x1004b4e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x1004c33
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
push ebx
push ebx
jne 0x1004b9f
push 0x1001b4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0xc], 0x1001b3c
mov dword [ebp - 0x10], 0x1001b28
mov dword [ebp - 8], 0x1001b10
mov dword [ebp - 4], 0x1001af4
mov ecx, 0x1001ae8
jmp 0x1004bcb
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0xc], 0x1001ac8
mov dword [ebp - 0x10], 0x1001ab4
mov dword [ebp - 8], 0x1001a9c
mov dword [ebp - 4], 0x1001a7c
mov ecx, 0x1001a6c
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x1004c2f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
push eax
call edi
push dword [ebp - 4]
mov dword [esi + 8], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 8]
mov dword [esi], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 0xc]
mov dword [esi + 4], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 0x10]
mov dword [esi + 0x14], eax
push dword [esi + 0xc]
call edi
cmp dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
pop edi
je 0x1004c23
cmp eax, ebx
je 0x1004c23
cmp dword [esi], ebx
je 0x1004c23
cmp dword [esi + 4], ebx
je 0x1004c23
cmp dword [esi + 8], ebx
jne 0x1004c33
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], ebx
xor eax, eax
jmp 0x1004c36
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x10051e0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1009018]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
call fcn.01006d6c
test eax, eax
jne 0x1005238
call sub.cmutil.dll_IsLogonAsSystem
test eax, eax
jne 0x100522a
push 0x10
push 0x100165c
push 0x1001bc0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0100617c
leave
ret 0x10
and dword [ebp - 0x418], 0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
and word [ebp - 0x414], 0
and word [ebp - 0x20c], 0
mov esi, eax
xor eax, eax
mov edx, 0x81
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
push 2
push esi
mov esi, dword [sym.imp.USER32.dll_GetUserObjectInformationW]
call esi
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [ebp - 0x420]
call esi
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push dword [ebp - 0x424]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0100516c
mov esi, eax
call fcn.01007450
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1005524
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x1001ca8
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
je 0x1005588
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1005588
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x1005588
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x10053b4
push edi
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x100559a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x100559a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4