joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x418780]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40164d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x418680]
lea edi, [ecx*4 + 0x418680]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40164d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40150e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40151f
push 2
push ebp
push eax
call fcn.00402300
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40167e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4015c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40157a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x401567
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40154a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40166f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4015c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x401546
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40163e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401612
cmp eax, 5
jne 0x4015fb
mov dword [0x4183c0], eax
mov dword [0x4183bc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00401cf0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x401632
cmp byte [ebp], 0x1a
jne 0x401632
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4183bc], 0x1c
jmp 0x401657
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4183bc], 9
pop edi
pop esi
pop ebp
mov dword [0x4183c0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4015c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c9
Function at 0x401b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405008
push 0x4032a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4183d4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4183d0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4183cc], ecx
shr eax, 0x10
mov dword [0x4183c8], eax
call fcn.00403170
test eax, eax
jne 0x401b8a
push 0x1c
call fcn.00401cc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402100
call fcn.00403160
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x418790], eax
call fcn.00402d30
mov dword [0x4183b0], eax
test eax, eax
je 0x401bbd
mov eax, dword [0x418790]
test eax, eax
jne 0x401bc7
push 0xffffffffffffffff
call fcn.00401d90
add esp, 4
call fcn.00402a80
call fcn.00402990
call fcn.00401d60
mov esi, dword [0x418790]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ca6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401c0e
test al, al
je 0x401c0e
and eax, 0xff
push eax
call fcn.00402930
add esp, 4
test eax, eax
je 0x401be8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401be8
cmp byte [esi], 0x22
jne 0x401c17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401c27
cmp al, 0x20
ja 0x401c27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401c48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401c4d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401d90
jmp 0x401c8b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401c17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ca6

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x418404]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401def
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x418400], 1
mov byte [0x4183fc], bl
jne 0x401e49
mov ecx, dword [0x418788]
test ecx, ecx
je 0x401e37
mov esi, dword [0x418784]
sub esi, 4
cmp esi, ecx
jb 0x401e37
mov eax, dword [esi]
test eax, eax
je 0x401e30
call eax
mov ecx, dword [0x418788]
sub esi, 4
cmp esi, ecx
jae 0x401e22
push 0x406014
push 0x406010
call fcn.00401e80
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401e80
add esp, 8
test ebx, ebx
jne 0x401e70
push ebp
mov dword [0x418404], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4023c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00403720
mov eax, dword [0x418780]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x402522
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x418680]
test byte [edx + ecx*8 + 4], 1
je 0x402522
push 1
push ebp
push ebx
call fcn.00402300
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40252c
push 2
push ebp
push ebx
call fcn.00402300
add esp, 0xc
cmp eax, 0xffffffff
je 0x40252c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4024c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004036a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40246f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40248b
sub esi, eax
test esi, esi
jle 0x4024a1
jmp 0x402460
cmp dword [0x4183c0], 5
jne 0x40249e
mov dword [0x4183bc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004036a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x402509
push 0
push ecx
push ebx
call fcn.00402300
add esp, 0xc
push ebx
call fcn.004020b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x402509
mov dword [0x4183bc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4183c0], eax
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4183bc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x402d30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x418518]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402d72
call edi
mov esi, eax
test esi, esi
je 0x402d5c
mov eax, 1
jmp 0x402d6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov eax, 2
mov dword [0x418518], eax
cmp eax, 1
jne 0x402e12
test esi, esi
jne 0x402d8b
call edi
mov esi, eax
test esi, esi
je 0x402e7f
cmp word [esi], 0
mov eax, esi
je 0x402da5
add eax, 2
cmp word [eax], 0
jne 0x402d93
add eax, 2
cmp word [eax], 0
jne 0x402d93
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402e04
push edi
call fcn.004035a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e04
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402df6
push ebx
call fcn.00403650
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402e7f
test ebx, ebx
jne 0x402e23
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402e3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004035a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4033c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4160e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4033e4
add eax, 8
inc ebp
cmp eax, 0x416170
jb 0x4033d5
cmp ecx, dword [ebp*8 + 0x4160e0]
jne 0x40358b
mov eax, dword [0x4183b8]
cmp eax, 1
je 0x40354d
test eax, eax
jne 0x403410
cmp dword [0x415d1c], 1
je 0x40354d
cmp ecx, 0xfc
je 0x40358b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40344b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403494
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405620
add ebx, ecx
push ebx
call fcn.00403f00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4160e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x418680]
test eax, eax
je 0x40355e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403568
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4160e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x3c3310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x3c3350
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x3cdea8]
test eax, eax
jne 0x3c3374
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0x97f883e
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdea8], eax
call eax
mov ebx, eax
mov eax, dword [0x3cdcec]
test eax, eax
jne 0x3c339c
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0xe9233692
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdcec], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x3c3452
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x3c3442
cmp ebx, 8
jb 0x3c3427
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x3c33e6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x3c3427
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x3c3400
cmp edx, ebx
jae 0x3c3442
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x3c3430
mov edx, dword [esp + 0x18]
test edx, edx
je 0x3c3450
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3c34c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x3c34e9
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x3cdea8]
test eax, eax
jne 0x3c350d
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0x97f883e
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdea8], eax
call eax
mov edi, eax
mov eax, dword [0x3cdcec]
test eax, eax
jne 0x3c3535
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0xe9233692
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdcec], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x3c35b5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x3c35aa
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x3c3570
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x3c35c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x3c35ea
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x3cdea8]
test eax, eax
jne 0x3c360e
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0x97f883e
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdea8], eax
call eax
mov edi, eax
mov eax, dword [0x3cdcec]
test eax, eax
jne 0x3c3636
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0xe9233692
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdcec], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x3c36a2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x3c369a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x3c3670
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x3c3ba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x9c4e
add dword [esp + 4], 0x4464
shr dword [esp + 4], 1
add dword [esp + 4], 0xffff87db
add dword [esp + 4], 0xffff18d7
add dword [esp + 4], 0xffff529c
add dword [esp + 4], 0xffff507b
or dword [esp + 4], 0x3b9f69dc
xor dword [esp + 4], 0xfffffdfe
mov dword [esp], 0x31f8
imul eax, dword [esp], 0x75
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
xor dword [esp + 4], 0x67893507
xor dword [esp + 4], 0x679fe359
mov dword [esp + 4], 0x4955
xor dword [esp + 4], 0xa8908194
shr dword [esp + 4], 8
add dword [esp + 4], 0xffffdf1d
add dword [esp + 4], 0xfffff42f
or dword [esp + 4], 0x2e6e862
add dword [esp + 4], 0xa6c2
xor dword [esp + 4], 0xe36c9a70
xor dword [esp + 4], 0xe1830958
cmp byte [ebx], 0
je 0x3c3d02
push esi
push edi
lea esp, [esp]
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0x31f8
imul eax, dword [esp + 0xc], 0x75
mov dword [esp + 0xc], eax
xor dword [esp + 0xc], 0x67893507
xor dword [esp + 0xc], 0x679fe359
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x4955
xor dword [esp + 0xc], 0xa8908194
shr dword [esp + 0xc], 8
add dword [esp + 0xc], 0xffffdf1d
add dword [esp + 0xc], 0xfffff42f
or dword [esp + 0xc], 0x2e6e862
add dword [esp + 0xc], 0xa6c2
xor dword [esp + 0xc], 0xe36c9a70
xor dword [esp + 0xc], 0xe1830958
shl esi, cl
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x3c3c60
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x3c3e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x3c3edc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.003c3ba0
xor eax, 0x4d4a679b
cmp eax, dword [esp + 0x10]
je 0x3c3ee6
inc esi
cmp esi, dword [edi + 0x18]
jb 0x3c3ec0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x3c3f14
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x3c3f14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x3c40e0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x3c4106
cmp al, 0x2e
je 0x3c4103
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x3c40f3
jmp 0x3c4106
mov byte [edx], 0
mov eax, dword [0x3ce15c]
test eax, eax
jne 0x3c412a
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0xba72d8ac
mov ecx, eax
call fcn.003c3e80
mov dword [0x3ce15c], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x3c4171
mov eax, dword [0x3cdbfc]
test eax, eax
jne 0x3c415b
mov ecx, 0xbb398380
call fcn.003c3f20
mov edx, 0x9261dc77
mov ecx, eax
call fcn.003c3e80
mov dword [0x3cdbfc], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x3c4171
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.003c3ba0
xor eax, 0x4d4a679b
mov ecx, edi
mov edx, eax
call fcn.003c3e80
pop edi
pop esi
add esp, 0x104
ret
Function at 0x3c3f20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x3c40cb
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x9c4e
add dword [esp + 0x14], 0x4464
shr dword [esp + 0x14], 1
add dword [esp + 0x14], 0xffff87db
add dword [esp + 0x14], 0xffff18d7
add dword [esp + 0x14], 0xffff529c
add dword [esp + 0x14], 0xffff507b
or dword [esp + 0x14], 0x3b9f69dc
xor dword [esp + 0x14], 0xfffffdfe
mov dword [esp + 0x10], 0x31f8
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x67893507
xor dword [esp + 0x10], 0x679fe359
mov dword [esp + 0x10], 0x4955
xor dword [esp + 0x10], 0xa8908194
shr dword [esp + 0x10], 8
add dword [esp + 0x10], 0xffffdf1d
add dword [esp + 0x10], 0xfffff42f
or dword [esp + 0x10], 0x2e6e862
add dword [esp + 0x10], 0xa6c2
xor dword [esp + 0x10], 0xe36c9a70
xor dword [esp + 0x10], 0xe1830958
cmp word [edx], 0
je 0x3c40b1
lea esp, [esp]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x31f8
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x67893507
xor dword [esp + 0x10], 0x679fe359
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x4955
xor dword [esp + 0x10], 0xa8908194
shr dword [esp + 0x10], 8
add dword [esp + 0x10], 0xffffdf1d
add dword [esp + 0x10], 0xfffff42f
or dword [esp + 0x10], 0x2e6e862
add dword [esp + 0x10], 0xa6c2
xor dword [esp + 0x10], 0xe36c9a70
xor dword [esp + 0x10], 0xe1830958
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x3c4090
cmp eax, 0x5a
ja 0x3c4090
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x3c4000
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x344765f2
cmp eax, dword [esp + 0x1c]
je 0x3c40d5
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x3c3f45
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret