joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102a329
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x102a33e
xor eax, eax
inc eax
jmp 0x102a3c0
call fcn.01025bd1
test eax, eax
je 0x102a3c0
push edi
push ebx
push ebx
push ebx
push 5
call fcn.01028147
test eax, eax
push 0x1003158
je 0x102a3c3
call fcn.0101b668
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x102a395
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 3
push eax
call edi
push 4
push dword [esi + 0x14]
mov dword [esi], eax
call edi
push 0x1006414
push dword [esi + 0x14]
mov dword [esi + 4], eax
call edi
push 5
push dword [esi + 0x14]
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x102a3ba
cmp dword [esi], ebx
je 0x102a3af
cmp dword [esi + 4], ebx
je 0x102a3af
cmp dword [esi + 8], ebx
je 0x102a3af
cmp dword [esi + 0xc], ebx
jne 0x102a3fb
cmp eax, ebx
je 0x102a3ba
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x14], ebx
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.0101b668
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x102a3ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 8
push eax
call edi
push 0x1006414
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x102a3ba
cmp dword [esi + 0x10], ebx
je 0x102a3af
cmp dword [esi + 8], ebx
je 0x102a3af
xor eax, eax
inc eax
jmp 0x102a3bf
Function at 0x102ba25
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0x1006c40
push 5
mov dword [ebp - 4], 1
call fcn.0102ae85
mov eax, dword [ebp + 8]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x102ba5a
cmp word [eax], si
jne 0x102ba5a
xor eax, eax
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
jne 0x102ba89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x102ba7d
push 0x57
pop eax
push eax
push edi
push 0x1006c0c
jmp 0x102bb09
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x102bac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x102baaa
push 0x57
pop eax
push eax
push edi
push 0x1006bd4
push 2
call fcn.0102ae85
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x102bb13
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x102bb1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jne 0x102bae0
push 0x57
pop edi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp edi, 0x420
jne 0x102bb00
xor eax, eax
inc eax
jmp 0x102bbfe
push edi
push dword [ebp + 0xc]
push 0x1006b9c
push 2
call fcn.0102ae85
add esp, 0x10
xor eax, eax
jmp 0x102bbfe
cmp dword [ebp + 0x10], esi
je 0x102bbc8
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp + 0x10], 0x927c0
call ebx
test eax, eax
jne 0x102bb55
push edi
push 0x1006b78
push 2
call fcn.0102ae85
add esp, 0xc
mov dword [ebp - 4], esi
jmp 0x102bbc8
cmp dword [ebp - 0x28], 4
je 0x102bbc8
mov esi, 0x1f4
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add edi, 0x7530
cmp edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jle 0x102bb98
mov dword [ebp + 0x10], edi
jmp 0x102bb98
cmp dword [ebp - 0x28], 4
je 0x102bb9c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x102bc05
sub edi, esi
add dword [ebp - 8], esi
test edi, edi
jg 0x102bb79
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jg 0x102bbb2
cmp dword [ebp - 0x28], 4
je 0x102bbc8
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jne 0x102bb60
push dword [ebp + 0xc]
push 0x1006b60
push 2
call fcn.0102ae85
add esp, 0xc
and dword [ebp - 4], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
mov eax, 0x1006ae0
jne 0x102bbe8
mov eax, 0x1006ad0
push eax
push dword [ebp + 0xc]
push 0x1006b44
push 5
call fcn.0102ae85
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0xc]
push 0x1006b20
jmp 0x102bbba
Function at 0x103010b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1048628]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
push 0x23
push esi
mov dword [ebp - 0x214], esi
xor ebx, ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
cmp edi, esi
jl 0x103019e
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x210], esi
call fcn.0101d021
test eax, eax
je 0x1030167
inc ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x103019a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x103019a
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jne 0x10301d9
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d0b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x20c]
push 0x1007de8
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.01025731
test eax, eax
je 0x10301ed
xor edi, edi
jmp 0x1030210
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101a591
lea eax, [ebp - 0x20c]
push eax
call fcn.01025731
test eax, eax
je 0x103020c
xor edi, edi
cmp edi, esi
jne 0x1030246
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
shr esi, 1
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
cmp esi, eax
pop ecx
jbe 0x1030241
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
jmp 0x1030246
mov edi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01018732
leave
ret 8
Function at 0x103177a
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x1031824
or dword [edi], 0xffffffff
cmp dword [esi + 0x84], ebx
jne 0x10317dd
push 0x10083a8
call fcn.0101b668
cmp eax, ebx
mov dword [esi + 0x84], eax
je 0x10317dd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008398
push eax
call edi
push 0x1008388
push dword [esi + 0x84]
mov dword [esi + 0x270], eax
call edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x274], eax
mov esi, dword [esi + 0x270]
cmp esi, ebx
jne 0x10317f6
push 0x100837c
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [edi], eax
jmp 0x103181f
push 0xe
pop ecx
or eax, 0xffffffff
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
call esi
test eax, eax
jne 0x1031824
cmp dword [ebp - 0x38], ebx
jne 0x1031824
cmp dword [ebp - 0x34], ebx
jne 0x1031824
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x1031826
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1033a66
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1033a90
cmp dword [ebp + 0xc], 0
je 0x1033a90
push dword [ebp + 8]
call fcn.01033702
test eax, eax
je 0x1033a8a
mov eax, 0x80004001
jmp 0x1033a95
pop ebp
jmp fcn.01033745
mov eax, 0x80004003
pop ebp
ret 8

Function at 0x103e060
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1048628]
push esi
mov esi, ecx
cmp dword [esi], 0
mov dword [ebp - 4], eax
je 0x103e0cd
cmp dword [esi + 8], 0
je 0x103e08c
lea eax, [esi + 4]
push eax
call fcn.0103e19d
jmp 0x103e0d4
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x103e0cd
push 0x100ba78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x18], eax
je 0x103e0c7
push 0x100ba6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x103e0d1
call dword [sym.imp.WSOCK32.dll_WSACleanup]
xor eax, eax
jmp 0x103e0d7
xor eax, eax
inc eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.01018732
leave
ret
Function at 0x103e378
Capabilities:
Reference http user-agent string

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01044e40
mov eax, dword [0x1048628]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0xfe4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xff4], 0xfd0
call fcn.0104399c
lea ecx, [ebp - 0x1000]
call fcn.0104399c
push 0x64
lea ecx, [ebp - 0x1000]
call fcn.01043f68
test eax, eax
mov dword [ebp - 0xfd8], eax
jl 0x103e3df
push 0x64
push dword [ebp - 0x1000]
call fcn.0103e30d
mov dword [ebp - 0xfd8], eax
lea eax, [ebp - 0xff4]
push eax
lea eax, [ebp - 0xfd4]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jl 0x103e570
mov eax, dword [ebp - 0xff4]
mov byte [ebp + eax - 0xfd4], 0
push 0xffffffffffffffff
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xfe4]
call fcn.0104405c
mov edi, eax
test edi, edi
jl 0x103e4d9
cmp dword [ebp - 0xfd8], 0
jl 0x103e4d9
push 0x29
lea ecx, [ebp - 0xfe4]
call fcn.01043af4
mov esi, eax
test esi, esi
jl 0x103e4d9
lea ecx, [ebp - 0xff0]
mov edi, 0x8007000e
call fcn.0104399c
mov eax, dword [ebp - 0xfe4]
add esi, esi
push 0xffffffffffffffff
add eax, esi
push eax
lea ecx, [ebp - 0xff0]
call fcn.01043fb2
cmp dword [ebp - 0xff0], 0
je 0x103e4ce
mov eax, dword [ebp - 0xfe4]
and word [esi + eax], 0
push 0xffffffffffffffff
push 0x100bb50
lea ecx, [ebp - 0xfe4]
call fcn.0104411f
mov edi, eax
test edi, edi
jl 0x103e4ce
push 0xffffffffffffffff
push dword [ebp - 0x1000]
lea ecx, [ebp - 0xfe4]
call fcn.0104411f
mov edi, eax
test edi, edi
jl 0x103e4ce
push 0xffffffffffffffff
push dword [ebp - 0xff0]
lea ecx, [ebp - 0xfe4]
call fcn.0104411f
mov edi, eax
lea ecx, [ebp - 0xff0]
call fcn.01043f5e
xor eax, eax
test edi, edi
setge al
xor ecx, ecx
cmp dword [ebp - 0xfd8], ecx
setge cl
test ecx, eax
je 0x103e510
lea ecx, [ebp - 0xfe4]
call fcn.01043a55
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x103e5a3
lea ecx, [ebp - 0xfe4]
jmp 0x103e592
lea ecx, [ebp - 0xff0]
call fcn.0104399c
push 0xffffffffffffffff
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xff0]
call fcn.0104405c
mov esi, eax
test esi, esi
jl 0x103e563
lea ecx, [ebp - 0xff0]
call fcn.01043a55
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x103e55e
push edi
push ebx
lea ecx, [ebp - 0xff0]
call fcn.01043c44
and word [ebx + edi*2 - 2], 0
mov esi, eax
jmp 0x103e563
mov esi, 0xc00d107f
lea ecx, [ebp - 0xff0]
call fcn.01043f5e
jmp 0x103e5a8
mov esi, dword [ebp - 0xfd8]
test esi, esi
jl 0x103e5a8
lea ecx, [ebp - 0x1000]
call fcn.01043a55
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x103e5a3
lea ecx, [ebp - 0x1000]
push edi
push ebx
call fcn.01043c44
and word [ebx + edi*2 - 2], 0
mov esi, eax
jmp 0x103e5a8
mov esi, 0xc00d107f
lea ecx, [ebp - 0x1000]
call fcn.01043f5e
lea ecx, [ebp - 0xfe4]
call fcn.01043f5e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01018732
leave
ret 8
Function at 0x103e623
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1048628]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x1048794]
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x38], esi
je 0x103e666
cmp eax, ebx
je 0x103e7ce
cmp esi, ebx
je 0x103e7ce
mov cx, word [0x104accc]
mov word [esi], cx
jmp 0x103e7ce
push edi
mov dword [0x1048794], ebx
call fcn.0103e5d4
xor edi, edi
inc edi
cmp ax, bx
mov word [0x104accc], ax
je 0x103e6a8
push 0x10
lea ecx, [ebp - 0x30]
push ecx
movzx eax, ax
push 0x58
push eax
call fcn.0101cf91
test eax, eax
je 0x103e766
test byte [ebp - 0x21], 8
je 0x103e766
jmp 0x103e760
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x103e766
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push 0x100bbcc
push 0x80000001
mov dword [ebp - 0x3c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103e766
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x10]
lea edx, [ebp - 0x10]
xor eax, eax
jmp 0x103e748
shl eax, 4
cmp cl, 0x30
jl 0x103e721
cmp cl, 0x39
jg 0x103e721
movsx ecx, cl
lea eax, [eax + ecx - 0x30]
jmp 0x103e745
cmp cl, 0x41
jl 0x103e734
cmp cl, 0x46
jg 0x103e734
movsx ecx, cl
lea eax, [eax + ecx - 0x37]
jmp 0x103e745
cmp cl, 0x61
jl 0x103e745
cmp cl, 0x66
jg 0x103e745
movsx ecx, cl
lea eax, [eax + ecx - 0x57]
inc edx
mov cl, byte [edx]
cmp cl, bl
jne 0x103e70b
and eax, 0x3ff
cmp eax, edi
je 0x103e75a
cmp eax, 0xd
jne 0x103e766
mov word [0x104accc], ax
mov dword [0x1048794], edi
mov eax, dword [0x1048794]
cmp eax, ebx
jne 0x103e7bf
push ebx
push ebx
call fcn.0101b028
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x100bbbc
push ebx
call fcn.0101a791
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x103e7b3
push 0xffffffffffffffec
push esi
call fcn.0101b38b
test eax, 0x400000
je 0x103e7ac
mov dword [0x1048794], edi
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x1048794]
cmp eax, ebx
je 0x103e7cd
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x103e7cd
mov cx, word [0x104accc]
mov word [esi], cx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01018732
leave
ret 4
Function at 0x103e8fa
Capabilities:
Enumerate devices by category

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 8]
push eax
push 0x100ec24
push 1
push 0
push 0x100ec74
call fcn.0101e588
mov esi, eax
test esi, esi
mov eax, dword [ebp - 8]
jl 0x103e99e
and dword [ebp - 4], 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0x100ec64
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x103e98e
cmp esi, 1
mov eax, dword [ebp - 4]
jne 0x103e967
test eax, eax
je 0x103e953
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x103e960
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x103e9aa
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
jl 0x103e98e
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0103e858
mov esi, eax
test esi, esi
jl 0x103e989
cmp esi, 1
jne 0x103e98e
mov esi, 0x80004002
mov eax, dword [ebp - 4]
test eax, eax
je 0x103e99b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x103e9a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
leave
ret 4
Function at 0x103f442
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1048628]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.0104399c
xor ebx, ebx
cmp esi, ebx
je 0x103f5fb
mov si, word [esi]
cmp si, 0x41
jb 0x103f484
cmp si, 0x5a
ja 0x103f484
movzx edi, si
sub edi, 0x40
jmp 0x103f48a
movzx edi, si
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x103f520
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x100d0d4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x103f5c7
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.0x103f502
test byte [ebp - 0x44], 1
jne case.default.0x103f502
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x103f502
jmp dword [eax*4 + 0x103f61b]
mov esi, 0x320
jmp case.0x103f502.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103f5c7
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x100d0c4
push eax
call fcn.01044317
add esp, 0xc
test eax, eax
jl 0x103f5c5
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call fcn.0101a677
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x103f5cb
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.0x103f502
cmp dword [ebp - 0x34], ebx
jbe case.default.0x103f502
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x103f502.0
jle case.default.0x103f502
cmp eax, 5
jle case.0x103f502.2
cmp eax, 0xa
jle case.0x103f502.0
cmp eax, 0xb
je case.0x103f502.6
cmp eax, 0xc
jne case.default.0x103f502
jmp case.0x103f502.5
push 2
pop esi
jmp case.0x103f502.5
mov esi, 0x15e
jmp case.0x103f502.5
mov esi, 0x20d
jmp case.0x103f502.5
xor esi, esi
cmp esi, ebx
jne 0x103f5fd
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x100d0b8
push eax
call fcn.01044317
add esp, 0xc
push dword [ebp - 0x40]
call fcn.0101d8bf
push 2
pop esi
cmp eax, esi
je 0x103f5fd
cmp eax, 3
je 0x103f616
jbe 0x103f5fb
cmp eax, 6
jbe 0x103f5fd
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.01043f5e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01018732
leave
ret 4
xor esi, esi
inc esi
jmp 0x103f5fd
Function at 0x10420a9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0x80070005
call fcn.0104011a
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
push 2
call fcn.01040fc3
xor ebx, ebx
test eax, eax
jl 0x104210d
lea ecx, [ebp - 0x64]
call fcn.0103f7b3
cmp eax, 4
jne 0x104210d
push 0x1f4
lea eax, [ebp - 0x64]
push eax
call fcn.010416e1
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1042112
cmp byte [0x104ade8], bl
je 0x104210d
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x104adf0
call fcn.01041fc7
cmp dword [ebp - 4], ebx
jge 0x104218c
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x10415d6
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x104218c
mov ecx, 0x104ae70
call fcn.01041593
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1042185
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1042185
cmp dword [ebp - 4], ebx
je 0x1042163
mov dword [ebp - 4], 0x80070005
jmp 0x1042185
cmp byte [0x104ade8], bl
je 0x1042185
lea ecx, [ebp - 0x64]
call fcn.0103f797
test al, al
jne 0x1042185
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x104adf0
call fcn.01041fc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x64]
call fcn.0103ecac
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
call fcn.01041a3f
push dword [ebp + 8]
lea esi, [edi + 0x30]
push esi
mov ecx, edi
call fcn.01041d9c
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1042240
cmp byte [ebp + 0xc], 0
je 0x104223c
mov ecx, edi
call fcn.01041a5c
lea ecx, [ebp - 0x10]
call fcn.0104399c
lea ecx, [ebp - 0x70]
call fcn.0104011a
push dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.01041536
push ebx
push 0x1001940
lea ecx, [ebp - 0x70]
call fcn.010403f1
mov esi, eax
test esi, esi
jl 0x1042228
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x70]
call fcn.01040f0d
mov esi, eax
test esi, esi
jl 0x1042228
push dword [ebp - 0x10]
call fcn.010420a9
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.0103ecac
lea ecx, [ebp - 0x10]
call fcn.01043f5e
mov eax, esi
jmp 0x10422a8
xor edi, edi
jmp 0x104229e
push ebx
mov ecx, esi
call fcn.01041b22
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x208]
mov ecx, 0x104ae70
mov edi, eax
call fcn.01041577
cmp edi, eax
mov ecx, esi
push ebx
jb 0x1042293
call fcn.01041b22
push eax
call fcn.010420a9
mov edi, eax
test edi, edi
jge 0x104229e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ecx, esi
mov edi, eax
call fcn.01041b22
mov dword [eax + 0x208], edi
push ebx
mov ecx, esi
call fcn.01041b22
mov edi, dword [eax + 0x20c]
mov ecx, dword [ebp - 4]
call fcn.01041a5c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1042c06
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]
test esi, esi
push edi
je 0x1042cef
mov edi, dword [ebp + 8]
test edi, edi
je 0x1042cef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x104ae58]
mov ebx, 0x104ae4c
cmp eax, 0xea60
jae 0x1042c5a
push edi
push ebx
call fcn.01043959
test al, al
je 0x1042c5a
mov eax, dword [0x104ae48]
mov dword [esi], eax
jmp 0x1042cf6
push esi
push edi
push 0x100dd60
push 0x80000002
call fcn.01042ae3
cmp eax, 3
je 0x1042c75
cmp eax, 2
jne 0x1042c99
push esi
push edi
push 0x100dcf0
push 0x80000001
call fcn.01042ae3
cmp eax, 3
je 0x1042c90
cmp eax, 2
jne 0x1042c99
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x1042cac
jle 0x1042ca9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1042cf6
push edi
call fcn.0101b883
cmp eax, 5
jae 0x1042cf6
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [esi]
mov dword [0x104ae48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x104ae58], eax
call fcn.01043f5e
jmp 0x1042cf6
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1042d8a
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 0x1042e65
cmp dword [ebp + 8], 0
je 0x1042e65
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, 0xea60
cmp eax, dword [0x104ae6c]
mov esi, 0x104ae60
jae 0x1042de1
push dword [ebp + 8]
push esi
call fcn.01043959
test al, al
je 0x1042de1
mov eax, dword [0x104ae5c]
mov dword [edi], eax
jmp 0x1042e6c
push edi
push dword [ebp + 8]
push 0x100dd60
push 0x80000002
call fcn.01042d05
cmp eax, 3
je 0x1042dfe
cmp eax, 2
jne 0x1042e11
push edi
push dword [ebp + 8]
push 0x100dcf0
push 0x80000001
call fcn.01042d05
test eax, eax
je 0x1042e28
jle 0x1042e21
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x1042e6c
push dword [ebp + 8]
call fcn.0101b883
cmp eax, 5
jae 0x1042e6c
push 5
push esi
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [edi]
mov dword [0x104ae5c], eax
call ebx
lea ecx, [ebp - 0x10]
mov dword [0x104ae6c], eax
call fcn.01043f5e
jmp 0x1042e6c
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10c3bc2
Capabilities:
Encode data using xor

Disassembly:
inc dword [ebp - 0x206]
call esi
xor eax, edi
xchg ecx, ecx
je fcn.010c3bc2
xor edi, eax
jmp 0x10c3d52
lea ecx, [edx - 0x4f]
dec ecx
mov ch, 0x7e
add edx, edx
not ch
rdtsc
inc ecx
ret