joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6102b0d3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x61047110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.6102c960
test eax, eax
pop ecx
je 0x6102b108
push edi
push edi
push edi
push edi
push edi
call fcn.6102f89e
add esp, 0x14
push 4
pop eax
call fcn.6102c190
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6102b216
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x6102b18f
push 0x61003e18
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x6102b18f
push 0x6100a844
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x6102b18f
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x6102b18f
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x6102b18f
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.6102b0a7
add esp, 0xc
test eax, eax
jl 0x6102b216
not edi
and dword [ebp - 8], edi
je 0x6102b1c1
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.6102b0a7
add esp, 0xc
test eax, eax
jl 0x6102b216
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x6102b1cc
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x6102b1e0
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x6102b216
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x6102b216
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x6102b216
xor eax, eax
inc eax
jmp 0x6102b218
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6102aaaa
leave
ret

Function at 0x61030820
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x61030833
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x6103082f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x61030860
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x6103089f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x61030895
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x610308a1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x61030885
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x6103161f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x610474c8]
je 0x61031645
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x61031633
cmp esi, 0x17
jae 0x6103179f
push 3
call fcn.610363df
cmp eax, 1
pop ecx
je 0x61031769
push 3
call fcn.610363df
test eax, eax
pop ecx
jne 0x61031678
cmp dword [0x61048710], 1
je 0x61031769
cmp edi, 0xfc
je 0x6103179f
push 0x6100af74
mov edi, 0x314
push edi
mov esi, 0x61048d08
push esi
call fcn.61034d53
add esp, 0xc
test eax, eax
je 0x610316ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
mov byte [0x61048e25], bl
push 0x104
mov ebx, 0x61048d21
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x610316f1
push 0x6100af5c
push 0x2fb
push ebx
call fcn.61034d53
add esp, 0xc
test eax, eax
je 0x610316f1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.6102f89e
add esp, 0x14
push ebx
push edi
push esi
call fcn.61036366
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x6103170f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
push 0x6100af58
push edi
push esi
call fcn.61036366
add esp, 0xc
test eax, eax
je 0x6103172f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x610474cc]
push edi
push esi
call fcn.61036366
add esp, 0xc
test eax, eax
je 0x61031754
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
push 0x12010
push 0x6100af30
push esi
call fcn.610361c1
add esp, 0xc
jmp 0x6103179f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x6103179f
cmp edi, 0xffffffff
je 0x6103179f
mov edx, dword [esi*8 + 0x610474cc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x61031788
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x610361c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.6102cc19
xor ebx, ebx
cmp dword [0x61049098], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x61036298
push 0x6100b0c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x61036203
xor eax, eax
jmp 0x6103635c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6100b0bc
push edi
call esi
cmp eax, ebx
je 0x610361fc
push eax
call fcn.6102cbae
mov dword [esp], 0x6100b0ac
push edi
mov dword [0x61049098], eax
call esi
push eax
call fcn.6102cbae
mov dword [esp], 0x6100b098
push edi
mov dword [0x6104909c], eax
call esi
push eax
call fcn.6102cbae
mov dword [0x610490a0], eax
lea eax, [ebp - 8]
push eax
call fcn.6102c960
test eax, eax
pop ecx
pop ecx
je 0x61036266
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x61036298
push 0x6100b07c
push edi
call esi
push eax
call fcn.6102cbae
cmp eax, ebx
pop ecx
mov dword [0x610490a8], eax
je 0x61036298
push 0x6100b064
push edi
call esi
push eax
call fcn.6102cbae
pop ecx
mov dword [0x610490a4], eax
mov eax, dword [0x610490a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x61036311
cmp dword [0x610490a8], esi
je 0x61036311
push eax
call fcn.6102cc27
pop ecx
call eax
cmp eax, ebx
je 0x610362de
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x610490a8]
call fcn.6102cc27
pop ecx
call eax
test eax, eax
je 0x610362de
test byte [ebp - 0x18], 1
jne 0x61036311
lea eax, [ebp - 0xc]
push eax
call fcn.6102c9a1
test eax, eax
pop ecx
je 0x610362f9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.6102f89e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x61036308
or dword [ebp + 0x10], 0x200000
jmp 0x61036342
or dword [ebp + 0x10], 0x40000
jmp 0x61036342
mov eax, dword [0x6104909c]
cmp eax, esi
je 0x61036342
push eax
call fcn.6102cc27
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x61036342
mov eax, dword [0x610490a0]
cmp eax, esi
je 0x61036342
push dword [ebp - 4]
push eax
call fcn.6102cc27
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x61049098]
call fcn.6102cc27
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6103af9f
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
je 0x6103aff2
push dword [ebp + 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x6103afde
xor eax, eax
jmp 0x6103affc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x6103affa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x6103b12c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x61047110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x6103b303
test eax, eax
jne 0x6103b179
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6103b306
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x6103b303
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x6103b303
and word [eax], 0
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x6103b1ab
cmp ax, 0x5a
jbe 0x6103b1b4
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x6103b1d8
cmp word [ebp - 0x20e], 0x3a
jne 0x6103b1d8
cmp word [ebp - 0x20c], 0x5c
jne 0x6103b303
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x6103b21a
cmp word [ebp - 0x20e], di
jne 0x6103b21a
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.6102bb9f
test eax, eax
pop ecx
pop ecx
je 0x6103b303
add eax, 2
push edi
push eax
call fcn.6102bb9f
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
je 0x6103b303
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6103b241
and al, 0x10
neg al
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x6103b306
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, dword [ebp - 0x214]
je 0x6103b303
cmp word [esi], di
jne 0x6103b303
cmp esi, dword [ebp - 0x214]
jbe 0x6103b303
and word [esi], 0
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.6102bf9f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x6103b303
movzx ebx, word [edi + 2]
and word [edi + 2], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov word [edi + 2], bx
jne 0x6103b2cc
cmp edi, dword [ebp - 0x214]
mov esi, edi
ja 0x6103b277
cmp esi, dword [ebp - 0x214]
jbe 0x6103b303
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x6103b2ec
test al, 0x10
jne 0x6103b2ba
mov eax, 0x10b
jmp 0x6103b306
cmp word [esi + 2], bx
je 0x6103b2ff
push esi
mov word [esi], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x6103b2d7
jmp 0x6103b16e
xor eax, eax
jmp 0x6103b306
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6102aaaa
leave
ret 4
Function at 0x6103c795
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push 0x6100c388
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
je 0x6103c7d7
lea eax, [ebp - 0xc]
push eax
push 0x6100c370
push dword [ebp - 8]
call fcn.6103cac4
test eax, eax
je 0x6103c7da
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0xb]
and eax, 0xffff0000
mov dword [0x61049214], eax
mov dword [0x61049204], eax
movzx eax, byte [ebp - 0xc]
cmp eax, esi
jne 0x6103c7fd
push 5
pop eax
jmp 0x6103c800
shr eax, 4
cmp ecx, esi
jne 0x6103c809
push 5
pop ecx
jmp 0x6103c80c
shr ecx, 4
cmp eax, 7
jbe 0x6103c814
push 6
pop eax
cmp ecx, 7
jbe 0x6103c81c
push 6
pop ecx
cmp dword [ebp - 8], esi
mov dword [0x6104920c], eax
mov dword [0x610491fc], ecx
je 0x6103c841
lea eax, [ebp - 0x10]
push eax
push 0x6100c360
push dword [ebp - 8]
call fcn.6103cac4
test eax, eax
je 0x6103c849
or eax, 0xffffffff
mov dword [ebp - 0x10], eax
jmp 0x6103c84c
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], esi
mov dword [0x61049210], eax
mov dword [0x61049200], eax
je 0x6103c878
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x6100c350
push dword [ebp - 8]
call fcn.6103ca34
test eax, eax
je 0x6103c87f
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x6103c882
mov eax, dword [ebp - 4]
cmp eax, esi
mov dword [0x61049218], esi
mov dword [0x61049208], esi
je 0x6103c8da
cmp word [eax], si
push eax
je 0x6103c8d5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevW]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x6103c8e8
cmp ax, 0x2f
je 0x6103c8e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6103c8cd
test al, 0x10
jne 0x6103c8e8
cmp dword [ebp - 4], esi
je 0x6103c8da
push dword [ebp - 4]
call fcn.6103c622
push dword [0x610491ec]
call fcn.6103b493
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x6103c90e
push 1
push dword [ebp - 4]
mov dword [0x61049218], esi
mov dword [0x61049208], esi
call fcn.6103c709
push dword [ebp - 4]
call fcn.6103c622
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
pop esi
je 0x6103c91d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
Function at 0x6103ca34
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jne 0x6103cab8
cmp ecx, edi
jne 0x6103ca72
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
jmp 0x6103cab8
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.6103c5e1
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x6103ca8c
push 8
pop eax
jmp 0x6103cab8
push ebx
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
je 0x6103caac
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.6103c622
jmp 0x6103cab6
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
xor eax, eax
add edi, dword [ebx]
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10001850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x41c56f8
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x100018e2
jmp 0x10001880
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x10001880
cmp ecx, dword [ebp + 8]
jge 0x1000195e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001921
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003940
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x41ce210], eax
push ebx
push esi
push edi
mov edi, dword [0x41c519c]
call edi
mov ebx, dword [0x41c5194]
xor dword [0x41ce210], eax
push 0x41c622c
call ebx
test eax, eax
je 0x10003981
push 0x41c98a4
push eax
call dword [0x41c5190]
test eax, eax
je 0x10003981
push 0x41ce210
call eax
mov ecx, dword [0x41ce210]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x41ce210], ecx
call edi
xor dword [0x41ce210], eax
push 0x41c622c
call ebx
test eax, eax
je 0x100039c7
push 0x41c98a4
push eax
call dword [0x41c5190]
test eax, eax
je 0x100039c7
push 0x41ce210
call eax
mov ecx, dword [0x41ce210]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push 0x41c5968
push 0x104
push 0x41d9c60
call dword [0x41c52f4]
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x1000d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x41cf588
mov dword [ebp - 4], 0x10
call dword [0x41c52a4]
push 0x41cf588
call dword [0x41c52a8]
or ecx, 0xffffffff
mov edx, 0x41cf588
test eax, eax
je 0x1000d7ed
movzx esi, byte [edx]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x41cf6c8]
inc edx
dec eax
jne 0x1000d7d4
mov edi, dword [0x41c54d4]
not ecx
mov esi, ecx
push esi
push 0x41ce504
push 0x41cf5a0
call edi
lea ebx, [esi + esi]
push ebx
push 0x41ce504
push 0x41cf54c
call edi
lea ecx, [esi + esi*2]
push ecx
push 0x41ce504
push 0x41cf5dc
call edi
push esi
push 0x41ce580
push 0x41cf670
call edi
push ebx
push 0x41ce580
push 0x41cf630
call edi
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x101
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [0x41c54e4]
mov edx, eax
or eax, 0xffffffff
lea ecx, [ebp - 0x104]
test edx, edx
je 0x1000da7a
push esi
lea esp, [esp]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41cf6c8]
inc ecx
dec edx
jne 0x1000da60
pop esi
not eax
mov esp, ebp
pop ebp
ret

Function at 0x1000daf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41d9ed4]
sub esp, 0x104
push ebx
mov ebx, dword [0x41c53a8]
push esi
push edi
push 1
push 5
push eax
call ebx
push eax
call ebx
mov edi, dword [0x41c540c]
mov esi, eax
lea esp, [esp]
push esi
call dword [0x41c53e4]
test eax, eax
je 0x1000dbb7
push 0xfffffffffffffff0
push esi
call dword [0x41c541c]
test eax, 0x40000000
jne 0x1000db9c
push 0x101
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [0x41c54e4]
or ecx, 0xffffffff
lea edx, [ebp - 0x104]
test eax, eax
je 0x1000db7f
nop
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x41cf6c8]
inc edx
dec eax
jne 0x1000db60
mov ebx, dword [0x41c53a8]
not ecx
test ecx, ecx
je 0x1000db96
xor eax, eax
cmp ecx, dword [eax*8 + 0x41ce528]
je 0x1000dbcd
inc eax
cmp eax, 0xb
jb 0x1000db87
xor eax, eax
test al, 0x20
je 0x1000dbb7
push 0
push 0x1b
push 0x100
push esi
call edi
push 0xc01b0000
push 0x1b
push 0x101
push esi
call edi
push 3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x1000db20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax*8 + 0x41ce52c]
jmp 0x1000db98
Function at 0x100282e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100282f0
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x100283bf
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41c7d50]
add ecx, 8
sub edx, 8
dec esi
jne 0x10028302
pop edi
test edx, edx
je 0x100283dc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41c7d50]
inc ecx
dec edx
jne 0x100283c3
not eax
pop esi
pop ebp
ret 4