joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001e34
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call 0x1002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010a8]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [0x10010ac]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x10010b0]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call fcn.010021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call 0x1002cc3
ret
Function at 0x10030b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x10030de
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a1a0]
inc ecx
dec edx
jne 0x10030c6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10038fb
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push 0x1002528
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], ebx
call dword [0x10020f8]
push 0x1002500
mov esi, eax
call fcn.01003486
cmp esi, ebx
je 0x1003948
push 0xea60
push esi
call dword [0x10020f4]
push esi
call dword [0x1002090]
jmp 0x100395f
cmp dword [ebp + 0x10], ebx
je 0x1003954
push 0xea60
jmp 0x1003959
push 0x2710
call dword [0x10020c4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x13
call fcn.01003505
test eax, eax
jne 0x1003984
push 0x10024dc
call fcn.01003486
xor eax, eax
jmp 0x1003b24
push 0x10024cc
call dword [fcn.01002088]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x10039a5
push 0x10024b0
push eax
call dword [fcn.01002084]
mov dword [ebp - 4], eax
push ebx
push dword [0x100ac04]
call dword [0x10020f4]
test eax, eax
jne 0x10039be
xor esi, esi
inc esi
jmp 0x1003afd
push edi
mov edi, dword [0x1002070]
cmp dword [ebp - 4], ebx
je 0x10039dd
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push ebx
call dword [ebp - 4]
jmp 0x10039ec
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
call dword [entry0]
mov esi, eax
cmp esi, ebx
jne 0x1003afc
call edi
cmp eax, 0x45b
je 0x1003a20
cmp eax, 0x4f7
je 0x1003a0b
cmp eax, 0x15
jne 0x1003a28
push 0xbb8
push dword [0x100ac04]
call dword [0x10020f4]
test eax, eax
jne 0x10039c5
xor esi, esi
inc esi
jmp 0x1003afc
call edi
push eax
push 0x100247c
lea eax, [ebp - 0x2bc]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x2bc]
push eax
call fcn.01003486
mov edi, dword [fcn.010020f0]
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call edi
cmp dword [ebp - 0xb0], 4
jbe 0x1003afc
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x9c
call edi
test byte [ebp - 0x1c], 0x40
je 0x1003afc
push 0x104
lea eax, [ebp - 0x1b8]
push eax
call dword [fcn.0100208c]
test eax, eax
je 0x1003afc
lea eax, [ebp - 0x1b8]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov byte [eax + 1], bl
push 0xc0000000
lea eax, [ebp - 0x1b8]
push eax
call dword [fcn.01002098]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003afc
push edi
call dword [0x10020ec]
push edi
mov esi, eax
call dword [0x1002090]
cmp esi, ebx
je 0x1003afc
push 1
call dword [0x10021c0]
mov esi, eax
pop edi
cmp dword [ebp + 0x10], ebx
je 0x1003b0b
push dword [ebp + 0x10]
call dword [fcn.01002080]
lea eax, [ebp - 0x18]
push eax
call fcn.01003594
cmp esi, ebx
jge 0x1003b22
push 0x1002464
call fcn.01003486
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1003d4e
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003da6
lea eax, [ebp + 8]
push eax
push 0x28
call dword [0x10020fc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003dad
xor eax, eax
jmp 0x1003e63
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x100b0c0
push 4
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1003e62
push esi
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01003b2a
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003e3f
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x100b0c0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1003e61
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01003b2a
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003e46
push 8
call fcn.01003827
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x401350
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00404f60
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00405000
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00427096
add esp, 0x68
ret
Function at 0x401a10
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00403ac0
add esp, 8
test eax, eax
jne 0x401a7b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00427096
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x401a90
push esi
lea ecx, [esp + 0x14]
call fcn.00404f60
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00405000
test edi, edi
je 0x401aae
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00427096
add esp, 0x6c
ret

Function at 0x401b40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00403cb0
add esp, 4
test eax, eax
jne 0x401b9e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00427096
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00405000
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00427096
add esp, 0x64
ret

Function at 0x401bc0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.00403d90
add esp, 8
test eax, eax
jne 0x401c3f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00427096
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00404b40
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00427096
add esp, 0x74
ret

Function at 0x402610
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40263b
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x402654
push 0x455620
call fcn.00405b10
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x402f23
mov dword [esp + 0x10], 0xffffffff
jmp 0x402f29
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x402f57
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
jmp 0x403037
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402f87
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
jmp 0x403037
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x402fa9
mov eax, 1
push 0x455620
call fcn.00405b10
add esp, 4
jmp 0x403037
cmp dword [esp + 0x40], ebx
je 0x402fe5
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x402fcb
mov eax, 5
push 0x455620
call fcn.00405b10
add esp, 4
jmp 0x403037
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x40302f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x402ff3
mov ebx, esi
jmp 0x402fb7
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40301c
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
jmp 0x403037
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00402610
test eax, eax
je 0x403037
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403041
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427096
add esp, 0x28
ret
Function at 0x403920
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebx]
mov esi, dword [ebx + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x403962
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xb4]
xor edx, edx
sub edi, esi
mov esi, dword [esp + 0x14]
sbb esi, edx
sub edi, 0x298
sbb esi, edx
xor eax, eax
cmp esi, eax
jl 0x403a27
jg 0x403992
cmp edi, ecx
jb 0x403a27
mov ebx, dword [ebx]
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4039c0
push 0x455620
mov eax, 0x455620
call fcn.00405aa0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push 0x298
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039a5
cmp dword [esp + 0xc], 0x298
je 0x403a01
push 0x455620
mov eax, 1
call fcn.00405b10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403a0e
mov dword [eax], edi
mov dword [eax + 4], esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403a34
mov edx, 1
mov word [eax], dx
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403a34
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4042e0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x45fe58]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x404420
cmp dword [esp + 0x28], ebp
je 0x404420
push ebx
push 0x2800
call fcn.0042756b
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x404343
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00427096
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x404350
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.004024a0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4043f6
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004270e0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4043e9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x4043e9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00404060
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x404400
inc edi
cmp edi, 0x10
jl 0x404350
push ebx
call fcn.00427635
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00427096
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00427096
add esp, 0x1c
ret
Function at 0x4044d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x40450a
cmp dword [esp + 0x34], esi
je 0x40450a
push 0x200
call fcn.0042756b
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x404515
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404674
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x40460a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40456d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4045e3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4045d8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.00404440
cmp edx, edi
jb 0x4045d8
ja 0x4045d2
cmp eax, dword [esp + 0x24]
jbe 0x4045d8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x404560
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x404620
cmp dword [esp + 0x24], 0
jbe 0x404674
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.004024a0
add esp, 0xc
test eax, eax
jne 0x404659
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00427635
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.00404060
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.00427635
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x407120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449a10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45fe58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x463908]
xor edi, edi
cmp ecx, edi
jne 0x40716b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x407178
mov dword [ebp - 0x14], edi
jmp 0x407190
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x407236
mov ecx, dword [0x463908]
mov eax, dword [ecx]
cmp eax, edi
je 0x407157
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407157
mov dword [ebp - 4], edi
mov ebx, 0x463908
call fcn.00407250
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4071ce
mov dword [ebp - 0x18], 1
push 0x45c1b4
lea eax, [ebp - 0x18]
push eax
call fcn.004276c3
mov ecx, dword [0x463908]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4071e8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4071fd
mov dword [ebp - 0x1c], 4
push 0x45c1b4
lea edx, [ebp - 0x1c]
push edx
call fcn.004276c3
mov dword [ebp - 4], 0xffffffff
jmp 0x407222
mov eax, dword [0x463908]
mov eax, dword [eax]
test eax, eax
je 0x407234
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407250
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40727d
xor ecx, ecx
jmp 0x407289
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40733d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4072b0
mov dword [esp + 0xc], esi
jmp 0x407310
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x407309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4072fc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x407310
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x407310
push 0x455d48
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x407310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x407333
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4072a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x407351
mov ecx, dword [ebx]
add ecx, 8
call fcn.004074c0
test eax, eax
je 0x407351
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x407360
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x449a6b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45fe58]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004270e0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4073f8
push 0x45c1b4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004276c3
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8