joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072700
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100bc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor edx, edx
mov eax, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
je 0x1007283d
mov ecx, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x10072787
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10072772
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10020af0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
lea esi, [edx - 3]
cmp esi, edx
ja 0x100727a1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, ecx
mov byte [eax + esi], 0
jmp 0x100727e6
mov ecx, esi
sub eax, edx
sub ecx, edx
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
ja 0x100727d3
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push ecx
add esi, edx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x100727e6
push 0
push ecx
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10034440
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, 0x811c9dc5
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
test edx, edx
je 0x10072815
mov edi, eax
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10072801
mov edi, dword [ebp - 0x34]
cmp esi, dword [ebp + 8]
jne 0x10072825
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x10072838
dec esi
mov dword [ebp - 0x30], esi
add edi, 0x1c
mov dword [ebp - 0x34], edi
cmp edi, dword [ebp - 0x3c]
je 0x1007283d
mov eax, dword [ebp - 0x14]
jmp 0x1007275e
mov edi, dword [edi + 0x18]
jmp 0x1007283f
xor edi, edi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10072877
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1007286d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007286d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1009cd75
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009c816
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100728a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100bc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], 1
xor edx, edx
mov eax, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
je 0x100729dd
mov ecx, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x10072927
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10072912
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10020af0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
lea esi, [edx - 3]
cmp esi, edx
ja 0x10072941
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, ecx
mov byte [eax + esi], 0
jmp 0x10072986
mov ecx, esi
sub eax, edx
sub ecx, edx
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
ja 0x10072973
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push ecx
add esi, edx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x10072986
push 0
push ecx
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10034440
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, 0x811c9dc5
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
test edx, edx
je 0x100729b5
mov edi, eax
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x100729a1
mov edi, dword [ebp - 0x34]
cmp esi, dword [ebp + 8]
jne 0x100729c5
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x100729d8
dec esi
mov dword [ebp - 0x30], esi
add edi, 0x1c
mov dword [ebp - 0x34], edi
cmp edi, dword [ebp - 0x3c]
je 0x100729dd
mov eax, dword [ebp - 0x14]
jmp 0x100728fe
mov edi, dword [edi + 0x18]
jmp 0x100729df
xor edi, edi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10072a17
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10072a0d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10072a0d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1009cd75
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009c816
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10074300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1007432b
push 0
push 0
push 0
push 0x100308f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1007432b
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x10085980
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10085b21
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x10085b21
mov eax, dword [0x10153c9c]
cmp dword [eax + 0x174], 0xffffffff
je 0x10085b21
mov eax, dword [0x10153fd0]
add eax, 0xffffff85
xor eax, 0xc528b59d
cmp dword [eax + ebx], 0
mov eax, dword [0x10153f94]
setle cl
add eax, 0xffffff94
xor eax, 0xc528b58e
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10153f88]
add eax, 0xffffff97
xor eax, 0xc528b58b
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10153f8c]
add eax, 0xffffff96
xor eax, 0xc528b58c
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x10153f90]
lea eax, [ecx - 0x6b]
xor eax, 0xc528b58d
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x10085a6e
lea eax, [ecx - 0x6b]
xor eax, 0xc528b58d
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x10085a66
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10085a5a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10085a57
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x10153f90]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x10085a23
lea eax, [ecx - 0x6b]
xor eax, 0xc528b58d
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov edx, dword [0x10153cb0]
xor ebx, ebx
mov dword [ebp - 4], edx
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x10085b12
nop dword [eax]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x10085ad0
xor edx, edx
test ecx, ecx
je 0x10085af9
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10085ae0
cmp edi, 0x79705c5e
je 0x10085b04
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x10085b12
mov edx, dword [ebp - 4]
jmp 0x10085ab0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ecx + eax]
jmp 0x10085b14
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10153dc8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008bb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dl, byte [esi]
xor dl, byte [edi]
and dl, 1
xor dl, byte [edi]
mov byte [edi], dl
mov cl, byte [esi]
xor cl, dl
and cl, 2
xor cl, dl
mov byte [edi], cl
movzx eax, byte [esi]
xor al, cl
and al, 4
xor al, cl
mov byte [edi], al
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movq xmm0, qword [esi + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x18], xmm0
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
movq xmm0, qword [esi + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
movq xmm0, qword [esi + 0x4c]
movq qword [edi + 0x4c], xmm0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
movq xmm0, qword [esi + 0x5c]
movq qword [edi + 0x5c], xmm0
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
movq xmm0, qword [esi + 0x68]
movq qword [edi + 0x68], xmm0
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
movq xmm0, qword [esi + 0x78]
movq qword [edi + 0x78], xmm0
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
movq xmm0, qword [esi + 0x84]
movq qword [edi + 0x84], xmm0
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
movq xmm0, qword [esi + 0x90]
movq qword [edi + 0x90], xmm0
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
mov eax, dword [esi + 0xa4]
mov dword [edi + 0xa4], eax
movzx eax, byte [esi + 0xa8]
mov byte [edi + 0xa8], al
movq xmm0, qword [esi + 0xac]
movq qword [edi + 0xac], xmm0
mov eax, dword [esi + 0xb4]
mov dword [edi + 0xb4], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub eax, 1
call fcn.0043b691
sub eax, eax
dec edi
add edi, 0x6c15a6a5
xor dword [ebx], edx
or edi, edi
add ebx, 1
and edi, eax
sub eax, 0x1174807e
mov eax, 0xe8b26ee
cmp ebx, ecx
jne fcn.0043b654
or edi, edi
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x402663
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x402665
ret

Function at 0x404507
Capabilities:
Terminate process

Disassembly:
xor al, 0x68
inc eax
add byte [eax - 0x69], al
add ecx, 0x40
push ecx
call esi
mov edx, dword [0xc1c03b]
inc ecx
jb 0x4044ee
pushfd
add byte [ebx], al
inc ebp
inc eax
push edx
call esi
mov eax, dword [0xc2403569]
push str._____g_filename_____Output_collected_data_to_gnuplot_format_file._n
add eax, 0x40
push eax
call esi
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
aam 0x70
jb 0x4044f1
add byte [ebx], ah
sar dword [ebx + 0x51], 0xff
sal dword [eax + 0x40c0c815], 0
push 0x4140eb34
add edx, 0x40
push edx
dec esi
mov dl, 0xa7
dec ecx
rol byte [eax], 0x83
les eax, [eax - 0x7d]
rol byte [eax + 0x68], 0xf4
or eax, dword [eax]
push eax
call esi
rcl edx, 8
push 0x16
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
and dword [eax - 0x74766f70], edx
not dword [ecx - 0x5f]
dec esp
inc eax
inc ecx
add byte [edi - 0x75], bl
pop ebp
or byte [esi + 0x57], dl
push ebx
push eax
call fcn.00405850
push ebp
inc eax
inc eax
inc ecx
add byte [ebx - 0x2367c05], cl
xor eax, eax
dec ecx
pushfd
xor eax, 0xa040c10c
not ecx
dec ecx
cmp ecx, 7
retf

Function at 0x40a580
Capabilities:
Encode data using xor
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ebx
mov edi, dword [ebx]
add cl, al
inc eax
add byte [esi + 0x57], dl
mov edi, dword [ebp - 0x29]
mov bl, 0x2f
jno 0x40a592
call ebx
push 0x5c
shr dword [edx + 0x5c], cl
push edi
mov esi, eax
call ebx
add esp, 0x10
cmp eax, esi
pop ecx
mov byte [ebx - 0x57090e10], cl
push cs
push 0x3a
push edi
call ebx
mov esp, dword [eax - 0x7d]
les ecx, [eax]
test esi, esi
ror byte [ebx], 1
invalid
Function at 0x401c18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov esi, ebx
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x78
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x20
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x5d
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xa6
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x9a
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x70
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xdb
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x83
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xfd
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x21
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x67
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x48
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x89
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x32
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x5c
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xf3
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xa8
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x5b
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xd9
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xc3
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xf2
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xd1
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x9e
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xc8
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xf3
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xc0
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xd0
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x86
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x7f
inc esi
cmp esi, 0x83000
jb 0x401c25
pop edi
pop esi
pop ebx
ret
Function at 0x401d92
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x10]
mov edi, dword [eax]
mov ebp, edi
xor ebp, 0x14d
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], 0x10
jb 0x401db4
mov esi, dword [esi]
shr edi, 2
xor ebx, ebx
mov dword [esp + 0x18], edi
test edi, edi
je 0x401e11
mov dword [esp + 0x14], edi
mov edi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
push 4
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004072a0
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebp, ebp, 0x5bd1e991
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov dword [esp + 0x10], eax
sub dword [esp + 0x14], 1
jne 0x401dc7
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x401e37
sub eax, 1
je 0x401e2d
sub eax, 1
jne 0x401e45
movsx ebx, byte [esi + edi*4 + 2]
shl ebx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ebx, eax
movsx eax, byte [esi + edi*4]
xor eax, ebx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x10
ret

Function at 0x401e61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432018]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4b7000]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x401ed0
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004023da
test esi, esi
je 0x401ebd
lea ecx, [esp + 0x1c]
call fcn.00401d92
test eax, eax
je 0x401ebd
cmp eax, dword [esp + 0x14]
je 0x401ee8
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402c98
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401e98
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406680
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402c98
jmp 0x401ed2

Function at 0x406e81
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406ec0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406ec0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406ec0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406ec0
cmp dword [ecx + 0x74], 0xe
jbe 0x406ec0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x413c36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427a6c
push 0x427a64
push str.FlsAlloc
push 0x1e
call fcn.00413a63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413c6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x424164]
call esi
jmp 0x413c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413cb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427a7c
push 0x427a74
push str.FlsGetValue
push 0x20
call fcn.00413a63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413ceb
push dword [ebp + 8]
mov ecx, esi
call dword [0x424164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416b0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004167b1

Function at 0x416b1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416940
Function at 0x418185
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004071f0
mov eax, dword [0x432018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414fce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4181c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418323
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423020
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x433b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004185ab
mov ecx, dword [esi*4 + 0x433b90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41831c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41831c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41831c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004185ab
add esp, 0x14
test edx, edx
jl 0x41831c
jg 0x418292
test eax, eax
jb 0x41831c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41831c
jl 0x4182ac
cmp dword [ebp - 0x1008], eax
ja 0x41831c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4182ca
test ebx, ebx
je 0x418303
cmp ecx, edi
jae 0x418303
mov al, byte [ecx]
cmp al, 0xd
jne 0x4182e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4182f0
cmp byte [ecx + 1], 0xa
jne 0x4182f0
inc ecx
jmp 0x4182f0
movzx eax, al
movsx eax, byte [eax + 0x432960]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4182ca
cmp edx, ebx
jne 0x4182ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418321
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406680
leave
ret
Function at 0x41b53d
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 0x41b5da
push ebx
push esi
call fcn.0041b506
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.0041a18b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b587
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b5d9
push edi
push eax
call fcn.0041406c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b5a7
call fcn.0041315f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b5d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a18b
add esp, 0x20
test eax, eax
jne 0x41b5c6
push edi
call fcn.0041315f
jmp 0x41b5ce
push ebx
call fcn.0041315f
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