joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432fbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x2e
pop eax
push 0x6e
mov word [ebp - 0x24], ax
mov esi, edx
pop eax
push 0x65
pop edx
push 0x32
mov word [ebp - 0x2e], ax
xor ebx, ebx
pop eax
push 0x6c
mov word [ebp - 0x26], ax
pop eax
push 0x64
pop ecx
push 0x72
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
mov word [ebp - 0x2a], ax
pop eax
push 0x33
mov word [ebp - 0x30], ax
pop eax
mov word [ebp - 0x28], ax
push 0x4b
pop eax
mov word [ebp - 0x34], ax
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
mov word [ebp - 0x32], dx
push eax
mov word [ebp - 0x2c], dx
mov word [ebp - 0x22], cx
mov word [ebp - 0x12], 0x6c75
mov byte [ebp - 0x17], dl
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xc], dl
mov word [ebp - 0x15], 0x6f4d
mov word [ebp - 0xe], 0x6c69
mov byte [ebp - 8], dl
mov word [ebp - 7], 0x57
mov byte [ebp - 0x13], cl
mov byte [ebp - 0xf], 0x46
mov word [ebp - 0xa], 0x6d61
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x16], 0x74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433084
push 0x104
push esi
push ebx
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00430234
leave
ret
Function at 0x442f83
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x45d40e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e4014]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x218]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea ecx, [ebp]
push 0x4ad448
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov edi, 0x104
mov byte [ebp - 4], 1
lea edx, [ebp + 4]
mov ecx, edi
call fcn.00477c73
cmp eax, edi
ja 0x443053
test eax, eax
je 0x443053
mov edx, dword [ebp + 0x21c]
lea ecx, [ebp + 4]
call fcn.0040979e
test eax, eax
je 0x443053
mov edx, 0x4adf50
lea ecx, [ebp - 0x10]
call fcn.004a7a39
lea ecx, [ebp + 4]
mov byte [ebp - 4], 2
push ecx
push dword [eax]
lea eax, [ebp]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__24]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push ecx
lea eax, [ebp]
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
call fcn.0041f5c0
test al, al
jne 0x443053
push 0
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
lea ecx, [ebp]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00430234
add ebp, 0x210
leave
ret 8
Function at 0x44c12d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x44c15d
call fcn.00411c64
cmp eax, 0xffffffff
jne 0x44c15d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x44c21a
push esi
mov esi, edi
mov ecx, edi
mov edx, eax
cmp dx, 0x2f
je 0x44c17c
cmp dx, 0x5c
jne 0x44c17e
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x44c170
cmp esi, edi
je 0x44c1c4
sub esi, edi
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x208
jae 0x44c228
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, ebx
mov word [ebp + esi - 0x414], ax
call fcn.0044c12d
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x44c1e8
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00411c64
pop esi
cmp eax, 0xffffffff
jne 0x44c21a
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00430234
leave
ret
call fcn.00430614
int3
Function at 0x45051a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x450521
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4505de
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
sub edi, 1
jne 0x450537
pop edi
test esi, esi
je 0x4505fa
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
inc edx
sub esi, 1
jne 0x4505e2
not ecx
mov eax, ecx
pop esi
ret
Function at 0x480f58
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x480ff2
cmp dword [esi + 4], 0xffffffff
jne 0x480ff2
push ebp
push edi
lea edi, [esi + 0x244]
mov ebp, 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x480f8b
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x480fbc
cmp eax, 0x2f
je 0x480fbc
push 0x4adf4c
push ebp
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00455b82
pop ecx
pop ecx
pop edi
pop ebp
test eax, eax
jne 0x480fd9
mov eax, dword [esp + 8]
jmp 0x480ff7
mov ecx, eax
call fcn.00496ef9
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x480ff7
mov eax, 0x1000000
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x4820dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x88
mov eax, dword [0x4e4014]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
mov eax, ecx
push ebp
push esi
push edi
lea ebp, [eax + 0x4c]
mov dword [esp + 0x24], ebx
push 8
pop ecx
mov esi, ebp
mov word [esp + 0x13], 0x3433
lea edi, [esp + 0x28]
mov dword [esp + 0x18], 0x62613938
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x1d], 0x666564
mov word [esp + 0x16], 0x3736
mov word [esp + 0x10], 0x3130
mov byte [esp + 0x1c], 0x63
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x15], 0x35
call fcn.0041f627
push 0xf
xor ecx, ecx
xor esi, esi
pop edi
mov edx, dword [ebp]
mov eax, edx
shr eax, 0x1c
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x48], al
mov eax, edx
shr eax, 0x18
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x49], al
mov eax, edx
shr eax, 0x14
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x4a], al
mov eax, edx
shr eax, 0x10
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x4b], al
mov eax, edx
shr eax, 0xc
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x4c], al
mov eax, edx
shr eax, 8
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x4d], al
mov eax, edx
shr eax, 4
and edx, edi
and eax, edi
mov al, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x4e], al
mov al, byte [esp + edx + 0x10]
mov byte [esp + ecx + 0x4f], al
add ecx, 8
mov eax, dword [esp + esi*4 + 0x28]
inc esi
mov dword [ebp], eax
lea ebp, [ebp + 4]
cmp esi, 8
jl 0x482151
cmp ecx, 0x41
jae 0x48220f
lea eax, [esp + 0x48]
mov byte [esp + ecx + 0x48], 0
push eax
mov ecx, ebx
call fcn.0042162e
mov ecx, dword [esp + 0x94]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430234
add esp, 0x88
ret 4
call fcn.00430614
int3
Function at 0x482430
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x424]
sub esp, 0x424
push 0xffffffffffffffff
push 0x49e70b
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x4e4014]
xor eax, ebp
mov dword [ebp + 0x420], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x400
xor edi, edi
lea eax, [ebp + 0x20]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14]
mov edx, 0x4ad890
call fcn.004a7a39
push 0x200
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], edi
push ecx
push dword [eax]
mov ecx, 0x4f6034
call fcn.0040f5f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ebx, [esi + 0x340]
mov eax, dword [ebx]
lea ecx, [ebp + 0x20]
push ecx
mov ecx, ebx
call dword [eax + 0x17c]
push edi
mov edi, dword [sym.imp.mfc140u.dll_CWnd::ShowWindow]
lea ecx, [esi + 0xcf8]
call edi
push 0
lea ecx, [esi + 0x958]
call edi
push 0
lea ecx, [esi + 0xb20]
call edi
push 0
push dword [esi + 0x16c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
mov eax, dword [ebp - 0x10]
push 0
push dword [eax + 0x208]
call esi
mov eax, dword [ebp - 0x10]
push 0
push dword [eax + 0x2a4]
call esi
mov esi, dword [ebp - 0x10]
push 0
lea ecx, [esi + 0x478]
call edi
push 0
lea ecx, [esi + 0x5b0]
call edi
push 0
lea ecx, [esi + 0x820]
call edi
push 0
lea ecx, [esi + 0x6e8]
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0x360]
call edi
lea eax, [ebp + 0x10]
mov ecx, esi
mov esi, dword [sym.imp.mfc140u.dll_CWnd::ScreenToClient]
push eax
call esi
mov eax, 0x96
add dword [ebp + 0x14], eax
add dword [ebp + 0x1c], eax
add dword [ebp + 0x10], eax
add dword [ebp + 0x18], eax
lea eax, [ebp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004202b7
mov ebx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
push dword [ebx + 0xd0]
call edi
lea eax, [ebp]
mov ecx, ebx
push eax
call esi
mov ecx, dword [ebp + 0xc]
mov edi, 0x96
mov esi, dword [ebp + 4]
add ecx, edi
mov eax, dword [ebp + 8]
add esi, edi
mov edx, dword [ebp]
add eax, edi
push 1
add edx, edi
mov dword [ebp + 0xc], ecx
sub ecx, esi
mov dword [ebp + 8], eax
push ecx
sub eax, edx
mov dword [ebp + 4], esi
push eax
push esi
push edx
push dword [ebx + 0xd0]
mov dword [ebp], edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x420]
xor ecx, ebp
call fcn.00430234
add ebp, 0x424
leave
ret
Function at 0x4a6f04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4a7055
cmp dword [edi + 0x18], 0
je 0x4a7055
cmp dword [edi + 0x7c], 0
je 0x4a6f2c
call fcn.0041d913
lea eax, [esp + 0x14]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
call fcn.0048988a
pop ecx
pop ecx
test eax, eax
je 0x4a6f4e
push 0xffffffffffffff99
jmp 0x4a7057
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x84
call ebp
mov esi, eax
pop ecx
test esi, esi
jne 0x4a6f69
push 0xffffffffffffff98
jmp 0x4a7057
push 0x4000
call ebp
pop ecx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
test eax, eax
jne 0x4a6f94
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4a6f62
mov dword [esi + 0x40], edx
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], edx
test ecx, ecx
je 0x4a6fd7
lea ecx, [esi + 4]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
call fcn.0046e0a2
test eax, eax
jne 0x4a6fd7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4a6ffa
mov al, byte [edi + 0x39]
jmp 0x4a6ffd
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x4a703d
mov dl, byte [ebx]
test dl, dl
je 0x4a703d
lea ecx, [esi + 0x70]
call fcn.0041a83e
add ebx, 1
jne 0x4a702a
mov eax, dword [esp + 0x18]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], 0
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
jmp 0x4a7058
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
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, 0x137d4851
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x672d2560
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x40893a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x4085d8
sub esi, 1
add ebx, 0x52703775
call fcn.00408967
inc esi
xor dword [ecx], edx
inc ecx
push 0x6f51205d
pop esi
and ebx, ebx
cmp ecx, eax
jne fcn.0040893a
add ebx, 0xaf2fa5b6
ret
Function at 0x4176fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x4a4e00]
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.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
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 + 0x4a7470]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x4a7470]
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 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
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 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x4a50d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret
Function at 0x417d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4a7470]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
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 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a7470]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a7470]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a7470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4a7470]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x4a7470]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a7470]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a7470]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a7470]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x4a7470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret