joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042791
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100427ac
push 1
call fcn.10042968
pop ecx
jmp 0x10042964
lea eax, [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x100427fb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x100427f6
push 0x29d
push 0
push 0x8da
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10042964
mov dword [ebp - 0x30], 0x268e
cmp dword [ebp - 0x30], 0xb85
jge 0x10042921
lea eax, [ebp - 0x10]
push eax
call fcn.100426d4
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x34], 0
je 0x10042921
lea eax, [ebp - 8]
push eax
call fcn.100426d4
pop ecx
and dword [ebp - 4], 0
jmp 0x10042847
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x10042862
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x118fa128]
push eax
call fcn.100426d4
pop ecx
jmp 0x10042840
mov eax, dword [ebp - 8]
dec eax
push eax
push 0
push 0
call fcn.1004259b
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push 0x1000b1c8
call fcn.10050d0b
pop ecx
pop ecx
and dword [ebp - 0x14], 0
jmp 0x10042890
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jge 0x1004291c
lea eax, [ebp - 0x3c]
push eax
call fcn.100426d4
pop ecx
cmp dword [ebp - 0x3c], 0
jne 0x100428ea
lea eax, [ebp - 0x18]
push eax
call fcn.100426d4
pop ecx
lea eax, [ebp - 0x40]
push eax
call fcn.100426d4
pop ecx
mov eax, dword [ebp - 0x40]
dec eax
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push 0
push 0
call fcn.10042638
add esp, 0x14
push eax
push 0x1000b324
call fcn.10050f3f
pop ecx
pop ecx
jmp 0x10042917
lea eax, [ebp - 0x18]
push eax
call fcn.100426d4
pop ecx
lea eax, [ebp - 0x44]
push eax
call fcn.100426d4
pop ecx
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push 0
push 0
call section..vipyc
add esp, 0x14
jmp 0x10042889
jmp 0x10042819
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1004294f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jg 0x10042964
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x10042944
mov esp, ebp
pop ebp
ret
Function at 0x10047fbc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10047ff1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
call fcn.10048023
add esp, 0x10
jmp 0x1004801f
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10048010
push 0
push 0xc7e
call dword [sym.imp.USER32.dll_ValidateRgn]
jmp 0x1004801f
push 0xd47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret
Function at 0x10065345
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006f760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10055528
mov dword [ebp - 0x14], eax
cmp dword [0x1065c388], esi
jne 0x10065438
push 0x800
push esi
push 0x1000b060
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100653c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10065518
push esi
push esi
push 0x1000b060
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10065518
push 0x1000b078
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10065518
push eax
call ebx
push 0x1000b084
push edi
mov dword [0x1065c388], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b094
push edi
mov dword [0x1065c38c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b0a8
push edi
mov dword [0x1065c390], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065c398], eax
test eax, eax
je 0x10065435
push 0x1000b0c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065c394], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006545d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10065450
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10065472
push 4
pop eax
jmp 0x1006551a
cmp dword [ebp - 0x14], esi
je 0x10065472
push dword [0x1065c388]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10065457
mov eax, dword [0x1065c394]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100654d0
cmp dword [0x1065c398], edi
je 0x100654d0
push eax
call ebx
push dword [0x1065c398]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100654d0
test eax, eax
je 0x100654d0
call ecx
test eax, eax
je 0x100654c5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100654c5
test byte [ebp - 8], 1
jne 0x100654d0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10065500
mov eax, dword [0x1065c38c]
cmp eax, edi
je 0x100654fd
push eax
call ebx
test eax, eax
je 0x100654fd
call eax
mov esi, eax
test esi, esi
je 0x100654fd
mov eax, dword [0x1065c390]
cmp eax, edi
je 0x100654fd
push eax
call ebx
test eax, eax
je 0x100654fd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065c388]
call ebx
test eax, eax
je 0x10065518
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006551a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052bb3
mov esp, ebp
pop ebp
ret
Function at 0x44b9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HSP1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x44ba12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44ba19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ba08
mov eax, 1
add ebx, ebx
jne 0x44ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44ba3c
jne 0x44ba4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ba4c
dec eax
add ebx, ebx
jne 0x44ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44ba20
xor ecx, ecx
sub eax, 3
jb 0x44ba64
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44bad6
sar eax, 1
mov ebp, eax
jmp 0x44ba6f
add ebx, ebx
jne 0x44ba6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x44ba7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44baa0
inc ecx
add ebx, ebx
jne 0x44ba8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44ba81
jne 0x44ba9d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44ba81
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44bac0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44bab1
jmp 0x44ba0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44bac0
add edi, ecx
jmp 0x44ba0e
pop esi
mov edi, esi
mov ecx, 0x328
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44bade
cmp byte [edi], 2
jne 0x44bade
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 eax, ebx
loop 0x44bae3
lea edi, [esi + 0x49000]
mov eax, dword [edi]
or eax, eax
je 0x44bb5b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d17c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44bb10
mov ecx, edi
jns 0x44bb3f
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 + 0x4d180]
or eax, eax
je 0x44bb55
mov dword [ebx], eax
add ebx, 4
jmp 0x44bb2d
call dword [esi + 0x4d184]
popal
jmp 0x402940

Function at 0x414de3
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], esi
add edi, 4
mov edx, ecx
add ecx, 0xec329e8a
cmp edi, eax
jne fcn.00414de3
ret
Function at 0x10001ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.10001a10
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x775c3a63
push ecx
lea eax, [esi + 0x10]
mov dword [ebp - 0x15], 0x32336d65
push eax
lea eax, [esi + 4]
mov dword [ebp - 0xf], 0x652e646d
push eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x1a], 0x7379735c
mov dword [ebp - 0x1f], 0x776f646e
mov word [ebp - 0xb], 0x6578
mov word [ebp - 0x11], 0x635c
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 9], 0
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x1b], 0x73
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
call eax
test eax, eax
jne 0x10001b6c
mov dword [ebp - 8], 0x92
jmp 0x10001c44
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xc
push eax
lea eax, [esi + 8]
mov dword [ebp - 0x38], 0
push eax
mov eax, dword [edi + 0x2c]
lea ebx, [esi + 0xc]
push ebx
mov dword [ebp - 0x34], 1
call eax
test eax, eax
jne 0x10001ba4
mov dword [ebp - 8], 0x9b
jmp 0x10001c44
lea eax, [ebp - 0x94]
push 0x44
push eax
call fcn.100030de
xor eax, eax
mov dword [ebp - 0x94], 0x44
mov word [ebp - 0x64], ax
mov eax, dword [ebx]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x4c]
push 0x10
push eax
mov dword [ebp - 0x68], 0x101
call fcn.100030de
add esp, 0x10
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp + 8]
test eax, eax
push 0
push 0
push 0
push 1
push 0
push 0
cmovne ecx, eax
mov eax, dword [edi + 0x30]
push 0
push ecx
call eax
test eax, eax
jne 0x10001c1c
mov dword [ebp - 8], 0xb5
jmp 0x10001c44
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x44]
push 8
push edi
mov dword [esi + 0x24], eax
call fcn.1000316f
add esp, 8
test eax, eax
jne 0x10001c6d
mov dword [ebp - 8], 0xc3
push 2
lea eax, [ebp - 8]
mov edx, 6
push eax
movzx eax, byte [esi]
mov ecx, edi
push eax
call fcn.10002310
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.10001a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
mov dword [eax], edi
mov dword [eax + 4], esi
push 0x10001890
mov dword [esi + 0x14], 1
call fcn.100031c0
add esp, 4
push eax
mov eax, dword [edi + 0x20]
push 0
push 0
call eax
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10001ca2
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x17], 0x7365
push ebx
push 0x80
push 3
push ebx
push 1
mov esi, ecx
mov dword [ebp - 0x27], 0x73755c3a
push 0x80000000
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0x696e69
push eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x23], 0x5c737265
mov word [ebp - 0x1f], 0x7570
mov dword [ebp - 0x10], 0x2e6e6f69
mov dword [ebp - 0x1c], 0x5c63696c
mov dword [ebp - 0x15], 0x70697263
mov byte [ebp - 0x1d], 0x62
mov byte [ebp - 0x28], 0x63
mov byte [ebp - 0x18], 0x64
mov byte [ebp - 0x11], 0x74
call eax
mov dword [ebp - 8], eax
lea edi, [esi + 0xd4]
cmp eax, 0xffffffff
je 0x10001df8
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x10
push edi
push eax
mov eax, dword [esi + 0x38]
call eax
test eax, eax
je 0x10001de8
cmp dword [ebp - 4], 0x10
mov eax, 1
cmove ebx, eax
push dword [ebp - 8]
mov eax, dword [esi + 0x1c]
call eax
test ebx, ebx
jne 0x10001e83
mov eax, dword [esi + 0xb8]
push edi
call eax
test eax, eax
je 0x10001e43
xor edx, edx
nop word [eax + eax]
imul ecx, dword [esi + 0x604], 0x343fd
add ecx, 0x269ec3
imul eax, ecx, 0x343fd
movsx ecx, cl
add eax, 0x269ec3
mov dword [esi + 0x604], eax
movsx eax, al
imul ecx, eax
mov byte [edx + edi], cl
inc edx
cmp edx, 0x10
jb 0x10001e10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x44]
call eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x40]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001e83
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x3c]
push 0x10
push edi
push ebx
call eax
mov eax, dword [esi + 0x1c]
push ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002130
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, ecx
mov ecx, 1
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov edx, dword [ebx + 0x6e4]
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
nop word [eax + eax]
mov eax, dword [ebx + 0x94]
test ecx, ecx
je 0x10002225
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x134], edx
push ecx
push 0
push 0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], 1
push ecx
push 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
call eax
test eax, eax
js 0x100022ff
jne 0x100021af
inc edi
jmp 0x10002296
push 0
mov eax, 5
sub eax, esi
push eax
lea eax, [ebp - 0x14]
add eax, esi
push eax
push dword [ebp - 0x18]
mov eax, dword [ebx + 0x9c]
call eax
test eax, eax
jle 0x100022ff
add esi, eax
inc edi
cmp esi, 5
jne 0x10002296
cmp byte [ebp - 0x14], 0x17
jne 0x100022ff
cmp byte [ebp - 0x13], 3
jne 0x100022ff
cmp byte [ebp - 0x12], 3
jne 0x100022ff
movzx eax, byte [ebp - 0x11]
mov byte [ebp - 3], al
movzx eax, byte [ebp - 0x10]
mov byte [ebp - 4], al
movzx ebx, word [ebp - 4]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100022ff
mov ebx, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x10002299
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], 1
push ecx
push 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
call eax
test eax, eax
js 0x100022ff
jne 0x1000226d
inc edi
jmp 0x10002293
mov ecx, dword [ebp - 0xc]
push 0
push dword [ebp - 0x20]
lea eax, [ecx + 0x6ec]
add eax, esi
push eax
push dword [ebp - 0x18]
mov eax, dword [ecx + 0x9c]
call eax
test eax, eax
jle 0x100022ff
add esi, eax
cmp esi, ebx
je 0x100022a6
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp edi, 0x5a
jge 0x100022ff
mov edx, dword [ebp - 0x18]
jmp 0x10002160
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
test esi, esi
je 0x100022ff
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x6c8]
lea edx, [edi + ebx]
movzx ecx, bl
inc ebx
mov al, byte [ecx + eax]
xor byte [edx + 0x6ec], al
cmp ebx, esi
jb 0x100022b2
cmp esi, 2
jb 0x100022ff
lea eax, [esi - 2]
mov dword [edi + 0x618], eax
movsx eax, byte [edi + 0x6ec]
mov dword [edi + 0x610], eax
mov al, byte [edi + 0x6ed]
mov byte [edi + 0x614], al
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
add eax, 7
push edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0x6cc]
push ebx
call eax
cmp dword [esi + 0x6e8], 0
je 0x1000234b
mov eax, dword [esi + 0x5c]
push ebx
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea edi, [edx + 2]
cmp edi, 0xffff
ja 0x1000237d
movzx ecx, di
mov eax, ecx
mov word [esi + 0x106eb], 0x317
shr eax, 8
mov byte [esi + 0x106ed], 3
mov byte [esi + 0x106ee], al
mov byte [esi + 0x106ef], cl
mov eax, dword [ebp - 4]
mov byte [esi + 0x106f0], al
mov al, byte [ebp + 8]
mov byte [esi + 0x106f1], al
test edx, edx
je 0x100023a6
lea eax, [esi + 0x106f2]
push eax
push edx
push dword [ebp + 0xc]
call fcn.10003105
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x100023ca
nop dword [eax]
mov eax, dword [esi + 0x6c8]
lea edx, [esi + ebx]
movzx ecx, bl
inc ebx
mov al, byte [ecx + eax]
xor byte [edx + 0x106f0], al
cmp ebx, edi
jb 0x100023b0
push dword [ebp - 8]
mov edx, dword [esi + 0x6e4]
lea eax, [esi + 0x106eb]
push eax
push ecx
mov ecx, esi
call fcn.10003200
mov ecx, dword [esi + 0x5c]
add esp, 0xc
test eax, eax
lea eax, [esi + 0x6cc]
push eax
jne 0x10002408
mov dword [esi + 0x6e8], 1
call ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100024b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x30]
push ebx
mov dword [ebp - 0x20], edx
xor ebx, ebx
push esi
mov eax, dword [eax + 0xc]
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], eax
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
cmp eax, edx
je 0x1000254e
nop word [eax + eax]
cmp word [eax + 0x24], 0x30
ja 0x10002543
mov esi, dword [eax + 0x28]
xor edi, edi
movzx ecx, word [esi]
mov dword [ebp - 8], ecx
test cx, cx
je 0x10002530
mov eax, ecx
nop dword [eax]
lea ecx, [eax + 0x20]
lea ebx, [eax - 0x41]
movzx edx, cl
movzx ecx, al
lea esi, [esi + 2]
cmp bl, 0x19
cmova edx, ecx
movzx ecx, word [esi]
imul edi, edi, 0xc85e31
mov al, cl
movsx edx, dl
add edi, edx
test cx, cx
jne 0x10002500
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edi, dword [ebp - 0x10]
je 0x100025f6
cmp dword [eax + 0x10], 0
je 0x100025e4
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, edx
jne 0x100024e0
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
test ebx, ebx
je 0x100025ed
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov ecx, dword [eax + ebx + 0x78]
mov edx, dword [eax + ebx + 0x50]
add ecx, ebx
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x14]
add esi, ebx
mov dword [ebp - 0x10], esi
mov esi, dword [ecx + 0x24]
add esi, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x1c]
add esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
xor esi, esi
test eax, eax
je 0x10002610
nop dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + esi*4]
add ecx, ebx
lea eax, [ecx + 0xdc]
cmp edx, eax
jbe 0x100025dc
mov al, byte [ecx]
xor edx, edx
test al, al
je 0x100025d4
nop word [eax + eax]
imul edx, edx, 0xc85e31
lea ecx, [ecx + 1]
movsx eax, al
add edx, eax
mov al, byte [ecx]
test al, al
jne 0x100025c0
cmp edx, dword [ebp + 8]
je 0x100025fe
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100025a0
jmp 0x1000260d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x10]
jmp 0x1000254e
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov ecx, dword [ebp - 4]
cmp edi, ecx
jb 0x1000262f
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp edi, eax
jae 0x1000262f
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
test edi, edi
je 0x100025ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
push edi
mov ecx, dword [eax]
call fcn.10002420
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, eax
xor eax, eax
test edx, edx
pop edi
pop esi
mov dword [ecx], edx
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b12d
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 0x1000b1ca
push ebx
push esi
call fcn.1000b0f6
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.1000b03f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b177
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b1c9
push edi
push eax
call fcn.10009af3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b197
call fcn.10009b41
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b1c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b03f
add esp, 0x20
test eax, eax
jne 0x1000b1b6
push edi
call fcn.10009b41
jmp 0x1000b1be
push ebx
call fcn.10009b41
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 0x1000b435
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100129b0
push 0x100129a8
push str.FlsAlloc
push 0x1e
call fcn.1000b353
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b469
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011130]
call esi
jmp 0x1000b46f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b4b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100129c0
push 0x100129b8
push str.FlsGetValue
push 0x20
call fcn.1000b353
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b4ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10010a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010a3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010a3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret