joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f789
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4158]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x43f811
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x43f808
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43f7fa
cmp byte [eax + 0x70], 0xb
je 0x43f7fa
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4158]
je 0x43f7dc
cmp byte [esi + 0x4160], 0
je 0x43f7fa
cmp cl, 0xff
je 0x43f7fa
cmp byte [eax + 0x70], 0xa
je 0x43f7fa
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x43f7fa
cmp byte [eax + 0x70], 0x1a
jne 0x43f7fa
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x43f7ae
mov eax, dword [ebp + 8]
mov dword [esi + 0x4158], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x43f871
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43f863
cmp byte [eax + 0x70], 0xb
je 0x43f863
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4158]
jne 0x43f863
test byte [eax + 0x72], 0x20
jne 0x43f863
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x43f863
cmp byte [eax + 0x70], 0x1a
jne 0x43f863
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x43f81f
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4150]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
leave
ret 4
Function at 0x443c53
Capabilities:
Parse credit card information

Disassembly:
jmp 0x443cec
cmp ecx, 0x4f
jne 0x443c6a
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x443cea
cmp ecx, 0x5e
jne 0x443c86
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x443cf9
movzx ecx, byte [0x4657b6]
jmp 0x443cea
cmp ecx, 0x38
jl 0x443cb3
cmp ecx, 0x3d
jle 0x443ca4
cmp ecx, 0x40
jle 0x443c9f
cmp ecx, 0x43
jle 0x443ca4
cmp ecx, 0x44
jne 0x443cb3
mov dl, byte [eax + 3]
jmp 0x443ca7
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x443cb1
cmp dl, 0xe
jne 0x443cb3
inc eax
inc eax
movzx edx, byte [ecx + 0x465758]
add eax, edx
cmp dword [esp + 4], 0
je 0x443cec
cmp ecx, 0x1b
jl 0x443cec
cmp ecx, 0x1c
jle 0x443cd7
cmp ecx, 0x1d
jle 0x443cec
cmp ecx, 0x2a
jg 0x443cec
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x443cec
and ecx, 0x3f
movzx ecx, byte [ecx + 0x465818]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x443c58
xor eax, eax
ret
Function at 0x44ff01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44ff3e
cmp dword [ebp + 0x14], edi
je 0x44ff3e
cmp ecx, edi
jne 0x44ff45
call fcn.0045393c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004538dd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44ff59
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44ff7a
cmp ebx, 0xffffffff
je 0x44ff69
push ebx
push edi
push ecx
call fcn.0044fdd0
add esp, 0xc
cmp esi, edi
je 0x44ff26
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44ff26
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44ff96
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44ff9d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x45008e
test word [esi + 0xc], 0x10c
je 0x44fff1
mov eax, dword [esi + 4]
test eax, eax
je 0x44fff1
jl 0x4500ef
cmp ebx, eax
mov edi, ebx
jb 0x44ffc2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x450096
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00457a48
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x450086
cmp ebx, dword [ebp - 0xc]
jb 0x45005e
cmp dword [ebp - 0xc], 0
je 0x45001b
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x450010
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x450017
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x450026
mov eax, bind
cmp ebx, eax
ja 0x450026
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4500c2
push eax
push dword [ebp - 8]
push esi
call fcn.00450f48
pop ecx
push eax
call fcn.0045794b
add esp, 0xc
test eax, eax
je 0x450101
cmp eax, 0xffffffff
je 0x4500ef
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x450086
push esi
call fcn.0045726a
cmp eax, 0xffffffff
pop ecx
je 0x4500f3
cmp dword [ebp - 4], 0
je 0x4500c2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44ffa5
mov eax, dword [ebp + 0x14]
jmp 0x44ff40
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4500ad
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044fdd0
add esp, 0xc
call fcn.0045393c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44ff36
cmp dword [ebp + 0xc], 0xffffffff
je 0x4500d8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044fdd0
add esp, 0xc
call fcn.0045393c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44ff36
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44ff40
or dword [esi + 0xc], 0x10
jmp 0x4500f3
Function at 0x453aa3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x470c60]
je 0x453abe
inc edi
cmp edi, 0x17
jb 0x453aaf
cmp edi, 0x17
jae 0x453c3e
push ebp
push 3
call fcn.0045e0e3
cmp eax, 1
pop ecx
je 0x453c0a
push 3
call fcn.0045e0e3
test eax, eax
pop ecx
jne 0x453af2
cmp dword [0x470498], 1
je 0x453c0a
cmp ebx, 0xfc
je 0x453c3d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x472b30
push ebp
call fcn.0045de49
add esp, 0xc
test eax, eax
je 0x453b28
push esi
push esi
push esi
push esi
push esi
call fcn.004537e1
add esp, 0x14
push 0x104
mov esi, 0x472b49
push esi
push 0
mov byte [0x472c4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x453b6c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045de49
add esp, 0xc
test eax, eax
je 0x453b6c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004537e1
add esp, 0x14
push esi
call fcn.0044d720
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x453bb1
push esi
call fcn.0044d720
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x472e44
push 0x466898
sub ecx, eax
push ecx
push eax
call fcn.0045dd96
add esp, 0x14
test eax, eax
je 0x453bb1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004537e1
add esp, 0x14
jmp 0x453bb3
xor esi, esi
push 0x46b250
push ebx
push ebp
call fcn.0045dcd8
add esp, 0xc
test eax, eax
je 0x453bd3
push esi
push esi
push esi
push esi
push esi
call fcn.004537e1
add esp, 0x14
push dword [edi*8 + 0x470c64]
push ebx
push ebp
call fcn.0045dcd8
add esp, 0xc
test eax, eax
je 0x453bf5
push esi
push esi
push esi
push esi
push esi
call fcn.004537e1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045df26
add esp, 0xc
jmp 0x453c3d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x453c3d
cmp ebp, 0xffffffff
je 0x453c3d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x470c64]
push dword [esi]
call fcn.0044d720
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4590aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x470f04]
jne 0x4590b4
repz ret
jmp fcn.00460a17

Function at 0x45df26
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00453258
xor ebx, ebx
cmp dword [0x4731bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45dffc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45e0dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46864c
push edi
call esi
cmp eax, ebx
je 0x45e0dc
push eax
call fcn.004531ea
mov dword [esp], 0x46863c
push edi
mov dword [0x4731bc], eax
call esi
push eax
call fcn.004531ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4731c0], eax
call esi
push eax
call fcn.004531ea
mov dword [0x4731c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044d19e
test eax, eax
pop ecx
pop ecx
je 0x45dfca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004537e1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45dffc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004531ea
cmp eax, ebx
pop ecx
mov dword [0x4731cc], eax
je 0x45dffc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004531ea
pop ecx
mov dword [0x4731c8], eax
mov eax, dword [0x4731c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45e081
cmp dword [0x4731cc], ecx
je 0x45e081
push eax
call fcn.00453261
push dword [0x4731cc]
mov esi, eax
call fcn.00453261
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45e081
cmp edi, ebx
je 0x45e081
call esi
cmp eax, ebx
je 0x45e04e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45e04e
test byte [ebp - 0x18], 1
jne 0x45e081
lea eax, [ebp - 0x10]
push eax
call fcn.0044d1d5
test eax, eax
pop ecx
je 0x45e069
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004537e1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45e078
or dword [ebp + 0x10], 0x200000
jmp 0x45e0bc
or dword [ebp + 0x10], 0x40000
jmp 0x45e0bc
mov eax, dword [0x4731c0]
cmp eax, dword [ebp - 8]
je 0x45e0bc
push eax
call fcn.00453261
cmp eax, ebx
pop ecx
je 0x45e0bc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45e0bc
mov eax, dword [0x4731c4]
cmp eax, dword [ebp - 8]
je 0x45e0bc
push eax
call fcn.00453261
cmp eax, ebx
pop ecx
je 0x45e0bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4731bc]
call fcn.00453261
cmp eax, ebx
pop ecx
je 0x45e0dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e0de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412e82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412d01

Function at 0x4171e6
Capabilities:
Set environment variable

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

Function at 0x4171f1
Capabilities:
Set environment variable

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

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x757008], 0x8088405
inc edx
mov dword [ebx + 0x757008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7406d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7406da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x7410cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x759258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x759258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x7580e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7410d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40ea38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb28
push ebx
push 0x40eb38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eab8
mov al, 0x6a
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea0c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac1
call fcn.0040ea0c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb14
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x8b9000
lea edi, [esi - 0x4b8000]
push edi
or ebp, 0xffffffff
jmp 0x40104c
pop eax
popal
nop
jmp fcn.009f9c0f