joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403e86
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040366c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402918
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403e70
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e8d
lea eax, [ebp - 0x10]
call fcn.00403500
ret

Function at 0x405110
Capabilities:
Get file size

Disassembly:
push ebx
push esi
add esp, 0xffffffcc
mov esi, edx
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x405175
mov dword [esp], 0xffffffff
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xffffffff
je 0x40514d
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_GetFileTime
test eax, eax
jne 0x405151
xor eax, eax
jmp 0x405153
mov al, 1
test al, al
je 0x405175
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp]
mov dword [esi], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.004047a0
mov dword [esi + 8], eax
mov al, 1
add esp, 0x34
pop esi
pop ebx
ret

Function at 0x405354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf8
mov ebx, ecx
mov edi, edx
mov esi, eax
mov byte [esp + 8], 0xfa
mov dword [esp], 0xfa
mov dword [esp + 4], 1
push esp
lea eax, [esp + 0xd]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, edi
call fcn.00403884
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40539f
mov eax, ebx
call fcn.00403500
jmp 0x4053ce
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0xd]
call fcn.004050ac
mov ecx, eax
mov edx, 1
lea eax, [esp + 0xc]
call fcn.004025c4
lea edx, [esp + 0x108]
mov eax, ebx
call fcn.00403660
add esp, 0x208
pop edi
pop esi
pop ebx
ret

Function at 0x40590c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov esi, edx
mov edi, eax
push 0x80
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00403884
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
mov eax, ebx
dec eax
sub eax, 0x80
jb 0x405948
sub eax, 0x7fffff7f
jb 0x405965
jmp 0x405989
mov eax, esi
mov edx, ebx
call fcn.00403a10
mov eax, esi
call fcn.004038dc
mov edx, eax
mov eax, esp
mov ecx, ebx
call fcn.00402608
jmp 0x405990
lea edx, [ebx + 1]
mov eax, esi
call fcn.00403a10
push ebx
mov eax, esi
call fcn.004038dc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
mov edx, ebx
call fcn.00403a10
jmp 0x405990
mov eax, esi
call fcn.00403500
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405a94
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret
Function at 0x405aa4
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x405ab9
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x406554
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4066a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e684]
call fcn.00405490
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [0x40e684]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov ebx, eax
test bl, bl
je 0x4065b0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40e684]
call fcn.004055a0
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.00406830
mov eax, dword [0x40e684]
call fcn.004054c0
test bl, bl
jne 0x406687
push 2
push 4
lea eax, [ebp - 4]
push eax
call sub.wsock32.dll_gethostbyaddr
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x406606
lea eax, [ebp - 0x10]
mov edx, dword [esi]
call fcn.00403630
mov eax, dword [ebp - 0x10]
call fcn.00403884
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406606
cmp dword [eax + 0xc], 0
je 0x406606
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
sete bl
test bl, bl
je 0x406617
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403554
jmp 0x406622
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406350
mov eax, dword [0x40e684]
call fcn.00405490
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [0x40e684]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov ebx, eax
test bl, bl
jne 0x40667d
mov dl, 1
mov eax, dword [0x40645c]
call fcn.00402b2c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00406830
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 8]
call fcn.00403554
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40e684]
call fcn.00405624
mov eax, dword [0x40e684]
call fcn.004054c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066a9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403524
ret
Function at 0x408028
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408159
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00403500
lea edx, [ebx + 4]
lea eax, [ebp - 4]
mov ecx, 0x408170
call fcn.00407e54
lea edx, [ebx + 8]
lea eax, [ebp - 4]
mov ecx, 0x408180
call fcn.00407e54
lea edx, [ebx + 0xc]
lea eax, [ebp - 4]
mov ecx, 0x408198
call fcn.00407e54
lea edx, [ebx + 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4081b4
call fcn.00407e54
lea edx, [ebx + 0x14]
lea eax, [ebp - 4]
mov ecx, 0x4081d0
call fcn.00407e54
lea edx, [ebx + 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4081e8
call fcn.00407e54
lea edx, [ebx + 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x408204
call fcn.00407e54
lea edx, [ebx + 0x20]
lea eax, [ebp - 4]
mov ecx, 0x408218
call fcn.00407e54
lea edx, [ebx + 0x24]
lea eax, [ebp - 4]
mov ecx, 0x408230
call fcn.00407e54
lea edx, [ebx + 0x28]
lea eax, [ebp - 4]
mov ecx, 0x408248
call fcn.00407e54
lea edx, [ebx + 0x2c]
lea eax, [ebp - 4]
mov ecx, 0x408258
call fcn.00407e54
lea edx, [ebx + 0x30]
lea eax, [ebp - 4]
mov ecx, 0x408268
call fcn.00407e54
lea edx, [ebx + 0x34]
lea eax, [ebp - 4]
mov ecx, 0x408280
call fcn.00407e54
lea edx, [ebx + 0x38]
lea eax, [ebp - 4]
mov ecx, 0x408298
call fcn.00407e54
lea edx, [ebx + 0x44]
lea eax, [ebp - 4]
mov ecx, 0x4082b4
call fcn.00407e54
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403554
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408160
lea eax, [ebp - 4]
call fcn.00403500
ret
Function at 0x409340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4093ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x4093d0
mov edx, ebx
call fcn.004036d0
push 0x40e6bc
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [ebp - 4]
call fcn.00403684
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
call fcn.004038dc
push eax
mov eax, dword [0x40e708]
push eax
call sub.kernel32.dll_WriteFile_1
push 0x40e6bc
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093c1
lea eax, [ebp - 4]
call fcn.00403500
ret

Function at 0x4093d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40945f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x409449
push ebx
push 0x409474
push esi
push 0x409484
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403744
push 0x40e6ec
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [ebp - 4]
call fcn.00403684
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
call fcn.004038dc
push eax
mov eax, dword [0x40e710]
push eax
call sub.kernel32.dll_WriteFile_1
push 0x40e6ec
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409466
lea eax, [ebp - 4]
call fcn.00403500
ret
Function at 0x409648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x40978b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edi, 0xffffffff
jne 0x40968e
lea eax, [ebp - 0x10]
mov edx, 0x4097a4
call fcn.00403598
jmp 0x409698
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00404a80
test ebx, ebx
jne 0x4096a6
lea eax, [ebp - 0x14]
call fcn.00403500
jmp 0x4096b5
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x4097b0
call fcn.004036d0
test esi, esi
jne 0x4096c8
lea eax, [ebp - 0xc]
mov edx, 0x4097a4
call fcn.00403598
jmp 0x4096d2
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00403598
push dword [ebp - 4]
push 0x4097bc
push dword [ebp - 0xc]
push 0x4097b0
lea eax, [ebp - 0x1c]
call fcn.00409488
push dword [ebp - 0x1c]
push 0x4097b0
push 0x4097c8
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x4097d4
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0xc]
call fcn.00404a80
push dword [ebp - 0x20]
push 0x4097b0
push dword [ebp - 0x10]
push 0x4097e0
lea eax, [ebp - 0x10]
mov edx, 0xe
call fcn.00403744
push 0x40e6a4
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [ebp - 0x10]
call fcn.00403684
mov ebx, eax
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x10]
call fcn.004038dc
push eax
mov eax, dword [0x40e704]
push eax
call sub.kernel32.dll_WriteFile_1
push 0x40e6a4
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409792
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403524
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403524
ret
Function at 0x40a9dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0xfffffff4
xor eax, eax
push ebp
push 0x40aafe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push dword [0x40e690]
push 0x40ab18
push 0x40ab24
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403744
mov eax, dword [ebp - 0xc]
call fcn.00403884
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40aae3
test al, 0x10
je 0x40aae3
test al, 2
jne 0x40aae3
test al, 4
jne 0x40aae3
push esi
mov eax, dword [0x40e690]
call fcn.00403684
mov ecx, eax
inc ecx
add ecx, 7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
mov edx, 1
call fcn.004038e4
mov eax, dword [esi]
call fcn.00403684
mov edx, eax
add edx, 2
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
call fcn.00405050
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
call fcn.00403598
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.00403598
lea edx, [ebp - 4]
lea eax, [ebp - 8]
mov cl, 0x5c
call fcn.00404d70
push dword [esi]
push 0x40ab18
push dword [ebp - 4]
mov eax, esi
mov edx, 3
call fcn.00403744
mov eax, dword [esi]
call fcn.00403884
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40aae3
test al, 0x10
jne 0x40aaa0
test al, 2
jne 0x40aaa0
test al, 4
jne 0x40aaa0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab05
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403524
ret
Function at 0x40c438
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x40e72c
cmp dword [edi], 0
jne 0x40c4b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x40e728]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x40d27c
mov ecx, 2
call fcn.00402608
mov edx, 0x40c410
lea eax, [esi + 5]
call fcn.0040c430
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040c430
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40c489
mov dword [0x40e728], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10007401
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10007423
mov eax, 0xfffffffd
jmp 0x10007503
mov ebx, dword [0x102168e0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100074d1
mov ebx, dword [0x102168e0]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10007472
mov ebx, dword [0x102168e0]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10007472
mov eax, 1
jmp 0x10007477
mov eax, 0
test eax, eax
je 0x100074a3
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x1000748c
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x102168e0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x100074f9
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10007503
mov esp, ebp
pop ebp
ret 4

Function at 0x1000770a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x100077bd
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x10008215
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000770a
test eax, eax
je 0x10008258
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10008258
cmp word [eax], 0x5a4d
jne 0x10008258
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10008258
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.100077dc
mov eax, dword [ebp + 8]
jmp 0x10008271
mov esp, ebp
pop ebp
ret 4
Function at 0x10010be1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push esi
push edi
push eax
push ebx
push ecx
push edx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov ebx, esi
shl ebx, 6
shr eax, 2
add ebx, eax
movsx edx, byte [ecx]
lea ebx, [edx + ebx - 0x61c88647]
xor ebx, esi
inc ecx
mov esi, ebx
cmp ecx, edi
jne 0x10010c00
mov dword [ebp - 4], ebx
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
push dword [ebp - 4]
call fcn.10010c5e
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1000f14c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x10010c58
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10036a43
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret
Function at 0x10046150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010e320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10102f7d
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100478f0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100461a4
jmp dword [ecx*4 + 0x1004630c]
mov al, byte [esi]
test al, al
je 0x100461d2
cmp al, 0x20
je 0x100461be
cmp al, 0xa1
jne 0x100461d2
cmp byte [esi + 1], al
jne 0x100461d2
test al, 0x80
je 0x100461ca
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100461d2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100461b1
test ecx, ecx
je case.default.0x100461a4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100461a4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10046218
cmp dl, 0xa1
jne 0x1004620c
cmp byte [eax + 1], 0xa1
jne 0x1004620c
test ecx, ecx
jne 0x10046204
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1004622c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10046246
jmp 0x1004622c
cmp dl, 0x20
jne 0x1004622a
test ecx, ecx
jne 0x10046223
mov edi, eax
mov ecx, 1
jmp 0x1004622c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100461ec
cmp ecx, 1
jne case.default.0x100461a4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100461a4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100461a4
mov al, byte [esi]
test al, al
je 0x1004629e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10046284
mov cl, byte [esi + 1]
test cl, cl
je 0x1004629e
cmp al, 0xa1
jne 0x10046274
cmp cl, al
je 0x10046281
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10047bc0
inc esi
jmp 0x10046296
cmp al, 0x20
je 0x10046296
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10047c00
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004625d
push 0
lea ecx, [esp + 0x14]
call fcn.10047c00
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10055a00
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100462d1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x101355b8
call fcn.10047af0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10102f0f
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret