joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4dd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a51c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a51c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a51c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a51c
cmp dword [ecx + 0x74], 0xe
jbe 0x40a51c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40fd06
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40fd51
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040fea1
test al, al
jne 0x40fd4b
sub edx, 2
cmp edx, edi
jne 0x40fd31
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40fd73
lea eax, [edi + 2]
cmp edx, eax
je 0x40fd73
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040fc52
add esp, 0x10
jmp 0x40fe6d
push esi
lea ecx, [ebp - 0x255]
call fcn.0040fea1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fdb6
push dword [ebp - 0x25c]
jmp 0x40fd63
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40fdf3
cmp word [ebp - 0x226], 0
je 0x40fe14
cmp word [ebp - 0x226], ax
jne 0x40fdf3
cmp word [ebp - 0x224], 0
je 0x40fe14
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040fc52
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40fe60
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40fdcd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40fe48
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40fe6d
push 0x40fa82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004129d0
add esp, 0x10
jmp 0x40fe3d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409972
leave
ret

Function at 0x410c42
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c404
push 0x41c3fc
push str.FlsAlloc
push 0x1f
call fcn.00410b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410c76
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a314]
call esi
jmp 0x410c7c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x410cc0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c414
push 0x41c40c
push str.FlsGetValue
push 0x21
call fcn.00410b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410cf7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a314]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410cff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c41c
push 0x41c414
push str.FlsSetValue
push 0x22
call fcn.00410b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d39
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41a314]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41673d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41673d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2f26350a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6f48198f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403a5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a7d
jl 0x403a74
test edi, edi
jne 0x403a7d
xor eax, eax
xor edx, edx
jmp 0x403b3e
cmp dword [ebx + 0x38], 0
je 0x403a92
push eax
push edi
push dword [ebp + 8]
call fcn.00403b44
jmp 0x403b3e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403ad9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403ad9
cmp eax, edi
jb 0x403ab3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405c10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403adf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403b33
mov ecx, ebx
call fcn.004032ab
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403b1e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a48a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403b33
jmp 0x403af1
test edx, edx
je 0x403b33
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a48a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405421
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405460
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405460
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405460
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405460
cmp dword [ecx + 0x74], 0xe
jbe 0x405460
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40f543
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e2e8
push 0x41e2e0
push str.FlsAlloc
push 0x1f
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f577
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b138]
call esi
jmp 0x40f57d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f5c1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e2f8
push 0x41e2f0
push str.FlsGetValue
push 0x21
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f600
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e300
push 0x41e2f8
push str.FlsSetValue
push 0x22
call fcn.0040f42a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f63a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410f8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004057b0
mov eax, dword [0x425040]
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.0040fbd3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410fce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41112a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a360
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 + 0x10ed5e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411f89
mov ecx, dword [esi*4 + 0x10ed5e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x411123
cmp eax, dword [ecx + edi + 0x24]
jne 0x411123
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411123
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411f89
add esp, 0x14
test edx, edx
jl 0x411123
jg 0x411099
test eax, eax
jb 0x411123
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411123
jl 0x4110b3
cmp dword [ebp - 0x1008], eax
ja 0x411123
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4110d1
test ebx, ebx
je 0x41110a
cmp ecx, edi
jae 0x41110a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4110eb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4110f7
cmp byte [ecx + 1], 0xa
jne 0x4110f7
inc ecx
jmp 0x4110f7
movzx eax, al
movsx eax, byte [eax + 0x4252f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4110d1
cmp edx, ebx
jne 0x4110d1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411128
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404a93
leave
ret
Function at 0x411421
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10ed5e8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411461
cmp byte [ebx], 0xa
jne 0x411461
or byte [edi + eax + 0x28], 4
jmp 0x411466
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x411565
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411548
inc eax
cmp dl, 0xd
je 0x411492
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4114b8
cmp eax, ecx
jae 0x4114c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41147a
jmp 0x411565
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411543
cmp dword [ebp - 0x10], 0
je 0x411543
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10ed5e8]
test byte [eax + edi + 0x28], 0x48
je 0x41151d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411508
mov byte [esi], dl
jmp 0x411519
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10ed5e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411565
cmp byte [ebp - 1], 0xa
jne 0x41152c
cmp esi, ebx
jne 0x41152c
mov byte [esi], 0xa
jmp 0x411564
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411fa7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411565
mov byte [esi], 0xd
jmp 0x411564
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10ed5e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411565
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41156e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10ed5e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4115b4
cmp word [ebx], dx
jne 0x4115b4
or byte [eax + edi + 0x28], 4
jmp 0x4115b9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41171c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4116fc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4115fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411630
cmp eax, edx
jae 0x41163e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4115d5
jmp 0x41171c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4116f7
cmp dword [ebp - 0x18], 0
je 0x4116f7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10ed5e8]
test byte [eax + edi + 0x28], 0x48
je 0x4116cd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411691
mov word [esi], cx
jmp 0x4116c8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10ed5e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10ed5e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10ed5e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41171c
pop eax
cmp word [ebp - 4], ax
jne 0x4116dd
cmp esi, ebx
jne 0x4116dd
mov word [esi], ax
jmp 0x411719
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411fa7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41171c
push 0xd
pop eax
jmp 0x4116d8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10ed5e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411716
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41171c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100051c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x100051e2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x40]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x100051d0
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
ret

Function at 0x10005ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d4411
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword fs:[0x2c]
mov edx, dword [0x100fbfac]
push esi
mov esi, ecx
mov edx, dword [eax + edx*4]
mov eax, dword [0x100fc374]
cmp eax, dword [edx + 4]
jle 0x100060c8
push 0x100fc374
call fcn.100d136a
add esp, 4
cmp dword [0x100fc374], 0xffffffff
jne 0x100060c8
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0x97ab9ead
mov dword [ebp - 0x14], 0x89aba4a1
mov dword [ebp - 0x10], 0x100a4bd
lea eax, [ecx - 0x40]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0xa
jb 0x10006066
mov byte [ebp - 0xd], 0
xor ecx, ecx
mov dword [ebp - 0x27], 0x819d9584
mov dword [ebp - 0x23], 0x82a3b6a5
mov dword [ebp - 0x1f], 0xbfa3bda6
mov word [ebp - 0x1b], 0xb5
mov byte [ebp - 0x19], 1
lea eax, [ecx - 0x40]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0xd
jb 0x10006098
lea eax, [ebp - 0x18]
mov byte [ebp - 0x19], 0
push eax
lea eax, [ebp - 0x27]
push eax
call fcn.10007f10
push 0x100fc374
mov dword [0x100fc2dc], eax
call fcn.100d1320
add esp, 4
mov eax, dword [0x100fc2dc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + esi]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006b80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe], 0
je 0x10006ba2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x40]
inc eax
xor byte [edx], cl
cmp eax, 0xd
jb 0x10006b90
mov byte [esi + 0xe], 0
pop esi
ret

Function at 0x10007390
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x100073b2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x40]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x100073a0
mov byte [esi + 0xb], 0
pop esi
ret
Function at 0x10009890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100098c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
add eax, 0x78
add eax, ebx
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
mov eax, dword [esi + ebx + 0x1c]
add esi, ebx
add eax, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, ebx
add ecx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test edx, 0xffff0000
jne 0x1000992d
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
movzx ecx, ax
cmp ecx, edx
jb 0x100099b9
mov eax, dword [esi + 0x14]
add eax, edx
cmp ecx, eax
ja 0x100099b9
mov eax, dword [ebp - 4]
sub ecx, edx
mov edi, dword [eax + ecx*4]
add edi, ebx
jmp 0x1000998e
mov eax, dword [esi + 0x18]
xor esi, esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000998b
nop dword [eax]
mov eax, dword [ecx + esi*4]
mov ecx, edx
add eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10009967
test dl, dl
je 0x10009963
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10009967
add ecx, 2
add eax, 2
test dl, dl
jne 0x10009947
xor eax, eax
jmp 0x1000996c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000997f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + esi*2]
mov edi, dword [ecx + eax*4]
add edi, ebx
mov edx, dword [ebp - 8]
inc esi
mov ecx, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x14]
jb 0x10009940
mov esi, dword [ebp - 0xc]
cmp edi, esi
jb 0x10009a7d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
add eax, esi
cmp edi, eax
jae 0x10009a7d
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x100099c2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2e
push esi
xor edi, edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
movaps xmm0, xmmword [0x100f10a0]
mov ebx, eax
add esp, 8
mov word [ebp - 0x1e], 0x100
movups xmmword [ebp - 0x2e], xmm0
xor ecx, ecx
mov byte [ebx], 0
lea eax, [ecx - 0x40]
xor byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 0x10
jb 0x100099e8
mov byte [ebp - 0x1d], 0
call fcn.10009890
lea edx, [ebp - 0x2e]
mov ecx, eax
call fcn.100098c0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x10009a69
mov dword [ebp - 0x2a], 0xa7a3ae8c
mov dword [ebp - 0x26], 0xb5a4ac88
mov dword [ebp - 0x22], 0x8ab3bba9
mov word [ebp - 0x1e], 0x100
lea eax, [ecx - 0x40]
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 0xc
jb 0x10009a36
mov byte [ebp - 0x1d], 0
call fcn.10009890
lea edx, [ebp - 0x2a]
mov ecx, eax
call fcn.100098c0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10009a73
lea edx, [ebx + 1]
call fcn.100098c0
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret