joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x406e38
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 3
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
je 0x406e8b
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x406ecf
mov eax, 0x406e86
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesA
test eax, eax
jne 0x406ea4
jmp 0x406ecf
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x789693]
xchg ebx, eax
xchg esi, eax
js 0x406ea8
sub eax, 0x783648
add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
in al, dx
in al, dx
mov eax, 0
mov dx, cs
push dx
push ecx
jmp 0x406e89
add byte [eax], al
add byte [eax], al
or eax, 0x8f6705e3
mov ch, 0x41
outsd dx, dword [esi]
mov dword [0x82007028], eax
add byte [edx + 0xf43500], dl
cmp dword [eax], edx
cmp dword [edx], ebp
jge 0x406f3b
nop
add byte [edx - 0x76], ch
in eax, 0x1c
fiadd dword ds:[ecx + 0x590080e7]
add eax, ecx
sub dword [eax + 0xd00f000], esp
jno 0x406eb9
ror edx, 1
mov word [esi], gs
pop edx
or byte [0xbaaf01c8], ch
hlt
invalid
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x360
push esi
push edi
mov ecx, 0xd5
mov dword [esp + 0xc], 0
mov esi, str.SRVQ
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 4
push 0x3000
push 0x356
movsw word es:[edi], word [esi]
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push str.shellcodePayload_addr
push 0x41c370
call fcn.004010e0
push edi
push str.alloc_mem_addr
push str.__20s_:_0x__016p_n
call fcn.004010e0
push 0x356
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00401c60
add esp, 0x24
lea eax, [esp + 0xc]
push eax
push 0x20
push 0x356
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str._nPress_Enter_to_Create_Thread__n
mov esi, eax
call fcn.004010e0
add esp, 4
call fcn.004048b6
test esi, esi
je 0x4010bb
push 0
push 0
push 0
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40709e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4070dd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4070dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4070dd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4070dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4070dd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40805c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416408
push 0x416400
push str.FlsAlloc
push 0x1f
call fcn.00407f1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408090
push dword [ebp + 8]
mov ecx, esi
call dword [0x415128]
call esi
jmp 0x408096
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4080da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416418
push 0x416410
push str.FlsGetValue
push 0x21
call fcn.00407f1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408111
push dword [ebp + 8]
mov ecx, esi
call dword [0x415128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408119
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416420
push 0x416418
push str.FlsSetValue
push 0x22
call fcn.00407f1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408153
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b838
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 0x40b8d5
push ebx
push esi
call fcn.0040b801
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.0040b795
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b882
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b8d4
push edi
push eax
call fcn.004089cc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b8a2
call fcn.00407dae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b8d3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b795
add esp, 0x20
test eax, eax
jne 0x40b8c1
push edi
call fcn.00407dae
jmp 0x40b8c9
push ebx
call fcn.00407dae
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 0x40debd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41d338]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40defd
cmp byte [ebx], 0xa
jne 0x40defd
or byte [edi + eax + 0x28], 4
jmp 0x40df02
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40e001
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40dfe4
inc eax
cmp dl, 0xd
je 0x40df2e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40df54
cmp eax, ecx
jae 0x40df62
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40df16
jmp 0x40e001
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dfdf
cmp dword [ebp - 0x10], 0
je 0x40dfdf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41d338]
test byte [eax + edi + 0x28], 0x48
je 0x40dfb9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40dfa4
mov byte [esi], dl
jmp 0x40dfb5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41d338]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40e001
cmp byte [ebp - 1], 0xa
jne 0x40dfc8
cmp esi, ebx
jne 0x40dfc8
mov byte [esi], 0xa
jmp 0x40e000
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411a37
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40e001
mov byte [esi], 0xd
jmp 0x40e000
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41d338]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40dffe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40e001
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e00a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41d338]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40e050
cmp word [ebx], dx
jne 0x40e050
or byte [eax + edi + 0x28], 4
jmp 0x40e055
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40e1b8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40e198
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40e096
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40e0cc
cmp eax, edx
jae 0x40e0da
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40e071
jmp 0x40e1b8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e193
cmp dword [ebp - 0x18], 0
je 0x40e193
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41d338]
test byte [eax + edi + 0x28], 0x48
je 0x40e169
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40e12d
mov word [esi], cx
jmp 0x40e164
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41d338]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41d338]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41d338]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40e1b8
pop eax
cmp word [ebp - 4], ax
jne 0x40e179
cmp esi, ebx
jne 0x40e179
mov word [esi], ax
jmp 0x40e1b5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411a37
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40e1b8
push 0xd
pop eax
jmp 0x40e174
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41d338]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40e1b2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40e1b8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10001937
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push 0x1006c85c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret
Function at 0x100030ec
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10067477
call fcn.100575f8
sub esp, 0x88
mov eax, dword [0x10084500]
push esi
mov esi, ecx
push 0xea60
push dword [esi + 0x110]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100032d6
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x114], eax
je 0x100032a9
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x114]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x94], ecx
je 0x100032a9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1006ca90
lea ecx, [ebp - 0x48]
call fcn.10001636
push 0x1006ca8c
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.10001636
mov eax, dword [ebp - 0x94]
add eax, 0xc
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
mov dword [ebp - 0x90], edi
call fcn.100015f3
push 0xa
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x94]
push dword [eax + 0x28]
mov byte [ebp - 4], 2
call fcn.1005b43a
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001636
cmp dword [ebp - 0x68], 0x10
mov eax, dword [ebp - 0x7c]
jae 0x100031e7
lea eax, [ebp - 0x7c]
push edi
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x6c]
push eax
push dword [esi + 0x114]
call ebx
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x10003207
lea eax, [ebp - 0x60]
push edi
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x50]
push eax
push dword [esi + 0x114]
call ebx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10003227
lea eax, [ebp - 0x28]
push edi
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x18]
push eax
push dword [esi + 0x114]
call ebx
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x10003247
lea eax, [ebp - 0x44]
push edi
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x34]
push eax
push dword [esi + 0x114]
call ebx
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
push edi
push 1
lea ecx, [ebp - 0x80]
call fcn.10001293
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.10001293
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10001293
lea ecx, [ebp - 0x94]
call fcn.10002c39
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
jne 0x1000317b
pop ebx
mov eax, dword [esi + 0x110]
cmp eax, edi
je 0x100032ba
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x114]
cmp eax, edi
je 0x100032cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x114], edi
mov al, 1
pop edi
jmp 0x100032d8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.100568ae
leave
ret 4
Function at 0x10003f6a
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
mov esi, ecx
call fcn.1000e3f2
mov ebp, dword [esp + 0xc]
and dword [esi + 0x110], 0
and dword [esi + 0x114], 0
test ebp, ebp
je 0x10003fb9
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10003fb9
push ebx
push edi
push 0x104
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1006caec
push edi
call ebx
push ebp
push edi
call ebx
pop edi
pop ebx
push str.F7EA7058_FF87_4b08_A6D8_B0F0C2A4E185
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x110], eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10003fda
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x10067506
call fcn.100575f8
sub esp, 0x144
mov eax, dword [0x10084500]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], ebx
call fcn.1000e3f2
push 0xea60
push dword [edi + 0x110]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100041cb
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi + 0x114], eax
je 0x100041a3
push esi
push str.47C0D494_C0B5_4ed7_8EB6_B8EDADF2301C
push ebx
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push dword [edi + 0x114]
mov esi, eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x114], esi
jbe 0x1000418a
push dword [ebp - 0x114]
call fcn.10056d60
cmp eax, 2
pop ecx
jbe 0x1000418a
mov esi, 0x1006ca8c
push esi
push dword [ebp - 0x114]
call fcn.10057d10
test eax, eax
pop ecx
pop ecx
jbe 0x1000418a
push esi
push dword [ebp - 0x114]
call fcn.10057d10
pop ecx
pop ecx
mov ecx, eax
inc eax
test ecx, ecx
mov dword [ebp - 0x128], eax
je 0x1000415e
push esi
push dword [ebp - 0x114]
call fcn.10057d10
mov esi, eax
sub esi, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push esi
push dword [ebp - 0x114]
push eax
call fcn.10057be0
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp + esi - 0x110], bl
call fcn.10001636
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.10003e48
push dword [ebp - 0x128]
mov esi, eax
call fcn.10057bd1
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x150]
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.10001293
push 0x1006caf0
push dword [ebp - 0x114]
call fcn.10057d10
inc eax
inc eax
mov dword [ebp - 0x114], eax
sub eax, dword [ebp - 0x118]
pop ecx
cmp eax, dword [ebp - 0x124]
pop ecx
jb 0x1000409e
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [edi + 0x110]
cmp eax, ebx
je 0x100041b4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 0x114]
cmp eax, ebx
je 0x100041c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x114], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
call fcn.10003ebe
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 1
mov byte [ebp - 4], bl
call fcn.10003dca
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100568ae
leave
ret 4
Function at 0x10004425
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x10004466
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
xor dword [ebp - 4], 0xb23c4d1
push edi
call esi
push dword [ebp - 4]
mov esi, 0x100854f8
push str._08x_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str..txt
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1000452b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.10056d60
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], eax
jbe 0x1000455d
xor edx, edx
mov eax, ecx
div dword [ebp - 4]
mov al, byte [edx + edi]
xor byte [ecx + esi], al
inc ecx
cmp ecx, ebx
jb 0x1000454b
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebx
leave
ret
Function at 0x10004a48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004a5d
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10004a6f
xor eax, eax
jmp 0x10004aa1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10004a93
cmp esi, eax
jae 0x10004a6b
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10004a85
cmp esi, eax
jae 0x10004a6b
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x10004e7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004ed0
cmp dword [ebp + 0x10], 1
je 0x10004eb9
cmp dword [ebp + 0x10], 2
jne 0x10004ec7
test edi, edi
mov eax, dword [ebp - 4]
je 0x10004ecc
cmp byte [eax + edi - 1], 0
je 0x10004ecc
push 0xd
pop eax
jmp 0x10004ed0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc