joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ba10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000baa6
cmp eax, 0x104
ja 0x1000baa6
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000baa6
push edi
push 0x1b6
push 0x8342
push esi
call dword [sym.imp.msvcrt.dll__open]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
cmp edi, 0xffffffff
je 0x1000ba93
push 0x10001e28
push edi
call dword [sym.imp.msvcrt.dll__fdopen]
add esp, 8
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100218b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100218b0
mov esp, ebp
pop ebp
ret

Function at 0x1000c330
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, 1
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x1000c3a1
lea eax, [edx - 1]
imul eax, dword [esi + 0x2b0]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1000c386
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000c367
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c560
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov ebx, edx
mov edi, ecx
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx - 1]
imul eax, dword [edi + 0x2b0]
push eax
push dword [edi + 0x2a8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1000c5b1
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x168], 1
jne 0x1000c5c3
movzx eax, word [edi + 0x144]
jmp 0x1000c5d8
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1000c5d3
movzx eax, word [eax + 6]
jmp 0x1000c5d5
xor eax, eax
movzx eax, ax
push esi
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
jbe 0x1000c6ef
lea ebx, [ebx]
push dword [edi + 0x2a8]
mov eax, dword [edi + 0x148]
lea ecx, [esi + esi]
push 1
add eax, ecx
mov dword [ebp - 0x10], ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
xor edx, edx
test eax, eax
je 0x1000c73a
mov ecx, edi
xor ebx, ebx
call fcn.10005350
xor ecx, ecx
cmp cx, word [ebp - 8]
jge 0x1000c6df
lea esi, [eax + 0x68]
cmp dword [edi + 0x168], 3
jne 0x1000c68f
push dword [edi + 0x2a8]
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x10]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c719
push dword [edi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c719
mov ecx, dword [esi]
test ecx, ecx
je 0x1000c68f
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 4]
mov word [ecx + edx], ax
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000c6a8
cmp ax, 0x18
je 0x1000c6a8
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000c6ce
jmp 0x1000c6ad
mov eax, 8
push dword [edi + 0x2a8]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 0xc]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000c719
inc ebx
sub esi, 0xffffff80
cmp bx, word [ebp - 8]
jl 0x1000c634
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 8]
jb 0x1000c5f0
mov ebx, dword [ebp - 0x14]
lea eax, [ebx - 1]
mov dword [edi + 0x15c], esi
add eax, esi
mov dword [edi + 0x160], ebx
pop esi
mov dword [edi + 0x164], eax
xor eax, eax
mov dword [edi + 0x154], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c760
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi + 0x15c], 0
lea edi, [esi + 0x168]
lea ebx, [esi + 0x2a8]
mov dword [ebp - 0x14], edi
je 0x1000c938
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1000c7af
push ebx
mov edx, edi
mov ecx, esi
call fcn.1000c440
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1000c93a
mov ecx, dword [ebx]
jmp 0x1000c7be
mov eax, dword [esi + 0x164]
cmp eax, dword [ebx + 4]
jbe 0x1000c938
mov eax, dword [esi + 0x160]
dec eax
imul eax, dword [ebx + 8]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1000c7fb
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
jne 0x1000c80c
movzx ecx, word [esi + 0x144]
mov dword [ebp - 0x10], ecx
jmp 0x1000c824
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1000c81c
movzx eax, word [eax + 6]
jmp 0x1000c81e
xor eax, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x15c], eax
jbe 0x1000c92a
push dword [ebx]
lea ecx, [eax + eax]
mov eax, dword [esi + 0x148]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
xor edx, edx
test eax, eax
je 0x1000c965
mov ecx, esi
xor edi, edi
call fcn.10005350
xor ecx, ecx
cmp cx, word [ebp - 0x10]
jge 0x1000c917
lea esi, [eax + 0x68]
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jne 0x1000c8cb
push dword [ebx]
mov eax, dword [esi - 4]
mov edx, dword [ebp - 8]
push 1
push 2
lea eax, [eax + edx*2]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000c941
mov eax, dword [esi]
test eax, eax
je 0x1000c8ad
mov edx, dword [ebp - 8]
lea ecx, [edx + edx]
movzx eax, word [eax + ecx]
jmp 0x1000c8b0
or eax, 0xffffffff
push dword [ebx]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000c941
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000c8e4
cmp ax, 0x18
je 0x1000c8e4
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000c906
jmp 0x1000c8e9
mov eax, 8
push dword [ebx]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 8]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000c941
inc edi
sub esi, 0xffffff80
cmp di, word [ebp - 0x10]
jl 0x1000c872
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x15c]
jb 0x1000c835
mov eax, dword [esi + 0x164]
cmp dword [ebx + 4], eax
jae 0x1000c938
mov dword [ebx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor edx, edx
push 0
push 0
push 0x27
push 0
push 0
add ecx, 8
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d820
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x138]
mov dword [ebp - 4], edi
test eax, eax
je 0x1000d842
movzx ecx, word [eax + 6]
jmp 0x1000d844
xor ecx, ecx
movzx edx, word [ebx + 0x144]
sub ecx, edx
movzx ecx, cx
test eax, eax
jne 0x1000d858
xor esi, esi
jmp 0x1000d861
movsx esi, dx
shl esi, 7
add esi, dword [eax + 8]
test cx, cx
je 0x1000d9a9
lea ebx, [ebx]
movzx eax, word [esi + 8]
dec ecx
mov dword [ebp - 0x1c], ecx
cmp ax, 8
je 0x1000d888
cmp ax, 0x18
jne 0x1000d99d
cmp dword [esi + 0x7c], 0
jne 0x1000d8a3
mov ecx, 0x10001e54
call fcn.1000ba10
mov dword [esi + 0x7c], eax
test eax, eax
je 0x1000d9cb
test edi, edi
jne 0x1000d8c6
push 0x10000
push edi
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x1000d9e7
push 2
push 0
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000d9cb
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 0x18], eax
xor edx, edx
mov edi, 0x7fffffff
mov dword [ebp - 8], edx
jmp 0x1000d900
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0xffff
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp edi, 0xffff
jg 0x1000d91b
mov dword [ebp - 0xc], edi
movsx eax, word [esi + 0x44]
movzx ecx, word [esi]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ecx
push dword [ebx + 0x1c]
push 7
push 0x15
push dword [ebx]
call fcn.100101c0
add esp, 0x28
test ax, ax
jne 0x1000da24
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jne 0x1000da08
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x1000d989
push dword [esi + 0x7c]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000d9cb
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
sub edi, dword [ebp - 0x10]
jne 0x1000d900
jmp 0x1000d98c
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
sub esi, 0xffffff80
test cx, cx
jne 0x1000d870
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000d9c1
push eax
push 0
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000d9ab
push 0
push 0
push 0x28
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x55
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000d9ab
push dword [ebx]
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 8]
call fcn.10009dd0
add esp, 4
or esi, 0xffffffff
jmp 0x1000d9ab
Function at 0x10010330
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x10010348
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10010360
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e4], eax
test eax, eax
je 0x100103cc
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010373
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1001038b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e8], eax
test eax, eax
je 0x100103cc
cmp dword [esi + 0x4ec], 0
jne 0x100103c8
lea eax, [esi + 0x4f0]
push eax
push 0
push esi
push 0x10010270
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x4ec], eax
test eax, eax
je 0x100103cc
push 0xffffffffffffffff
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x100103e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e4], 0
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010402
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e8], 0
or eax, 0xffffffff
pop esi
ret
Function at 0x10017cc0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
movsx eax, dx
mov ebx, dword [edi + 0x2b4]
lea esi, [edi + 0x168]
mov dword [ebp - 0x30], ebx
sub eax, 0
je 0x10017d2a
sub eax, 1
je 0x10017d26
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x13c]
test al, 2
je 0x10017e9a
or eax, 4
mov dword [esi + 4], eax
test ecx, ecx
je 0x10017e9a
mov eax, dword [esi + 0x138]
mov edx, 5
mov word [ecx + eax*2], dx
jmp 0x10017e9a
or dword [esi + 4], 4
mov ecx, dword [esi + 0x13c]
mov edx, 4
inc dword [edi + 0x24]
test ecx, ecx
je 0x10017d46
mov eax, dword [esi + 0x138]
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x1c]
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ecx + 0x14]
push 0x100036e0
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x18]
push 5
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
push 0x19
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.100101c0
add esp, 0x20
test eax, eax
jne 0x10017e9a
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 0xb
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push 0x100036f8
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.100101c0
add esp, 0x38
test eax, eax
jne 0x10017e9a
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 5
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x100036fc
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.100101c0
add esp, 0x38
test eax, eax
jne 0x10017e9a
push dword [ebx + 0x1c]
push 1
push 0x12
push dword [ebx]
call fcn.100101c0
add esp, 0x10
test eax, eax
jne 0x10017e9a
cmp dword [edi + 0x2a8], 0
lea ebx, [edi + 0x2a8]
mov eax, 4
mov word [ebp - 0x34], ax
jne 0x10017e26
push ebx
mov edx, esi
mov ecx, edi
call fcn.1000c440
add esp, 4
test ax, ax
jne 0x10017e97
push 2
push 0
push dword [ebx]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10017e52
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.10009cc0
add esp, 0x14
jmp 0x10017e97
push dword [ebx]
lea eax, [ebp - 0x34]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x10017e39
mov eax, dword [edi + 0x138]
test eax, eax
je 0x10017e76
mov eax, dword [eax + 8]
push dword [ebx]
push 1
push dword [eax + 0x50]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x10017e39
inc dword [esi + 0x130]
inc dword [ebx + 4]
mov ebx, dword [ebp - 0x30]
lea edx, [ebx + 8]
lea ecx, [edi + 8]
call fcn.10009c50
mov ecx, edx
call fcn.10009f90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100218b0
mov esp, ebp
pop ebp
ret
Function at 0x10021142
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10023f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x100041d8
push 0x80000000
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021225
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10021214
cmp dword [ebp - 0x10c], 2
mov byte [ebp - 5], bl
jne 0x100211e5
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x10021214
lea ecx, [ebp - 0x108]
sub ecx, esi
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x10021206
mov al, byte [ecx + esi]
test al, al
je 0x10021206
mov byte [esi], al
inc esi
sub edi, 1
jne 0x100211ed
test edi, edi
jne 0x1002120b
dec esi
mov byte [esi], bl
xor ebx, ebx
test edi, edi
setne bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x10021227
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100218b0
mov esp, ebp
pop ebp
ret

Function at 0x10021ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10021afe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10021af6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10021b00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10021ae6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10021bd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10021be6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10021c01
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x1002b24d
Capabilities:
Encode data using xor

Disassembly:
call 0x1002b1c6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1002b1f6
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1002b212
xor edx, 0
jmp 0x1002b21d
xor edx, edx
jmp 0x1002b234
jmp 0x1002b240
xor eax, eax
push 0x8427d7c0
call 0x1002b24d
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1002b289
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1002b262
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1002b2a0
add eax, 0
jno 0x1002b2a5
add esi, 0
ret 0x10

Function at 0x1002c00e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1002c030
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1002c1d2
cmp edi, dword [ebp + 0x10]
jb 0x1002c1d2
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1002bafa
inc edi
jmp 0x1002c0b9
jmp 0x1002c0c6
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bafa
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bafa
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1002c11a
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1002c0fe
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1002c148
add dword [eax], 0x39
jle 0x1002c124
sub al, 0xf5
mov ch, al
call fcn.1002c15d
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x1002de35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1002de4b
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1002de5c
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1002de9d
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x10030209
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10030152
add ebx, 0
push ecx
call 0x10030167
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6e1e615b
sub ebx, dword [0x6e20599a]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6e20598a
call fcn.1002bc31
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1002b13f
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100302c5
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100302c5
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1003027c
mov eax, 1
lock xchg dword [0x6e205996], eax
push 0x3dd1fc71
call 0x10030209
push esi
add esp, 8
cmp eax, 0
jne 0x100301f2
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10030218
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1003022d
cmp ecx, edx
cmp eax, 0
je 0x10030252
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1003023c
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1003026b
dec eax
loope 0x1003026e
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6e205996], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100302a2
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100302b7
jmp 0x100302c2
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100301b0
Function at 0x1003732a
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10037600
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6e1f260e
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6e1e95d4
push 0xffffffffffffffff
call fcn.1002e52a
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10037394
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100373ac
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100375f4
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100375c8