joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102875a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jne 0x10287ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x10287a0
mov esi, eax
jmp 0x10288a0
and eax, 0xffff
or eax, 0x80070000
jmp 0x1028799
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x10287dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1028895
and eax, 0xffff
or eax, 0x80070000
jmp 0x1028895
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x10287bf
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1028846
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x102881e
push edi
call fcn.0102656b
test al, al
je 0x102881e
mov eax, edi
call fcn.01029150
mov edi, esp
jmp 0x1028829
push edi
lea ecx, [ebp - 8]
call fcn.010278b8
mov edi, eax
test edi, edi
jne 0x1028834
mov esi, 0x8007000e
jmp 0x1028897
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x102884e
xor eax, eax
jmp 0x1028889
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1028878
push ebx
call fcn.0102656b
test al, al
je 0x1028878
mov eax, ebx
call fcn.01029150
mov eax, esp
jmp 0x1028881
push ebx
lea ecx, [ebp - 8]
call fcn.010278b8
push esi
push edi
push eax
call fcn.0102663e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push eax
call fcn.01028531
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.010272fe
mov eax, esi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029060
leave
ret 0x10
Function at 0x1029051
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1032850
call fcn.010291a8
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, 0x1035824
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1028e0b
cmp eax, esi
jne 0x1028dfe
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1028e0e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1028de5
xor esi, esi
inc esi
mov eax, dword [0x1035820]
cmp eax, esi
jne 0x1028e21
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1028e50
mov eax, dword [0x1035820]
test eax, eax
jne 0x1028e4a
mov dword [0x1035820], esi
push 0x10012f8
push 0x10012ec
call fcn.01028d47
pop ecx
pop ecx
test eax, eax
je 0x1028e50
jmp 0x1028f74
mov dword [0x1034bc8], esi
mov eax, dword [0x1035820]
cmp eax, esi
jne 0x1028e74
push 0x10012e8
push 0x100126c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1035820], 2
cmp dword [ebp - 0x20], ebx
jne 0x1028e81
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1035828], ebx
je 0x1028ea2
push 0x1035828
call fcn.01029319
pop ecx
test eax, eax
je 0x1028ea2
push ebx
push 2
push ebx
call dword [0x1035828]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1028f74
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1028f0c
cmp cx, bx
je 0x1028ec7
cmp dword [ebp - 0x1c], ebx
jne 0x1028f0c
movzx ecx, word [eax]
cmp cx, bx
je 0x1028edc
cmp cx, 0x20
ja 0x1028edc
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1028ec7
test byte [ebp - 0x40], 1
je 0x1028ee8
movzx ecx, word [ebp - 0x3c]
jmp 0x1028eeb
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1034bc4], eax
cmp dword [0x1034bb8], ebx
jne 0x1028f51
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1028f1d
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1028eb1
cmp dword [0x1034bc8], ebx
jne 0x1028f5f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1034bc4]
jmp 0x1028f80
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010291ed
ret
call fcn.01029504
jmp 0x1028da8
Function at 0x102994e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], cx
cmp dword [0x1034f00], eax
jne 0x10299e3
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x1034f00], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10299e3
cmp dword [ebp - 0x114], 5
jb 0x10299c7
cmp dword [ebp - 0x110], 1
jae 0x10299d0
cmp dword [ebp - 0x114], 6
jb 0x10299e3
cmp dword [ebp - 0x108], 2
jne 0x10299e3
mov dword [0x103407c], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01029060
leave
ret

Function at 0x102a574
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.01029f6d
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x102a596
mov eax, 0x80070057
jmp 0x102a676
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x102a672
cmp dword [ebp - 8], 1
je 0x102a5da
cmp dword [ebp - 8], 2
je 0x102a5da
cmp dword [ebp - 8], 7
jne 0x102a672
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x102a61c
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x102a5ee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x102a616
mov edx, dword [esi]
xor edi, edi
mov word [edx + ecx*2 - 2], di
cmp eax, ebx
jne 0x102a672
jmp 0x102a65d
push dword [ebp - 4]
mov ecx, esi
call fcn.01029d12
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x102a672
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, esi
test eax, eax
je 0x102a655
lea eax, [ebp - 0x10]
push eax
call fcn.01029d3e
jmp 0x102a672
push dword [ebp - 0x10]
call fcn.0102a0c7
cmp dword [ebp - 8], 2
je 0x102a668
mov dword [ebp - 0xc], ebx
jmp 0x102a672
mov ecx, esi
call fcn.0102a3db
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102a937
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001cc0]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001cc4]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_towupper]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx esi, ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call edi
cmp eax, 5
jne 0x102a9a6
and dword [ebp - 0x10], 0
push 0x41
pop ebx
mov eax, ebx
cmp ax, si
jae 0x102a9aa
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call edi
cmp eax, 5
jne 0x102a99e
inc dword [ebp - 0x10]
inc ebx
cmp bx, si
jb 0x102a98c
jmp 0x102a9aa
or dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01029060
leave
ret 4

Function at 0x102aa80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x102aaa6
call edi
sub eax, dword [esi + 0x64]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1388
jbe 0x102aab7
push dword [ebp + 8]
push esi
call fcn.0102f0f9
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x60]
pop edi
pop esi
pop ebp
ret 4
Function at 0x102bab0
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0102994e
xor ebx, ebx
cmp esi, ebx
je 0x102bc67
movzx eax, word [esi]
cmp ax, 0x41
jb 0x102baf4
cmp ax, 0x5a
ja 0x102baf4
movzx edi, ax
sub edi, 0x40
jmp 0x102bafa
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x102bb8f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1001df4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x102bc32
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x102bb7e
test byte [ebp - 0x44], 1
jne case.default.0x102bb7e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x102bb7e
jmp dword [eax*4 + 0x102bc8c]
mov esi, 0x320
jmp case.0x102bb7e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1001de4
push eax
call fcn.0102a3c0
add esp, 0xc
test eax, eax
jl 0x102bc30
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x102bc36
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x102bb7e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x102bb7e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x102bb7e.0
jle case.default.0x102bb7e
cmp eax, 5
jle case.0x102bb7e.2
cmp eax, 0xa
jle case.0x102bb7e.0
cmp eax, 0xb
je case.0x102bb7e.6
cmp eax, 0xc
je case.0x102bb7e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102bc32
push 2
pop esi
jmp case.0x102bb7e.5
mov esi, 0x15e
jmp case.0x102bb7e.5
mov esi, 0x20d
jmp case.0x102bb7e.5
xor esi, esi
cmp esi, ebx
jne 0x102bc69
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1001dd8
push eax
call fcn.0102a3c0
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x102bc69
cmp eax, 3
je 0x102bc84
jbe 0x102bc67
cmp eax, 6
jbe 0x102bc69
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0102a0ff
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01029060
leave
ret 4
xor esi, esi
inc esi
jmp 0x102bc69
Function at 0x102becf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0102994e
push 0x1001a3c
mov ecx, esi
call fcn.0102b096
test al, al
je 0x102bf9a
push dword [esi + 0x28]
call fcn.01031aa0
test al, al
je 0x102bf13
mov dword [ebp - 4], 4
jmp 0x102bfb1
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x102bf24
cmp word [eax], cx
setne cl
test cl, cl
je 0x102bf4a
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x102bf4a
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x1034f08]
test al, al
jbe 0x102bf4a
movzx eax, al
mov dword [ebp - 4], eax
test eax, eax
jne 0x102bfb1
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.0102a151
test eax, eax
jl 0x102bfb1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp eax, 2
jne 0x102bf8c
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0102bab0
cmp eax, 0x15e
je 0x102bf85
cmp eax, 0x20d
jne 0x102bf8c
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x1034f08], cl
jmp 0x102bfb1
push 0x1001a74
mov ecx, esi
call fcn.0102b096
test al, al
je 0x102bfb1
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0102a0ff
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x102ed37
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0x80070005
call fcn.0102be1b
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push 2
call fcn.0102d35e
xor ebx, ebx
mov edi, 0x1035010
mov esi, 0x80072af9
test eax, eax
jl 0x102edb5
lea ecx, [ebp - 0x6c]
call fcn.0102becf
cmp eax, 4
jne 0x102edb5
push 0x3e8
lea eax, [ebp - 0x6c]
push eax
call fcn.0102e5bd
mov dword [ebp - 4], eax
cmp byte [0x1035008], bl
je 0x102edb5
cmp eax, ebx
jl 0x102eda5
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ec4a
jmp 0x102edb5
cmp eax, esi
jne 0x102edb5
push esi
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ebd4
cmp dword [ebp - 4], ebx
jge 0x102ee6f
cmp dword [ebp - 4], esi
je 0x102ee6f
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x102ddc5
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x102ee6f
mov ecx, 0x1035588
call fcn.0102d885
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102ee68
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x102ee68
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102ee3b
test byte [eax + 0x3c], 1
je 0x102ee3b
cmp byte [eax + 0x39], 3
jb 0x102ee3b
push dword [ebp - 4]
push 0x1002558
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d915
cmp dword [ebp - 4], ebx
je 0x102ee49
mov dword [ebp - 4], 0x80070005
jmp 0x102ee68
cmp byte [0x1035008], bl
je 0x102ee68
lea ecx, [ebp - 0x6c]
call fcn.0102bdff
test al, al
jne 0x102ee68
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ec4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x6c]
call fcn.01028be8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x102ee88
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
movzx eax, byte [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1035588
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.0102d869
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0102dc0a
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.0102e845
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x102eef9
push eax
mov ecx, edi
call fcn.0102dcce
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 0x14]
jae 0x102ef2a
push dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
call fcn.0102dcce
mov ebx, dword [eax + 0x20c]
jmp 0x102ef31
push dword [ebp + 8]
lea edi, [esi + 0x1c]
push edi
mov ecx, esi
call fcn.0102e845
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x102ef31
push eax
mov ecx, edi
call fcn.0102dcce
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 0x14]
jb 0x102ef31
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.0102dc27
cmp dword [ebp - 4], 0
je 0x102f07d
test ebx, ebx
jl 0x102f07d
lea ecx, [ebp - 0x10]
call fcn.0102994e
lea ecx, [ebp - 0x88]
call fcn.0102be1b
lea ecx, [ebp - 0x20]
call fcn.0102994e
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
call fcn.0102d84c
push 0x1001878
lea ecx, [ebp - 0x88]
call fcn.0102cda3
mov ebx, eax
test ebx, ebx
jl 0x102f062
lea eax, [ebp - 0x10]
push eax
push 0xa
lea ecx, [ebp - 0x88]
call fcn.0102ccf0
mov ebx, eax
test ebx, ebx
jl 0x102f062
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.0102b055
mov ebx, eax
test ebx, ebx
jl 0x102f062
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
je 0x102efd0
cmp word [ecx], ax
setne al
test al, al
je 0x102f002
lea ecx, [ebp - 0x10]
call fcn.01029a19
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x20]
dec eax
lea edi, [ecx + eax*2]
call fcn.010319b5
cmp word [edi], ax
jne 0x102f002
lea ecx, [ebp - 0x10]
call fcn.01029a19
mov edx, dword [ebp - 0x10]
dec eax
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x10]
call fcn.0102ed37
mov ebx, eax
test ebx, ebx
jge 0x102f062
cmp dword [ebp + 0xc], 0xffffffff
je 0x102f062
mov ecx, esi
call fcn.0102dc0a
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.0102e845
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x102f05b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
mov ecx, edi
mov ebx, eax
call fcn.0102dcce
push dword [ebp + 0xc]
mov ecx, edi
mov dword [eax + 0x208], ebx
call fcn.0102dcce
mov ebx, dword [eax + 0x20c]
mov ecx, esi
call fcn.0102dc27
lea ecx, [ebp - 0x20]
call fcn.0102a0ff
lea ecx, [ebp - 0x88]
call fcn.01028be8
lea ecx, [ebp - 0x10]
call fcn.0102a0ff
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x102f7ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x102f8ab
mov edi, dword [ebp + 8]
test edi, edi
je 0x102f8ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1035570]
mov ebx, 0x1035564
cmp eax, 0xea60
jae 0x102f800
push edi
push ebx
call fcn.0102990a
test al, al
je 0x102f800
mov eax, dword [0x1035560]
mov dword [esi], eax
jmp 0x102f8b2
push esi
push edi
push 0x1005280
push 0x80000002
call fcn.0102f4ec
cmp eax, 3
je 0x102f81b
cmp eax, 2
jne 0x102f854
push esi
push edi
push 0x1005210
push 0x80000001
call fcn.0102f4ec
cmp eax, 3
je 0x102f836
cmp eax, 2
jne 0x102f854
push edi
call fcn.0102ac3f
cmp eax, 0xffffffff
je 0x102f84b
push eax
call fcn.0102f744
mov dword [esi], eax
jmp 0x102f852
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x102f867
jle 0x102f864
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x102f8b2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x102f8b2
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.010299f7
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.0102a151
mov eax, dword [esi]
mov dword [0x1035560], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1035570], eax
call fcn.0102a0ff
jmp 0x102f8b2
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x102f93b
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x102fa28
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x102fa28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x1035584]
jae 0x102f98e
push ebx
push 0x1035578
call fcn.0102990a
test al, al
je 0x102f98e
mov eax, dword [0x1035574]
mov dword [edi], eax
jmp 0x102fa2f
push edi
push ebx
push 0x1005280
push 0x80000002
call fcn.0102f619
test eax, eax
je 0x102f9e6
push edi
push ebx
push 0x1005210
push 0x80000001
call fcn.0102f619
mov esi, eax
test esi, esi
je 0x102f9e6
push ebx
call fcn.0102ac3f
cmp eax, 0xffffffff
je 0x102f9cf
push eax
call fcn.0102f778
mov dword [edi], eax
jmp 0x102f9e6
test esi, esi
jle 0x102f9df
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
test esi, esi
jl 0x102fa2f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x102fa2f
push 5
push 0x1035578
lea ecx, [ebp - 0x10]
call fcn.010299f7
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.0102a151
mov eax, dword [edi]
mov dword [0x1035574], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1035584], eax
call fcn.0102a0ff
jmp 0x102fa2f
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102fc8f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x10354c8], bl
jne 0x102fcd5
push esi
push ebx
push ebx
push ebx
push 0x102fb42
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x102fccc
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp byte [0x10354c8], bl
je 0x102fd1b
lea ecx, [ebp - 0xc]
call fcn.0102994e
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0102a151
test eax, eax
jl 0x102fd13
lea ecx, [ebp - 0xc]
call fcn.01029a40
push dword [ebp - 0xc]
mov ecx, 0x1035508
call fcn.01031137
test al, al
je 0x102fd13
lea ecx, [ebp - 0xc]
call fcn.0102a0ff
mov al, 1
jmp 0x102fd1d
lea ecx, [ebp - 0xc]
call fcn.0102a0ff
xor al, al
pop ebx
leave
ret 4

Function at 0x103024b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
jne 0x1030285
cmp ecx, edi
jne 0x1030285
push 2
pop eax
cmp eax, edi
jne 0x10302bd
shr ecx, 1
push ecx
call fcn.010297cb
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp eax, edi
je 0x10302bd
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10302b7
mov al, 1
jmp 0x10302bf
push ebx
call fcn.010297f5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10303ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103043e
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x1030440
xor al, al
pop esi
leave
ret 0xc