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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40df68
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x408f74
add eax, 8
inc ebp
cmp eax, 0x40dff8
jb 0x408f65
cmp ecx, dword [ebp*8 + 0x40df68]
jne 0x40911b
mov eax, dword [0x410238]
cmp eax, 1
je 0x4090dd
test eax, eax
jne 0x408fa0
cmp dword [0x40ddc4], 1
je 0x4090dd
cmp ecx, 0xfc
je 0x40911b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408fdb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x409024
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40a2e0
add ebx, ecx
push ebx
call fcn.004099e0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a2c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40df6c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409950
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x410a40]
test eax, eax
je 0x4090ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4090f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40df6c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40628f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062b3
xor eax, eax
test eax, eax
je 0x4062c5
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062c5
xor ecx, ecx
jmp 0x4062c8
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x4063eb
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 0x4063c5
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063c0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40641c
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 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x4063fe
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 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x401070
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
mov eax, dword [ebp + 4]
mov dword [0x4040c3], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401082
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x4040c3]
mov dword [ebp - 0x48], eax
mov eax, 0x40214c
mov dword [ebp - 0x54], eax
mov ecx, str.uquamarine
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [0x4041ac], 8
mov dword [0x4041b0], 0x4000
push 0x4041ac
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor ecx, ecx
push ecx
push dword [0x4040c3]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.kippohome
push eax
mov eax, str.uquamarine
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404200], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404200]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401132
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x401124
mov esp, ebp
ret
Function at 0x4025e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov ebp, pe_nt_image_headers32
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x18], cl
cdq
idiv dword [esp + 0x22c]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40261c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x402660
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40263d
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x224], ebx
jle 0x402711
inc edi
and edi, 0x800000ff
jns 0x402693
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4026ac
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x423450]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040acb0
add esp, 0xc
mov ecx, 0x471d58
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
movss dword [esp], xmm0
call fcn.004022db
push eax
call fcn.00401c08
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x224]
jl 0x402682
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040640a
add esp, 0x20c
ret

Function at 0x4032df
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40331c
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.dll_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4032ed
pop edi
pop esi
ret
Function at 0x403f87
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.VirtualProtect
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
mov edi, 0x4ac
push ecx
push 0x40
push edi
mov esi, 0x470818
push esi
call eax
push edi
push esi
call fcn.004032df
pop ecx
pop ecx
call fcn.004032c5
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x470818
add edx, 0x188
mov esi, 0x42d018
push esi
call edx
push str.dsikfhucIUsioa
push 0x471d58
call fcn.00401100
push eax
call fcn.00401c08
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GdiComment]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x406bb7
Capabilities:
Parse pe header

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

Function at 0x415a78
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427258
push 0x427250
push str.FlsAlloc
push 0x1e
call fcn.004158e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415aac
push dword [ebp + 8]
mov ecx, esi
call dword [0x423150]
call esi
jmp 0x415ab2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415af6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427268
push 0x427260
push str.FlsGetValue
push 0x20
call fcn.004158e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415b2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x423150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416efd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416b9f

Function at 0x416f08
Capabilities:
Read file on windows

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f20
mov eax, dword [0x470d00]
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.004152c4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4185b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418711
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422050
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 + 0x472610]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418999
mov ecx, dword [esi*4 + 0x472610]
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 0x41870a
cmp eax, dword [edi + ecx + 0x24]
jne 0x41870a
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 0x41870a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418999
add esp, 0x14
test edx, edx
jl 0x41870a
jg 0x418680
test eax, eax
jb 0x41870a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41870a
jl 0x41869a
cmp dword [ebp - 0x1008], eax
ja 0x41870a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4186b8
test ebx, ebx
je 0x4186f1
cmp ecx, edi
jae 0x4186f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4186d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4186de
cmp byte [ecx + 1], 0xa
jne 0x4186de
inc ecx
jmp 0x4186de
movzx eax, al
movsx eax, byte [eax + 0x471680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4186b8
cmp edx, ebx
jne 0x4186b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41870f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040640a
leave
ret
Function at 0x41f1a9
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 + 0x472610]
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 0x41f1e9
cmp byte [ebx], 0xa
jne 0x41f1e9
or byte [eax + edi + 0x28], 4
jmp 0x41f1ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f2ec
mov al, byte [edx]
cmp al, 0x1a
je 0x41f2ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f21d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f24c
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 0x41f1ff
jmp 0x41f2ec
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 0x41f2c9
cmp dword [ebp - 0xc], 0
je 0x41f2c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x472610]
test byte [eax + edi + 0x28], 0x48
je 0x41f2a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f28e
mov byte [esi], dl
jmp 0x41f29f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x472610]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f2ec
cmp byte [ebp - 1], 0xa
jne 0x41f2b2
cmp esi, ebx
jne 0x41f2b2
mov byte [esi], 0xa
jmp 0x41f2eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004189b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f2ec
mov byte [esi], 0xd
jmp 0x41f2eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x472610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f2e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f2ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f2f5
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 + 0x472610]
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 0x41f338
cmp word [esi], dx
jne 0x41f338
or byte [edi + eax + 0x28], 4
jmp 0x41f33d
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 0x41f490
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 0x41f470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f37f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f3b5
cmp eax, edx
jae 0x41f3c1
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 0x41f357
jmp 0x41f490
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 0x41f46c
cmp dword [ebp - 0x14], 0
je 0x41f46c
mov eax, dword [ebx*4 + 0x472610]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f40d
mov word [esi], cx
jmp 0x41f440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x472610]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x472610]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x472610]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f490
pop ebx
cmp word [ebp - 4], bx
jne 0x41f455
cmp esi, dword [ebp + 0xc]
jne 0x41f455
mov word [esi], bx
jmp 0x41f48d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004189b7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f490
push 0xd
jmp 0x41f489
mov ecx, dword [ebx*4 + 0x472610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f490
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
Function at 0x421e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421e7d
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 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x10067579
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10067588
pop dword [ebp - 0x18]
mov eax, 0x10067588
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xa0984576
sub dword [ebp - 0x28], 0x5246002b
mov dword [ebp - 0x24], 0x2dbcddd8
sub dword [ebp - 0x24], 0xfb899193
mov dword [ebp - 0x20], 0x934463d0
add dword [ebp - 0x20], 0xb907e05e
mov dword [ebp - 0x1c], 0xc2986c18
sub dword [ebp - 0x1c], 0xc2986c18
lea eax, [ebp - 0x28]
push eax
mov eax, 0x83b7df7
add eax, 0x7cb8315
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xcb9ef7eb
add dword [ebp - 0x28], 0xa8d3716b
mov dword [ebp - 0x24], 0xbb7026d2
sub dword [ebp - 0x24], 0x7a03c55d
mov dword [ebp - 0x20], 0x546258cc
sub dword [ebp - 0x20], 0xf0f2ec60
mov dword [ebp - 0x1c], 0x1be26763
add dword [ebp - 0x1c], 0xe41d989d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xf718d663
sub eax, 0xe711d623
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x64635
push 0
call eax
mov ecx, 0x19dd60f1
sub ecx, 0x19dd25bf
mov ebx, eax
mov edx, 0xf11513f1
sub edx, 0xe10cc7f1
add edx, dword [ebp - 0x18]
mov edi, 0x31a21c8f
add dword [ebp - 0xc], 0xb4322065
mov esi, dword [edx]
xor dword [ebp - 4], 0x100a30ea
xor esi, edi
mov dword [ebx], esi
sub dword [ebp - 0x14], edx
add ebx, 0x5f172bf
add ebx, 0xfa0e8d45
add edx, 0x53b05cc6
sub edx, 0x53b05cc2
loop 0x1006769f
add eax, 0xdf9b
xor ebx, ebx
add ebx, eax
add eax, 0x4bed0041
sub eax, 0x4bed003c
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4027f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004038b0
test esi, esi
jne 0x40282e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039a0
jmp 0x40284c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040269c
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00402edc
js 0x403db6
invalid
inc dword [eax]

Function at 0x403d7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or byte [eax + 4], ch
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.00402edc
jbe 0x403db9
aad 0x80
movsd dword es:[edi], dword [esi]
sar ch, 1
invalid
inc eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402eba
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12

Function at 0x404a80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
invalid
invalid

Function at 0x404b10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax - 0x80000000], esi
movsd dword es:[edi], dword [esi]
clc
invalid

Function at 0x4070c8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, ecx
mov dword [esp], edx
mov ebp, dword [ebp]
jmp fcn.004032f8