joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ed78
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x64
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0x60], eax
call fcn.0048ee78
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
jne 0x48ed9a
ud2
mov dword [esp + 0x10], 0x501d60
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xc], 0xe
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x60]
xor edx, edx
mov dword [esp + 0x18], ecx
mov eax, 0xa
mov dword [esp + 0x20], 0x4ed9a0
mov dword [esp + 0x1c], 1
push edx
push esi
lea edi, [esp + 0x54]
push edi
push 0x14
call fcn.004067bc
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0x501d70
mov dword [esp + 0x2c], 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov eax, dword [esp + ebx*8 + 0xc]
mov edx, dword [esp + ebx*8 + 0x10]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
call sub.KERNEL32.DLL_WriteFile
lea edi, [ebx + 1]
mov eax, dword [esp + edi*8 + 0xc]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + edi*8 + 0x10]
mov dword [esp + 0x40], edx
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
call sub.KERNEL32.DLL_WriteFile
add ebx, 2
cmp ebx, 6
jb 0x48ee0d
call fcn.004bc720
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x64
ret 0x10

Function at 0x491d08
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x491e74
push edx
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], eax
mov cl, byte [0x50ef90]
mov byte [ebp - 0x1c], cl
mov byte [0x50ef90], 1
mov dword [ebp - 4], 0
mov ebx, eax
mov edi, eax
add edi, 0xc
push edi
mov edx, 0x49b18c
mov esi, dword [eax + 0x24]
push 4
add ebx, 8
push eax
push edx
push esi
push 0
call fcn.004bc72c
mov dword [ebx], eax
add esp, 0x18
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
jne 0x491d81
mov ebx, 0x5021d0
push ebx
push 0x15
call fcn.0049b348
mov esi, 0x50f010
mov ebx, 0x50f004
push esi
call sub.KERNEL32.DLL_EnterCriticalSection
mov dword [ebp - 4], 1
inc dword [0x50f064]
mov eax, dword [0x50f064]
shl eax, 2
push eax
push dword [0x50f060]
call fcn.004b920c
mov dword [0x50f060], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x50f064]
lea ebx, [eax + ecx*4]
mov dword [ebx - 4], edx
add esp, 8
mov esi, dword [ebp - 0x18]
push dword [esi + 8]
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 0xffffffff
jne 0x491de9
mov eax, 0x5021f0
push eax
push 0x15
call fcn.0049b348
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push ecx
push 0x502110
call fcn.004669c8
add esp, 0xc
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4938b4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
call fcn.00408e3c
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00408f8c
push dword [esp + 0x1c]
push dword [esp + 0x1c]
lea eax, [esp + 8]
call fcn.0049ce80
lea eax, [esp]
call fcn.0049ceec
xor al, 1
je 0x493910
lea eax, [esp]
call fcn.0049cf08
push eax
lea eax, [esp + 0x14]
call fcn.00412030
lea eax, [esp]
call fcn.0049d020
lea eax, [esp]
call fcn.0049ceec
xor al, 1
jne 0x4938ea
lea eax, [esp + 0x10]
call fcn.00408fbc
add esp, 0x14
ret 8

Function at 0x493b48
Capabilities:
Hash data using murmur3

Disassembly:
push eax
mov ecx, dword [esp + 8]
push eax
imul edx, ecx, 0xcc9e2d51
rol edx, 0xf
mov dword [esp], ebx
imul ebx, edx, 0x1b873593
xor ebx, dword [esp + 4]
rol ebx, 0xd
lea eax, [ebx + ebx*4 - 0x19ab949c]
mov ebx, dword [esp]
add esp, 8
ret 4
Function at 0x49494c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x494b49
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x134
mov dword [ebp - 0x140], ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x18], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x144], 0x64
mov dword [ebp - 0x148], 0x4ee5f0
call fcn.00463690
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x130], edx
call fcn.004720ec
push dword [ebp + 0x10]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x124]
push dword [ebp + 0xc]
call fcn.00470798
mov dword [ebp - 4], 0
lea eax, [ebp - 0x124]
call fcn.00449110
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
push edi
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov esi, eax
cmp eax, 0xea
jne 0x494a59
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x12c]
call fcn.0049de90
lea eax, [ebp - 0x124]
call fcn.00449110
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp - 0x130]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push 0
push edi
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov esi, eax
push esi
mov ebx, 0x494b54
mov edi, 0x4fd570
push ebx
mov eax, 0x2c7
push 0
push edi
push 0x16
call fcn.00494468
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
sete dl
mov ebx, 0x494b60
push edx
push ebx
push 0
call fcn.00411f70
mov edi, dword [ebp - 0x1c]
cmp edi, 3
je 0x494ac7
mov esi, 0x4fd460
push esi
call fcn.00462d20
add esp, 4
mov edi, 0x502bc0
push edi
mov edx, 0x4fd570
mov ebx, eax
push 0x27
mov eax, ebx
push edx
push 0x16
push 0x2d3
push 0
call fcn.0048ae2c
push eax
call fcn.00463074
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x12c]
call fcn.0049de90
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x134]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x502ba0
call fcn.004669c8
add esp, 0xc
call fcn.00494b11
jmp 0x494b24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x138]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x494b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x494ccd
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x12c
mov dword [ebp - 0x140], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x134], 8
push dword [ebp + 0xc]
call fcn.00470798
mov dword [ebp - 4], 0
lea edx, [ebp - 0x134]
lea ebx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x124]
push dword [ebp + 8]
push ebx
push 0
call fcn.00449110
push eax
push dword [ebp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov ecx, 0x494cd8
mov esi, 0x4fd570
push eax
mov eax, 0x2a5
push ecx
push 0
push esi
push 0x16
call fcn.00494468
mov dword [ebp - 4], 0xffffffff
call fcn.00494c4d
jmp 0x494c59
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
sete cl
mov ebx, 0x494ce4
push ecx
push ebx
push 0
call fcn.00411f70
mov esi, dword [ebp - 0x1c]
cmp esi, 0xb
je 0x494ca8
mov eax, 0x502c70
mov edx, 0x4fd570
mov ecx, 0x4fd460
push eax
push 0x2f
push edx
push 0x16
push 0x2b0
push 0
push ecx
call fcn.00462d20
add esp, 4
call fcn.0048ae2c
push eax
call fcn.00463074
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x138]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x494d14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x494e5c
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x12c
mov dword [ebp - 0x140], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
mov dword [ecx], 0
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x134], 4
push dword [ebp + 0xc]
call fcn.00470798
mov dword [ebp - 4], 0
lea edx, [ebp - 0x134]
lea ebx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x124]
push dword [ebp + 8]
push ebx
push 0
call fcn.00449110
push eax
push dword [ebp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov ecx, 0x494e68
mov esi, 0x4fd570
push eax
mov eax, 0x281
push ecx
push 0
push esi
push 0x16
call fcn.00494468
mov dword [ebp - 4], 0xffffffff
call fcn.00494dca
jmp 0x494dd6
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
sete cl
mov ebx, 0x494e74
push ecx
push ebx
push 0
call fcn.00411f70
mov esi, dword [ebp - 0x1c]
cmp esi, 4
je 0x494e37
cmp esi, 5
je 0x494dfc
jmp 0x494e07
mov edx, dword [ebp + 8]
mov eax, dword [edx]
bswap eax
mov dword [edx], eax
jmp 0x494e37
mov edx, 0x502cc0
mov ecx, 0x4fd570
mov ebx, 0x4fd460
push edx
push 0x2f
push ecx
push 0x16
push 0x297
push 0
push ebx
call fcn.00462d20
add esp, 4
call fcn.0048ae2c
push eax
call fcn.00463074
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x138]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x494ea4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x495135
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x13c
mov dword [ebp - 0x148], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14c], esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0xffffffff
push dword [ebp + 0xc]
call fcn.00470798
mov dword [ebp - 4], 0
push 0x100
mov ecx, 0x5028c0
push ecx
call fcn.004781d4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
add eax, eax
mov dword [ebp - 0x140], edx
call fcn.004720ec
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x124]
call fcn.00449110
lea edx, [ebp - 0x1c]
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push esi
call sub.ADVAPI32.DLL_RegQueryValueExW
mov ebx, eax
add esp, 8
cmp ebx, 0xea
jne 0x494fb3
lea ecx, [ebp - 0x144]
push ecx
mov eax, dword [ebp - 0x12c]
shr eax, 1
call fcn.0048a7b0
lea eax, [ebp - 0x124]
call fcn.00449110
lea edx, [ebp - 0x1c]
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push esi
call sub.ADVAPI32.DLL_RegQueryValueExW
mov ebx, eax
jmp 0x494fcb
test ebx, ebx
jne 0x494fcb
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x12c]
shr eax, 1
call fcn.0048a7b0
push ebx
mov edx, 0x495140
mov ecx, 0x4fd570
push edx
mov eax, 0x261
push 0
push ecx
push 0x16
call fcn.00494468
cmp dword [ebp - 0x1c], 7
sete dl
mov ecx, 0x49514c
push edx
push ecx
push 0
call fcn.00411f70
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
sete cl
mov edx, 0x49517c
push ecx
push edx
push 0
call fcn.00411f70
lea ecx, [ebp - 0x144]
push ecx
mov eax, dword [ebp - 0x144]
dec eax
call fcn.0048a7b0
cmp dword [ebp - 0x144], 0
je 0x495062
mov edx, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
lea ecx, [ecx + edx*2]
cmp word [ecx - 2], 0
mov esi, dword [ebp - 0x144]
jne 0x495062
lea ebx, [ebp - 0x144]
push ebx
mov eax, dword [ebp - 0x144]
lea eax, [eax - 1]
call fcn.0048a7b0
push dword [ebp - 0x140]
mov edx, 0x502d10
push dword [ebp - 0x144]
push edx
push 1
call fcn.0049dec0
mov dword [ebp - 0x13c], eax
push edi
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x138], edx
call fcn.00478010
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 0x134], eax
xor ebx, ebx
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x134], ebx
je 0x4950d9
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x138]
lea esi, [ecx + ebx*8]
push dword [edx + ebx*8 + 4]
mov edi, ebx
push dword [edx + ebx*8]
call fcn.0047214c
inc ebx
mov dword [esi], eax
mov dword [esi + 4], edx
cmp ebx, dword [ebp - 0x134]
jb 0x4950ae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x502cf0
call fcn.004669c8
add esp, 0xc
call fcn.004950fd
jmp 0x495110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x148]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4951ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x495410
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x134
mov dword [ebp - 0x140], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x148], ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x144], esi
lea esi, [ebp - 0x13c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x12c]
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp + 0x10]
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x24], 8
push dword [ebp + 0xc]
call fcn.00470798
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
call fcn.00449110
lea ecx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea edx, [ebp - 0x20]
push edx
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xea
jne 0x49529b
push dword [ebp - 0x24]
mov ecx, 0x4d9220
push ecx
call fcn.00463690
mov esi, edx
lea eax, [ebp - 0x12c]
call fcn.00449110
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
push esi
push edx
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [ebp - 0x1c], eax
add esp, 8
push dword [ebp - 0x1c]
mov edx, 0x49541c
mov ecx, 0x4fd570
push edx
mov eax, 0x221
push 0
push ecx
push 0x16
call fcn.00494468
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
sete cl
mov edx, 0x495428
push ecx
push edx
push 0
call fcn.00411f70
mov ebx, dword [ebp - 0x20]
cmp ebx, 0xb
ja case.0x4952db.0
jmp dword [ebx*4 + 0x502d20]
mov dword [ebp - 0x130], esi
mov ecx, dword [ebp - 0x24]
shr ecx, 1
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x134], 0
je 0x49532a
mov edx, dword [ebp - 0x134]
lea ecx, [esi + edx*2]
mov eax, dword [ebp - 0x134]
cmp word [ecx - 2], 0
jne 0x49532a
lea ebx, [ebp - 0x134]
push ebx
mov eax, dword [ebp - 0x134]
lea eax, [eax - 1]
call fcn.0049df00
push dword [ebp - 0x130]
push dword [ebp - 0x134]
call fcn.0049df30
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4953b4
mov eax, dword [ebp - 0x13c]
call fcn.00406988
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4953b4
mov eax, dword [ebp - 0x13c]
bswap eax
call fcn.00406988
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4953b4
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
call fcn.0049df40
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4953b4
mov ecx, 0x4fd460
push ecx
call fcn.00462d20
add esp, 4
mov edx, 0x502bc0
push edx
mov esi, 0x4fd570
mov ebx, eax
push 0x27
mov eax, ebx
push esi
push 0x16
push 0x247
push 0
call fcn.0048ae2c
push eax
call fcn.00463074
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x502d50
call fcn.004669c8
add esp, 0xc
call fcn.004953d8
jmp 0x4953eb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x140]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x495b9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x495d7c
push edx
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ebx
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], eax
push dword [eax + 8]
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebp - 0x18]
push 0
push 1
mov ecx, dword [ebp - 0x18]
inc dword [eax + 0x30]
push dword [ecx + 8]
call sub.KERNEL32.DLL_ReleaseSemaphore
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x1c]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push dword [edx + 0xc]
call sub.KERNEL32.DLL_WaitForSingleObject
mov esi, eax
cmp eax, 0x102
sete cl
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], cl
lea ecx, [edx + 0x14]
push ecx
call sub.KERNEL32.DLL_EnterCriticalSection
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 0x34]
test edi, edi
je 0x495c91
cmp byte [ebp - 0x1c], 0
je 0x495c50
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x30], 0
je 0x495c49
mov edx, dword [ebp - 0x18]
xor edi, edi
dec dword [edx + 0x30]
jmp 0x495c50
mov dword [ecx + 0x2c], 1
mov ecx, dword [ebp - 0x18]
dec dword [ecx + 0x34]
mov edx, dword [ecx + 0x34]
test edx, edx
jne 0x495cd8
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x30], 0
je 0x495c7b
push 0
push 1
mov edx, dword [ebp - 0x18]
push dword [edx + 8]
call sub.KERNEL32.DLL_ReleaseSemaphore
mov esi, eax
xor edi, edi
jmp 0x495cd8
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + 0x2c]
test ebx, ebx
je 0x495cd8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], 0
jmp 0x495cd8
mov ecx, dword [ebp - 0x18]
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
cmp edx, 0x3fffffff
jne 0x495cd8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push dword [ecx + 8]
call sub.KERNEL32.DLL_WaitForSingleObject
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x2c]
push 0
mov edx, dword [ebp - 0x18]
mov esi, eax
sub dword [edx + 0x30], ecx
push 1
mov ecx, dword [ebp - 0x18]
push dword [ecx + 8]
call sub.KERNEL32.DLL_ReleaseSemaphore
mov edx, dword [ebp - 0x18]
mov esi, eax
mov dword [edx + 0x2c], 0
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + 0x14]
push edx
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp edi, 1
jne 0x495d14
test ebx, ebx
jle 0x495d01
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0xc]
call sub.KERNEL32.DLL_WaitForSingleObject
dec ebx
mov esi, eax
test ebx, ebx
jg 0x495ced
push 0
push 1
mov ebx, dword [ebp - 0x18]
push dword [ebx + 8]
call sub.KERNEL32.DLL_ReleaseSemaphore
mov esi, eax
jmp 0x495d29
test edi, edi
je 0x495d29
push 0
push 1
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
call sub.KERNEL32.DLL_ReleaseSemaphore
mov esi, eax
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov esp, ebp
pop ebp
xor al, 1
ret 4
Function at 0x49677c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
push eax
mov eax, 1
push 0
call fcn.0049e4b0
xor al, 1
je 0x4967a6
call fcn.00492148
mov eax, 1
push ebx
push 0
call fcn.0049e4b0
xor al, 1
jne 0x496790
pop ebx
ret
Function at 0x49c364
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x828
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [ebx*8 + 0x507b90]
mov edx, dword [ebx*8 + 0x507b94]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
push 0x800
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov esi, eax
test eax, eax
je 0x49c3f8
mov dword [esp + 8], esi
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edx
mov edx, 0x4d7070
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.0046f364
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0x507bf0
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], 0x4d7070
call fcn.0046f364
inc ebx
cmp ebx, 3
jb 0x49c384
mov dword [esp + 0xc], 0x502d10
lea eax, [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x4d7070
call fcn.0046f364
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add esp, 0x828
ret

Function at 0x49df50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
push edi
mov dword [esi], 0
mov eax, dword [ebx]
call fcn.004720ec
push 0
push 0
push 0
push 0
push esi
mov dword [esi], eax
push dword [ebx + 4]
push ebp
push dword [esp + 0x38]
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edi, eax
cmp eax, 0xea
je 0x49df96
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push ebx
mov eax, dword [ebx]
add eax, eax
call fcn.0048a7b0
mov eax, dword [ebx]
call fcn.004720ec
push 0
push 0
push 0
push 0
push esi
mov dword [esi], eax
push dword [ebx + 4]
push ebp
push dword [esp + 0x38]
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edi, eax
cmp eax, 0xea
jne 0x49df8d
jmp 0x49df96

Function at 0x49dfcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
push edi
mov dword [esi], 0
mov eax, dword [ebx]
call fcn.004720ec
push 0
push 0
push 0
push 0
push esi
mov dword [esi], eax
push dword [ebx + 4]
push ebp
push dword [esp + 0x38]
call sub.ADVAPI32.DLL_RegEnumValueW
mov edi, eax
cmp eax, 0xea
je 0x49e012
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push ebx
mov eax, dword [ebx]
add eax, eax
call fcn.0048a7b0
mov eax, dword [ebx]
call fcn.004720ec
push 0
push 0
push 0
push 0
push esi
mov dword [esi], eax
push dword [ebx + 4]
push ebp
push dword [esp + 0x38]
call sub.ADVAPI32.DLL_RegEnumValueW
mov edi, eax
cmp eax, 0xea
jne 0x49e009
jmp 0x49e012

Function at 0x49fac4
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
lea eax, [esp + 8]
call fcn.0040919c
xor al, 1
je 0x49faeb
inc ebx
lea eax, [esp + 8]
call fcn.004092b0
lea eax, [esp + 8]
call fcn.0040919c
xor al, 1
jne 0x49fad4
mov eax, ebx
pop ebx
ret 8
Function at 0x4a5b10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
lea eax, [esp + 8]
call fcn.0040919c
xor al, 1
je 0x4a5b4b
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004091a8
push eax
mov eax, ebx
call fcn.004afa04
lea eax, [esp + 8]
call fcn.004092b0
lea eax, [esp + 8]
call fcn.0040919c
xor al, 1
jne 0x4a5b20
pop ebx
ret 8

Function at 0x4a60d4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004afa8c
lea esi, [esp + 0x24]
lea edi, [esp + 8]
mov dword [esp + 0x1c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
call fcn.004a5f80
xor al, 1
je 0x4a612b
lea eax, [esp + 8]
call fcn.004a5f20
push edx
push eax
lea eax, [esp + 0x24]
call fcn.004afac0
lea eax, [esp + 8]
call fcn.004a5f98
lea eax, [esp + 8]
call fcn.004a5f80
xor al, 1
jne 0x4a6101
lea eax, [esp + 0x1c]
call fcn.004afce0
mov esi, dword [esp]
mov edi, dword [esp + 4]
add esp, 0x20
ret 0x14

Function at 0x4a8aa4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
xor eax, eax
call fcn.00487408
mov dword [esp], eax
call fcn.00463074