joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov al, byte [esi + 0x36]
mov dword [esp + 0xc], edi
test al, al
je 0x402262
mov al, byte [esi + 0x123c]
mov cl, byte [esi + 0x123d]
cmp al, cl
jne 0x402214
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi + 0x123c]
mov al, byte [esi + 0x123d]
cmp cl, al
je 0x402278
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esi + 0x123d]
mov al, byte [edx + esi + 0x113c]
mov edx, dword [esp + 0xc]
mov byte [edx + ebp], al
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0x123d]
inc edx
inc al
dec ecx
mov dword [esp + 0xc], edx
mov byte [esi + 0x123d], al
je 0x402278
cmp byte [esi + 0x123c], al
jne 0x402228
jmp 0x402278
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], edi
je 0x402391
mov al, byte [esi + 0x34]
test al, al
je 0x402379
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1c8]
mov byte [esp + 0x18], 1
test edi, edi
jne 0x4022c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1c8], edi
jmp 0x4022ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
lea ecx, [esp + 0x24]
sub eax, edi
push eax
push str._r_nIN___4d__:
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
xor edi, edi
test eax, eax
jle 0x402344
xor edx, edx
lea eax, [esp + 0x20]
mov dl, byte [edi + ebp]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.0041c268
mov edx, edi
and edx, 0x8000000f
jns 0x402328
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x40233b
push 0x4317a0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x4022f3
mov eax, dword [esp + 0x24]
mov byte [esi + 0x35], 1
push eax
push esi
call fcn.00401f10
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esi + 0x35], 0
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4023b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x34]
test al, al
je 0x4024cf
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x1c8]
mov byte [esp + 0x1c], 1
test edi, edi
jne 0x402418
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x1c8], edi
jmp 0x402424
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
lea ecx, [esp + 0x28]
sub eax, edi
push eax
push str._r_nOUT__4d__:
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor edi, edi
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x40249a
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [edi + ebx]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041c268
mov edx, edi
and edx, 0x8000000f
jns 0x40247e
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x402491
push 0x4317a0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x402449
mov eax, dword [esp + 0x28]
mov byte [esi + 0x35], 1
push eax
push esi
call fcn.00401f10
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esi + 0x35], 0
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x36]
test al, al
je 0x402502
mov edx, dword [esi + 0x18]
lea edi, [esi + 0x1114]
lea ecx, [esp + 0x24]
push edi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x402543
mov eax, dword [esi + 0x1ac]
test eax, eax
jne 0x402521
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x402543
xor edi, edi
test ebp, ebp
jle 0x402543
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [edi + ebx]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebp
jl 0x402527
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406440
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x11c]
shl eax, 5
mov ecx, dword [eax + 0x41e680]
and ecx, 0x7f8000
cmp ecx, 0xc8000
jb 0x4065f8
mov al, byte [esi + 0x22]
test al, al
je 0x40647e
mov ecx, esi
call fcn.00403c20
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x670]
mov al, byte [edx + 0xf]
test al, 0x80
je 0x4065f8
and al, 0x60
cmp al, 0x20
jne 0x4064a3
mov ecx, esi
call fcn.00403c20
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp al, 0x40
jne 0x4064b5
mov ecx, esi
call fcn.00404100
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push 0x32d5
mov ecx, esi
mov ebx, eax
call fcn.00401ed0
push eax
push esi
call fcn.00401f10
mov eax, dword [esi + 0x11c]
add esp, 8
shl eax, 5
mov eax, dword [eax + 0x41e680]
and eax, 0x7f8000
cmp eax, 0xc8000
je 0x406559
cmp eax, 0xe0000
je 0x406559
cmp eax, 0x1a8000
jb 0x40650f
mov ecx, esi
call fcn.00406420
jmp 0x406560
cmp eax, 0x168000
je 0x406550
cmp eax, 0x170000
je 0x406550
cmp eax, 0x178000
je 0x406550
cmp eax, 0x180000
je 0x406550
cmp eax, 0x188000
je 0x406550
cmp eax, 0x190000
je 0x406550
cmp eax, 0x198000
je 0x406550
cmp eax, 0x1a0000
je 0x406550
mov ecx, esi
call fcn.004049f0
jmp 0x406560
mov ecx, esi
call fcn.004053c0
jmp 0x406560
mov ecx, esi
call fcn.00404210
test eax, eax
jne 0x4065fa
call edi
sub eax, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
sub esp, 8
fild qword [esp + 0x14]
fmul dword [0x427718]
fstp qword [esp]
push 0x4317d8
push esi
call fcn.00401f10
fild dword [esi + 0x118]
fild dword [esi + 0xf8]
add esp, 8
mov ecx, esi
fld st(1)
fsub st(1)
sub esp, 8
fdiv st(1)
fmul dword [0x427708]
fstp qword [esp + 8]
fstp st(0)
fmul qword [0x427710]
fstp qword [esp]
push 0x32d7
call fcn.00401ed0
push eax
push esi
call fcn.00401f10
fild dword [esi + 0xf8]
fild dword [esi + 0x118]
add esp, 0x18
mov byte [esi + 0x37], 1
fsub st(1)
fdiv st(1)
fmul dword [0x427708]
fstp dword [esi + 0x1dc]
fstp st(0)
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4107f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x194]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x14], 0
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4108a8
cmp dword [esp + 0x14], esi
jne 0x4108a8
cmp byte [ebx + 1], 0x46
jne 0x4108a8
cmp byte [ebx + 2], 0xb9
jne 0x4108a8
cmp byte [ebx + 3], 0x68
jne 0x4108a8
mov al, byte [ebx + 4]
test al, al
jne 0x4108a8
xor edx, edx
push 3
mov dl, byte [ebx + 5]
mov ecx, ebp
mov esi, edx
sub esi, 6
lea eax, [esi + 3]
push eax
push ebx
call fcn.004020a0
mov dl, byte [esi + ebx + 6]
xor ecx, ecx
mov cl, ah
cmp dl, cl
jne 0x4108a8
cmp byte [esi + ebx + 7], al
jne 0x4108a8
cmp byte [esi + ebx + 8], 0x16
jne 0x4108a8
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov edx, ecx
mov dword [esp + 0x10], esi
lea esi, [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x1cc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4108d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x198]
push edi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push pe_nt_image_headers32
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [esp + 0x2c]
and ecx, 3
mov esi, dword [esp + 0x30]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
mov edi, ebp
add esp, 8
rep stosd dword es:[edi], eax
mov byte [ebp + 3], al
mov ecx, ebx
mov al, bl
mov edx, ecx
add al, 6
lea edi, [ebp + 5]
shr ecx, 2
mov byte [ebp], 0x46
mov byte [ebp + 1], 0xb9
mov byte [ebp + 2], 0x6a
mov byte [ebp + 4], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 3]
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push eax
push ebp
call fcn.004020a0
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, ah
mov byte [ebx + ebp + 5], cl
mov byte [ebx + ebp + 6], al
mov byte [ebx + ebp + 7], 0x16
lea eax, [edx + 8]
xor ebx, ebx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4109cf
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea esi, [ebx + ebp]
push 0
lea ecx, [eax - 1]
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [edx - 1]
add ebx, eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jl 0x410980
jmp 0x4109d3
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x410a00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], eax
mov ebp, ecx
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [esp + 0x30]
push 0x41
push eax
push ecx
mov dword [ebp + 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410adf
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x410a7f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00402990
test al, al
jne 0x410ac8
mov al, byte [ebp + 0x23]
test al, al
je 0x410ac8
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x410adf
call ebx
cmp eax, 0x3e4
jne 0x410adf
push 5
call edi
jmp 0x410a91
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 4
mov eax, dword [esp + 0x2a]
mov ebx, dword [esp + 0x2b]
mov edi, dword [esp + 0x70]
and eax, 0xff
and ebx, 0xff
mov dword [ebp + 0x1c4], eax
test edi, edi
je 0x410b14
mov ecx, ebx
lea esi, [esp + 0x2c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [ebp + 0x1cc], ebx
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x5c
ret 4
Function at 0x410b40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], eax
mov ebp, ecx
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x24], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x70]
xor edx, edx
stosb byte es:[edi], al
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x74]
mov eax, ecx
mov byte [esp + 0x2e], cl
shr eax, 0x10
mov dl, ah
mov byte [esp + 0x2c], al
xor eax, eax
mov byte [esp + 0x29], 0x5a
mov al, ch
mov ecx, dword [esp + 0x78]
test cl, cl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], cl
jbe 0x410bd5
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x410bd5
and ecx, 0xff
lea edi, [esp + 0x30]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [esp + 0x2c]
push 0x40
push eax
mov ecx, ebp
call fcn.004020a0
neg al
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
mov byte [esp + 0x68], al
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [esp + 0x30]
push 0x41
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x410c42
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x410c42
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x410c42
call ebx
cmp eax, 0x3e4
je 0x410c21
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
Function at 0x41baa0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x4362e4
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 8]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x41bb2e
test esi, esi
je 0x41bb2e
mov al, byte [esi + 0x199]
xor ecx, ecx
mov cl, byte [esi + 0x198]
xor edx, edx
mov dl, byte [esi + 0x197]
push eax
push ecx
xor eax, eax
mov al, byte [esi + 0x196]
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x195]
mov dl, byte [esi + 0x194]
push eax
push ecx
lea eax, [esi + 8]
push edx
push eax
push str.NET__s__02X_02X_02X_02X_02X_02X
push 0x4362e4
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x4362e4
pop edi
pop esi
pop ecx
ret

Function at 0x41bc50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov cl, 0x4c
test eax, eax
mov byte [esp + 4], cl
mov byte [esp + 3], 0
jbe 0x41bced
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
sub edi, esi
mov dword [esp + 0x24], eax
mov al, byte [edi + esi]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x20], al
mov dl, cl
mov ebx, dword [esp + 0x20]
inc dl
and ebx, 0xff
and edx, 0xff
and ebp, 0xff
xor al, cl
mov bl, byte [ebx + 0x4290c0]
sub bl, byte [edx + 0x4291c0]
xor edx, edx
mov dl, byte [ebp + 0x4291c0]
and ebx, 0xff
xor ebx, edx
mov dl, byte [esp + 0x13]
add al, dl
mov bl, byte [ebx + 0x4290c0]
mov cl, al
mov eax, dword [esp + 0x24]
mov byte [esi], bl
mov bl, byte [esp + 0x28]
mov byte [esp + 0x14], cl
add dl, bl
inc esi
dec eax
mov byte [esp + 0x13], dl
mov dword [esp + 0x24], eax
jne 0x41bc7c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41bd00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov cl, 0x4c
mov byte [esp + 7], 0
test edi, edi
mov byte [esp + 8], cl
jbe 0x41bd7c
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub esi, eax
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [esi + eax]
and ebx, 0xff
mov dl, byte [edx + 0x4291c0]
xor dl, byte [ebx + 0x4291c0]
mov bl, cl
inc bl
and ebx, 0xff
add dl, byte [ebx + 0x4291c0]
and edx, 0xff
mov dl, byte [edx + 0x4291c0]
mov bl, dl
mov byte [eax], dl
mov dl, byte [esp + 0x24]
xor bl, cl
mov cl, bl
mov bl, byte [esp + 0xf]
add cl, bl
add bl, dl
inc eax
dec edi
mov byte [esp + 0x10], cl
mov byte [esp + 0xf], bl
jne 0x41bd23
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x406773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406797
xor eax, eax
test eax, eax
je 0x4067aa
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067aa
xor ecx, ecx
jmp 0x4067ad
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65ec], 0
push esi
jne 0x406907
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068e1
mov dword [ecx*4 + 0x7a65e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068dc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406938
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65e8]
xor eax, esi
inc ecx
dec edx
jne 0x40691a
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401a50
Capabilities:
Parse pe header

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

Function at 0x40b860
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10008880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov edx, dword [ebp + 0x3a8]
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x10008a43
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x10008977
jl 0x100088fe
cmp edi, 0x7fffffff
ja 0x10008977
cmp edx, 0xffffffff
jl 0x10008977
jg 0x1000890d
cmp edi, 0x80000000
jb 0x10008977
cmp edi, 0x400
jg 0x1000892d
push edi
call fcn.10010707
add esp, 4
test al, al
je 0x1000892d
mov eax, edi
call fcn.1000bf00
mov ebx, esp
jmp 0x10008951
mov eax, edi
not eax
cmp eax, 8
jb 0x10008a91
lea eax, [edi + 8]
push eax
call fcn.10010707
add esp, 4
test eax, eax
je 0x10008977
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x10008977
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x74]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x10008979
xor edi, edi
test edi, edi
je 0x10008a43
push 0x60
push 0
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
push 2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
call fcn.10003920
mov edi, eax
jmp 0x10008a48
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100089c8
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100089de
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x100089f6
mov edi, 0x8007000e
jmp 0x10008a36
push eax
lea ecx, [ebp - 0x6c]
call fcn.100033c0
cmp dword [ebp - 0x6c], 0
jne 0x10008a0c
mov edi, 0x8007000e
jmp 0x10008a36
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call fcn.1000aa30
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
add esp, 0x10
mov byte [eax + edi], 0
push dword [ebp + 0x3b0]
push dword [ebp - 0x6c]
call fcn.100086f0
mov edi, eax
test ebx, ebx
je 0x10008a48
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10008a48
mov edi, 0x8007000e
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x10008a58
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x10008a6f
nop dword [eax]
push esi
mov esi, dword [esi]
call fcn.10010707
add esp, 4
test esi, esi
jne 0x10008a60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x39c]
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3