joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41facf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x462230]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fb12
cmp word [esi], dx
jne 0x41fb12
or byte [edi + eax + 0x28], 4
jmp 0x41fb17
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41fc6a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41fc4a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41fb59
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fb8f
cmp eax, edx
jae 0x41fb9b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41fb31
jmp 0x41fc6a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fc46
cmp dword [ebp - 0x14], 0
je 0x41fc46
mov eax, dword [ebx*4 + 0x462230]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41fc1e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41fbe7
mov word [esi], cx
jmp 0x41fc1a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x462230]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x462230]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x462230]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41fc6a
pop ebx
cmp word [ebp - 4], bx
jne 0x41fc2f
cmp esi, dword [ebp + 0xc]
jne 0x41fc2f
mov word [esi], bx
jmp 0x41fc67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420503
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41fc6a
push 0xd
jmp 0x41fc63
mov ecx, dword [ebx*4 + 0x462230]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fc61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fc6a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421905
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4219a2
push ebx
push esi
call fcn.004218ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004206af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42194f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4219a1
push edi
push eax
call fcn.0041c0b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42196f
call fcn.0041b119
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4219a0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004206af
add esp, 0x20
test eax, eax
jne 0x42198e
push edi
call fcn.0041b119
jmp 0x421996
push ebx
call fcn.0041b119
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x428cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428cfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10005280
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004ef4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
mov eax, dword [0x1006099c]
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x414], eax
call fcn.10030a03
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
mov esi, 0x10053580
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x100535b0
movsw word es:[edi], word [esi]
push 0x17
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x430], 0
movsb byte es:[edi], byte [esi]
call fcn.10030a13
mov eax, dword [0x100618d4]
test eax, eax
jne 0x1000533b
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [0x100618d4], eax
jne 0x1000533b
lea edx, [esp + 0x10]
push edx
push 0x1000
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x100618d4], eax
mov ecx, dword [0x100618d8]
test ecx, ecx
jne 0x10005359
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100618d8], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x424], 0xffffffff
call fcn.10030a0c
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x414]
call fcn.1003fd01
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007350
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f1b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov eax, dword [0x1006099c]
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x434], eax
call fcn.10030a03
mov edx, dword [0x100535a0]
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x30], bl
mov ecx, 0xff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1005359c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10053598]
mov dword [esp + 0x30], eax
mov eax, dword [0x100535a4]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x100535a8]
push 0x100535b0
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov edx, dword [0x100535ac]
push 0x18
lea eax, [esp + 0x38]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], ebx
mov dword [esp + 0x50], edx
call fcn.10030a13
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.10007100
add esp, 0x18
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
mov byte [esp + 0x450], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.10005280
mov edi, dword [0x100618d8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007446
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x10007470
lea ecx, [esp + 0x18]
mov edx, dword [0x100618d8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x10007476
mov edx, dword [0x100618d8]
mov eax, edx
lea edi, [eax + 1]
jmp 0x10007490
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007490
sub eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], 0x10
jb 0x100074c3
mov eax, dword [esp + 0x18]
push eax
call fcn.10036530
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x444], 0xffffffff
call fcn.10030a0c
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
call fcn.1003fd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f1b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov eax, dword [0x1006099c]
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x434], eax
call fcn.10030a03
mov edx, dword [0x100535a0]
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x30], bl
mov ecx, 0xff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1005359c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10053598]
mov dword [esp + 0x30], eax
mov eax, dword [0x100535a4]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x100535a8]
push 0x100535b0
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov edx, dword [0x100535ac]
push 0x18
lea eax, [esp + 0x38]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], ebx
mov dword [esp + 0x50], edx
call fcn.10030a13
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.10005280
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x100618d8]
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007cc0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.10001f80
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x44c], 1
call fcn.100077e0
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, 0x10
jb 0x10007d07
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10036530
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x444], 0xffffffff
call fcn.10030a0c
mov ecx, dword [esp + 0x43c]
mov al, byte [esp + 0xf]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
call fcn.1003fd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009e70
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004f400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esi + 0x50]
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
lea edi, [esi + 0x70]
mov eax, 0xf
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [edi + 4], bl
lea ebp, [esi + 0x8c]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xac], bl
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xc8], bl
mov dword [esi + 0xf8], eax
mov dword [esi + 0xf4], ebx
mov byte [esi + 0xe4], bl
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], ebx
mov byte [esi + 0x100], bl
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ebx
mov byte [esi + 0x11c], bl
mov dword [esi + 0x14c], eax
mov dword [esi + 0x148], ebx
mov byte [esi + 0x138], bl
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], ebx
mov byte [esi + 0x154], bl
mov dword [esi + 0x184], eax
mov dword [esi + 0x180], ebx
mov byte [esi + 0x170], bl
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x19c], ebx
mov byte [esi + 0x18c], bl
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1b8], ebx
mov byte [esi + 0x1a8], bl
mov byte [esp + 0x1c], 0xc
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x68], 0xa
call fcn.10007d50
push 0xb
push 0x10053650
lea ecx, [esi + 0x1a4]
call fcn.10001f80
push ebx
push 0x100534c7
mov ecx, edi
call fcn.10001f80
push ebx
push 0x100534c7
mov ecx, ebp
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0x188]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0x150]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0x134]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0xfc]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0x118]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0x16c]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0xc4]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0xe0]
call fcn.10001f80
push ebx
push 0x100534c7
lea ecx, [esi + 0xa8]
call fcn.10001f80
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000ed60
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x248
mov eax, dword [0x1006099c]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x80
push 0x10053840
mov dword [esp + 0x258], eax
mov dword [esp + 0x14], ecx
call esi
mov eax, dword [esp + 0x258]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10053838
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000eebf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000ede0
push 0x10053570
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000eea7
push 0x10053834
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000eea7
mov ecx, dword [esp + 0x25c]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100537f4
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x18]
push edx
call edi
test byte [esp + 0x114], 0x10
je 0x1000ee66
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.1000ed60
lea eax, [esp + 0x114]
push eax
jmp 0x1000eeaf
push 0x80
lea ecx, [esp + 0x18]
push ecx
call esi
push 0x80
push 0x1005382c
call esi
push 0x80
push 0x10053824
call esi
push 0x80
push 0x1005381c
call esi
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x114]
push eax
jmp 0x1000eeaf
lea ecx, [esp + 0x114]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000ede0
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x250]
pop edi
pop esi
mov eax, 1
pop ebp
call fcn.1003fd01
add esp, 0x248
ret 4

Function at 0x1000f0d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1004f938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
cmp dword [0x100a1de0], 0x10
mov eax, dword [0x100a1dcc]
mov dword [esp + 0xc], 0
jae 0x1000f101
mov eax, 0x100a1dcc
push eax
call fcn.1000ed60
cmp dword [0x100a1de0], 0x10
mov eax, dword [0x100a1dcc]
jae 0x1000f11a
mov eax, 0x100a1dcc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10009030
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10036530
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x1000f1f0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x248
mov eax, dword [0x1006099c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x254]
push esi
push edi
mov dword [esp + 0x254], eax
push ebp
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10053838
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000f303
nop
push 0x10053570
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000f2ec
push 0x10053834
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000f2ec
push ebp
lea eax, [esp + 0x18]
push eax
call ebx
push 0x100537f4
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x18]
push eax
call esi
test byte [esp + 0x114], 0x10
je 0x1000f2c7
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.1000f1f0
lea ecx, [esp + 0x114]
push ecx
jmp 0x1000f2f4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x114]
push ecx
jmp 0x1000f2f4
lea edx, [esp + 0x114]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000f250
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.1003fd01
add esp, 0x248
ret 4
Function at 0x10010b70
Capabilities:
Encode data using xor
Query or enumerate registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
mov esi, dword [edx]
mov edi, 0x1005f214
mov dword [esp + 0x10], 0x10
lea esp, [esp]
xor ecx, dword [edi]
xor eax, eax
mov al, cl
xor edx, edx
mov ebx, ecx
sub edi, 4
and eax, 0xff
mov ebp, eax
mov eax, ecx
shr eax, 8
mov dl, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1005f220]
and eax, 0xff
add ecx, dword [eax*4 + 0x1005f620]
and edx, 0xff
movzx edx, dx
xor ecx, dword [edx*4 + 0x1005fa20]
movzx eax, bp
mov edx, dword [eax*4 + 0x1005fe20]
mov eax, dword [esp + 0x10]
add ecx, edx
xor ecx, esi
dec eax
mov esi, ebx
mov dword [esp + 0x10], eax
jne 0x10010bb0
mov eax, dword [0x1005f1d4]
mov edx, dword [esp + 0x18]
xor eax, ecx
mov ecx, dword [0x1005f1d0]
pop edi
xor ecx, esi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
Function at 0x10013d30
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x10050158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x1006099c]
push ebx
mov dword [esp + 0x50], eax
mov eax, dword [0x100a1c40]
push ebp
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [0x100a1c2c]
mov dword [esp + 0x18], ecx
jae 0x10013d6f
mov eax, 0x100a1c2c
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
cmp dword [0x100a1e6c], ebp
mov ecx, dword [0x100a1e58]
jae 0x10013d89
mov ecx, 0x100a1e58
cmp dword [0x100a1c40], ebp
mov eax, dword [0x100a1c2c]
jae 0x10013d9b
mov eax, 0x100a1c2c
xor ebx, ebx
push ebx
push ebx
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x10013ee2
lea ecx, [esp + 0xc]
call fcn.10032bb6
push 2
push 0x100a1e54
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], ebx
call fcn.10033a4e
test al, al
je 0x10013ed1
push 1
push 0xffffffffffffffff
push 0x100537ac
mov ecx, 0x100a1c28
mov dword [esp + 0x14], ebx
call fcn.1000da00
push 0x24
inc eax
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, 0x100a1c28
call fcn.100022d0
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffffe
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 1
call fcn.100022d0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call fcn.10001e90
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x60], 1
jb 0x10013e44
mov eax, dword [esp + 0x20]
push eax
call fcn.10036530
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x20], ebx
call fcn.10033697
test al, al
mov ecx, dword [esp + 8]
jne 0x10013ea8
push ecx
call fcn.100404b3
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebp
jb 0x10013e96
mov edx, dword [esp + 0x3c]
push edx
call fcn.10036530
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jmp 0x10013ed1
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.10012ea0
test al, al
jne 0x10013ee6
mov edx, dword [esp + 8]
push edx
call fcn.100404b3
add esp, 4
lea ecx, [esp + 0x38]
call fcn.10001970
lea ecx, [esp + 0xc]
mov dword [esp + 0x60], 0xffffffff
call fcn.10032d3d
xor al, al
jmp 0x10013f0f
mov eax, dword [esp + 8]
push eax
call fcn.100404b3
add esp, 4
lea ecx, [esp + 0x38]
call fcn.10001970
lea ecx, [esp + 0xc]
mov dword [esp + 0x60], 0xffffffff
call fcn.10032d3d
mov al, 1
mov ecx, dword [esp + 0x58]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x50]
pop ebx
call fcn.1003fd01
add esp, 0x5c
ret
Function at 0x10014a60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100501e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea ebp, [ebx + ebx + 2]
cmp ebp, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
jge 0x10014b48
lea esp, [esp]
mov esi, dword [esp + 0x28]
mov eax, ebp
imul eax, eax, 0x1c
mov ecx, dword [eax + esi - 4]
mov edi, dword [eax + esi - 8]
add eax, esi
cmp ecx, 0x10
mov dword [esp + 0x10], edi
jb 0x10014ac5
mov ecx, dword [eax - 0x18]
mov dword [esp + 0x2c], ecx
jmp 0x10014acc
lea edx, [eax - 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x14]
mov ecx, edx
cmp ecx, edx
jae 0x10014ad5
test edx, edx
je 0x10014b0c
cmp edx, edi
mov ecx, edx
jb 0x10014ae1
mov ecx, edi
cmp dword [eax + 0x18], 0x10
jb 0x10014aec
mov eax, dword [eax + 4]
jmp 0x10014aef
add eax, 4
mov edi, dword [esp + 0x2c]
mov esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10014b00
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov esi, dword [esp + 0x28]
jne 0x10014b19
mov edi, dword [esp + 0x10]
cmp edx, edi
jb 0x10014b1b
xor eax, eax
cmp edx, edi
setne al
test eax, eax
jge 0x10014b1c
dec ebp
mov eax, ebp
imul eax, eax, 0x1c
mov ecx, ebx
imul ecx, ecx, 0x1c
push 0xffffffffffffffff
add eax, esi
push 0
add ecx, esi
push eax
call fcn.10001e90
mov eax, dword [esp + 0x30]
mov ebx, ebp
lea ebp, [ebp + ebp + 2]
cmp ebp, eax
jl 0x10014aa0
jmp 0x10014b4c
mov esi, dword [esp + 0x28]
cmp ebp, eax
jne 0x10014b6f
imul eax, eax, 0x1c
mov ecx, ebx
imul ecx, ecx, 0x1c
push 0xffffffffffffffff
lea eax, [eax + esi - 0x1c]
push 0
add ecx, esi
push eax
call fcn.10001e90
mov eax, dword [esp + 0x30]
lea ebx, [eax - 1]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x58]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.10001e90
mov eax, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.10014790
mov eax, dword [esp + 0x74]
add esp, 0x28
cmp eax, 0x10
jb 0x10014bbd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10036530
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret